Resource Center/Hardware/Primary Storage Operations/Ceph Primary Storage Operations
POSTCeph Primary Storage OperationsSince 0.6SynchronousAuth Required
AddCephPrimaryStoragePool
AddCephPrimaryStoragePool
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
primaryStorageUuidStringRequiredThe UUID of the Ceph primary storage.
Body Fields
paramsObjectRequiredRequest body parameter object.
poolNameStringRequired池名称。
aliasNameStringOptional.
descriptionStringOptional. The detailed description of the resource.
isCreatebooleanOptional. Creates an extension pool.
typeStringRequiredThe type of the Ceph primary storage pool.
resourceUuidStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
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 '{"params":{"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.
