Resource Center/Hardware/Primary Storage Operations/Ceph Primary Storage Operations
PUTCeph Primary Storage OperationsSince 0.6SynchronousAuth Required
UpdateCephPrimaryStorageMon
UpdateCephPrimaryStorageMon
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
monUuidStringRequiredThe Ceph mon (monitor daemon) UUID.
Body Fields
updatecephprimarystoragemonObjectRequiredupdatecephprimarystoragemon request body object.
hostnameStringOptional. The new hostname of the Ceph mon.
sshUsernameStringOptional. The SSH username of the Ceph mon.
sshPasswordStringOptional. The SSH password of the Ceph mon.
sshPortIntegerOptional. The SSH port of the Ceph mon.
monPortIntegerOptional. The new port of the Ceph mon.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/primary-storage/ceph/mons/{monUuid}/actions
/zstack/v1/primary-storage/ceph/mons/{monUuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/primary-storage/ceph/mons/{monUuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatecephprimarystoragemon":{"hostname":"<hostname>","sshUsername":"<sshUsername>","sshPassword":"<sshPassword>","sshPort":1,"monPort":1},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "mons": [ { "monAddr": "10.0.1.4", "monUuid": "d557e48870b04ef699509d2998084bdb" } ], "name": "My Ceph Primary Storage", "description": "Public Ceph Primary Storage", "totalCapacity": 1.073741824E9, "availableCapacity": 9.68884224E8, "type": "Ceph", "state": "Enabled", "status": "Connected", "createDate": "Jun 7, 2017 9:21:22 PM", "lastOpDate": "Jun 7, 2017 9:21:22 PM", "attachedClusterUuids": [ "3fa1f7c2bbb544e1a04ba9f9da935abe" ] } }Change History
This API has no change history records yet.
