Storage Management/Data Storage APIs/Distributed Storage Related Interfaces
POSTDistributed Storage Related InterfacesSince 0.6SynchronousAuth Required
Add Distributed Storage Pool
Add Distributed Storage Pool
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
primaryStorageUuidStringRequiredPrimary Storage UUID
Body Fields
poolNameStringRequired池名称。
aliasNameStringNo description provided.
descriptionStringResource description
isCreateboolean是否创建。
typeStringRequiredStorage pool type
Responses
Endpoint
POST/zstack/v1/primary-storage/ceph/{primaryStorageUuid}/pools
/zstack/v1/primary-storage/ceph/{primaryStorageUuid}/pools
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/ceph/{primaryStorageUuid}/pools' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"poolName":"<poolName>","aliasName":"<aliasName>","description":"<description>","isCreate":true,"type":"<type>","resourceUuid":"<resourceUuid>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "97ac9dc5fc223f80918747a8a398478b", "primaryStorageUuid": "82b127a3f6cc3ec7bd7ff01069310099", "poolName": "pool name", "aliasName": "alias name", "description": "description", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM", "type": "Data" } }Change History
This API has no change history records yet.
