Resource Center/Hardware/Primary Storage Operations/XStor Block Primary Storage Operations
POSTXStor Block Primary Storage OperationsSince 4.6.0SynchronousAuth Required
GetBlockPrimaryStorageMetadata
GetBlockPrimaryStorageMetadata
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 name of the Block storage vendor.
metadataStringRequiredThe storage metadata (IP, port, user name, and password).
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/primary-storage/block/metadata
/zstack/v1/primary-storage/block/metadata
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/block/metadata' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"param":{"vendorName":"<vendorName>","metadata":"<metadata>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventories": [ { "vendorName": "XStor", "uuid": "8f93d463f7d73e1c959aee815ff1e9a8" } ] }Change History
This API has no change history records yet.
