Capacity Management Operations
GetManagementNodeDirCapacity
API Request
URLs
GET zstack/v1/zwatch/mnHeaders
Authorization: OAuth the-session-uuidCurl
Sample
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=6bf0aca356a13cf787d87ceeb8fcba7fRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| managementNodeUuids | List | query | Optional. The management node UUID. | 3.9.0 | |
| systemTags | List | query | Optional. The system tags. | 3.9.0 | |
| userTags | List | query | Optional. The user tags. | 3.9.0 |
API Response
Sample
Response
{
"result": {
"3b16bb23007634b3a0f35dec4cb10c28": [
{
"name": "total",
"size": "128000"
},
{
"name": "used",
"size": "127000"
}
]
}
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| result | Map | The contents in the management node directory. | 3.9.0 |
| success | boolean | 3.9.0 | |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 3.9.0 |
| error | ErrorCode | See error. | 3.9.0 |
#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. | 3.9.0 |
| description | String | The brief description of the error. | 3.9.0 |
| details | String | The details about the error. | 3.9.0 |
| elaboration | String | The reserved field. Default value: null. | 3.9.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 3.9.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.9.0 |
#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. | 3.9.0 |
| description | String | The brief description of the error. | 3.9.0 |
| details | String | The details about the error. | 3.9.0 |
| elaboration | String | The reserved field. Default value: null. | 3.9.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 3.9.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.9.0 |
SDK Sample
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()