調用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. | 未找到指定資源。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。