Responses
-
Base64 encoded plaintext.
-
Errors
Key Not Found: The request was rejected because the specified KMS Key could not be found.
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".
POST
/kms-key/{id}/decrypt
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/decrypt' \
--header "Content-Type: application/json" \
--data '{"encryption-context":"string","ciphertext":"string"}'
Request examples
{
"encryption-context": "string",
"ciphertext": "string"
}
Response examples (200)
{
"plaintext": "string"
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string"
}