Skip to main content

netapp_share_snapshot_reserves

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

Overview​

Namenetapp_share_snapshot_reserves
TypeResource
Idovh.storage.netapp_share_snapshot_reserves

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
percentintegerShare space percentage reserved for snapshots, 5 by default
statusstringStatus (active, error, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, share_idReturns the percentage of the share size reserved for snapshots and the status of its last update.
updateupdateservice_name, share_id, percentChanges 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.

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"}})
service_namestring (uuid)Service name (wire: serviceName)
share_idstring (uuid)Share ID (wire: shareId)

SELECT examples​

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​

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;