Skip to main content

clusters

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

Overview​

Nameclusters
TypeResource
Idovh.nutanix.clusters

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
service_namestringCluster name (wire: serviceName)
allowed_redundancy_factorarrayAvailable redundancy Factor (wire: allowedRedundancyFactor)
available_versionsarrayAvailable versions to install (wire: availableVersions)
iamobjectIAM resource metadata
statusstringCurrent cluster's status (Active, Deploying, Error)
target_specobjectTarget Spec after deployment (wire: targetSpec)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet nutanix cluster info
listselectiam_tags, x_pagination_modeGet list of owned Nutanix Clusters
updateupdateservice_nameredeploycluster, scale_outUpdate nutanix cluster info
change_contactexecserviceNameLaunch a contact change procedure
confirm_terminationexecserviceName, tokenConfirm service termination
terminateexecserviceNameAsk for the termination of your service
update_vrackexecserviceName

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
redeployclusterbooleanI am aware that I am going to make changes that will reinstall my cluster
scale_outbooleanI am aware that I am going to make changes that will scale-out my cluster (wire: scaleOut)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get nutanix cluster info

SELECT
service_name,
allowed_redundancy_factor,
available_versions,
iam,
status,
target_spec
FROM ovh.nutanix.clusters
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update nutanix cluster info

UPDATE ovh.nutanix.clusters
SET
dataservice_ip = '{{ dataservice_ip }}',
erasure_coding = {{ erasure_coding }},
gateway_cidr = '{{ gateway_cidr }}',
infra_vlan_number = {{ infra_vlan_number }},
install_prism_central = {{ install_prism_central }},
nodes = '{{ nodes }}',
prism_central = '{{ prism_central }}',
prism_element_vip = '{{ prism_element_vip }}',
redundancy_factor = {{ redundancy_factor }},
version = '{{ version }}'
WHERE
service_name = '{{ service_name }}' --required
AND redeploycluster = {{ redeploycluster}}
AND scale_out = {{ scale_out}}
RETURNING
service_name,
allowed_redundancy_factor,
available_versions,
status,
target_spec;

Lifecycle Methods​

EXEC variables use wire (API) names.

Launch a contact change procedure

EXEC ovh.nutanix.clusters.change_contact
@serviceName='{{ serviceName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;