Queries the types of resources that are monitored by Cloud Config.

In this example, the Alibaba Cloud account 100931896542**** is used. The return result shows that two types of resources are monitored: ACS::ECS::Instance and ACS::ECS::NetworkInterface. The status of the configuration recorder is REGISTERED.

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 DescribeConfigurationRecorder

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

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String A3601178-A6A2-4636-BE56-1116F73C0B0C

The ID of the request.

ConfigurationRecorder Object

The details of the configuration recorder that monitors resources.

OrganizationEnableStatus String REGISTRABLE

Indicates whether Cloud Config is upgraded to Cloud Config for Enterprise. Valid values:

  • REGISTRABLE: Cloud Config is not upgraded to Cloud Config for Enterprise.
  • BUILDING: Cloud Config is being upgraded to Cloud Config for Enterprise.
  • REGISTERED: Cloud Config is upgraded to Cloud Config for Enterprise.
ConfigurationRecorderStatus String REGISTERED

The status of the configuration recorder. Valid values:

  • REGISTRABLE: The configuration recorder has not been registered.
  • BUILDING: The configuration recorder is being deployed.
  • REGISTERED: The configuration recorder has been registered.
  • REBUILDING: The configuration recorder is being redeployed.
OrganizationMasterId Long 120886317861****

The ID of the management account.

Note This parameter is returned only when the operation is called by a management account.
AccountId Long 100931896542****

The ID of your Alibaba Cloud account.

ResourceTypes Array of String ["ACS::ECS::Instance","ACS::ECS::NetworkInterface"]

The types of resources that are monitored by Cloud Config.

Examples

Sample requests

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

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeConfigurationRecorderResponse>
		<RequestId>A3601178-A6A2-4636-BE56-1116F73C0B0C</RequestId>
		<ConfigurationRecorder>
			<ResourceTypes>ACS::ECS::Instance</ResourceTypes>
			<ResourceTypes>ACS::ECS::NetworkInterface</ResourceTypes>
			<AccountId>100931896542****</AccountId>
			<ConfigurationRecorderStatus>REGISTERED</ConfigurationRecorderStatus>
		</ConfigurationRecorder>
</DescribeConfigurationRecorderResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A3601178-A6A2-4636-BE56-1116F73C0B0C",
  "ConfigurationRecorder" : {
    "ResourceTypes" : [ "ACS::ECS::Instance", "ACS::ECS::NetworkInterface" ],
    "AccountId" : "100931896542****",
    "ConfigurationRecorderStatus" : "REGISTERED"
  }
}

Error codes

HTTP status code Error code Error message Description
400 NoPermission You are not authorized to perform this operation. The error message returned because you are not authorized to perform the specified operation.
404 AccountNotExisted Your account does not exist. The error message returned because your account does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. The error message returned because the service is unavailable.

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