Use the advanced search feature to download a custom resource list

Updated at: 2023-10-24 03:42

This topic describes how to use the advanced search feature of Cloud Config to query resources and download a custom resource list.

Background information

During daily internal governance and O&M processes, enterprises that migrate business to the cloud always need to export the data of cloud resources, such as resources of a specified type and properties of a specified resource type. The advanced search feature of Cloud Config allows you to search for resources by property. This feature supports various resource types and multiple properties. This way, you can export custom resource data. In this example, a custom resource list is downloaded. The IDs, names, regions, private IP addresses, billing methods, and instance types of all Elastic Compute Service (ECS) instances of the current account are exported to the list.

Procedure

  1. Log on to the Cloud Config console.

  2. In the left-side navigation pane, choose Resources > Advanced.

  3. On the Advanced page, click SQL. On the SQL tab, enter the following SQL statement in the editor.

    SELECT ResourceId, ResourceName, RegionId, VpcAttributes.PrivateIpAddress.IpAddress, InstanceChargeType, InstanceType WHERE ResourceType = 'ACS::ECS::Instance'
    Note
  4. Click Search.

  5. Click Download Search Result to download a CSV file that is generated for a resource list that includes the search result to an on-premises server.

FAQ

How do I use the advanced search feature to download a custom resource list in a multi-account system?

If you want to download a custom resource list in a multi-account system, you must 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 a custom resource list.

  • On this page (1, T)
  • Background information
  • Procedure
  • FAQ
  • How do I use the advanced search feature to download a custom resource list in a multi-account system?
Feedback