All Products
Search
Document Center

Key Management Service:List of operations by function

Last Updated:Mar 31, 2026

The following tables list all API operations available in Key Management Service (KMS), organized by function.

Key service operations

CMK management

Customer master key (CMK) management operations create and modify CMKs and manage their lifecycles.

OperationDescription
CreateKeyCreates a CMK using key material generated by KMS, or imports external key material (Bring Your Own Key, BYOK). This is the first step of BYOK.
GetParametersForImportReturns the parameters required to import key material. This is the second step of BYOK.
ImportKeyMaterialImports key material into a CMK. This is the final step of BYOK.
EnableKeySets a CMK to the Enabled state.
DisableKeySets a CMK to the Disabled state.
SetDeletionProtectionEnables or disables deletion protection for a CMK.
ScheduleKeyDeletionSchedules a CMK for deletion. The CMK enters the Pending Deletion state and is deleted automatically after the waiting period elapses.
CancelKeyDeletionCancels a scheduled CMK deletion before the waiting period elapses. The CMK returns to the Enabled state.
DeleteKeyMaterialDeletes key material that is imported from an external source. The CMK enters the Pending Import state.
DescribeKeyReturns the details of a CMK.
ListKeysLists all CMKs in the current region for the current Alibaba Cloud account.
UpdateKeyDescriptionUpdates the description of a CMK.

Key version management

Key version management operations rotate CMKs by creating and querying key versions.

OperationDescription
DescribeKeyVersionReturns the details of a key version.
ListKeyVersionsLists all versions of a CMK.
UpdateRotationPolicyUpdates the rotation policy of a symmetric CMK. When automatic rotation is enabled, KMS generates a new key version on a regular basis.
CreateKeyVersionCreates a key version for an asymmetric CMK.

Cryptographic operations

Use these operations to encrypt, decrypt, and sign data with CMKs.

OperationDescription
EncryptEncrypts up to 6 KB of data using a symmetric CMK.
GenerateDataKeyGenerates a data key and returns both the plaintext and the ciphertext encrypted by a specified CMK. Use the data key to encrypt large amounts of local data.
GenerateDataKeyWithoutPlaintextGenerates a data key and returns only the ciphertext encrypted by a specified CMK, without returning the plaintext.
ExportDataKeyEncrypts a data key with a specified public key and exports it.
GenerateAndExportDataKeyGenerates a data key and returns two ciphertext copies: one encrypted by a specified CMK and one encrypted by a specified public key.
DecryptDecrypts ciphertext produced by Encrypt or GenerateDataKey. No CMK ID is required for decryption.
ReEncryptRe-encrypts ciphertext under a different CMK. KMS decrypts the specified ciphertext and then uses a different CMK to encrypt the generated plaintext or data key.
AsymmetricSignGenerates a digital signature using the private key of an asymmetric CMK.
AsymmetricVerifyVerifies a digital signature using the public key of an asymmetric CMK.
AsymmetricDecryptDecrypts data using the private key of an asymmetric CMK.
AsymmetricEncryptEncrypts data using the public key of an asymmetric CMK.
GetPublicKeyReturns the public key of an asymmetric CMK for offline encryption or signature verification.

Alias management

An alias is a human-readable name bound to a single CMK. Pass an alias as the KeyId parameter value in place of a key ID.

OperationDescription
CreateAliasCreates an alias and binds it to a CMK.
UpdateAliasBinds an existing alias to a different CMK.
DeleteAliasDeletes an alias.
ListAliasesLists all aliases in the current region for the current Alibaba Cloud account.
ListAliasesByKeyIdLists all aliases bound to a specified CMK.

Secrets Manager operations

Secrets Manager operations manage, protect, distribute, and rotate secrets.

OperationDescription
CreateSecretCreates a secret and stores the initial secret value.
ListSecretsLists all secrets in the current region for the current Alibaba Cloud account.
DeleteSecretDeletes a secret.
DescribeSecretReturns the metadata of a secret.
GetSecretValueReturns the value of a secret.
PutSecretValueStores a new secret value as a new version.
UpdateSecretUpdates the metadata of a secret.
UpdateSecretVersionStageUpdates the stage label that marks a secret version.
RestoreSecretRestores a deleted secret.
ListSecretVersionIdsLists all versions of a secret.
GetRandomPasswordReturns a randomly generated password string.

Certificate operations

Certificate operations create, manage, and use certificates stored in Certificates Manager.

Certificate lifecycle management

OperationDescription
CreateCertificateCreates a certificate.
UploadCertificateImports a certificate and certificate chain issued by a certificate authority (CA) into Certificates Manager.
GetCertificateReturns a certificate managed by Certificates Manager.
DescribeCertificateReturns the details of a certificate.
UpdateCertificateStatusUpdates the status of a certificate.
DeleteCertificateDeletes a certificate along with its private key and certificate chain.

Cryptographic operations

OperationDescription
CertificatePrivateKeySignGenerates a digital signature using a specified certificate.
CertificatePublicKeyVerifyVerifies a digital signature using a specified certificate.
CertificatePublicKeyEncryptEncrypts data using a specified certificate.
CertificatePrivateKeyDecryptDecrypts data using a specified certificate.

Tag management operations

Tags are key-value pairs (TagKey and TagValue) that you can attach to CMKs, secrets, and certificates.

OperationDescription
TagResourceAdds tags to or updates existing tags on a CMK, secret, or certificate.
UntagResourceRemoves a tag from a CMK, secret, or certificate.
ListResourceTagsLists all tags on a CMK, secret, or certificate.

Other operations

OperationDescription
DescribeRegionsLists regions available to the current Alibaba Cloud account.
OpenKmsServiceActivates KMS for the current Alibaba Cloud account.
DescribeAccountKmsStatusReturns the status of KMS for the current Alibaba Cloud account.