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 the Cloud Monitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values:

  • true
  • false
EnableInstallAgentNewECS Boolean true

Indicates whether the Cloud Monitor agent is automatically installed on new ECS instances. Valid values:

  • true
  • false
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:

  • true: successful.
  • false: failed.
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.