All Products
Search
Document Center

Key Management Service:List of operations by function

Last Updated:Mar 31, 2026

The following tables list the KMS Instance API operations available in Key Management Service (KMS).

Key-related operations

OperationDescriptionKey typeNotes
AdvanceEncryptEncrypts plaintext into ciphertext. Use this operation instead of Encrypt when automatic key rotation is enabled — AdvanceEncrypt is designed to stay compatible across key rotations.Symmetric onlyIf automatic key rotation is enabled, use AdvanceEncrypt, AdvanceDecrypt, or AdvanceGenerateDataKey to prevent the key rotation feature from becoming invalid. For more information, see Configure key rotation. Before calling AdvanceDecrypt, save the ciphertext (CiphertextBlob) and authentication data (Aad) returned by this operation.
AdvanceDecryptDecrypts ciphertext into plaintext.Symmetric onlyRequires the CiphertextBlob and Aad saved from the original AdvanceEncrypt or AdvanceGenerateDataKey call.
AdvanceGenerateDataKeyGenerates a data key and encrypts data using envelope encryption.Symmetric onlyBefore calling AdvanceDecrypt, save the ciphertext (CiphertextBlob) and authentication data (Aad) returned by this operation.
EncryptEncrypts plaintext into ciphertext.Symmetric or asymmetricBefore calling Decrypt or AdvanceDecrypt, save the key ID (KeyId), ciphertext (CiphertextBlob), encryption algorithm (Algorithm), initialization vector (Iv), padding mode (PaddingMode), and authentication data (Aad) returned by this operation.
DecryptDecrypts ciphertext into plaintext.Symmetric or asymmetric
GenerateDataKeyGenerates a data key and encrypts data using envelope encryption.Symmetric only
SignGenerates a signature using an asymmetric key.Asymmetric onlyTo verify the signature, call the Verify operation. To verify offline, call GetPublicKey to retrieve the public key and verify on your own system.
VerifyVerifies a signature using an asymmetric key.Asymmetric only
GetPublicKeyRetrieves the public key of a specified asymmetric key. Use this operation when you need to perform signature verification or encryption outside of KMS.Asymmetric only

Secret-related operations

OperationDescription
GetSecretValueRetrieves the value of a secret.

Other operations

OperationDescription
GenerateRandomGenerates a random number.