---
title: "Enterprise File Storage - Hold an automatic snapshot"
description: "Hold automatic snapshots from Enterprise File Storage offer using the OVHcloud API"
url: https://docs.ovhcloud.com/en/guides/storage-and-backup/file-storage/enterprise-file-storage/netapp-hold-automatic-snapshot
lang: en
lastUpdated: 2024-11-28
---
# Enterprise File Storage - Hold an automatic snapshot

## Objective

**Automatic** snapshots are created by a [Snapshot Policy](/en/guides/storage-and-backup/file-storage/enterprise-file-storage/netapp-snapshot-policy.md) which takes and keeps snapshot copies of a volume as defined by the rules associated with the policy.

Holding an **automatic** snapshot prevents it from being rotated by the snapshot policy and makes it a **manual** snapshot.

**Learn how to hold an automatic snapshot from your Enterprise File Storage offer using the OVHcloud API.**

## Requirements

- An active OVHcloud [Enterprise File Storage](https://www.ovhcloud.com/en-gb/storage-solutions/enterprise-file-storage/) service
- Access to the [OVHcloud API](https://eu.api.ovh.com/)
- An Enterprise File Storage volume with an `automatic` snapshot

:::tip
If you are not familiar with using the OVHcloud API, please refer to our guide on [Getting started with the OVHcloud API](/en/guides/manage-and-operate/api/first-steps.md).
:::

## Instructions

1\. Identify the snapshot `id` using the following API call:


🇪🇺EU▾

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

- `{serviceName}` is the service unique ID
- `{shareId}` is the share ID to which the snapshot belongs

![HoldSnapshot](/images/storage-and-backup/file-storage/enterprise-file-storage/netapp-hold-automatic-snapshot/hold_snapshot_step_1.png)
2\. Hold the snapshot using the following API call:


🇪🇺EU▾

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

- `{serviceName}` is the service unique ID
- `{shareId}` is the share ID to which the snapshot belongs
- `{snapshotID}` is the snapshot ID

:::warning
After the hold operation is performed, the snapshot `id` and `type`  will change. However, its `name`, `createdAt` and `path` properties will be kept.
Please take note of the new `id` if you want to perform further operations with the snapshot.
:::

![RevertSnapshot](/images/storage-and-backup/file-storage/enterprise-file-storage/netapp-hold-automatic-snapshot/hold_snapshot_step_2.png)
**The _automatic_ snapshot has now become a _manual_ snapshot.**

## 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/).
