Listing API Keys
List a compartment's API keys in OCI Generative AI.
Filtering List Results
Use filters to limit the API keys in the list. Perform one of the following actions depending on the options that you see:
- From the Search and Filter box above the list table, select one or more filters and specify the values that you want to use to narrow the list. In general, the filters correspond to the columns shown in the list table, although some filters represent attributes that aren't shown in the table. The Compartment filter is always displayed next to Applied filters.
- On the left side of the list page, select a value from one of the available filters, such as compartment, state, or tags.
Change the order of the items in the list table by using the sort icons next to the column names.
For information about searching for resources and managing the columns in the list table, if those features are available, see Listing Resources.
Actions
In the list table, select the name of an API key to open its details page, where you can view its status and perform other tasks.
To perform an action on an API key directly from the list table, select an available option from the Actions menu in the row for that API key:
- Delete: Delete the API key.
- Move resource: Move the API key to another compartment.
- Manage tags: Add one or more tags to the API key. See Resource Tags.
- Copy OCID: Copy the OCID or key ID of the API key to the clipboard.
- Open support request: Open the Support Request panel, in which you can access support options. See Support Requests.
To create a new key, select Create API key. See Creating an API Key.
Use the
api-key-collection list-api-keyscommand and required parameters to list a compartment's API keys:oci generative-ai api-key-collection list-api-keys [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ListApiKeys operation to list a compartment's API keys.