You can use ModifySnapshot to change the attributes currently assigned to a snapshot. You can also use this method to enable snapshots created on the read/write (source) volume to be remotely replicated to a target storage cluster running Element software.
This method has the following input parameters:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
enableRemoteReplication | Use to enable the snapshot created to be replicated to a remote storage cluster. Possible values:
|
boolean | false | No |
expirationTime | Use to set the time when the snapshot should be removed. When set to "null", the snapshot never expires. | ISO 8601 date string | None | No |
name | The name of the snapshot. If no name is entered, the date and time the snapshot was taken is used. The maximum name length allowed is 255 characters. | string | None | No |
snapMirrorLabel | The label used by SnapMirror software to specify the snapshot retention policy on a SnapMirror endpoint. | string | None | No |
snapshotID | Identifier of the snapshot. | string | None | Yes |
This method has the following return value:
Name | Description | Type |
---|---|---|
snapshot | An object containing information about the newly modified snapshot. | snapshot |
Requests for this method are similar to the following example:
{ "method": "ModifySnapshot", "params": { "snapshotID": 3114, "enableRemoteReplication": "true", "name" : "Chicago" }, "id": 1 }
This method returns a response similar to the following example:
{ "id": 1, "result": { "snapshot": { "attributes": {}, "checksum": "0x0", "createTime": "2016-04-04T17:26:20Z", "enableRemoteReplication": true, "expirationReason": "None", "expirationTime": null, "groupID": 0, "groupSnapshotUUID": "00000000-0000-0000-0000-000000000000", "name": "test1", "snapshotID": 3114, "snapshotUUID": "5809a671-4ad0-4a76-9bf6-01cccf1e65eb", "status": "done", "totalSize": 5000658944, "virtualVolumeID": null, "volumeID": 1 } } }