Activating an API Key
Activate a deactivated API key so that requests using the selected key value authenticate again.
- On the API keys list page, select the API key that you want to work with. If you need help finding the list page for API keys, see Listing API keys.
- In Key names and expiration times, find the key state to change (for example, Key two state).
- Select the and select Activate.
- Confirm the activation.
To activate one secret of an API key, run the
api-key set-api-key-statecommand, providing the API key OCID, the secret's key name, and set the state toACTIVE:oci generative-ai api-key set-api-key-state [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
To activate one secret of an API key, run the SetApiKeyState operation, providing the API key OCID, the secret's key name, and set the state to
ACTIVE.