Skip to main content

location_stock_zpools

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

Overview​

Namelocation_stock_zpools
TypeResource
Idovh.dedicated_cloud.location_stock_zpools

Fields​

The following fields are returned by SELECT queries:

Zpool and their availability

NameDatatypeDescription
minimum_availabilitystringMinimum accepted available zpools (wire: minimumAvailability)
profilestringReference of zpool
real_countintegerAvailable zpools (wire: realCount)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpcc_zoneprofile_filterList datastore stock. Returns the available datastores per profile in the hosting location. Filter by profile with profileFilter.

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"}})
pcc_zonestringName of pccZone (wire: pccZone)
profile_filterstringProfile filter (wire: profileFilter)

SELECT examples​

List datastore stock. Returns the available datastores per profile in the hosting location. Filter by profile with profileFilter.

SELECT
minimum_availability,
profile,
real_count
FROM ovh.dedicated_cloud.location_stock_zpools
WHERE pcc_zone = '{{ pcc_zone }}' -- required
AND profile_filter = '{{ profile_filter }}'
;