Trigger Secret Rotation
POST/api/security/secrets/rotate-keys
Triggers an immediate secret key rotation. This is an asynchronous operation.
You can learn more about key rotation here.
Tokens
- A valid
AccessTokenwithADMINpermissions is required.
Responses
- 200
- 400
- 401
- 403
- 500
Rotation process successfully triggered.
The following error codes correspond to this status:
SECRET_ROTATION_ONGOING: Represents an exception indicating that a secret rotation process is ongoing.
The following error codes correspond to this status:
ACCESS_TOKEN_EXPIRED: Indicates that the access token is expired.ACCESS_TOKEN_INVALID: Indicates that the access token cannot be decoded.AUTHENTICATION_REQUIRED: User is not authenticated.
The following error codes correspond to this status:
ROLE_REQUIRED: Principal does not have required role.
The following error codes correspond to this status:
ACCESS_TOKEN_ALLOWLIST_READING_FAILURE: Represents an exception indicating a failure when reading the allowlist for an access token cache.