properties of an item or the relations of it to execute.
Query is also used for sorting items when fetching a list of items, by any property and by ascending or descending order.
Some examples of items that use queries:
- Group can dynamically assign users
- Policy can target items or principals with queries
- GVC can dynamically update its assigned locations
Filtering
A query consists of terms, each term can target tags, properties or relations (rel).
For rel term, the value depends on the kind. For example, workload has gvc rel, 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 on top of the table.The
To filter resources based on their tags:
Match Tags By selector values are:| Selector | Definition |
|---|---|
| All | All tag items should match |
| Any | Any of the tags should match |
| None | None of these tags should match |
- Click on 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 | Resource unique 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 |