Configures global settings for the CloudMonitor agent.
Debugging
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 CloudMonitor agent on existing Elastic Compute Service (ECS) instances. Valid values:
|
EnableInstallAgentNewECS | Boolean | No | true |
Specifies whether to automatically install the CloudMonitor agent on new ECS instances. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | Specified parameter EnableInstallAgentNewECS is not valid. |
The error message. |
RequestId | String | 109C8095-6FAD-4DBB-B013-6ED18CE4C0B1 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. Valid values:
|
Examples
Sample request
http(s)://[Endpoint]/? Action=PutMonitoringConfig
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<PutMonitoringConfigResponse>
<RequestId>109C8095-6FAD-4DBB-B013-6ED18CE4C0B1</RequestId>
<Success>true</Success>
<Code>200</Code>
</PutMonitoringConfigResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "109C8095-6FAD-4DBB-B013-6ED18CE4C0B1",
"Code" : 200,
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.