Queries the configuration of the Cloud Monitor agent.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeMonitoringAgentConfig |
The operation that you want to perform. Set the value to DescribeMonitoringAgentConfig. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D |
The ID of the request. |
AutoInstall | Boolean | true |
Indicates whether the Cloud Monitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values:
|
EnableInstallAgentNewECS | Boolean | true |
Indicates whether the Cloud Monitor agent is automatically installed on new ECS instances. Valid values:
|
Message | String | The Request is not authorization. |
The error message. |
Code | String | 200 |
The status code. Note The status code 200 indicates a success.
|
Success | Boolean | true |
Indicates whether the operation was successful. Valid values:
|
EnableActiveAlert | String | redis,rds,ecs |
The service for which one-click alert is enabled. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeMonitoringAgentConfig
&<Common request parameters>
Sample success responses
XML
format
<DescribeMonitoringAgentConfigResponse>
<AutoInstall>true</AutoInstall>
<EnableActiveAlert></EnableActiveAlert>
<EnableInstallAgentNewECS>true</EnableInstallAgentNewECS>
<RequestId>B4EB0F95-3181-4E8F-B32E-8C3734E8F88E</RequestId>
<Code>200</Code>
<Success>true</Success>
</DescribeMonitoringAgentConfigResponse>
JSON
format
{
"AutoInstall": true,
"EnableActiveAlert": "",
"EnableInstallAgentNewECS": true,
"RequestId": "B4EB0F95-3181-4E8F-B32E-8C3734E8F88E",
"Code": 200,
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.