RemoveMonFromCephPrimaryStorage
API Request
URLs
DELETE/v1/primary-storage/ceph/{uuid}/mons?monHostnames={monHostnames}
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b57c6816e9b64ae881a356f9308bb6c7" \
-X DELETE http://localhost:8080/zstack/v1/primary-storage/ceph/31db2011f3944c85ae24a7ca607302e5/mons?monHostnames=10.0.1.2
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The UUID of the Ceph primary storage. | 0.6 | |
monHostnames | List | body | The new hostname of the Ceph mon (monitor daemon). | 0.6 | |
systemTags | List | body | Optional. The system tags. | 0.6 | |
userTags | List | body | Optional. The user tags. | 0.6 |
API Response
Sample
Response
{
"inventory": {
"mons": [
{
"monAddr": "10.0.1.2",
"monUuid": "c72a3fc6e06649de811bf90ba8c9c574"
}
],
"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:07 PM",
"lastOpDate": "Jun 7, 2017 9:21:07 PM",
"attachedClusterUuids": [
"c0f667d99bfc41c1a133528a2089a9a7"
]
}
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 0.6 |
inventory | CephPrimaryStorageInventory | See inventory. | 0.6 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 0.6 |
description | String | The short description of the error. | 0.6 |
details | String | The details about the error. | 0.6 |
elaboration | String | The reserved field. Default value: null. | 0.6 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 0.6 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 0.6 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
fsid | String | 0.6 | |
rootVolumePoolName | String | 0.6 | |
dataVolumePoolName | String | 0.6 | |
imageCachePoolName | String | 0.6 | |
uuid | String | The resource UUID. | 0.6 |
zoneUuid | String | The zone UUID. | 0.6 |
name | String | The resource name. | 0.6 |
url | String | 0.6 | |
description | String | The detailed description of the resource. | 0.6 |
totalCapacity | Long | 0.6 | |
availableCapacity | Long | 0.6 | |
totalPhysicalCapacity | Long | 0.6 | |
availablePhysicalCapacity | Long | 0.6 | |
systemUsedCapacity | Long | 0.6 | |
type | String | 0.6 | |
state | String | 0.6 | |
status | String | 0.6 | |
mountPath | String | 0.6 | |
createDate | Timestamp | The creation date. | 0.6 |
lastOpDate | Timestamp | The last operation date. | 0.6 |
attachedClusterUuids | List | 0.6 | |
mons | List | See mons. | 0.6 |
#mons
Name | Type | Description | Starting Version |
---|---|---|---|
hostname | String | 0.6 | |
monPort | Integer | 0.6 | |
createDate | Timestamp | The creation date. | 0.6 |
lastOpDate | Timestamp | The last operation date. | 0.6 |
primaryStorageUuid | String | The UUID of the Ceph primary storage. | 0.6 |
monAddr | String | 0.6 | |
sshUsername | String | 0.6 | |
sshPassword | String | 0.6 | |
sshPort | Integer | 0.6 | |
status | String | 0.6 | |
monUuid | String | 0.6 |
SDK Sample
Java
SDK
RemoveMonFromCephPrimaryStorageAction action = new RemoveMonFromCephPrimaryStorageAction();
action.uuid = "05aa4826fdbd4021b72e4d9a5db67bbc";
action.monHostnames = asList("10.0.1.2");
action.sessionId = "2412a720a3bb4992887979298217b300";
RemoveMonFromCephPrimaryStorageAction.Result res = action.call();
Python
SDK
RemoveMonFromCephPrimaryStorageAction action = RemoveMonFromCephPrimaryStorageAction()
action.uuid = "fb3dca5509154ca48698f374794f4d93"
action.monHostnames = [10.0.1.2]
action.sessionId = "9eb682deaa894cea80e1608056492948"
RemoveMonFromCephPrimaryStorageAction.Result res = action.call()