Schedules a KMS key for deletion after a delay. You can specify a delay of 7-30 days.
Responses
-
Key deletion scheduled
-
Errors
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.
Bad Request: The request was rejected because of an invalid request body or path parameter.
POST
/kms-key/{id}/schedule-deletion
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/schedule-deletion' \
--header "Content-Type: application/json" \
--data '{"delay-days":30}'
Request examples
{
"delay-days": 30
}
Response examples (200)
{
"delete-at": "2026-05-04T09:42:00Z"
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string"
}