Cloud Config allows you to query resources by using advanced search and download the results as a custom resource list.
Background information
Enterprises often need to export cloud resource data filtered by resource type or specific properties. The advanced search feature of Cloud Config supports a wide range of resource types and properties for custom data export. This topic uses the following example: export the IDs, names, regions, private IP addresses, billing methods, and instance types of all Elastic Compute Service (ECS) instances in the current account to a custom resource list.
Procedure
-
Log on to the Cloud Config console.
-
In the navigation pane on the left, choose Resource > Advanced.
-
On the advanced search page, switch to the SQL tab and enter the following query.
SELECT ResourceId, ResourceName, RegionId, VpcAttributes.PrivateIpAddress.IpAddress, InstanceChargeType, InstanceType WHERE ResourceType = 'ACS::ECS::Instance'Note-
For more information about the resource types that you can query by using Cloud Config, see Alibaba Cloud services and resource types supported by Cloud Config.
-
To learn which resource properties you can query with the advanced search feature, see alibabacloud-config-resource-schema.
-
-
Click Search.
-
Click Download Search Result to download the resource list as a CSV file.
FAQ
How do I use the advanced search feature to download a custom resource list in a multi-account system?
To download a custom resource list in a multi-account system, log on to the Cloud Config console and select an account group in the left-side navigation pane. Then, perform Step 2 to Step 5 to download the resource list.