All Products
Search
Document Center

CloudMonitor:CreateMonitoringAgentProcess

Last Updated:Mar 01, 2024

Creates a task 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProcessNamestringNo

The name of the process.

java
InstanceIdstringYes

The ID of the instance.

i-2ze51wjtwox01r8g****
ProcessUserstringNo

The user who launches the process.

admin

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The error message.

User not authorized to operate on the specified resource.
RequestIdstring

The ID of the request.

0DFCB47D-E7E1-4CBE-A381-8339F7B300EF
Successboolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.
true
Idlong

The ID of the process.

12345

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "User not authorized to operate on the specified resource.",
  "RequestId": "0DFCB47D-E7E1-4CBE-A381-8339F7B300EF",
  "Success": true,
  "Id": 12345
}

Error codes

HTTP status codeError codeError messageDescription
400ParameterInvalidIllegal parameters.-
403AccessForbiddenUser not authorized to operate on the specified resource.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
500InternalErrorThe request processing has failed due to some unknown error.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history