Storage Management/Data Storage APIs/Distributed Storage Related Interfaces
POSTDistributed Storage Related InterfacesSince 4.7.11SynchronousAuth Required
Create Block Volume
Create Block Volume
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredResource name
descriptionStringResource description
sizeLongRequiredCapacity
primaryStorageUuidStringRequiredPrimary Storage UUID
accessPathIdIntegerRequiredAccess path ID
Responses
Endpoint
POST/zstack/v1/block-volumes
/zstack/v1/block-volumes
Request Example
curl -X POST 'http://{host}/zstack/v1/block-volumes' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","description":"<description>","size":1,"primaryStorageUuid":"<primaryStorageUuid>","accessPathId":1,"accessPathIqn":"<accessPathIqn>","burstTotalBw":1,"burstTotalIops":1,"maxTotalBw":1,"maxTotalIops":1,"resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": {} }Change History
This API has no change history records yet.
