Sorting Resource Search Results

Sort results from a search or resource query to better help you find what you need.

When you have more than 100 results, you can only sort resources by the following attributes:
  • 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.

    1. In the list of search results, click the column header of the column that you want to use to sort results.
      Clicking the same column header again sorts the results in reverse order.
    2. (Optional) If needed, repeat the previous step with a different column header to sort results by using values from a different resource attribute.
  • 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.