Queries the global configurations of the Cloud Monitor agent.

For example, you can query whether automatic agent installation or one-click alert is enabled.

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 DescribeMonitoringConfig

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

Response parameters

Parameter Type Example Description
Success Boolean true

Indicates whether the call was successful.

Code String 200

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

RequestId String F35654DB-0C9D-4FB3-903F-479BA7663061

The ID of the request.

Message String success

The returned message.

EnableInstallAgentNewECS Boolean true

Indicates whether automatic agent installation is enabled for newly purchased Elastic Compute Service (ECS) instances.

AutoInstall Boolean true

Indicates whether automatic agent installation is enabled for existing ECS instances.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeMonitoringConfigResponse>
      <ActiveAlertProducts>rds,opensearch,ecs</ActiveAlertProducts>
      <EnableInstallAgentNewECS>false</EnableInstallAgentNewECS>
      <Success>true</Success>
      <Code>200</Code>
      <AutoInstall>true</AutoInstall>
</DescribeMonitoringConfigResponse>

JSON format

{
	"ActiveAlertProducts":"rds,opensearch,ecs",
	"RequestId":"",
	"Success":true,
	"EnableInstallAgentNewECS":false,
	"Code":200,
	"AutoInstall":true
}

Error codes

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