volume unmount
Unmounts one or more mounted volumes. Permissions required:
fc
or m
on the volume.
Syntax
- CLI
-
maprcli volume unmount [ -cluster <cluster> ] [ -force 0|1 ] -name <volume name>
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/volume/unmount?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. |
force |
Specifies whether (1) or not (0) to force the volume to unmount. |
name
|
The name of the volume to unmount. |
Examples
Unmount the volume "test-volume":
maprcli volume unmount -name test-volume
{
"timestamp":1537804903335,
"timeofday":"2018-09-24 09:01:43.335 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
]
}
curl -X POST 'https://server.sj.us:8443/rest/volume/unmount?name=test-volume' --user <username>:<password>
{"timestamp":1537805053854,"timeofday":"2018-09-24 09:01:43.335 GMT-0700 AM","status":"OK","total":0,"data":[]}