For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/en/guides/storage-and-backup/file-storage/enterprise-file-storage/netapp-volumes.md.

Enterprise File Storage - Managing volumes

View as Markdown

Manage Enterprise File Storage volumes using the OVHcloud API

Objective

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.

Requirements

  • An OVHcloud Enterprise File Storage service
  • Access to the

Basics

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.

Warning

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

Instructions

All API routes used for this tutorial are available under the of the API console.

Info

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

Listing existing volumes

All existing volumes can be retrieved using the following route:

GET/storage/netapp/{serviceName}/share
ParameterRequiredDescription
serviceNameYesService ID

Replace serviceName with the ID of your service.

Retrieving information about a volume

To retrieve the information about a volume, use the following route:

ParameterRequiredDescription
serviceNameYesService ID
shareIdYesVolume ID

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

Creating a volume

To create a new volume, use the following route:

POST/storage/netapp/{serviceName}/share
ParameterRequiredDescription
serviceNameYesService 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).

Viewing mount points for a volume

To determine the mount path of a volume, use the following route:

ParameterRequiredDescription
serviceNameYesService ID
shareIdYesVolume 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.

Info

For NFS, you can refer to this guide.

Note that the retrieved mount path replaces IP_NAS/NFS_PATH in that documentation.

Deleting a volume

To remove a volume, use the following route:

ParameterRequiredDescription
serviceNameYesService ID
shareIdYesVolume ID

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

Go further

For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.

Join our community of users.

Was this page helpful?