Skip to main content

netapp_share_acls

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

Overview​

Namenetapp_share_acls
TypeResource
Idovh.storage.netapp_share_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Rule ID
access_levelstringRule access level (ro, rw) (wire: accessLevel)
access_tostringRule destination (wire: accessTo)
access_typestringRule access type (ip) (wire: accessType)
created_atstring (date-time)Rule creation date (wire: createdAt)
statusstringRule status (active, applying, denying, error, queued_to_apply, queued_to_deny)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectacl_rule_id, service_name, share_idReturns the ACL and its status. An ACL in error is not applied to the share: delete it and create it again.
listselectservice_name, share_idReturns the ACLs of the share, including those still being applied or removed. Check the status of each ACL to know whether it is in effect.
createinsertservice_name, share_id, access_level, access_toGrants an IPv4 address or IPv4 CIDR block read-only or read-write access to the share. Creation is asynchronous: the ACL is returned with status queued_to_apply, follow its status until active. The call is rejected while the share is being created, resized, reverted or replicated.
deletedeleteacl_rule_id, service_name, share_idRevokes access to the share. Clients already mounting the share using it lose access. Deletion is asynchronous: the ACL stays listed with status queued_to_deny or denying until it is removed.

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
acl_rule_idstring (uuid)Acl rule ID (wire: aclRuleId)
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 ACL and its status. An ACL in error is not applied to the share: delete it and create it again.

SELECT
id,
access_level,
access_to,
access_type,
created_at,
status
FROM ovh.storage.netapp_share_acls
WHERE acl_rule_id = '{{ acl_rule_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND share_id = '{{ share_id }}' -- required
;

INSERT examples​

Grants an IPv4 address or IPv4 CIDR block read-only or read-write access to the share. Creation is asynchronous: the ACL is returned with status queued_to_apply, follow its status until active. The call is rejected while the share is being created, resized, reverted or replicated.

INSERT INTO ovh.storage.netapp_share_acls (
access_level,
access_to,
service_name,
share_id
)
SELECT
'{{ access_level }}' /* required */,
'{{ access_to }}' /* required */,
'{{ service_name }}',
'{{ share_id }}'
RETURNING
id,
access_level,
access_to,
access_type,
created_at,
status
;

DELETE examples​

Revokes access to the share. Clients already mounting the share using it lose access. Deletion is asynchronous: the ACL stays listed with status queued_to_deny or denying until it is removed.

DELETE FROM ovh.storage.netapp_share_acls
WHERE acl_rule_id = '{{ acl_rule_id }}' --required
AND service_name = '{{ service_name }}' --required
AND share_id = '{{ share_id }}' --required
;