Storage Management/Data Storage APIs/Distributed Storage Related Interfaces
POSTDistributed Storage Related InterfacesSince 0.6SynchronousAuth Required
Add Distributed Storage
Add Distributed Storage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
monUrlsListRequiredList of distributed storage mon addresses
rootVolumePoolNameStringName of the distributed storage pool for Root Volume
dataVolumePoolNameStringName of the distributed storage pool for Data Volume
imageCachePoolNameStringName of the distributed storage pool for Image Cache
urlStringRequiredNot used
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 '{"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.
