Huddle01 Cloud
Flavors

List flavors

Retrieve all compute flavors (machine types) available in a given region. Use the returned id as the flavor_id when creating an instance.

curl -X GET \
  "https://cloud.huddleapis.com/api/v1/flavors?region=eu2" \
  -H "x-api-key: $HUDDLE_API_KEY" \
  -H "Accept: application/json"
GET
/flavors
x-api-key<token>

In: header

Query Parameters

regionstring

Region code where the resource exists (e.g., eu2).

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://cloud.huddleapis.com/api/v1/flavors?region=eu2"
{
  "flavors": [
    {
      "id": "c2-small",
      "name": "CPU Optimized 2 vCPU / 4GB",
      "vcpus": 2,
      "ram": 4096,
      "disk": 40,
      "price_per_hour": 0.015
    },
    {
      "id": "c4-medium",
      "name": "CPU Optimized 4 vCPU / 8GB",
      "vcpus": 4,
      "ram": 8192,
      "disk": 80,
      "price_per_hour": 0.035
    }
  ]
}
{
  "message": "Bad request",
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid request body",
    "type": "client"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}
{
  "message": "Unauthorized",
  "error": {
    "code": "UNAUTHORIZED",
    "message": "x-api-key header missing",
    "type": "auth"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}
{
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Failed to create instance",
    "type": "server"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}