Storage Management/Data Storage APIs
PUTData Storage APIsSince 0.6SynchronousAuth Required
Change Data Storage State
Change Data Storage State
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredData Storage UUID, uniquely identifies the resource
Body Fields
changeprimarystoragestateObjectRequiredchangeprimarystoragestate request body object.
stateEventStringRequiredTarget state for the Data Storage
systemTagsList系统标签。
userTagsListUser Tags
Responses
Endpoint
PUT/zstack/v1/primary-storage/{uuid}/actions
/zstack/v1/primary-storage/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/primary-storage/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changeprimarystoragestate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "PS1", "url": "/Cloud_ps", "type": "LocalStorage", "state": "Disabled", "attachedClusterUuids": [ "408395dfdebb427e9453048436556a66" ] } }Change History
This API has no change history records yet.
