Instances
List flavors matching volume requirements
List all flavors that are suitable for instance creation based on volume requirements.
post/cloud/v1/instances/{project_id}/{region_id}/available_flavors
Path parameters
project_idinteger required
Project ID
region_idinteger required
Region ID
Query parameters
include_pricesboolean
Set to true if flavor listing should include flavor prices
Request body
Example request
{
"volumes": [
{
"attachment_tag": "root",
"boot_index": 0,
"image_id": "f01fd9a0-9548-48ba-82dc-a8c8b2d6f2f1",
"name": "TestVM5 Ubuntu boot image",
"size": 10,
"source": "image",
"type_name": "ssd_hiiops"
}
]
}Response
List of available flavors
Example response
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"currency_code": "USD",
"flavor_id": "g2-standard-32-64",
"flavor_name": "g2-standard-32-64",
"os_type": "linux",
"ram": 2048,
"reserved_capacity": 5,
"vcpus": 1
}
]
}