location_stock_zpools
Creates, updates, deletes, gets or lists a location_stock_zpools resource.
Overview​
| Name | location_stock_zpools |
| Type | Resource |
| Id | ovh.dedicated_cloud.location_stock_zpools |
Fields​
The following fields are returned by SELECT queries:
- list
Zpool and their availability
| Name | Datatype | Description |
|---|---|---|
minimum_availability | string | Minimum accepted available zpools (wire: minimumAvailability) |
profile | string | Reference of zpool |
real_count | integer | Available zpools (wire: realCount) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | pcc_zone | profile_filter | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_zone | string | Name of pccZone (wire: pccZone) |
profile_filter | string | Profile filter (wire: profileFilter) |
SELECT examples​
- list
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 }}'
;