Resource Center/Resource Pool/Volume Operations
PUTVolume OperationsSince 3.10.0SynchronousAuth Required
FlattenVolume
FlattenVolume
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
flattenvolumeObjectRequiredflattenvolume request body object.
dryRunbooleanOptional. Trial. Predicate the data usage.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/volumes/{uuid}/actions
/zstack/v1/volumes/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/volumes/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"flattenvolume":{"dryRun":true},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "13ff90c5fcd43587915817a65cc87af3", "name": "test-volume", "primaryStorageUuid": "55db0399efaf35479125967b5bd6e8c7", "vmInstanceUuid": "c3f9c1907206307a896db9a94a35c29d", "diskOfferingUuid": "d4d9b3afe4993bfbba991b4414295a65", "rootImageUuid": "7bcdd79e0ed1347f9a2d4ea043bb9f37", "installPath": "/zstack_ps/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-13ff90c5fcd43587915817a65cc87af3/13ff90c5fcd43587915817a65cc87af3.qcow2", "type": "Root", "format": "qcow2", "size": 107374182400, "actualSize": 21474836480, "deviceId": 0, "state": "Enabled", "status": "Ready", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
