Get Management Node Directory Capacity

GET/zstack/v1/zwatch/mn

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/mn?managementNodeUuids=33a2f11d59aa321aa4acfa78afe8f35a&managementNodeUuids=6bf0aca356a13cf787d87ceeb8fcba7f

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
managementNodeUuids (optional)ListqueryManagement node UUIDs 3.9.0
systemTags (optional)ListquerySystem tags 3.9.0
userTags (optional)ListqueryUser tags 3.9.0

API Response

Response Example

{
  "result": {
    "3b16bb23007634b3a0f35dec4cb10c28": [
      {
        "name": "total",
        "size": "128000"
      },
      {
        "name": "used",
        "size": "127000"
      }
    ]
  }
}
NameTypeDescriptionStarting Version
resultMapDetailed management node directory capacity information3.9.0
successboolean 3.9.0
errorErrorCodeThe error code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error3.9.0
errorErrorCodeFor details, see error3.9.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001.3.9.0
descriptionStringA brief description of the error3.9.0
detailsStringDetailed information about the error3.9.0
elaborationStringReserved field. Default is null.3.9.0
opaqueLinkedHashMapReserved field. Default is null.3.9.0
causeErrorCodeThe root error. The source error that caused the current error. If there is no root error, this field is null.3.9.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001.3.9.0
descriptionStringA brief description of the error3.9.0
detailsStringDetailed information about the error3.9.0
elaborationStringReserved field. Default is null.3.9.0
opaqueLinkedHashMapReserved field. Default is null.3.9.0
causeErrorCodeThe root error. The source error that caused the current error. If there is no root error, this field is null.3.9.0

SDK Examples

Java SDK

GetManagementNodeDirCapacityAction action = new GetManagementNodeDirCapacityAction();
action.managementNodeUuids = asList("33a2f11d59aa321aa4acfa78afe8f35a","6bf0aca356a13cf787d87ceeb8fcba7f");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetManagementNodeDirCapacityAction.Result res = action.call();

Python SDK

GetManagementNodeDirCapacityAction action = GetManagementNodeDirCapacityAction()
action.managementNodeUuids = [33a2f11d59aa321aa4acfa78afe8f35a, 6bf0aca356a13cf787d87ceeb8fcba7f]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetManagementNodeDirCapacityAction.Result res = action.call()