Skip to main content

acls

Creates, updates, deletes, gets or lists an acls resource.

Overview​

Nameacls
TypeResource
Idovh.dedicated_ceph.acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of IP ACL
familystringFamily of IP ACL (IPV4, IPV6)
netmaskstring (ipv4)IP address (e.g., 192.0.2.0) (example: 192.0.2.0)
networkstring (ipv4)IP address (e.g., 192.0.2.0) (example: 192.0.2.0)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectacl_id, service_nameReturns an IP ACL, which allows one network to connect to the cluster.
listselectservice_nameReturns the IP ACLs of the cluster. Only the networks listed in an ACL can connect to the cluster.
createinsertservice_name, acl_listCreates one IP ACL for each network in aclList, to allow it to connect to the cluster. The ACLs also apply to CephFS.
deletedeleteacl_id, service_nameDeletes the IP ACL. Clients in its network can no longer connect to the cluster.

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_idintegerAcl 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"}})
service_namestringService name (wire: serviceName)

SELECT examples​

Returns an IP ACL, which allows one network to connect to the cluster.

SELECT
id,
family,
netmask,
network
FROM ovh.dedicated_ceph.acls
WHERE acl_id = '{{ acl_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Creates one IP ACL for each network in aclList, to allow it to connect to the cluster. The ACLs also apply to CephFS.

INSERT INTO ovh.dedicated_ceph.acls (
acl_list,
service_name
)
SELECT
'{{ acl_list }}' /* required */,
'{{ service_name }}'
;

DELETE examples​

Deletes the IP ACL. Clients in its network can no longer connect to the cluster.

DELETE FROM ovh.dedicated_ceph.acls
WHERE acl_id = '{{ acl_id }}' --required
AND service_name = '{{ service_name }}' --required
;