Key Management Service API, REST: AsymmetricEncryptionCrypto.Decrypt
Written by
Updated at October 17, 2024
Decrypts the given ciphertext with the specified key.
HTTP request
POST https://kms.api.cloud.yandex.net/kms/v1/asymmetricEncryptionKeys/{keyId}:decrypt
Path parameters
Field |
Description |
keyId |
string Required field. ID of the asymmetric KMS key to use for decryption. |
Body parameters
{
"ciphertext": "string"
}
Field |
Description |
ciphertext |
string (bytes) Required field. Ciphertext to be decrypted. |
Response
HTTP Code: 200 - OK
{
"keyId": "string",
"plaintext": "string"
}
Field |
Description |
keyId |
string ID of the asymmetric KMS key that was used for decryption. |
plaintext |
string (bytes) Decrypted plaintext. |