Decrypts an existing ciphertext using its original key material and re-encrypts the underlying plaintext using a specified KMS key or the latest key material of the same KMS Key.
POST
/kms-key/{id}/re-encrypt
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/kms-key/{id}/re-encrypt' \
--header "Content-Type: application/json" \
--data '{"source":{"key":"string","encryption-context":"string","ciphertext":"string"},"destination":{"key":"string","encryption-context":"string"}}'
Request examples
{
"source": {
"key": "string",
"encryption-context": "string",
"ciphertext": "string"
},
"destination": {
"key": "string",
"encryption-context": "string"
}
}
Response examples (200)
{
"ciphertext": "string"
}
Response examples (400)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string",
"errors": [
{
"path": "string",
"detail": "string",
"pointer": "string",
"location": "string"
}
]
}