You can call this operation to query the process monitoring list.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

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-xx12****

The ID of the instance.

Response parameters

Parameter Type Example Description
Code String 200

The status code. A value of 200 indicates that the call is successful.

Message String Successfully

The error message.

NodeProcesses

The list of processes.

  └Command String number

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

  • number: the number of processes that match the condition.
  • detail: returns the information of the processes that match the condition.
  └InstanceId String host-12xxx

The ID of the instance.

  └ProcessId Long 123456

The ID of the process.

  └ProcessName String http

The name of the process.

  └ProcessUser String admin

The user who started the process.

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

The request ID for troubleshooting.

Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Examples

Sample requests


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

Successful response examples

XML format

<DescribeMonitoringAgentProcessesResponse>
  <NodeProcesses>
    <NodeProcess>
      <Command>number</Command>
      <InstanceId>host-123aaaa</InstanceId>
      <ProcessName>http</ProcessName>
      <ProcessId>123455</ProcessId>
    </NodeProcess>
    <NodeProcess>
      <Command>number</Command>
      <InstanceId>host-123aaaa</InstanceId>
      <ProcessName>nginx</ProcessName>
      <ProcessId>123456</ProcessId>
    </NodeProcess>
  </NodeProcesses>
  <Success>true</Success> 
  <Code>200</Code>
</DescribeMonitoringAgentProcessesResponse>

JSON format

{
	"NodeProcesses":{
		"NodeProcess":[
			{
				"Command":"number",
				"InstanceId":"host-123aaaa",
				"ProcessId":123455,
				"ProcessName":"http"
			},
			{
				"Command":"number",
				"InstanceId":"host-123aaaa",
				"ProcessId":123456,
				"ProcessName":"nginx"
			}
		]
	},
	"Success":true,
	"Code":200
}

Error code

View error codes