Resource Center/Elastic Bare Metal Management(Plus)
POSTElastic Bare Metal Management(Plus)Since 4.7.11SynchronousAuth Required
CreateBlockVolume
CreateBlockVolume
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
descriptionStringOptional. Optional. The detailed description of the resource.
sizeLongRequiredThe size.
primaryStorageUuidStringRequiredThe primary storage UUID.
accessPathIdIntegerOptional. The access path id.
accessPathIqnStringOptional. The access path iqn.
burstTotalBwLongOptional. The burst total bandwidth.
burstTotalIopsLongOptional. The burst total IOPS.
maxTotalBwLongOptional. The maxmium total bandwidth.
maxTotalIopsLongOptional. The maximum total IOPS.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
protocolStringOptional.The protocol.
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 '{"params":{"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>"],"protocol":"<protocol>"}'
Response Example
200{ "inventory": {} }Change History
This API has no change history records yet.
