Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

To show tag filters, we have illustrated a set of separate examples. Please begin each example with clear filters.

Within the tag search filters, the operation Any match is equivalent to the Boolean operator OR and the operation Strict is equivalent to AND.   

Filter by a key

This filter displays lists resources tagged with tag key "A". The platform does not use the operation (Any match or Strict)Image Removed. The operations Any match (OR) and Strict (AND) are not used.

...

Filter by keys

Enter To filter by keys, enter the Keys and select an operation. 

Select Any match is the "or" case: (OR) to list resources tagged with tag key "A" or "B"

Image Removed

Strict is the "and" case: resources tagged with tag key "A" and "B".

Image Removedany of the keys, in this case, key A or B.

...

Select Strict (AND) to list resources tagged with all the keys, in this case A and B.

...

Filter by values

Enter To filter by values, enter a list of Values and select an operation.

Select Any match is the "or" case: (OR) to list resources tagged with tags with values "1" or "2".

Image Removed

Strict is the "and" case: any of the values, in this case values 1 or 2.

...

Select Strict (AND) to list resources tagged with tags with values "1" and "2"all of the values, in this case values 1 and 2.

Filter by a key and a value

Example: This filter lists resources tagged with tags with tags A=1. The platform does not use the operation (Any match or Strict).Image Removedtag key A with value 1. The operations Any match (OR) and Strict (AND) are not used.

...

Filter by a

...

specific key and values

Enter a key and a list of values.

Only the "or" case is valid: resources tagged with A=1 or A=2. The "and" case is not allowed because you cannot add the same key to a resource more than once.

Image Removed

Complete example 'OR'

{
"tags" : { "A" : ["1", "2"], "B" : ["3"]},
"keys": ["C", "D"],
"values": ["4", "5"],
"operation": "OR"
}

A=1 OR A=2 OR B=3 OR C=* OR D=* OR *=4 OR *=5
Complete example 'AND'
{
"tags" : { "A" : ["1", "2"], "B" : ["3"]},
"keys": ["C", "D"],
"values": ["4", "5"],
"operation": "AND"
}

(A=1 OR A=2) AND B=3 AND C=* AND D=* AND *=4 AND *=5To filter by a key and multiple values, you can create a single filter element, with one key and a list of values. 

In this example, we entered the Key of A, then the Values of 1 and 2, and then we clicked Add.

The operation to join the list of values is always Any match (OR), because you cannot create multiple tags with the same key on the same resource.

...

Complete Any match (OR) example

To make this example more readable, we will use a tag:value notation.

In this example, we filter resources tagged A:1 or A:2 or B:3 or C:* (any tag beginning C) or D:* (any tag key of D) or *:4 (any tag value of 4) or *:5 (any tag value of 5). The operation to join the filter elements is Any match (OR). We added a filter element with a single tag for A with a list of values (1, 2).

...

Complete Strict (AND) example

To make this example more readable, we will use a tag:value notation. 

In this example, we filter resources tagged (A:1 or A:2) and B:3 and C:* (any tag with a key of C) and D:* (any tag with a key of D) and *:4 (any tag with a value of 4) and *:5 (any tag with a value of 5). The operation to join the filter elements is Strict (AND).   

We added a filter element with a single tag for A with a list of values (1, 2).

...