Flavors
Flavors define the compute size for an instance (vCPU, RAM, disk).
Use flavors to choose the right size before creating an instance.
Endpoint
GET /cloud/v1/compute/instances/flavorsExample
curl https://api.redu.cloud/cloud/v1/compute/instances/flavors \
-H "x-api-key: YOUR_API_KEY"Successful Response
[
{ "id": "1", "name": "m1.tiny", "vcpus": 1, "ram": 512, "disk": 1 },
{ "id": "2", "name": "m1.small", "vcpus": 1, "ram": 2048, "disk": 20 },
{ "id": "3", "name": "m1.medium", "vcpus": 2, "ram": 4096, "disk": 40 },
{ "id": "4", "name": "m1.large", "vcpus": 4, "ram": 8192, "disk": 80 },
{ "id": "5", "name": "m1.xlarge", "vcpus": 8, "ram": 16384, "disk": 160 }
]Response Schema
This endpoint returns an array of flavor objects.
Flavor
| Field | Type | Description |
|---|---|---|
| id | string | Flavor ID |
| name | string | Flavor name (e.g. m1.small) |
| vcpus | integer | Number of virtual CPUs |
| ram | integer | Memory in MB |
| disk | integer | Root disk size in GB |
Errors
401 Unauthorized
{
"error": {
"code": "unauthorized",
"message": "Invalid API key"
}
}403 Forbidden
The API key does not have access to the requested project.