Este contenido no está disponible en el idioma seleccionado.
2.2. Search
2.2.1. Search Syntax Copiar enlaceEnlace copiado en el portapapeles!
result-type: {criteria} [sortby sort_spec]
The following examples describe how search queries are used, and help you to understand how Red Hat Storage Console assists with building search queries.
| Example | Result |
|---|---|
| Volumes: status = up | Displays a list of all volumes that are up. |
| Volumes: cluster = data | Displays a list of all volumes of the cluster data. |
| Events: severity > normal sortby time | Displays the list of all events whose severity is higher than Normal, sorted by time. |
2.2.1.1. Auto-Completion Copiar enlaceEnlace copiado en el portapapeles!
Volumes: status = down
| Input | List Items Displayed | Action |
|---|---|---|
v | Volumes (1 option only) |
Select
Volumes or;
Type
Volumes
|
Volumes: |
All volumes properties
| Type s |
Volumes: s | volume properties starting with s | Select status or type status |
Volumes: status | =
!=
| Select or type |
Volumes: status = | All status values | Select or type down |
2.2.1.2. Result-Type Options Copiar enlaceEnlace copiado en el portapapeles!
- Host for a list of hosts
- Event for a list of events
- Users for a list of users
- Cluster for a list of clusters
- Volumes for a list of volumes
2.2.1.3. Search Criteria Copiar enlaceEnlace copiado en el portapapeles!
{criteria} is as follows:
<prop> <operator> <value>
<obj-type>.<prop> <operator> <value>
The following table describes the parts of the syntax:
| Part | Description | Values | Example | Note |
|---|---|---|---|---|
| prop | The property of the searched-for resource. Can also be the property of a resource type (see obj-type), or tag (custom tag). | See the information for each of the search types in Section 2.2.1.3.1, “Wildcards and Multiple Criteria”. | Status | -- |
| obj-type | A resource type that can be associated with the searched-for resource. | See the explanation of each of the search types in Section 2.2.1.3.1, “Wildcards and Multiple Criteria”. | Users | -- |
| operator | Comparison operators. |
=
!= (not equal)
>
<
>=
<=
| -- | Value options depend on obj-type. |
| Value | What the expression is being compared to. |
String
Integer
Ranking
Date (formatted according to regional settings)
|
Jones
256
normal
|
|
2.2.1.3.1. Wildcards and Multiple Criteria Copiar enlaceEnlace copiado en el portapapeles!
<value> part of the syntax for strings. For example, to find all users beginning with m, enter m*.
AND and OR. For example:
Volumes: name = m* AND status = Up
AND or OR, AND is implied. AND precedes OR, and OR precedes implied AND.
2.2.1.4. Determining Sort Order Copiar enlaceEnlace copiado en el portapapeles!
sortby. Sort direction (asc for ascending, desc for descending) can be included.
events: severity > normal sortby time desc
2.2.2. Saving and Accessing Queries as Bookmarks Copiar enlaceEnlace copiado en el portapapeles!
2.2.2.1. Creating Bookmarks Copiar enlaceEnlace copiado en el portapapeles!
Procedure 2.1. Saving a query string as a bookmark
- Enter the search query in the Search bar (see Section 2.2.1, “Search Syntax”).
- Click the star-shaped button to the right of the Search bar.The New Bookmark dialog box displays. The query displays in the Search String field. You can edit it if required.
- Specify a descriptive name for the search query in Name.
- Click to save the query as a bookmark.
- The search query is saved and displays in the Bookmarks pane.
2.2.2.2. Editing Bookmarks Copiar enlaceEnlace copiado en el portapapeles!
Procedure 2.2. Editing a bookmark
- Select the Bookmark pane by clicking the Bookmarks tab on the far left side of the screen.
- Select a bookmark from the Bookmark pane.
- The results list displays the items according to the criteria. Click the button on the Bookmark pane.The Edit Bookmark dialog box displays. The query displays in the Search String field. Edit the search string to your requirements.
- Change Name and Search String as necessary.
- Click to save the edited bookmark.
2.2.2.3. Deleting Bookmarks Copiar enlaceEnlace copiado en el portapapeles!
Procedure 2.3. Deleting a bookmark
- Select one or more bookmark from the Bookmarks pane.
- The results list displays the items according to the criteria. Click the button at the top of the Bookmark pane.The Remove Bookmark dialog box displays, prompting you to confirm your decision to remove the bookmark.
- Click to remove the selected bookmarks.