Skip to main content

clusters

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

Overview​

Nameclusters
TypeResource
Idovh.dedicated_cluster.clusters

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Cluster's ID
iamobjectIAM resource metadata
modelstringModel of the cluster
nodesarrayCluster's nodes
regionstringRegion where cluster is located
statusstringCluster status

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the ID, model, region and status of a dedicated cluster, and its nodes. (Beta version)
listselectiam_tags, x_pagination_modeReturns the IDs of the dedicated clusters of the account. (Beta version)
change_contactexecserviceNameStarts a contact change procedure for the admin, billing or tech contact of the cluster. Returns the IDs of the contact change tasks. (Beta version)
confirm_terminationexecserviceName, tokenConfirms the termination of the cluster with the token sent by email to the admin contact. (Beta version)
terminateexecserviceNameStarts the termination of the cluster and sends a confirmation token by email to the admin contact. Confirm it with the termination confirmation. (Beta version)

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"}})
serviceNamestring (uuid)Service name
service_namestring (uuid)Service name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
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​

Returns the ID, model, region and status of a dedicated cluster, and its nodes. (Beta version)

SELECT
id,
iam,
model,
nodes,
region,
status
FROM ovh.dedicated_cluster.clusters
WHERE service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts a contact change procedure for the admin, billing or tech contact of the cluster. Returns the IDs of the contact change tasks. (Beta version)

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