Snapshots
All operations require authentication.
List snapshotsProduction
Returns the ID and name of each snapshot of the share, including the snapshots taken automatically and by the system. Set detail to true to get all snapshot properties, such as their type and status.
Path parameters
Service name
Share ID
Query parameters
Get detailed information about each snapshot
Response
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot \
-H "authorization: Bearer $OVH_TOKEN"1[2 {3 "createdAt": "2024-01-01T12:00:00Z",4 "description": "string",5 "id": "00000000-0000-0000-0000-000000000000",6 "name": "string",7 "path": "string",8 "status": "available",9 "type": "automatic"10 }11]
Get a snapshotProduction
Returns the snapshot properties, its status and its type: manual, automatic when taken by the snapshot policy, or system. Holding an automatic snapshot turns it into a manual snapshot with a new ID.
Path parameters
Service name
Share ID
Snapshot ID
Response
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000, snapshotId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot/ {snapshotId} \
-H "authorization: Bearer $OVH_TOKEN"1{2 "createdAt": "2024-01-01T12:00:00Z",3 "description": "string",4 "id": "00000000-0000-0000-0000-000000000000",5 "name": "string",6 "path": "string",7 "status": "available",8 "type": "automatic"9}
Get the snapshot reserveProduction
Returns the percentage of the share size reserved for snapshots and the status of its last update.
Path parameters
Service name
Share ID
Response
Share space percentage reserved for snapshots, 5 by default
Status
activeerrorupdatingExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshotReserve \
-H "authorization: Bearer $OVH_TOKEN"1{2 "percent": 0,3 "status": "active"4}
Create a snapshotProduction
Creates a manual snapshot of the share. Creation is asynchronous: the snapshot is returned with status creating, follow its status until available. The share must be in status available.
Path parameters
Service name
Share ID
Request body (required)
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemResponse
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot \
-H "authorization: Bearer $OVH_TOKEN"1{2 "createdAt": "2024-01-01T12:00:00Z",3 "description": "string",4 "id": "00000000-0000-0000-0000-000000000000",5 "name": "string",6 "path": "string",7 "status": "available",8 "type": "automatic"9}
Revert a share to its latest snapshotBeta
Restores the share content to the given snapshot, which must be the most recent snapshot of the share. Data written after this snapshot is permanently lost. The share and the snapshot must be available, and the revert is asynchronous: follow the share status until it is available, or reverting_error if it fails.
Path parameters
Service name
Share ID
Request body (required)
Latest share snapshot
Response
Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ revert \
-H "authorization: Bearer $OVH_TOKEN"Hold an automatic snapshotBeta
Converts an automatic snapshot into a manual snapshot with a new ID, which the snapshot policy no longer deletes. Holding is asynchronous: follow the status of the returned snapshot until it is available. A held snapshot will not be released and is kept until you delete it.
Path parameters
Service name
Share ID
Snapshot ID
Response
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000, snapshotId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot/ {snapshotId}/ hold \
-H "authorization: Bearer $OVH_TOKEN"1{2 "createdAt": "2024-01-01T12:00:00Z",3 "description": "string",4 "id": "00000000-0000-0000-0000-000000000000",5 "name": "string",6 "path": "string",7 "status": "available",8 "type": "automatic"9}
Delete a snapshotProduction
Permanently deletes the snapshot. Deletion is asynchronous: follow the snapshot until it no longer exists. System snapshots cannot be deleted, and a manual snapshot must be in status available or error.
Path parameters
Service name
Share ID
Snapshot ID
Response
Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000, snapshotId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot/ {snapshotId} \
-H "authorization: Bearer $OVH_TOKEN"Update a snapshotProduction
Updates the snapshot name and description. Only manual snapshots can be updated: hold an automatic snapshot first.
Path parameters
Service name
Share ID
Snapshot ID
Request body (required)
New snapshot description
New snapshot name
Response
Snapshot creation date
Snapshot description
Snapshot ID
Snapshot name
Snapshot path
Snapshot status
availablecreatingdeletingerrorerror_deletingmanage_errormanage_startingrestoringunmanage_errorunmanage_startingSnapshot type
automaticmanualsystemExample uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000, snapshotId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshot/ {snapshotId} \
-H "authorization: Bearer $OVH_TOKEN"1{2 "createdAt": "2024-01-01T12:00:00Z",3 "description": "string",4 "id": "00000000-0000-0000-0000-000000000000",5 "name": "string",6 "path": "string",7 "status": "available",8 "type": "automatic"9}
Update the snapshot reserveProduction
Changes the percentage of the share size reserved for snapshots without changing the share size, so a higher reserve leaves less space for data. The share must be available. The update is asynchronous: follow the snapshot reserve status until it returns to active.
Path parameters
Service name
Share ID
Request body (required)
Share space percentage reserved for snapshots
Response
Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ storage/ netapp/ {serviceName}/ share/ {shareId}/ snapshotReserve \
-H "authorization: Bearer $OVH_TOKEN"