tencent cloud

All product documents
Key Management Service
Enabling/Disabling Key
Last updated: 2024-01-11 16:28:54
Enabling/Disabling Key
Last updated: 2024-01-11 16:28:54

Overview

The operations of enabling and disabling a key involve the following two APIs:
API Name
Description
Note
EnableKey
Enables a CMK
The KeyId parameter is required for this API. For more information, please see the EnableKey API document.
DisableKey
Disables a CMK
The KeyId parameter is required for this API. For more information, please see the DisableKey API document.
The examples below are called with TCCLI, which can also be called with any supported programming languages.

Examples

Enabling a CMK

Input

tccli kms EnableKey --region ap-guangzhou --KeyId 5xxxxx-xxxx-xxxx-xxxx-52xxxxx4

Output

If the key is successfully enabled, the following request will be returned.
{
"RequestId": "6b2187b0-f40a-46d0-8065-2434afc54619"
}

Disabling a CMK

Input

tccli kms DisableKey --region ap-guangzhou --KeyId 5xxxxx-xxxx-xxxx-xxxx-52xxxxx4

Output

If the key is successfully disabled, the following request will be returned.
{
"RequestId": "e5674638-1466-4607-a3ea-b60d30f4e5e3"
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon