Queries the status of the CloudMonitor agent.
Operation description
This topic describes how to query the status of the CloudMonitor agent that is installed on the i-hp3dunahluwajv6f****
instance. The result indicates that the CloudMonitor agent is in the running
state.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceIds | string | Yes | The instance IDs. Separate multiple instance IDs with commas (,). | i-hp3dunahluwajv6f**** |
HostAvailabilityTaskId | string | No | The ID of the availability monitoring task. | 126**** |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F",
"Success": true,
"NodeStatusList": {
"NodeStatus": [
{
"Status": "running",
"InstanceId": "i-hp3dunahluwajv6f****",
"AutoInstall": true,
"OsMonitorStatus": "running",
"OsMonitorErrorCode": "install_fail",
"OsMonitorErrorDetail": "Command.ErrorCode.Fail.Downlaod.REGIN_ID",
"OsMonitorVersion": "1.3.0-12",
"OsMonitorConfig": "{\"sysak\":true}"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
500 | InternalError | %s | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-11-24 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||
| ||||||||||||||
2023-07-19 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||
| ||||||||||||||
2023-05-04 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||
|