GetVmMonitorNumber

API Request

URLs
GET zstack/v1/vm-instances/{uuid}/monitorNumber
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 536c3b51e70f441190204e645a3d2d76" \
-X GET http://localhost:8080/zstack/v1/vm-instances/deb35f3b8ebf4b7e9765726a9c8e3505/monitorNumber
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The resource UUID. 2.2
systemTags List query Optional. The system tags. 2.2
userTags List query Optional. The user tags. 2.2

API Response

Sample Response
{
  "monitorNumber": 2.0
}
Name Type Description Starting Version
monitorNumber Integer 2.2
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 2.2
#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. 2.2
description String The brief description of the error. 2.2
details String The details about the error. 2.2
elaboration String The reserved field. Default value: null. 2.2
opaque LinkedHashMap The reserved field. Default value: null. 2.2
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 2.2

SDK Sample

Java SDK
GetVmMonitorNumberAction action = new GetVmMonitorNumberAction();
action.uuid = "6415ca5909524c00b7b66c9662b45df1";
action.sessionId = "4bf39c422c2d4e01b5ab88da17096d0d";
GetVmMonitorNumberAction.Result res = action.call();
Python SDK
GetVmMonitorNumberAction action = GetVmMonitorNumberAction()
action.uuid = "dc6e40115e674ccab14d9425d0028428"
action.sessionId = "3f5d36676ca94b9183b567470a22ed19"
GetVmMonitorNumberAction.Result res = action.call()