Performs an immediate rotation of the key material for a symmetric key.
Responses
-
Key rotated
-
Errors
Key Not Found: The request was rejected because the specified KMS Key could not be found.
Key is Pending Deletion: The request was rejected because it was performed on a key that is pending deletion.
Not on a Replica: The request was rejected because the operation is not allowed on a replica.
Invalid Usage: The request was rejected because the operation is only allowed on symmetric keys with usage "encrypt-decrypt".
Key is Disabled: The request was rejected because the specified KMS key is disabled.
Manual Rotation Limit: The request was rejected because you reached your limit of 10 manual rotations per key for this KMS key.
POST
/kms-key/{id}/rotate
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/rotate'
Response examples (200)
{
"rotation": {
"manual-count": 42,
"automatic": true,
"rotation-period": 42,
"next-at": "2026-05-04T09:42:00Z"
}
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string"
}