调用DescribeMonitoringAgentProcesses接口查询指定资源的进程数列表。
接口说明
调用本接口之前,您需要先调用 CreateMonitoringAgentProcess 接口创建进程数。更多信息,请参见 CreateMonitoringAgentProcess 。
本文将提供一个示例,查询资源 i-hp3hl3cx1pbahzy8****的进程数列表。返回结果显示进程数 Nginx 和 HTTP 的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:DescribeMonitoringAgentProcesses |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
i-hp3hl3cx1pbahzy8**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
状态码。 说明
200 表示成功。 |
200 |
| Message |
string |
错误信息。 |
The specified resource is not found. |
| RequestId |
string |
请求 ID。 |
C11C0E85-6862-4F25-8D66-D6A5E0882984 |
| Success |
boolean |
操作是否成功。取值:
|
true |
| NodeProcesses |
object |
||
| NodeProcess |
array<object> |
进程信息 |
|
|
object |
|||
| ProcessName |
string |
进程名称。 |
java |
| ProcessId |
integer |
进程 ID。 |
4550102 |
| GroupId |
string |
应用分组 ID。 |
239708487 |
| Command |
string |
命令。 |
/bin/sh |
| ProcessUser |
string |
进程用户 |
admin |
| InstanceId |
string |
实例 ID。 |
host-gdsmvinvmh6fu |
示例
正常返回示例
JSON格式
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "C11C0E85-6862-4F25-8D66-D6A5E0882984",
"Success": true,
"NodeProcesses": {
"NodeProcess": [
{
"ProcessName": "java",
"ProcessId": 4550102,
"GroupId": "239708487",
"Command": "/bin/sh",
"ProcessUser": "admin",
"InstanceId": "host-gdsmvinvmh6fu"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。