Skip to main content

flavors

Creates, updates, deletes, gets or lists a flavors resource.

Overview​

Nameflavors
TypeResource
Idovh.cloud.flavors

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringFlavor id
namestringFlavor name
availablebooleanAvailable in stock
capabilitiesarrayCapabilities of the flavor
diskintegerNumber of disks
inbound_bandwidthintegerMax capacity of inbound traffic in Mbit/s (wire: inboundBandwidth)
os_typestringOS to install on (wire: osType)
outbound_bandwidthintegerMax capacity of outbound traffic in Mbit/s (wire: outboundBandwidth)
plan_codesobjectPlan codes to order instances (wire: planCodes)
quotaintegerNumber instance you can spawn with your actual quota
ramintegerRam quantity (Gio)
regionstringFlavor region
typestringFlavor type
vcpusintegerNumber of VCPUs

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectflavor_id, service_nameGet a specific flavor for a public cloud project
listselectservice_nameregionList all flavors for a public cloud project

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
flavor_idstringFlavor ID (wire: flavorId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
regionstringFlavor region

SELECT examples​

Get a specific flavor for a public cloud project

SELECT
id,
name,
available,
capabilities,
disk,
inbound_bandwidth,
os_type,
outbound_bandwidth,
plan_codes,
quota,
ram,
region,
type,
vcpus
FROM ovh.cloud.flavors
WHERE flavor_id = '{{ flavor_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;