Enterprise File Storage - Managing volumes
Manage Enterprise File Storage volumes using the OVHcloud API
Manage Enterprise File Storage volumes using the OVHcloud API
Last updated 27th October 2021
In this tutorial, we will provide an overview of how to manage the volumes of your OVHcloud Enterprise File Storage offer.
Learn how to list volumes and their mount points, create a new volume and remove a volume using the OVHcloud API.
A volume is a persistent, readable and writable file system volume. It uses a protocol and has a size.
It can also optionally have a name and a description.
By default, all access to a newly created volume is restricted. An ACL has to be created in order to allow access.
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.
All existing volumes can be retrieved using the following route:
serviceName *
Service ID
Replace serviceName
with the ID of your service.
To retrieve the information about a volume, use the following route:
serviceName *
Service ID
shareId *
Volume ID
Replace serviceName
with the ID of your service and shareId
with your volume ID.
To create a new volume, use the following route:
serviceName *
Service ID
Replace serviceName
with the ID of your service.
Choose NFS
protocol for your new volume (protocol
property) and its size
.
You can also specify name
and description
properties (optional).
To determine the mount path of a volume, use the following route:
serviceName *
Service ID
shareId *
Volume ID
Replace serviceName
with the ID of your service and shareId
with your volume ID.
Returned mount paths can be used to mount your volume.
The mount command will be different, depending on the protocol chosen for the volume.
For NFS, you can refer to this guide.
Note that the retrieved mount path replaces IP_NAS/NFS_PATH in that documentation.
To remove a volume, use the following route:
serviceName *
Service ID
shareId *
Volume ID
Replace serviceName
with the ID of your service and shareId
with your volume ID.
Join our community of users on https://community.ovh.com/en/.
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.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community