properties, or item relations.
Queries also support sorting resource lists by property in ascending or descending order.
Examples of resources that use queries:
- Groups can dynamically assign users
- Policies can target items or principals with queries
- GVCs can dynamically update assigned locations
Filtering
A query consists of one or more terms that target tags, properties, or relations (rel).
For a rel term, the value depends on the resource kind. For example, workloads have a gvc relation, which allows you to filter workloads in an org by the GVC they belong to.
- Console UI
- CLI
- API
In the Console, each page that lists items of a kind has a query button at the top of the table.The
Match Tags By selector values are:To filter resources based on their tags:
- Click the
Querybutton - Select which term you want to target: tag, property, or rel
- Type a value for the selected term key
- Select the operator and type the term value if needed
- Click
Applyand the filtered resources will be displayed
Query button again and click Clear.Sorting
When fetching a list of items, you can sort by various properties in ascending or descending order.Sort Order
Common Sort Fields
The following sort fields are available for most resources:Resource-Specific Sort Fields
Some resources have additional sort fields:Location
Location
Group
Group
Cloud Account
Cloud Account
User
User
Policy
Policy