Skip to content

Access Control

All operations require authentication.

6 operationsv1/storage/netapp
Agent setup

List access pathsProduction

GET
/1.0/storage/netapp/{serviceName}/share/{shareId}/accessPath

Returns the paths used to mount the share, with the preferred one first. The list stays empty until the network status of the service is associated.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200NetAppShareAccessPath[]successful operation
id
read-only
stringuuid

Access path ID

path
read-only
string

Access path, in the form IP:/junction-path

preferred
read-only
boolean

Is this the preferred access path?

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/accessPath \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "id": "00000000-0000-0000-0000-000000000000", "path": "string", "preferred": true }]

List ACLsProduction

GET
/1.0/storage/netapp/{serviceName}/share/{shareId}/acl

Returns 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.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200NetAppShareACLRule[]successful operation
accessLevel
required
NetAppShareACLPermissionEnum

Rule access level

Valuesrorw
accessTo
required
string

Rule destination

accessType
read-only
NetAppShareACLTypeEnum

Rule access type

Valuesip
createdAt
read-only
stringdate-time

Rule creation date

id
read-only
stringuuid

Rule ID

status
read-only
NetAppShareACLStatusEnum

Rule status

Valuesactiveapplyingdenyingerrorqueued_to_applyqueued_to_deny

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/acl \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "accessLevel": "ro", "accessTo": "string", "accessType": "ip", "createdAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "status": "active" }]

Get an access pathProduction

GET
/1.0/storage/netapp/{serviceName}/share/{shareId}/accessPath/{accessPathId}

Returns the path used to mount the share. The preferred path goes through the storage node that hosts the share.

Path parameters

accessPathId
required
stringuuid

Access path ID

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200NetAppShareAccessPathsuccessful operation
id
read-only
stringuuid

Access path ID

path
read-only
string

Access path, in the form IP:/junction-path

preferred
read-only
boolean

Is this the preferred access path?

Example uses accessPathId = 00000000-0000-0000-0000-000000000000, serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/accessPath/{accessPathId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "id": "00000000-0000-0000-0000-000000000000", "path": "string", "preferred": true}

Get an ACLProduction

GET
/1.0/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId}

Returns the ACL and its status. An ACL in error is not applied to the share: delete it and create it again.

Path parameters

aclRuleId
required
stringuuid

Acl rule ID

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200NetAppShareACLRulesuccessful operation
accessLevel
required
NetAppShareACLPermissionEnum

Rule access level

Valuesrorw
accessTo
required
string

Rule destination

accessType
read-only
NetAppShareACLTypeEnum

Rule access type

Valuesip
createdAt
read-only
stringdate-time

Rule creation date

id
read-only
stringuuid

Rule ID

status
read-only
NetAppShareACLStatusEnum

Rule status

Valuesactiveapplyingdenyingerrorqueued_to_applyqueued_to_deny

Example uses aclRuleId = 00000000-0000-0000-0000-000000000000, serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accessLevel": "ro", "accessTo": "string", "accessType": "ip", "createdAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "status": "active"}

Create an ACLProduction

POST
/1.0/storage/netapp/{serviceName}/share/{shareId}/acl

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.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Request body (required)

accessLevel
required
NetAppShareACLPermissionEnum

Rule access level

Valuesrorw
accessTo
required
string

Rule destination

accessType
read-only
NetAppShareACLTypeEnum

Rule access type

Valuesip
createdAt
read-only
stringdate-time

Rule creation date

id
read-only
stringuuid

Rule ID

status
read-only
NetAppShareACLStatusEnum

Rule status

Valuesactiveapplyingdenyingerrorqueued_to_applyqueued_to_deny

Response

200NetAppShareACLRulesuccessful operation
accessLevel
required
NetAppShareACLPermissionEnum

Rule access level

Valuesrorw
accessTo
required
string

Rule destination

accessType
read-only
NetAppShareACLTypeEnum

Rule access type

Valuesip
createdAt
read-only
stringdate-time

Rule creation date

id
read-only
stringuuid

Rule ID

status
read-only
NetAppShareACLStatusEnum

Rule status

Valuesactiveapplyingdenyingerrorqueued_to_applyqueued_to_deny

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/acl \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accessLevel": "ro", "accessTo": "string", "accessType": "ip", "createdAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "status": "active"}

Delete an ACLProduction

DELETE
/1.0/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId}

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.

Path parameters

aclRuleId
required
stringuuid

Acl rule ID

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200—successful operation

Example uses aclRuleId = 00000000-0000-0000-0000-000000000000, serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId} \
  -H "authorization: Bearer $OVH_TOKEN"