Disable the periodic rotation of a KMS Key.
Responses
-
Key rotation disabled
-
Errors
Invalid Origin: The request was rejected because automatic key rotation can only be enabled on a KMS key with origin "exoscale-kms".
Key Not Found: The request was rejected because the specified KMS Key could not be found.
Not on Default: The request was rejected because the operation is not allowed on the default key.
Not on Replica: The request was rejectde because the operation is not allowed on a replica.
Key is Pending Deletion: The request was rejected because it was performed on a key that is pending deletion.
Key is Disabled: The request was rejected because the specified KMS key is disabled.
Invalid Usage: The request was rejected because the operation is only allowed on symmetric keys with usage "encrypt-decrypt".
Conflict: The request was rejected because the automatic rotation is already enabled for this KMS Key.
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/disable-key-rotation'
{
"rotation": {
"manual-count": 42,
"automatic": true,
"rotation-period": 42,
"next-at": "2026-05-04T09:42:00Z"
}
}
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string"
}