tencent cloud

문서Key Management Service

Viewing Key

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-07-30 16:45:13
AI 번역

Overview

API Name
API Description
Description
ListKeys
List the keys (KeyId information) under your account.
This API operation has no required parameters. For details, see the ListKeys API.
DescribeKey
View the details of the specified CMK. The information includes key details such as the CMK name, ID, status, and region.
The KeyId parameter is required for this API operation. For details, see the DescribeKey API.
The examples in this document use the Tencent Cloud command-line tool TCCLI. Subsequently, you can make calls using any supported programming language.

Examples

Viewing the Key ID List Example

View the first five KeyId entries in the Guangdong region.

Inputs

tccli kms ListKeys --region ap-guangzhou --Limit 5

Output

{
"Keys": [
{
"KeyId": "6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09"
},
{
"KeyId": "6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09"
},
{
"KeyId": "6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09"
},
{
"KeyId":"6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09"
},
{
"KeyId": "6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09"
}
],
"TotalCount": 114,
"RequestId": "afaaeb5e-c97d-4726-8012-6ae337d62928"
}

Viewing the Key ID Details Example

View the details of the specified CMK.

Inputs

tccli kms DescribeKey --region ap-guangzhou --KeyId 521xxxxx-xxxx-xxxx-xxxx-52xxxxd4

Output

When the API is executed successfully, the details of the CMK are returned.
{
"KeyMetadata": {
"KeyId": "6xxxxxxx-xxxx-xxxx-xxxx-5xxxxxxxxc09",
"Description": "this is test for gz key",
"CreatorUin": 10xxxxxxxxxx,
"KeyRotationEnabled": false,
"NextRotateTime": 1603439621,
"CreateTime": 1571903621,
"Alias": "test-gz01",
"KeyUsage": "ENCRYPT_DECRYPT",
"DeletionDate": 0,
"KeyState": "Enabled",
"Type": 4,
"Owner": "user"
},
"RequestId": "608f514c-3279-44ea-8e4c-c00b69e3521c"
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백