Help Center/ Config/ Best Practices/ Using Advanced Queries
Updated on 2025-01-21 GMT+08:00

Using Advanced Queries

In this section, you will learn how to use advanced queries to query resources and download resource data.

Applicable Scenario

You can use ResourceQL to query resources with the advanced query function provided by Config. Advanced queries make it convenient to export resource data as needed.

Procedure

  1. Log in to the Config Console.
  2. In the navigation pane on the left, select Advanced Queries.
  3. Click Custom Queries and click Create Query in the upper right corner.
  4. Enter the following query and click Run to query idle EVS disks.
    SELECT *
    FROM tracked_resources
    WHERE provider = 'evs'
    	AND type = 'volumes'
    	AND properties.status != 'in-use'
  5. On the Results area, click Export to export query results to a CSV or a JSON file.