Queries the configuration of the Cloud Monitor agent.

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 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 automatic installation is enabled for the Cloud Monitor agent.

EnableInstallAgentNewECS Boolean false

Indicates whether the Cloud Monitor agent is installed on new Elastic Compute Service (ECS) instances.

Message String Successfully

The returned message.

Code String 200

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

Success Boolean true

Indicates whether the call was successful.

EnableActiveAlert String redis,rds,ecs

The services for which one-click alert is enabled.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeMonitoringAgentConfigResponse>
      <UserId>12345****</UserId>
      <EnableInstallAgentNewECS>false</EnableInstallAgentNewECS>
      <Success>true</Success>
      <ErrorCode>200</ErrorCode>
      <EnableActiveAlert>redisa,rds,ecs</EnableActiveAlert>
      <AutoInstall>true</AutoInstall>
</DescribeMonitoringAgentConfigResponse>

JSON format

{
	"UserId":"12345****",
	"ErrorCode":200,
	"Success":true,
	"EnableInstallAgentNewECS":false,
	"AutoInstall":true,
	"EnableActiveAlert":"redisa,rds,ecs"
}

Error codes

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