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
To filter resources based on their tags:
Match Tags By selector values are:| Selector | Definition |
|---|---|
| All | All tag items must match |
| Any | At least one tag must match |
| None | No tag items may match |
- 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
| Order | Description |
|---|---|
asc | Ascending order (A-Z, oldest first, lowest first) |
desc | Descending order (Z-A, newest first, highest first) |
Common Sort Fields
The following sort fields are available for most resources:| Field | Description |
|---|---|
id | Unique resource identifier |
name | Resource name |
version | Resource version number |
description | Resource description |
created | Creation timestamp |
lastModified | Last modification timestamp |
Resource-Specific Sort Fields
Some resources have additional sort fields:Location
Location
| Field | Description |
|---|---|
origin | Origin of the location |
provider | Cloud provider (aws, gcp, azure) |
region | Cloud region |
Group
Group
| Field | Description |
|---|---|
origin | Origin of the group |
Cloud Account
Cloud Account
| Field | Description |
|---|---|
provider | Cloud provider (aws, gcp, azure, ngs) |
User
User
| Field | Description |
|---|---|
idp | Identity provider |
email | User email address |
Policy
Policy
| Field | Description |
|---|---|
origin | Origin of the policy |