The following request restores snapshots based on the specified master volume ID of the snapshot and the specified snapshot ID. This request overwrites the data of the specified master volume.
Execution permission
Storage Administrator (Local Copy)
Request line
POST base-URL/simple/v1/objects/snapshots/object-ID/actions/restore/invoke
Request message
- Object ID
-
Specify the id value obtained by getting snapshot information. The value of the id attribute is obtained in the following format, where the master volume ID of the snapshot and the snapshot ID are linked by a comma. You can specify these values (obtained by getting snapshot information) in the command by using the same format: masterVolumeId followed by snapshotId, linked by a comma.
masterVolumeId,snapshotId
Attribute
Type
Description
masterVolumeId
int
(Required) Master volume ID of the snapshot
snapshotId
int
(Required) Snapshot ID
Response message
- Body
-
Attribute
Type
Description
statusResource
string
URL used to obtain the results of the restore a snapshot request
Note:Run the API function for obtaining information about the status of the API function that performs asynchronous processing. For details, see Getting status information about an API function that performs asynchronous processing.
Status codes
See HTTP status codes.
Coding example
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session b74777a3f9f04ea8bd8f09847fac48d3" -X POST https://192.0.2.100/ConfigurationManager/simple/v1/objects/snapshots/100,3/actions/restore/invoke -d ""