Managing Past Queries
From the Past queries page, you can view a list of queries that have been run recently, and you can perform many useful operations on an individual query.
- For a complete list of flags and variable options for CLI commands, see the Command Line Reference. - Queries - Use the oci cloud-guard adhoc-query delete command and required parameters to delete a query: - oci cloud-guard adhoc-query delete --adhoc-query-id <query_ocid> [OPTIONS]- Use the oci cloud-guard adhoc-query get command and required parameters to get the details for a specific query: - oci cloud-guard adhoc-query get --adhoc-query-id <query_ocid> [OPTIONS]- Use the oci cloud-guard adhoc-query list command and required parameters to list all available queries in a compartment: - oci cloud-guard adhoc-query list --compartment-id, -c <compartment_ocid> [OPTIONS]- Query Results - Use the oci cloud-guard adhoc-query-result-collection get-adhoc-query-result-content command and required parameters to download results for a specific query to a file: - oci cloud-guard adhoc-query-result-collection get-adhoc-query-result-content --adhoc-query-id <query_ocid> --file <file_name> [OPTIONS]- Use the oci cloud-guard adhoc-query-result-collection list-adhoc-query-results command and required parameters to list results for a specific query: - oci cloud-guard adhoc-query-result-collection list-adhoc-query-results --adhoc-query-id <query_ocid> --compartment-id, -c <compartment_ocid> [OPTIONS]- Query Favorites - Use the oci cloud-guard saved-query create command and required parameters to add a query to the favorites list: - oci cloud-guard saved-query create --compartment-id, -c <compartment_ocid> --display-name <saved_query_display_name> --query-parameterconflict <query_expression> [OPTIONS]
- Queries - Run the DeleteAdhocQuery operation to delete a query. - Run the GetAdhocQuery operation to get the details for a specific query. - Run the ListAdhocQueries operation to list all available queries in a compartment. - Query Results - Run the GetAdhocQueryResultContent operation to download results for a specific query to a file. - Run the ListAdhocQueryResults operation to list results for a specific query. - Query Favorites - Run the CreateSavedQuery operation to add a query to the favorites list. 
What's Next
- To add a query to the favorites list, see Managing the Query Favorites List.
- To schedule queries to run periodically, see Scheduling a New Query.
 select:
 select: