Revoking an API Key
Revoke an API key to permanently disable the selected key value.
Warning
Revocation is permanent and can't be undone. Applications using the revoked key must be reconfigured to use a different key.
Revocation is permanent and can't be undone. Applications using the revoked key must be reconfigured to use a different key.
- 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 you want to revoke (for example, Key one state).
- Select the and select Revoke.
- Confirm the revocation, and select Revoke.
To revoke 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 toREVOKED: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 revoke 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
REVOKED.