flavors
Creates, updates, deletes, gets or lists a flavors resource.
Overview​
| Name | flavors |
| Type | Resource |
| Id | ovh.cloud.flavors |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string | Flavor id |
name | string | Flavor name |
available | boolean | Available in stock |
capabilities | array | Capabilities of the flavor |
disk | integer | Number of disks |
inbound_bandwidth | integer | Max capacity of inbound traffic in Mbit/s (wire: inboundBandwidth) |
os_type | string | OS to install on (wire: osType) |
outbound_bandwidth | integer | Max capacity of outbound traffic in Mbit/s (wire: outboundBandwidth) |
plan_codes | object | Plan codes to order instances (wire: planCodes) |
quota | integer | Number instance you can spawn with your actual quota |
ram | integer | Ram quantity (Gio) |
region | string | Flavor region |
type | string | Flavor type |
vcpus | integer | Number of VCPUs |
Flavor
| Name | Datatype | Description |
|---|---|---|
id | string | Flavor id |
name | string | Flavor name |
available | boolean | Available in stock |
capabilities | array | Capabilities of the flavor |
disk | integer | Number of disks |
inbound_bandwidth | integer | Max capacity of inbound traffic in Mbit/s (wire: inboundBandwidth) |
os_type | string | OS to install on (wire: osType) |
outbound_bandwidth | integer | Max capacity of outbound traffic in Mbit/s (wire: outboundBandwidth) |
plan_codes | object | Plan codes to order instances (wire: planCodes) |
quota | integer | Number instance you can spawn with your actual quota |
ram | integer | Ram quantity (Gio) |
region | string | Flavor region |
type | string | Flavor type |
vcpus | integer | Number of VCPUs |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | flavor_id, service_name | Get a specific flavor for a public cloud project | |
list | select | service_name | region | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_id | string | Flavor ID (wire: flavorId) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
region | string | Flavor region |
SELECT examples​
- get
- list
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
;
List all flavors 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 service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND region = '{{ region }}'
;