Enterprise File Storage - Managing volume ACLs

Manage Enterprise File Storage volume ACLs using the OVHcloud API

Last updated 27th October 2021

Objective

In this tutorial, we will provide an overview of how to manage ACLs for OVHcloud Enterprise File Storage volumes.

Learn how to list ACLs, create a new ACL and remove an ACL using the OVHcloud API.

Requirements

  • An OVHcloud Enterprise File Storage volume
  • You should be logged in to the OVHcloud API

Basics

Volume ACLs allow to authorise or restrict access to a volume.

By default, all access to a newly created volume is restricted. An ACL has to be created in order to allow access.

Using ACLs, you can allow an IP or range of IP addresses (CIDR notation) to access a volume.

Instructions

All API routes used for this tutorial are available under the /storage section here: https://api.ovh.com/console/#/storage.

While using the API, all fields marked with an asterisk (*) are required.

Listing existing ACLs

All existing ACLs for a volume can be retrieved using the following route:

API:
Parameters:

serviceName *

Service ID

shareId *

Volume ID

Replace serviceName with the ID of your service and shareId with your volume ID.

You should have no ACLs by default.

Allowing access to a volume using an ACL

To create a new ACL, use the following route:

API:
Parameters:

serviceName *

Service ID

shareId *

Volume ID

NetAppShareACLRule *

accessLevel *

ACL access level. Can be rw (read and write) or ro (read-only).

accessTo *

IP address or a range of IP addresses in CIDR notation.

Replace serviceName with the ID of your service and shareId with your volume ID.

Choose the accessLevel you want to allow: either ro (read-only) or rw (read and write).

Finally, replace accessTo with the IP address from which you want to authorize connections.

Removing an ACL

Removing an ACL will prevent all further access from the IP adresses specified by it.

To remove an ACL, use the following route:

API:
Parameters:

serviceName *

Service ID

shareId *

Volume ID

aclRuleId *

ACL ID

Replace serviceName with the ID of your service and shareId with your volume ID.

You can get the aclRuleId either from the ACL creation body response or by listing existing ACLs for your volume.

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices incl. VAT may vary according to the customer's country of residence
(by default, the prices displayed are inclusive of the UK VAT in force).