curl --request GET \
--url https://api.gcore.com/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/available_flavors \
--header 'Authorization: <api-key>'
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"currency_code": "USD",
"disabled": false,
"flavor_id": "g2-standard-32-64",
"flavor_name": "g2-standard-32-64",
"hardware_description": {},
"os_type": "linux",
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"ram": 2048,
"vcpus": 1
}
]
}
curl --request GET \
--url https://api.gcore.com/cloud/v1/instances/{project_id}/{region_id}/{instance_id}/available_flavors \
--header 'Authorization: <api-key>'
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"currency_code": "USD",
"disabled": false,
"flavor_id": "g2-standard-32-64",
"flavor_name": "g2-standard-32-64",
"hardware_description": {},
"os_type": "linux",
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"ram": 2048,
"vcpus": 1
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Instance ID
Set to true if flavor listing should include flavor prices
List of available flavors
The response is of type object
.
Was this page helpful?