Renewing an API Key
Regenerate one of the secret values for an API key in OCI Generative AI.
Important
To renew a key, you must regenerate it. Regeneration replaces the selected key value. Copy and store the new value securely because it's shown only once. Ensure your application uses the other key during rotation to avoid downtime.
To renew a key, you must regenerate it. Regeneration replaces the selected key value. Copy and store the new value securely because it's shown only once. Ensure your application uses the other key during rotation to avoid downtime.
Use the
api-key renewcommand and required parameters to regenerate a specific key value:oci generative-ai api-key renew [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the RenewApiKey operation to renew one of the secrets of an API key with a new secret and a new expiration date.