AddCephPrimaryStorage
AddCephPrimaryStorage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
monUrlsListRequiredThe URL list of the Ceph monitor daemon (Ceph mon).
rootVolumePoolNameStringOptional. The name of the Ceph pool that is available for root volumes.
dataVolumePoolNameStringOptional. The name of the Ceph pool that is available for data volumes.
imageCachePoolNameStringOptional. The name of the Ceph pool that is available for image caches.
urlStringRequiredThe reserved field.
nameStringRequiredThe name of the Ceph primary storage.
descriptionStringOptional. The detailed description of the Ceph primary storage.
typeStringOptional. The primary storage type: Ceph.
zoneUuidStringRequiredThe zone UUID.
resourceUuidStringOptional. The resource UUID. If specified, the Ceph primary storage will use this field as the UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/primary-storage/ceph
/zstack/v1/primary-storage/ceph
Request Example
curl -X POST 'http://{host}/zstack/v1/primary-storage/ceph' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"monUrls":["<monUrls>"],"rootVolumePoolName":"<rootVolumePoolName>","dataVolumePoolName":"<dataVolumePoolName>","imageCachePoolName":"<imageCachePoolName>","url":"<url>","name":"<name>","description":"<description>","type":"<type>","zoneUuid":"<zoneUuid>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "Ceph-1", "url": "not used", "type": "Ceph", "state": "Enabled", "status": "Connected", "attachedClusterUuids": [ "2d8583d86bd1472e8ec0e04e26ea273f" ] } }Change History
This API has no change history records yet.
