Remove Monitoring Node from Distributed Storage

API Request

URLs

DELETE/v1/primary-storage/ceph/{uuid}/mons?monHostnames={monHostnames}

Headers

Authorization: OAuth the-session-uuid

Curl Examples

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

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the distributed storage 0.6
monHostnamesListbodyList of mon node hostnames 0.6
systemTags (optional)ListbodySystem tags 0.6
userTags (optional)ListbodyUser tags 0.6

API Response

Response Example

{
  "inventory": {
    "mons": [
      {
        "monAddr": "10.0.1.2",
        "monUuid": "c72a3fc6e06649de811bf90ba8c9c574"
      }
    ],
    "name": "My Ceph Primary Storage",
    "description": "Public Ceph Primary Storage",
    "totalCapacity": 1073741824.0,
    "availableCapacity": 968884224.0,
    "type": "Ceph",
    "state": "Enabled",
    "status": "Connected",
    "createDate": "Jun 7, 2017 9:21:07 PM",
    "lastOpDate": "Jun 7, 2017 9:21:07 PM",
    "attachedClusterUuids": [
      "c0f667d99bfc41c1a133528a2089a9a7"
    ]
  }
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, indicates the operation failed. This field is null when the operation succeeds. For details, see error0.6
inventoryCephPrimaryStorageInventoryFor details, see inventory0.6

error

NameTypeDescriptionStarting Version
codeStringError code number, globally unique identifier for the error, such as SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause. The source error that triggered the current error. If there is no original error, this field is null0.6

inventory

NameTypeDescriptionStarting Version
fsidString 0.6
rootVolumePoolNameString 0.6
dataVolumePoolNameString 0.6
imageCachePoolNameString 0.6
uuidStringResource UUID, uniquely identifies the resource0.6
zoneUuidStringData Center UUID0.6
nameStringResource name0.6
urlString 0.6
descriptionStringDetailed description of the resource0.6
totalCapacityLong 0.6
availableCapacityLong 0.6
totalPhysicalCapacityLong 0.6
availablePhysicalCapacityLong 0.6
systemUsedCapacityLong 0.6
typeString 0.6
stateString 0.6
statusString 0.6
mountPathString 0.6
createDateTimestampCreation time0.6
lastOpDateTimestampLast modification time0.6
attachedClusterUuidsList 0.6
monsListFor details, see mons0.6

mons

NameTypeDescriptionStarting Version
hostnameString 0.6
monPortInteger 0.6
createDateTimestampCreation time0.6
lastOpDateTimestampLast modification time0.6
primaryStorageUuidStringData Storage UUID0.6
monAddrString 0.6
sshUsernameString 0.6
sshPasswordString 0.6
sshPortInteger 0.6
statusString 0.6
monUuidString 0.6

SDK Examples

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()