调用DescribeMonitoringAgentProcesses接口查询指定资源的进程数列表。
接口说明
说明
调用本接口之前,您需要先调用 CreateMonitoringAgentProcess 接口创建进程数。更多信息,请参见 CreateMonitoringAgentProcess 。
本文将提供一个示例,查询资源 i-hp3hl3cx1pbahzy8****的进程数列表。返回结果显示进程数 Nginx 和 HTTP 的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID。 | i-hp3hl3cx1pbahzy8**** |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "The specified resource is not found.",
"RequestId": "C11C0E85-6862-4F25-8D66-D6A5E0882984",
"Success": true,
"NodeProcesses": {
"NodeProcess": [
{
"ProcessName": "",
"ProcessId": 0,
"GroupId": "",
"Command": "",
"ProcessUser": "",
"InstanceId": ""
}
]
}
}
错误码
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 | The request processing has failed due to some unknown error. | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史