Skip to main content

flavors

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

Overview​

Nameflavors
TypeResource
Idovh.cloud_kube.flavors

Fields​

The following fields are returned by SELECT queries:

a flavor kind

NameDatatypeDescription
namestringFlavor name
categorystringFlavor family (a, b, c, d, g, h, i, l, r, t)
gpusintegerNumber of GPUs
ramintegerRam quantity (GB)
statestringFlavor state (available, unavailable)
v_cpusintegerNumber of VCPUs (wire: vCPUs)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectkube_id, service_nameList all flavors available

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"}})
kube_idstringKube ID (wire: kubeId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

List all flavors available

SELECT
name,
category,
gpus,
ram,
state,
v_cpus
FROM ovh.cloud_kube.flavors
WHERE kube_id = '{{ kube_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;