API 名称 | API 描述 | 说明 |
ListKeys | 列出账号下的密钥列表(KeyId 信息) | |
DescribeKey | 查看指定 CMK 的详细信息,信息包括用户主密钥 CMK 名称、ID、状态、所属地区等密钥详情 |
tccli kms ListKeys --region ap-guangzhou --Limit 5
{"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"}
tccli kms DescribeKey --region ap-guangzhou --KeyId 521xxxxx-xxxx-xxxx-xxxx-52xxxxd4
{"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"}
本页内容是否解决了您的问题?