Skip to main content

datacenter_cluster_filer_vsans

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

Overview​

Namedatacenter_cluster_filer_vsans
TypeResource
Idovh.dedicated_cloud.datacenter_cluster_filer_vsans

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
cluster_idintegerId of Cluster. (wire: clusterId)
datacenter_idintegerId of the datacenter. (wire: datacenterId)
datastore_idintegerId of the vsan datastore. (wire: datastoreId)
datastore_namestringName of the datastore. (wire: datastoreName)
connection_statestringDatastore connection state. (offline, online) (wire: connectionState)
space_freenumberAvailable space of this datastore, in GB (wire: spaceFree)
space_provisionednumberProvisioned space of this datastore, in GB (wire: spaceProvisioned)
space_usednumberUsed Space of this datastore, in GB (wire: spaceUsed)
vm_totalintegerNumber of virtual machine on the datastore (wire: vmTotal)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcluster_id, datacenter_id, datastore_id, service_nameGet a vSAN datastore. Returns the vSAN datastore: used, free and provisioned space, connection state and number of virtual machines.
listselectcluster_id, datacenter_id, service_namex_pagination_modeList vSAN datastores

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"}})
cluster_idintegerId of the cluster (wire: clusterId)
datacenter_idintegerId of the Datacenter (wire: datacenterId)
datastore_idintegerId of the vsan datastore. (wire: datastoreId)
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 vSAN datastore. Returns the vSAN datastore: used, free and provisioned space, connection state and number of virtual machines.

SELECT
cluster_id,
datacenter_id,
datastore_id,
datastore_name,
connection_state,
space_free,
space_provisioned,
space_used,
vm_total
FROM ovh.dedicated_cloud.datacenter_cluster_filer_vsans
WHERE cluster_id = '{{ cluster_id }}' -- required
AND datacenter_id = '{{ datacenter_id }}' -- required
AND datastore_id = '{{ datastore_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;