volume snapshot create
Creates a snapshot of the specified volume, using the specified snapshot name.
- License required: Enterprise Edition
- Permissions required:
fc
orm
on the volume
Syntax
- CLI
-
maprcli volume snapshot create [ -cluster <cluster> ] [ -retain <positive_integer>mi|h|d|w|m|y ] -snapshotname <snapshot> -volume <volume>
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/volume/snapshot/create?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. |
retain |
Specifies how long to retain the snapshot data. Value can be
specified in:
|
snapshotname |
The name of the snapshot to create. |
volume |
The volume for which to create a snapshot. |
Examples
Create a snapshot called "test-snapshot" for volume "test-volume":
maprcli volume snapshot create -snapshotname test-snapshot -volume test-volume
{
"timestamp":1537805380237,
"timeofday":"2018-09-24 09:09:40.237 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
]
}
curl -X POST 'https://server.sj.us:8443/rest/volume/snapshot/create?volume=test-volume&snapshotname=test-snapshot' --user <username>:<password>
{"timestamp":1537805548885,"timeofday":"2018-09-24 09:12:28.885 GMT-0700 AM","status":"OK","total":0,"data":[]}