availabilities
Creates, updates, deletes, gets or lists an availabilities resource.
Overview​
| Name | availabilities |
| Type | Resource |
| Id | ovh.nutanix.availabilities |
Fields​
The following fields are returned by SELECT queries:
- list
Cluster availability
| Name | Datatype | Description |
|---|---|---|
datacenters | array | A structure describing the hardware availability for each datacenter |
deployment_type | string | Deployment type (NodeAwareness) (wire: deploymentType) |
erasure_coding | boolean | Erasure coding activation (wire: erasureCoding) |
fqn | string | Fully qualified name and unique name of the hardware |
memory | string | Name of the memory hardware part |
plan_code | string | Plan code in which the hardware is involved (wire: planCode) |
redundancy_factor | integer | Redundancy factor (2, 3) (wire: redundancyFactor) |
server | string | Name of the base hardware |
storage | string | Name of the storage hardware part |
system_storage | string | Name of the system storage hardware part (wire: systemStorage) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | quantity | erasure_coding, memory, plan_code, rack_awareness, redundancy_factor, server, storage, system_storage | Fetch the availabilities for a given cluster configuration |
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"}}) |
quantity | integer | Node quantity |
erasure_coding | boolean | (wire: erasureCoding) |
memory | string | The name of the memory hardware part |
plan_code | string | The plan code in which the hardware is involved (wire: planCode) |
rack_awareness | boolean | (wire: rackAwareness) |
redundancy_factor | integer | (wire: redundancyFactor) |
server | string | The name of the base hardware |
storage | string | The name of the storage hardware part |
system_storage | string | The name of the system storage hardware part (wire: systemStorage) |
SELECT examples​
- list
Fetch the availabilities for a given cluster configuration
SELECT
datacenters,
deployment_type,
erasure_coding,
fqn,
memory,
plan_code,
redundancy_factor,
server,
storage,
system_storage
FROM ovh.nutanix.availabilities
WHERE quantity = '{{ quantity }}' -- required
AND erasure_coding = '{{ erasure_coding }}'
AND memory = '{{ memory }}'
AND plan_code = '{{ plan_code }}'
AND rack_awareness = '{{ rack_awareness }}'
AND redundancy_factor = '{{ redundancy_factor }}'
AND server = '{{ server }}'
AND storage = '{{ storage }}'
AND system_storage = '{{ system_storage }}'
;