Sets global configurations for the Cloud Monitor agent. For example, you can enable automatic agent installation or one-click alert.


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 PutMonitoringConfig

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

AutoInstall Boolean No true

Specifies whether to automatically install the Cloud Monitor agent for existing Elastic Compute Service (ECS) instances.

EnableInstallAgentNewECS Boolean No true

Specifies whether to enable automatic agent installation for newly purchased ECS instances.

Response parameters

Parameter Type Example Description
Code Integer 200

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

Message String success

The returned message.

RequestId String E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D

The ID of the request.

Success Boolean true

Indicates whether the call was successful.


Sample requests

http(s)://[Endpoint]/? Action=PutMonitoringConfig
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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