Resource Center/Hardware/Primary Storage Operations
POSTPrimary Storage OperationsSince 0.6SynchronousAuth Required
AttachPrimaryStorageToCluster
AttachPrimaryStorageToCluster
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
clusterUuidStringRequiredThe cluster UUID.
primaryStorageUuidStringRequiredThe primary storage UUID.
Body Fields
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/clusters/{clusterUuid}/primary-storage/{primaryStorageUuid}
/zstack/v1/clusters/{clusterUuid}/primary-storage/{primaryStorageUuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/clusters/{clusterUuid}/primary-storage/{primaryStorageUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "PS1", "url": "/Cloud_ps", "type": "LocalStorage", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "f0262ff5aeb54cd19e0a33bfaa61f5a4" ] } }Change History
This API has no change history records yet.
