Skip to main content

datacenter_clusters

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

Overview​

Namedatacenter_clusters
TypeResource
Idovh.dedicated_cloud.datacenter_clusters

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the cluster
cluster_idintegerId of the cluster (wire: clusterId)
vmware_cluster_idstringThe VMware MoRef of the cluster (wire: vmwareClusterId)
autoscaleobjectAutoScale associated to this cluster
drs_modestringDrs mode of the cluster (fullyAutomated, manual, partiallyAutomated) (wire: drsMode)
drs_statusstringDrs status of the cluster (disabled, enabled, unknown) (wire: drsStatus)
evc_modestringEvc mode of the cluster (wire: evcMode)
ha_statusstringHigh availability status of the cluster (disabled, enabled, unknown) (wire: haStatus)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcluster_id, datacenter_id, service_nameGet a cluster. Returns the cluster: name, VMware MoRef, DRS and HA status, EVC mode and autoscale settings.
listselectdatacenter_id, service_namex_pagination_modeList clusters
delete_nsxtexecclusterId, datacenterId, serviceNameDelete the cluster NSX-T configuration. Removes the NSX-T configuration from the cluster. Returns a task to track progress.
nsxtexecclusterId, datacenterId, serviceNameConfigure NSX-T on a cluster
update_nsxtexecclusterId, datacenterId, serviceNameReapply NSX-T on a cluster. Reapplies the NSX-T configuration of the cluster. Returns a task to track progress.

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"}})
clusterIdintegerId of the cluster
cluster_idintegerId of the cluster (wire: clusterId)
datacenterIdintegerId of the Datacenter
datacenter_idintegerId of the Datacenter (wire: datacenterId)
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)
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 a cluster. Returns the cluster: name, VMware MoRef, DRS and HA status, EVC mode and autoscale settings.

SELECT
name,
cluster_id,
vmware_cluster_id,
autoscale,
drs_mode,
drs_status,
evc_mode,
ha_status
FROM ovh.dedicated_cloud.datacenter_clusters
WHERE cluster_id = '{{ cluster_id }}' -- required
AND datacenter_id = '{{ datacenter_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Delete the cluster NSX-T configuration. Removes the NSX-T configuration from the cluster. Returns a task to track progress.

EXEC ovh.dedicated_cloud.datacenter_clusters.delete_nsxt
@clusterId='{{ clusterId }}' --required,
@datacenterId='{{ datacenterId }}' --required,
@serviceName='{{ serviceName }}' --required
;