POST /kms-key/{id}/schedule-deletion

Schedule a KMS key for deletion after a delay.

Path parameters

  • id string(uuid) Required
application/json

Body Required

  • delay-days integer

    Number of days to wait until deletion is final.

    Minimum value is 7, maximum value is 30. Default value is 30.

Responses

  • 400 application/json

    400

    Hide response attributes Show response attributes object
    • type string(uri-reference) Required
    • title string Required
    • status integer Required

      Minimum value is 100, maximum value is 599.

    • detail string Required
    • instance string(uri-reference)
    • errors array[object]
      Hide errors attributes Show errors attributes object
      • path string
      • detail string
      • pointer string
      • location string
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 (400)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string",
  "errors": [
    {
      "path": "string",
      "detail": "string",
      "pointer": "string",
      "location": "string"
    }
  ]
}