edit-icon download-icon


Last Updated: Apr 02, 2018


Sets the state of a CMK to disabled, thereby preventing its use for cryptographic operations. The ciphertext encrypted using the CMK cannot be decrypted until the CMK is enabled again.

Request parameters

Name Type Required Description
KeyId string Yes Globally unique identifier of the CMK.

Response parameters

Name Type Description
RequestId string The ID of this request.


Request example

  1. https://kms.cn-hangzhou.aliyuncs.com/?Action=DisableKey
  2. &KeyId=<cmkid>
  3. &<Other public parameters>

Response example

JSON format

  1. //json response
  2. {
  3. "RequestId": "2fe70ce2-3303-4fd6-b3ac-472fb2705c62"
  4. }

XML format

  1. //xml response
  2. <KMS>
  3. <RequestId>2fe70ce2-3303-4fd6-b3ac-472fb2705c62</RequestId>
  4. </KMS>
Thank you! We've received your feedback.