Storage Management/Data Storage APIs/Local Storage Related Interfaces
POSTLocal Storage Related InterfacesSince 0.6SynchronousAuth Required
Add Local Storage as Data Storage
Add Local Storage as Data Storage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
urlStringRequiredLocal storage path
nameStringRequiredLocal storage data storage name
descriptionStringDetailed description of the local storage data storage
typeStringType is LocalStorage
zoneUuidStringRequiredData Center UUID
Responses
Endpoint
POST/zstack/v1/primary-storage/local-storage
/zstack/v1/primary-storage/local-storage
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/local-storage' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"url":"<url>","name":"<name>","description":"<description>","type":"<type>","zoneUuid":"<zoneUuid>","resourceUuid":"<resourceUuid>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "PS1", "url": "/Cloud_ps", "type": "LocalStorage", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "562116d368c8467c95c53321757538dc" ] } }Change History
This API has no change history records yet.
