You can call this operation to enable CloudMonitor to monitor a specified process.

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 CreateMonitoringAgentProcess

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

InstanceId String Yes i-123****

The ID of the instance.

ProcessName String No java

The name of the process.

ProcessUser String No admin

The user who launched the process.

Response parameters

Parameter Type Example Description 
Code String 200

The HTTP status code. The code 200 indicates that the call is successful.

Id Long 12345

The ID of the process.

Message String success

The error message.

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

The ID of the request, which can be used for troubleshooting.

Success Boolean true

Indicates whether the call is successful.

Examples

Sample requests


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

Sample success responses

XML format

<CreateMonitoringAgentProcessResponse>
      <RequestId>971CC023-5A96-452A-BB7C-2483F948BCFD</RequestId>
      <Id>171894</Id>
      <Success>true</Success>
      <Code>200</Code>
</CreateMonitoringAgentProcessResponse>

JSON format

{
	"RequestId":"971CC023-5A96-452A-BB7C-2483F948BCFD",
	"Id":171894,
	"Success":true,
	"Code":200
}

Error codes

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