Disables a KMS Key by setting its state to "disabled". This prevents the use of the KMS key for cryptographic and key lifecycle operations.
Responses
-
Key disabled
-
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 Default: The request was rejected because the operation is not allowed on the default key.
POST
/kms-key/{id}/disable
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/disable'
Response examples (200)
{
"status": "success"
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string"
}