Resource Center/Hardware/Primary Storage Operations/XStor Block Primary Storage Operations
POSTXStor Block Primary Storage OperationsSince 4.6.0SynchronousAuth Required
AddBlockPrimaryStorage
AddBlockPrimaryStorage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramObjectRequiredparam request body object.
vendorNameStringRequiredThe storage vendor name.
metadataStringRequiredThe storage metadata.
urlStringRequiredUnused.
descriptionStringOptional. The detailed description of the Block primary storage.
typeStringOptional. The primary storage type. The type is Block here.
zoneUuidStringRequiredThe zone UUID.
resourceUuidStringOptional. The resource UUID.
nameStringRequiredThe name of the Block primary storage.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/primary-storage/block
/zstack/v1/primary-storage/block
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/block' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"param":{"vendorName":"<vendorName>","metadata":"<metadata>","url":"<url>","description":"<description>","type":"<type>","zoneUuid":"<zoneUuid>","resourceUuid":"<resourceUuid>"},"name":"<name>","tagUuids":["<tagUuids>"],"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "PS1", "url": "/zstack_ps", "type": "LocalStorage", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "c6e9684e8bb93a9192c946dcd0564b39" ] } }Change History
This API has no change history records yet.
