---
title: "Enterprise File Storage - API Quickstart"
description: "Getting started with Enterprise File Storage using the OVHcloud API"
url: https://docs.ovhcloud.com/en/guides/storage-and-backup/file-storage/enterprise-file-storage/netapp-quick-start
lang: en
lastUpdated: 2021-10-27
---
# Enterprise File Storage - API Quickstart

## Objective

In this quickstart guide, we will provide an overview of how to use your Enterprise File Storage offer for file storage.

**Learn how to retrieve information about your service and how to create and access your first volume using the OVHcloud API.**

## Basics

OVHcloud Enterprise File Storage allows you to create and manage file volumes that can be accessed over a network.

You're able to choose file volume size, manage accesses using ACLs or create snapshots.

## Requirements

- An Enterprise File Storage service
- You should be logged in to the [OVHcloud API](https://api.ovh.com)
- Basic understanding of how to [mount a NFS volume](/en/guides/storage-and-backup/file-storage/ha-nas/nas-nfs.md)

## Instructions

All API routes used for this quickstart are available under the _/storage_ section here: [https://api.ovh.com/console/#/storage](https://api.ovh.com/console/#/storage).

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

### Retrieving information about your service

All your active services can be retrieved by using the following route:


🇪🇺EU▾

[GET/storage/netapp](https://eu.api.ovh.com/console/?section=/storage&branch=v1#get-/storage/netapp)

### Creating a new volume

A volume is a unit of storage with a size and a protocol.

To create a new volume use the following route:


🇪🇺EU▾

[POST/storage/netapp/{serviceName}/share](https://eu.api.ovh.com/console/?section=/storage&branch=v1#post-/storage/netapp/-serviceName-/share)

| Parameter                 | Required | Description              |
| ------------------------- | -------- | ------------------------ |
| `serviceName`             | Yes      | Service ID               |
| `NetAppShare.description` |          | Volume description       |
| `NetAppShare.name`        |          | Volume name              |
| `NetAppShare.protocol`    | Yes      | Volume protocol          |
| `NetAppShare.size`        | Yes      | Volume size in Gigabytes |

Choose `NFS` as protocol and a size of `10` Gigabytes for example.

### Adding an ACL to the volume

Volume ACLs allow to grant or deny access to a volume.

:::warning
Default behaviour is to deny all access to a volume.
:::

After creating a volume, you need to grant access to it.

To create a new ACL that will allow you to connect to your newly created volume, use the following route:


🇪🇺EU▾

[POST/storage/netapp/{serviceName}/share/{shareId}/acl](https://eu.api.ovh.com/console/?section=/storage&branch=v1#post-/storage/netapp/-serviceName-/share/-shareId-/acl)

| Parameter                        | Required | Description                                                             |
| -------------------------------- | -------- | ----------------------------------------------------------------------- |
| `serviceName`                    | Yes      | Service ID                                                              |
| `shareId`                        | Yes      | Volume ID                                                               |
| `NetAppShareACLRule.accessLevel` | Yes      | ACL access level. Can be **rw** (read and write) or **ro** (read-only). |
| `NetAppShareACLRule.accessTo`    | Yes      | IP address or a range of IP addresses in CIDR notation.                 |

:::info
Using CIDR notation, you can grant access to your volume from x.x.x.x/x network.
For example: 192.0.2.0/24
:::

### Mounting the volume

Inspect the ACL creation status using the following route:


🇪🇺EU▾

[GET/storage/netapp/{serviceName}/share/{shareId}/acl/{aclRuleId}](https://eu.api.ovh.com/console/?section=/storage&branch=v1#get-/storage/netapp/-serviceName-/share/-shareId-/acl/-aclRuleId-)

| Parameter     | Required | Description |
| ------------- | -------- | ----------- |
| `serviceName` | Yes      | Service ID  |
| `shareId`     | Yes      | Volume ID   |
| `aclRuleId`   | Yes      | ACL ID      |

Replace `aclRuleId` with the ID of the ACL created for your volume.

:::info
ACL status should be `active`.
:::

Once the ACL is active, retrieve access paths for the volume using the following route:


🇪🇺EU▾

[GET/storage/netapp/{serviceName}/share/{shareId}/accessPath](https://eu.api.ovh.com/console/?section=/storage&branch=v1#get-/storage/netapp/-serviceName-/share/-shareId-/accessPath)

| Parameter     | Required | Description |
| ------------- | -------- | ----------- |
| `serviceName` | Yes      | Service ID  |
| `shareId`     | Yes      | Volume ID   |

You will be presented with one or multiple access paths for your volume.

You are now able to mount the volume with the following command:

```sh
mount -t nfs accessPath
```

:::info
If you are using Linux, you will need to have `nfs-utils` package installed.
:::

Once mounted, your volume is now usable to store files.

### Cleaning up

You can remove your volume using the following route:


🇪🇺EU▾

[DELETE/storage/netapp/{serviceName}/share/{shareId}](https://eu.api.ovh.com/console/?section=/storage&branch=v1#delete-/storage/netapp/-serviceName-/share/-shareId-)

| Parameter     | Required | Description |
| ------------- | -------- | ----------- |
| `serviceName` | Yes      | Service ID  |
| `shareId`     | Yes      | Volume ID   |

## Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/en-gb/professional-services/) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

Join our [community of users](https://community.ovhcloud.com/).
