调用DescribeMonitoringAgentStatuses接口查询云监控插件运行状态。
接口说明
本文将提供一个示例,查询实例i-hp3dunahluwajv6f****
的云监控插件的运行状态。返回结果显示云监控插件的运行状态为running
(运行中)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceIds | string | 是 | 实例ID。多个实例ID之间用半角逗号(,)分隔。 | i-hp3dunahluwajv6f**** |
HostAvailabilityTaskId | string | 否 | 可用性监控的任务ID。 | 126**** |
关于公共请求参数的详情,请参见公共参数。
返回参数
示例
正常返回示例
JSON
格式
{
"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}"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
500 | InternalError | %s | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-07-19 | OpenAPI 错误码发生变更,OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2023-05-04 | OpenAPI 错误码发生变更,OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||
|