RollbackToGroupSnapshot
You can use RollbackToGroupSnapshot
to roll back all individual volumes in a snapshot group to each volume's individual snapshot.
Rolling back to a group snapshot creates a temporary snapshot of each volume within the group snapshot.
|
Parameters
This method has the following input parameters:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
|
Unique ID of the group snapshot. |
integer |
None |
Yes |
|
List of name-value pairs in JSON object format. |
JSON object |
None |
No |
|
Name for the group snapshot of the volume's current state that is created if |
string |
None |
No |
|
Specifies whether to save the previous active volume image or not. Valid values:
|
boolean |
false |
No |
Return values
This method has the following return values:
Name |
Description |
Type |
members |
An array containing volumeIDs and snapshotIDs of members of the group snapshot. Values:
|
JSON object array |
groupSnapshotID |
If If |
integer |
groupSnapshot |
If If |
Request example
Requests for this method are similar to the following example:
{ "id": 438, "method": "RollbackToGroupSnapshot", "params": { "groupSnapshotID": 1, "name": "grpsnap1", "saveCurrentState": true } }
Response example
This method returns a response similar to the following example:
{ "id": 438, "result": { "groupSnapshot": { "attributes": {}, "createTime": "2016-04-06T17:27:17Z", "groupSnapshotID": 1, "groupSnapshotUUID": "468fe181-0002-4b1d-ae7f-8b2a5c171eee", "members": [ { "attributes": {}, "checksum": "0x0", "createTime": "2016-04-06T17:27:17Z", "enableRemoteReplication": false, "expirationReason": "None", "expirationTime": null, "groupID": 1, "groupSnapshotUUID": "468fe181-0002-4b1d-ae7f-8b2a5c171eee", "name": "2016-04-06T17:27:17Z", "snapshotID": 4, "snapshotUUID": "03563c5e-51c4-4e3b-a256-a4d0e6b7959d", "status": "done", "totalSize": 1000341504, "virtualVolumeID": null, "volumeID": 2 } ], "name": "2016-04-06T17:27:17Z", "status": "done" }, "groupSnapshotID": 3, "members": [ { "checksum": "0x0", "snapshotID": 2, "snapshotUUID": "719b162c-e170-4d80-b4c7-1282ed88f4e1", "volumeID": 2 } ] } }
New since version
9.6