Skip to main content

availabilities

Creates, updates, deletes, gets or lists an availabilities resource.

Overview​

Nameavailabilities
TypeResource
Idovh.nutanix.availabilities

Fields​

The following fields are returned by SELECT queries:

Cluster availability

NameDatatypeDescription
datacentersarrayA structure describing the hardware availability for each datacenter
deployment_typestringDeployment type (NodeAwareness) (wire: deploymentType)
erasure_codingbooleanErasure coding activation (wire: erasureCoding)
fqnstringFully qualified name and unique name of the hardware
memorystringName of the memory hardware part
plan_codestringPlan code in which the hardware is involved (wire: planCode)
redundancy_factorintegerRedundancy factor (2, 3) (wire: redundancyFactor)
serverstringName of the base hardware
storagestringName of the storage hardware part
system_storagestringName of the system storage hardware part (wire: systemStorage)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectquantityerasure_coding, memory, plan_code, rack_awareness, redundancy_factor, server, storage, system_storageFetch 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.

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"}})
quantityintegerNode quantity
erasure_codingboolean (wire: erasureCoding)
memorystringThe name of the memory hardware part
plan_codestringThe plan code in which the hardware is involved (wire: planCode)
rack_awarenessboolean (wire: rackAwareness)
redundancy_factorinteger (wire: redundancyFactor)
serverstringThe name of the base hardware
storagestringThe name of the storage hardware part
system_storagestringThe name of the system storage hardware part (wire: systemStorage)

SELECT examples​

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 }}'
;