Queries monitored processes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeMonitoringAgentProcesses

The operation that you want to perform. Set the value to DescribeMonitoringAgentProcesses.

InstanceId String Yes i-abcdefgh12****

The ID of the instance.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String Successfully

The returned message.

NodeProcesses Array

The details of monitored processes.

NodeProcess
Command String number

The command used to obtain information about the process. Valid values:

  • number: obtains the number of processes that match the condition.
  • detail: obtains the information of the processes that match the condition.
GroupId String 3619****

The ID of the application group.

InstanceId String i-abcdefgh12****

The ID of the instance.

ProcessId Long 1234567

The ID of the process.

ProcessName String http

The name of the process.

ProcessUser String admin

The user who launched the process.

RequestId String 971CC023-5A96-452A-BB7C-2483F948BCFD

The ID of the request.

Success Boolean true

Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeMonitoringAgentProcesses
&InstanceId=i-abcdefgh12****
&<Common request parameters>

Sample success responses

XML format

<DescribeMonitoringAgentProcessesResponse>
      <NodeProcesses>
            <NodeProcess>
              <Command>number</Command>
              <InstanceId>i-abcdefgh12****</InstanceId>
              <ProcessName>http</ProcessName>
              <ProcessId>77B6E36D-45C9-4413-BA2D-1AD60A27****</ProcessId>
        </NodeProcess>
        <NodeProcess>
              <Command>number</Command>
              <InstanceId>i-abcdefgh12****</InstanceId>
              <ProcessName>nginx</ProcessName>
              <ProcessId>77B6E36D-45C9-4413-BA2D-1AD60A27****</ProcessId>
            </NodeProcess>
      </NodeProcesses>
      <Success>true</Success>
      <Code>200</Code>
</DescribeMonitoringAgentProcessesResponse>

JSON format

{
  "NodeProcesses": {
    "NodeProcess": [
      {
        "Command": "number",
        "InstanceId": "i-abcdefgh12****",
        "ProcessName": "http",
        "ProcessId":"77B6E36D-45C9-4413-BA2D-1AD60A27****"
      },
      {
        "Command": "number",
        "InstanceId": "i-abcdefgh12****",
        "ProcessName": "nginx",
        "ProcessId": "77B6E36D-45C9-4413-BA2D-1AD60A27****"
      }
    ]
  },
  "Success": true,
  "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.