Sorting Resource Search Results
Sort results from a search or resource query to better help you find what you need.
- Display name
- Status
- Time created
These steps assume that you already performed a free text search and selected the Resources category of results according to the instructions in Performing a Free Text Search.
Use the oci search resource structured-search command and required parameters to sort results from a search for resources:
oci search resource structured-search --query-text "<query_text_using_query_language_syntax>"
For a complete list of parameters and values for CLI commands, see the CLI Command Reference. For information about the syntax for queries, see Search Language Syntax.
Run the SearchResources operation to use structured query language to sort results from a search for resources.
For information about query language syntax, see Search Language Syntax. For information about a resource type, such as its attributes, see its reference page in the API Reference Guide. For the reference pages of resource types that have been indexed for Search, see Supported Resources.