netapp_share_snapshot_reserves
Creates, updates, deletes, gets or lists a netapp_share_snapshot_reserves resource.
Overview​
| Name | netapp_share_snapshot_reserves |
| Type | Resource |
| Id | ovh.storage.netapp_share_snapshot_reserves |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
percent | integer | Share space percentage reserved for snapshots, 5 by default |
status | string | Status (active, error, updating) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name, share_id | Returns the percentage of the share size reserved for snapshots and the status of its last update. | |
update | update | service_name, share_id, percent | Changes the percentage of the share size reserved for snapshots without changing the share size, so a higher reserve leaves less space for data. The share must be available. The update is asynchronous: follow the snapshot reserve status until it returns to active. |
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"}}) |
service_name | string (uuid) | Service name (wire: serviceName) |
share_id | string (uuid) | Share ID (wire: shareId) |
SELECT examples​
- get
Returns the percentage of the share size reserved for snapshots and the status of its last update.
SELECT
percent,
status
FROM ovh.storage.netapp_share_snapshot_reserves
WHERE service_name = '{{ service_name }}' -- required
AND share_id = '{{ share_id }}' -- required
;
UPDATE examples​
- update
Changes the percentage of the share size reserved for snapshots without changing the share size, so a higher reserve leaves less space for data. The share must be available. The update is asynchronous: follow the snapshot reserve status until it returns to active.
UPDATE ovh.storage.netapp_share_snapshot_reserves
SET
percent = {{ percent }}
WHERE
service_name = '{{ service_name }}' --required
AND share_id = '{{ share_id }}' --required
AND percent = '{{ percent }}' --required;