Skip to main content

region_share_acls

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

Overview​

Nameregion_share_acls
TypeResource
Idovh.cloud_storage.region_share_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)ACL ID
access_levelstringACL Access Level (ro, rw) (wire: accessLevel)
access_tostringACL Access Resource (wire: accessTo)
access_typestringACL Access Type (ip) (wire: accessType)
created_atstring (date-time)The date and timestamp when the resource was created (wire: createdAt)
statusstringACL Status (active, applying, denying, error, queued_to_apply, queued_to_deny)
updated_atstring (date-time)The date and timestamp when the resource was updated for the last time (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectacl_id, region_name, share_id, service_nameGet share ACL
listselectregion_name, share_id, service_nameGet share ACLs
createinsertregion_name, share_id, service_nameCreate share ACL
deletedeleteacl_id, region_name, share_id, service_nameDelete share ACL

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_idstring (uuid)Acl ID (wire: aclId)
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"}})
region_namestringRegion name (wire: regionName)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
share_idstring (uuid)Share ID (wire: shareId)

SELECT examples​

Get share ACL

SELECT
id,
access_level,
access_to,
access_type,
created_at,
status,
updated_at
FROM ovh.cloud_storage.region_share_acls
WHERE acl_id = '{{ acl_id }}' -- required
AND region_name = '{{ region_name }}' -- required
AND share_id = '{{ share_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create share ACL

INSERT INTO ovh.cloud_storage.region_share_acls (
access_level,
access_to,
region_name,
share_id,
service_name
)
SELECT
'{{ access_level }}',
'{{ access_to }}',
'{{ region_name }}',
'{{ share_id }}',
'{{ service_name }}'
RETURNING
id,
access_level,
access_to,
access_type,
created_at,
status,
updated_at
;

DELETE examples​

Delete share ACL

DELETE FROM ovh.cloud_storage.region_share_acls
WHERE acl_id = '{{ acl_id }}' --required
AND region_name = '{{ region_name }}' --required
AND share_id = '{{ share_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;