Resource Center/Hardware/Primary Storage Operations/Shared Block Primary Storage Operations
POSTShared Block Primary Storage OperationsSince 2.3.2SynchronousAuth Required
AddSharedBlockGroupPrimaryStorage
AddSharedBlockGroupPrimaryStorage
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.
diskUuidsListRequiredThe unique identifier of the disk. For example, UUID, WWN, and WWID.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
typeStringOptional. The primary storage type: SharedBlock.
urlStringRequiredThe reserved field.
zoneUuidStringRequiredThe zone UUID.
resourceUuidStringOptional. The resource UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/primary-storage/sharedblockgroup
/zstack/v1/primary-storage/sharedblockgroup
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/sharedblockgroup' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"diskUuids":["<diskUuids>"],"name":"<name>","description":"<description>","type":"<type>","url":"<url>","zoneUuid":"<zoneUuid>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "PS1", "url": "/Cloud_ps", "type": "LocalStorage", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "c6e9684e8bb93a9192c946dcd0564b39" ] } }Change History
This API has no change history records yet.
