tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/argparser.py +1 -1
- tccli/command.py +2 -2
- tccli/configure.py +46 -1
- tccli/credentials.py +25 -0
- tccli/main.py +6 -2
- tccli/plugins/sso/__init__.py +61 -0
- tccli/plugins/sso/configs.py +4 -0
- tccli/plugins/sso/configure.py +45 -0
- tccli/plugins/sso/login.py +144 -0
- tccli/plugins/sso/logout.py +21 -0
- tccli/plugins/sso/terminal.py +161 -0
- tccli/plugins/sso/texts.py +40 -0
- tccli/services/__init__.py +6 -3
- tccli/services/acp/v20220105/api.json +7 -7
- tccli/services/acp/v20220105/examples.json +2 -2
- tccli/services/aiart/v20221229/api.json +29 -29
- tccli/services/aiart/v20221229/examples.json +8 -8
- tccli/services/apigateway/v20180808/api.json +18 -17
- tccli/services/apigateway/v20180808/examples.json +12 -12
- tccli/services/apm/v20210622/api.json +118 -4
- tccli/services/asr/v20190614/api.json +21 -20
- tccli/services/asr/v20190614/examples.json +13 -13
- tccli/services/autoscaling/v20180419/api.json +371 -309
- tccli/services/autoscaling/v20180419/examples.json +17 -17
- tccli/services/batch/v20170312/api.json +7 -7
- tccli/services/bda/v20200324/api.json +39 -31
- tccli/services/bda/v20200324/examples.json +9 -9
- tccli/services/bh/__init__.py +4 -0
- tccli/services/bh/bh_client.py +3428 -0
- tccli/services/bh/v20230418/api.json +8180 -0
- tccli/services/bh/v20230418/examples.json +519 -0
- tccli/services/bi/v20220105/api.json +80 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +330 -24
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +223 -18
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/btoe/v20210514/api.json +4 -4
- tccli/services/btoe/v20210514/examples.json +2 -2
- tccli/services/ca/v20230228/api.json +60 -0
- tccli/services/cam/v20190116/api.json +11 -11
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +200 -188
- tccli/services/cbs/v20170312/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +541 -325
- tccli/services/ccc/v20200210/examples.json +26 -18
- tccli/services/cdb/cdb_client.py +13 -13
- tccli/services/cdb/v20170320/api.json +308 -274
- tccli/services/cdb/v20170320/examples.json +38 -38
- tccli/services/cdc/v20201214/api.json +283 -270
- tccli/services/cdc/v20201214/examples.json +26 -26
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cds/v20180420/api.json +82 -76
- tccli/services/cds/v20180420/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +54 -4
- tccli/services/cdz/v20221123/api.json +41 -5
- tccli/services/cfg/v20210820/api.json +31 -0
- tccli/services/cfs/v20190719/api.json +89 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +1895 -2011
- tccli/services/cfw/v20190904/examples.json +175 -171
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/ckafka/v20190819/api.json +104 -75
- tccli/services/clb/v20180317/api.json +48 -26
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +5 -1
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +254 -211
- tccli/services/cloudaudit/v20190319/examples.json +19 -19
- tccli/services/cloudstudio/v20230508/api.json +38 -37
- tccli/services/cloudstudio/v20230508/examples.json +4 -4
- tccli/services/cls/cls_client.py +216 -4
- tccli/services/cls/v20201016/api.json +935 -147
- tccli/services/cls/v20201016/examples.json +43 -5
- tccli/services/csip/v20221121/api.json +2566 -2386
- tccli/services/csip/v20221121/examples.json +108 -108
- tccli/services/cvm/v20170312/api.json +191 -112
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/cwp/cwp_client.py +4 -110
- tccli/services/cwp/v20180228/api.json +6498 -6252
- tccli/services/cwp/v20180228/examples.json +372 -412
- tccli/services/cynosdb/v20190107/api.json +170 -110
- tccli/services/cynosdb/v20190107/examples.json +91 -91
- tccli/services/dasb/v20191018/api.json +859 -637
- tccli/services/dasb/v20191018/examples.json +101 -101
- tccli/services/dcdb/dcdb_client.py +114 -61
- tccli/services/dcdb/v20180411/api.json +141 -7
- tccli/services/dcdb/v20180411/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +21 -11
- tccli/services/dnspod/dnspod_client.py +417 -46
- tccli/services/dnspod/v20210323/api.json +751 -30
- tccli/services/dnspod/v20210323/examples.json +62 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/ecm/v20190719/api.json +2 -2
- tccli/services/emr/v20190103/api.json +339 -114
- tccli/services/emr/v20190103/examples.json +64 -82
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +550 -0
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +192 -38
- tccli/services/ess/v20201111/examples.json +35 -9
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +287 -60
- tccli/services/essbasic/v20210526/examples.json +58 -18
- tccli/services/facefusion/v20181201/api.json +47 -45
- tccli/services/facefusion/v20181201/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +54 -48
- tccli/services/facefusion/v20220927/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +497 -496
- tccli/services/faceid/v20180301/examples.json +219 -101
- tccli/services/fmu/v20191213/api.json +59 -67
- tccli/services/fmu/v20191213/examples.json +22 -22
- tccli/services/ft/v20200304/api.json +53 -57
- tccli/services/ft/v20200304/examples.json +14 -14
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/gme/v20180711/api.json +21 -11
- tccli/services/gme/v20180711/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +116 -9
- tccli/services/hai/v20230812/examples.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +436 -12
- tccli/services/hunyuan/v20230901/api.json +1482 -118
- tccli/services/hunyuan/v20230901/examples.json +82 -18
- tccli/services/iai/v20180301/api.json +23 -19
- tccli/services/iai/v20180301/examples.json +2 -2
- tccli/services/iai/v20200303/api.json +530 -511
- tccli/services/iai/v20200303/examples.json +116 -86
- tccli/services/ig/__init__.py +4 -0
- tccli/services/ig/ig_client.py +195 -0
- tccli/services/ig/v20210518/api.json +83 -0
- tccli/services/ig/v20210518/examples.json +13 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +662 -413
- tccli/services/ioa/v20220601/examples.json +24 -10
- tccli/services/iotexplorer/v20190423/api.json +73 -13
- tccli/services/iotexplorer/v20190423/examples.json +3 -3
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20191126/api.json +256 -24
- tccli/services/iotvideo/v20191126/examples.json +19 -3
- tccli/services/iotvideo/v20201215/api.json +1 -1
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +2 -2
- tccli/services/iss/iss_client.py +69 -122
- tccli/services/iss/v20230517/api.json +10 -54
- tccli/services/iss/v20230517/examples.json +0 -14
- tccli/services/kms/v20190118/api.json +301 -268
- tccli/services/kms/v20190118/examples.json +45 -51
- tccli/services/lcic/lcic_client.py +159 -0
- tccli/services/lcic/v20220817/api.json +273 -1
- tccli/services/lcic/v20220817/examples.json +24 -0
- tccli/services/lighthouse/v20200324/api.json +56 -0
- tccli/services/live/live_client.py +159 -0
- tccli/services/live/v20180801/api.json +279 -9
- tccli/services/live/v20180801/examples.json +24 -0
- tccli/services/lke/v20231130/api.json +17 -17
- tccli/services/lke/v20231130/examples.json +19 -25
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/market/v20191010/api.json +3 -3
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mmps/v20200710/api.json +47 -47
- tccli/services/mmps/v20200710/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +10 -12
- tccli/services/monitor/v20180724/api.json +46 -19
- tccli/services/mps/v20190612/api.json +282 -5
- tccli/services/mps/v20190612/examples.json +25 -1
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mrs/v20200910/api.json +72 -34
- tccli/services/mrs/v20200910/examples.json +2 -2
- tccli/services/ms/v20180408/api.json +535 -506
- tccli/services/ms/v20180408/examples.json +25 -25
- tccli/services/oceanus/v20190422/api.json +130 -0
- tccli/services/ocr/ocr_client.py +232 -20
- tccli/services/ocr/v20181119/api.json +2263 -758
- tccli/services/ocr/v20181119/examples.json +200 -180
- tccli/services/omics/v20221128/api.json +614 -553
- tccli/services/omics/v20221128/examples.json +9 -9
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +464 -4
- tccli/services/organization/v20210331/examples.json +49 -1
- tccli/services/partners/v20180321/api.json +244 -234
- tccli/services/partners/v20180321/examples.json +19 -19
- tccli/services/privatedns/privatedns_client.py +428 -4
- tccli/services/privatedns/v20201028/api.json +815 -11
- tccli/services/privatedns/v20201028/examples.json +64 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rce/rce_client.py +53 -0
- tccli/services/rce/v20201103/api.json +146 -0
- tccli/services/rce/v20201103/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +42 -42
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +569 -15
- tccli/services/scf/v20180416/examples.json +47 -1
- tccli/services/smop/v20201203/api.json +46 -42
- tccli/services/smop/v20201203/examples.json +2 -2
- tccli/services/soe/v20180724/api.json +10 -10
- tccli/services/sqlserver/v20180328/api.json +21 -8
- tccli/services/sqlserver/v20180328/examples.json +5 -5
- tccli/services/ssl/v20191205/api.json +98 -5
- tccli/services/ssm/v20190923/api.json +292 -231
- tccli/services/ssm/v20190923/examples.json +42 -42
- tccli/services/tat/v20201028/api.json +124 -122
- tccli/services/tat/v20201028/examples.json +24 -30
- tccli/services/tchd/v20230306/api.json +5 -5
- tccli/services/tchd/v20230306/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tcss/v20201101/api.json +1984 -1437
- tccli/services/tcss/v20201101/examples.json +350 -368
- tccli/services/tdmq/v20200217/api.json +603 -464
- tccli/services/tdmq/v20200217/examples.json +105 -105
- tccli/services/tds/v20220801/api.json +4 -4
- tccli/services/tem/v20210701/api.json +429 -372
- tccli/services/tem/v20210701/examples.json +85 -85
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1029 -124
- tccli/services/teo/v20220901/examples.json +84 -8
- tccli/services/thpc/v20230321/api.json +5 -5
- tccli/services/tke/tke_client.py +270 -58
- tccli/services/tke/v20180525/api.json +79 -27
- tccli/services/tke/v20180525/examples.json +9 -1
- tccli/services/tke/v20220501/api.json +176 -0
- tccli/services/tke/v20220501/examples.json +24 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +38 -8
- tccli/services/trp/v20210515/api.json +86 -74
- tccli/services/trp/v20210515/examples.json +65 -65
- tccli/services/trro/v20220325/api.json +72 -71
- tccli/services/trro/v20220325/examples.json +8 -8
- tccli/services/trtc/trtc_client.py +8 -61
- tccli/services/trtc/v20190722/api.json +293 -52
- tccli/services/trtc/v20190722/examples.json +3 -11
- tccli/services/tse/tse_client.py +110 -4
- tccli/services/tse/v20201207/api.json +122 -7
- tccli/services/tse/v20201207/examples.json +25 -9
- tccli/services/vclm/v20240523/api.json +225 -82
- tccli/services/vclm/v20240523/examples.json +13 -19
- tccli/services/vod/v20180717/api.json +431 -4
- tccli/services/vod/v20180717/examples.json +25 -5
- tccli/services/vod/v20240718/api.json +11 -11
- tccli/services/vod/v20240718/examples.json +4 -4
- tccli/services/vod/vod_client.py +53 -0
- tccli/services/vpc/v20170312/api.json +1195 -892
- tccli/services/vpc/v20170312/examples.json +84 -68
- tccli/services/vpc/vpc_client.py +168 -62
- tccli/services/waf/v20180125/api.json +2611 -2187
- tccli/services/waf/v20180125/examples.json +224 -284
- tccli/services/waf/waf_client.py +225 -119
- tccli/services/wav/v20210129/api.json +48 -48
- tccli/services/wav/v20210129/examples.json +4 -4
- tccli/services/wedata/v20210820/api.json +1595 -25
- tccli/services/wedata/v20210820/examples.json +44 -4
- tccli/services/wedata/wedata_client.py +265 -0
- tccli/services/weilingwith/v20230427/api.json +6 -6
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- tccli/sso.py +229 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -11,16 +11,16 @@
|
|
11
11
|
"AsymmetricRsaDecrypt": [
|
12
12
|
{
|
13
13
|
"document": "",
|
14
|
-
"input": "
|
15
|
-
"output": "{\n \"Response\": {\n \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AsymmetricRsaDecrypt\n<公共请求参数>\n\n{\n \"KeyId\": \"edf72a11-69d0-11ef-9841-52540089bc41\",\n \"Ciphertext\": \"vlnJ/RrQE0mXiHGoya/xpKQJHkd5ImvdXug306BreYL60Kb8ucqQ0eurf5mX/mKZDSTGr8FDVK8b4HOopj7xuDQIzegObtvK2VGbXSaihI/fNDkmoWcgBF/V91scYJtrkwoISnvqsxcl9NeAp+H2A6E3vTiDpQK5oVb3OTG39FoYEvfbRNfef+iukiRiqOL7VGSPmx1nThi6Cd4XGBFzB0tvtmP2SnZhZuzryj+jnHVAz2bIuYP8M4OJYkk5muuACWxLGLQj5sh2FqIpbzT4nti4fOD4ieHnf/qCw/9yyiWUED67oelFKaBJEWGq3PT7bGtH4Sxx8SKx2BCBsR95sA==\",\n \"Algorithm\": \"RSAES_OAEP_SHA_256\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"KeyId\": \"edf72a11-69d0-11ef-9841-52540089bc41\",\n \"Plaintext\": \"dGVzdAo=\",\n \"RequestId\": \"8e7c44ba-917c-4e85-a626-a07806e9b7c9\"\n }\n}",
|
16
16
|
"title": "非对称密钥RSA解密"
|
17
17
|
}
|
18
18
|
],
|
19
19
|
"AsymmetricSm2Decrypt": [
|
20
20
|
{
|
21
21
|
"document": "",
|
22
|
-
"input": "
|
23
|
-
"output": "{\n \"Response\": {\n \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AsymmetricSm2Decrypt\n<公共请求参数>\n\n{\n \"KeyId\": \"fce1015e-9735-11ef-be86-6abd61583d2d\",\n \"Ciphertext\": \"MG0CICuRefoqE7g5bpsZNYq+9d909cZl7nFuYFHiDhOqz8GAAiEA4lqmt3nGqpbu0qhbWsStkexXA2cA12nVWjgruFP5WKkEIG6JwYejm9gEr7CPOOhbirsGhga3W7J6C7kwdmf6VebRBATH1o2G\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"KeyId\": \"fce1015e-9735-11ef-be86-6abd61583d2d\",\n \"Plaintext\": \"dGVzdA==\",\n \"RequestId\": \"e2e0945e-7e90-421a-bfc8-64999d789283\"\n }\n}",
|
24
24
|
"title": "非对称密钥Sm2解密"
|
25
25
|
}
|
26
26
|
],
|
@@ -51,24 +51,24 @@
|
|
51
51
|
"CreateKey": [
|
52
52
|
{
|
53
53
|
"document": "创建用户管理数据密钥的主密钥CMK(Custom Master Key),通过CMK后续可以调用其他接口诸如创建数据密钥、加解密等操作。",
|
54
|
-
"input": "
|
55
|
-
"output": "{\n \"Response\": {\n \"
|
54
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateKey\n<公共请求参数>\n\n{\n \"Description\": \"test描述\",\n \"Alias\": \"test8-lzc\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"Type\": 1,\n \"Tags\": [\n {\n \"TagKey\": \"env\",\n \"TagValue\": \"dev\"\n }\n ]\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Alias\": \"test8-lzc\",\n \"CreateTime\": 1730347170,\n \"Description\": \"test描述\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"87ff856e-973c-11ef-947b-525400d834e5\",\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"RequestId\": \"c44aba41-015a-45aa-9e55-1a08ac9d1d78\",\n \"TagCode\": 0,\n \"TagMsg\": \"ok\"\n }\n}",
|
56
56
|
"title": "创建主密钥示例"
|
57
57
|
}
|
58
58
|
],
|
59
59
|
"CreateWhiteBoxKey": [
|
60
60
|
{
|
61
61
|
"document": "",
|
62
|
-
"input": "
|
63
|
-
"output": "{\n \"Response\": {\n \"
|
62
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWhiteBoxKey\n<公共请求参数>\n\n{\n \"Alias\": \"test-lzcw2\",\n \"Description\": \"白盒测试\",\n \"Algorithm\": \"SM4\"\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"DecryptKey\": \"AACAAAAA0/BswblZOBqsOJY/ST****x9scSvWUFbSG/tGBrMpzuCndKomu/Ig4/G\",\n \"EncryptKey\": \"AACAAAAA0/BswblZO****VTtExsaGx9scSvWUFbSG/tGBrMpzuCndKomu/Ig4/G\",\n \"KeyId\": \"9fe1e083-9807-11ef-8d67-5254008ae90d\",\n \"RequestId\": \"af2946f2-0a41-4d40-9e6e-b6e1e3eb5447\",\n \"TagCode\": 0,\n \"TagMsg\": \"no tags to save\"\n }\n}",
|
64
64
|
"title": "创建白盒密钥"
|
65
65
|
}
|
66
66
|
],
|
67
67
|
"Decrypt": [
|
68
68
|
{
|
69
69
|
"document": "用于对密文解密",
|
70
|
-
"input": "
|
71
|
-
"output": "{\n \"Response\": {\n \"KeyId\": \"
|
70
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: Decrypt\n<公共请求参数>\n\n{\n \"CiphertextBlob\": \"GPJUsGlmPcSjHKIktXGyzn33yestz+7NteW36M6FuL8hPfJ1xVfdO6Akr8sF69x3yBXMwto4njumJMIsi9WKow==-k-XqqalxTyNKIC1rITRePFGQ==-k-GqsANzNxvjjXhKwJAOY85vxYYm/2RtsCXRq7Q1iWbCAoeAtZ\",\n \"EncryptionContext\": \"{\\\"key1\\\":\\\"value1\\\"}\",\n \"EncryptionAlgorithm\": \"SM2\"\n}",
|
71
|
+
"output": "{\n \"Response\": {\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"Plaintext\": \"dGVzdAo=\",\n \"RequestId\": \"4c857b16-e977-4086-b33a-532613f03abd\"\n }\n}",
|
72
72
|
"title": "解密接口示例"
|
73
73
|
}
|
74
74
|
],
|
@@ -91,22 +91,16 @@
|
|
91
91
|
"DescribeKey": [
|
92
92
|
{
|
93
93
|
"document": "获取指定CMK的属性详情信息。",
|
94
|
-
"input": "
|
95
|
-
"output": "{\n \"Response\": {\n \"KeyMetadata\": {\n \"
|
94
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKey\n<公共请求参数>\n\n{\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\"\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"KeyMetadata\": {\n \"Alias\": \"test11-lzc\",\n \"CreateTime\": 1730357927,\n \"CreatorUin\": 700001224419,\n \"DeletionDate\": 0,\n \"Description\": \"倒入外部密钥\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"NextRotateTime\": 1761893927,\n \"Origin\": \"EXTERNAL\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001224419/93866e69-9755-11ef-8e65-52540089bc41\",\n \"Type\": 4,\n \"ValidTo\": 0\n },\n \"RequestId\": \"5575a949-8eda-497f-bee3-9d8a07763747\"\n }\n}",
|
96
96
|
"title": "获取主密钥属性示例"
|
97
|
-
},
|
98
|
-
{
|
99
|
-
"document": "此CMK被计划删除",
|
100
|
-
"input": "https://kms.tencentcloudapi.com/?Action=DescribeKey\n&KeyId=23e80852-1e38-11e9-b129-5cb9019b4b02\n&<公共请求参数>",
|
101
|
-
"output": "{\n \"Response\": {\n \"KeyMetadata\": {\n \"KeyId\": \"23e80852-1e38-11e9-b129-5cb9019b4b02\",\n \"Alias\": \"myalias\",\n \"CreateTime\": 1548210729,\n \"Description\": \"test cmk\",\n \"KeyState\": \"PendingDelete\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"Type\": 1,\n \"CreatorUin\": 1001,\n \"KeyRotationEnabled\": true,\n \"Owner\": \"user\",\n \"NextRotateTime\": 1553151489,\n \"DeletionDate\": 1560580015,\n \"Origin\": \"TENCENT_KMS\",\n \"ValidTo\": 0\n },\n \"RequestId\": \"1b580852-1e38-11e9-b129-5cb9019b4b00\"\n }\n}",
|
102
|
-
"title": "获取被计划删除主密钥属性示例"
|
103
97
|
}
|
104
98
|
],
|
105
99
|
"DescribeKeys": [
|
106
100
|
{
|
107
101
|
"document": "获取多个主密钥属性。",
|
108
|
-
"input": "
|
109
|
-
"output": "{\n \"Response\": {\n \"KeyMetadatas\": [\n {\n \"
|
102
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKeys\n<公共请求参数>\n\n{\n \"KeyIds\": [\n \"87ff856e-973c-11ef-947b-525400d834e5\",\n \"93866e69-9755-11ef-8e65-52540089bc41\"\n ]\n}",
|
103
|
+
"output": "{\n \"Response\": {\n \"KeyMetadatas\": [\n {\n \"Alias\": \"test8-lzc\",\n \"CreateTime\": 1730347170,\n \"CreatorUin\": 700001224419,\n \"DeletionDate\": 0,\n \"Description\": \"test描述\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"87ff856e-973c-11ef-947b-525400d834e5\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"NextRotateTime\": 1761883170,\n \"Origin\": \"TENCENT_KMS\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001224419/87ff856e-973c-11ef-947b-525400d834e5\",\n \"Type\": 4,\n \"ValidTo\": 0\n },\n {\n \"Alias\": \"test11-lzc\",\n \"CreateTime\": 1730357927,\n \"CreatorUin\": 700001224419,\n \"DeletionDate\": 0,\n \"Description\": \"倒入外部密钥\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"NextRotateTime\": 1761893927,\n \"Origin\": \"EXTERNAL\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001224419/93866e69-9755-11ef-8e65-52540089bc41\",\n \"Type\": 4,\n \"ValidTo\": 0\n }\n ],\n \"RequestId\": \"05278c40-eb6c-473d-a1e6-00a8177f9c6a\"\n }\n}",
|
110
104
|
"title": "获取多个主密钥属性"
|
111
105
|
}
|
112
106
|
],
|
@@ -114,31 +108,31 @@
|
|
114
108
|
{
|
115
109
|
"document": "",
|
116
110
|
"input": "https://kms.tencentcloudapi.com/?Action=DescribeWhiteBoxDecryptKey\n&KeyId=244dab8c-6dad-11ea-80c6-5254006d0810\n&<公共请求参数>",
|
117
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"8788b5f3-8eaa-48a8-915a-b7c52f57065e\",\n \"DecryptKey\": \"AAAAACL4R9T1M3r3/S9XpMbUbwHJUKbq/tll0Bop7LG90lHpj+
|
111
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"8788b5f3-8eaa-48a8-915a-b7c52f57065e\",\n \"DecryptKey\": \"AAAAACL4R9T1M3r3/S9XpMbUbwHJUKbq/tll0Bop7LG90lHpj+DKmOiEE0Rs5rRrMN*****qaf0ot57NzfuWG92oAe9HQ7bDCcfuBN7nXX+QipQIBxD/LVWk7zrHtLD/TJfAAoTuE7QKc/lSTOpI1xkTxJq/AFLd5K9EaBN7kpAkAsponZc20Tpk+KlyWE3NHdQrION9fsxtUBl5tz/l6T1j49SR5J2axZ2nnkA3o7L1WIGiv7r3tkd+\"\n }\n}",
|
118
112
|
"title": "获取白盒解密密钥"
|
119
113
|
}
|
120
114
|
],
|
121
115
|
"DescribeWhiteBoxDeviceFingerprints": [
|
122
116
|
{
|
123
117
|
"document": "",
|
124
|
-
"input": "
|
125
|
-
"output": "{\n \"Response\": {\n \"
|
118
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWhiteBoxDeviceFingerprints\n<公共请求参数>\n\n{\n \"KeyId\": \"5551ef2e-6742-11ef-8133-525400b2f623\"\n}",
|
119
|
+
"output": "{\n \"Response\": {\n \"DeviceFingerprints\": [\n {\n \"Description\": \"test1\",\n \"Identity\": \"0177ebba-5ad6930a52d808***03-ddfd218bab945f-0c275b7f7d2c8c68\"\n }\n ],\n \"RequestId\": \"5dc1c93f-8864-4525-a896-f56019aae02b\"\n }\n}",
|
126
120
|
"title": "获取指定密钥的设备指纹列表"
|
127
121
|
}
|
128
122
|
],
|
129
123
|
"DescribeWhiteBoxKey": [
|
130
124
|
{
|
131
125
|
"document": "",
|
132
|
-
"input": "
|
133
|
-
"output": "{\n \"Response\": {\n \"
|
126
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWhiteBoxKey\n<公共请求参数>\n\n{\n \"KeyId\": \"5551ef2e-6742-11ef-8133-525400b2f623\"\n}",
|
127
|
+
"output": "{\n \"Response\": {\n \"KeyInfo\": {\n \"Algorithm\": \"SM4\",\n \"Alias\": \"lzc2\",\n \"CreateTime\": 1725072007,\n \"CreatorUin\": 700001224419,\n \"DecryptKey\": \"AACAAAAACMD5WLv****+rt0t6Qgamj/FwS6qYFZWwp/M0wM00KwxUSp8P\",\n \"Description\": \"2\",\n \"DeviceFingerprintBind\": false,\n \"EncryptKey\": \"AACAAAAACMD5WLvPb4qY***rt0t6Qgamj/FwS6qYFZWwp/M0wM00KwxUSp8P\",\n \"KeyId\": \"5551ef2e-6742-11ef-8133-525400b2f623\",\n \"OwnerUin\": 100000007998,\n \"ResourceId\": \"creatorUin/700001224419/5551ef2e-6742-11ef-8133-525400b2f623\",\n \"Status\": \"Enabled\"\n },\n \"RequestId\": \"13b3e0ed-7d5e-4c6c-99ba-b334f02d7573\"\n }\n}",
|
134
128
|
"title": "展示白盒密钥的信息"
|
135
129
|
}
|
136
130
|
],
|
137
131
|
"DescribeWhiteBoxKeyDetails": [
|
138
132
|
{
|
139
133
|
"document": "",
|
140
|
-
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWhiteBoxKeyDetails\n<公共请求参数>\n\n{}",
|
141
|
-
"output": "{\n \"Response\": {\n \"KeyInfos\": [\n {\n \"
|
134
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWhiteBoxKeyDetails\n<公共请求参数>\n\n{\n \"KeyStatus\": 1,\n \"Offset\": 0,\n \"Limit\": 1,\n \"TagFilters\": [\n {\n \"TagKey\": \"env\",\n \"TagValue\": [\n \"dev\"\n ]\n }\n ]\n}",
|
135
|
+
"output": "{\n \"Response\": {\n \"KeyInfos\": [\n {\n \"Algorithm\": \"SM4\",\n \"Alias\": \"testKey1\",\n \"CreateTime\": 1730441467,\n \"CreatorUin\": 700001224419,\n \"DecryptKey\": \"AACAAAAA3iht+5vrtKBnOagzrjeMFY8GZnRWIOgNcaKtY4RzWUmt0chcuELNIt6ZADmXSEdfndSWfAKizW1F4rnp2fncVQppWNlDjSwY6F/RcSCmU0/aDx3Yc2UIq/zM1jsLFX29CUBQD2a1pNzwepAl1A5HbxLYnrwVdB8Z364d9CyNd5YhVUKo4a8vmx0KA66SaLFSlzpWNZWAb+kZGrJDWMMRqLYigukAYDPsPYXMAb/MIoW5ywicGiY04vI59J1LVPezyMhi5ydTHuImNEcgYw2Tt07yG7LiDFVkWo5iCXXX9/zu+9eXdX93WGz20oDDBwpcFsKMk9tXvVhx7o9TCSgT7VERIQOWQKTH9iDb5RUyRPqPvyV1KEtbhTx/AlnkZEIdOM411JIvNucskvES4RaZ/MS+wxhkUYnFjL6GMg4MLepB87QaA7zivBKc\",\n \"Description\": \"测试描述信息\",\n \"DeviceFingerprintBind\": false,\n \"EncryptKey\": \"AACAAAAA3iht+5vrtKBnOagzrjeMFY8GZnRWIOgNcaKtY4RzWUmt0chcuELNIt6ZADmXSEdfndSWfAKizW1F4rnp2fncVQppWNlDjSwY6F/RcSCmU0/aDx3Yc2UIq/zM1jsLFX29CUBQD2a1pNzwepAl1A5HbxLYnrwVdB8Z364d9CyNd5YhVUKo4a8vmx0KA66SaLFSlzpWNZWAb+kZGrJDWMMRqLYigukAYDPsPYXMAb/MIoW5ywicGiY04vI59J1LVPezyMhi5ydTHuImNEcgYw2Tt07yG7LiDFVkWo5iCXXX9/zu+9eXdX93WGz20oDDBwpcFsKMk9tXvVhx7o9TCSgT7VERIQOWQKTH9iDb5RUyRPqPvyV1KEtbhTx/AlnkZEIdOM411JIvNucskvES4RaZ/MS+wxhkUYnFjL6GMg4MLepB87QaA7zivBKc\",\n \"KeyId\": \"14a9885b-9818-11ef-8d67-5254008ae90d\",\n \"OwnerUin\": 100000007998,\n \"ResourceId\": \"creatorUin/700001224419/14a9885b-9818-11ef-8d67-5254008ae90d\",\n \"Status\": \"Enabled\"\n }\n ],\n \"RequestId\": \"052e4c07-795b-4aa1-8b8f-b968d3792dea\",\n \"TotalCount\": 4\n }\n}",
|
142
136
|
"title": "获取白盒密钥列表"
|
143
137
|
}
|
144
138
|
],
|
@@ -233,24 +227,24 @@
|
|
233
227
|
"Encrypt": [
|
234
228
|
{
|
235
229
|
"document": "使用CMK对小于4KB的数据加密。",
|
236
|
-
"input": "
|
237
|
-
"output": "{\n \"Response\": {\n \"
|
230
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: Encrypt\n<公共请求参数>\n\n{\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"Plaintext\": \"dGVzdAo=\",\n \"EncryptionContext\": \"{\\\"key1\\\":\\\"value1\\\"}\"\n}",
|
231
|
+
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"GPJUsGlmPcSjHKIktXGyzn33yestz+7NteW36M6FuL8hPfJ1xVfdO6Akr8sF69x3yBXMwto4njumJMIsi9WKow==-k-XqqalxTyNKIC1rITRePFGQ==-k-GqsANzNxvjjXhKwJAOY85vxYYm/2RtsCXRq7Q1iWbCAoeAtZ\",\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"RequestId\": \"017f4b2a-4ae8-4d2c-a0d2-ec15e07d3deb\"\n }\n}",
|
238
232
|
"title": "加密接口示例"
|
239
233
|
}
|
240
234
|
],
|
241
235
|
"EncryptByWhiteBox": [
|
242
236
|
{
|
243
237
|
"document": "",
|
244
|
-
"input": "
|
245
|
-
"output": "{\n \"Response\": {\n \"
|
238
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EncryptByWhiteBox\n<公共请求参数>\n\n{\n \"KeyId\": \"738c7598-6a69-11ef-9d7c-525400dc620c\",\n \"InitializationVector\": \"3t+gDx/YmtnJuokqAg+cOw==\",\n \"PlainText\": \"dGVzdAo=\"\n}",
|
239
|
+
"output": "{\n \"Response\": {\n \"CipherText\": \"StE4p5N11zwKybR3REtaag==\",\n \"InitializationVector\": \"3t+gDx/YmtnJuokqAg+cOw==\",\n \"RequestId\": \"a77183bf-8a95-4167-bd4a-84f02df0d4da\"\n }\n}",
|
246
240
|
"title": "使用白盒密钥进行加密"
|
247
241
|
}
|
248
242
|
],
|
249
243
|
"GenerateDataKey": [
|
250
244
|
{
|
251
245
|
"document": "使用指定的CMK生成Datakey。",
|
252
|
-
"input": "
|
253
|
-
"output": "{\n \"Response\": {\n \"
|
246
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GenerateDataKey\n<公共请求参数>\n\n{\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"KeySpec\": \"AES_256\",\n \"NumberOfBytes\": 32,\n \"EncryptionContext\": \"{\\\"key1\\\":\\\"value1\\\"}\",\n \"EncryptionPublicKey\": \"-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoEcz****srLVydfJiHQuh2Jr9lMspgK58UVMJTvQCAU+Hztyhd6Aw==\\n-----END PUBLIC KEY-----\",\n \"EncryptionAlgorithm\": \"SM2\"\n}",
|
247
|
+
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"GPJUsGlmPcSjHKIktXGyzn33yestz+7NteW36M6FuL8hPfJ1xVfdO6Akr8sF69x3yBXMwto4njumJMIsi9WKow==-k-XqqalxTyNKIC1rITRePFGQ==-k-xAL9z9eXIHV/p+WT1RsHP3dm6f43bkomXjwmvWdMXH+JQoFORTThfXgcRh1f9lPNLENK4+fCOiQVG1VvLdA0RvcuRvU=\",\n \"KeyId\": \"93866e69-9755-11ef-8e65-52540089bc41\",\n \"Plaintext\": \"q+EouJ/tGeiZIo9/tIl2baxQOBFxcN0PNn7F6EIEvpDR6kvQmHohD5PTbUCKPkct6K8jOiYpbuaWZthxco0phMRSE4+HpB17rX4jmlW8pw3eHWOZo8yRyq/c7RVVo0+DtZofszwhMirQyjcBTJWhLt7xywtE5zqhDjngeEktAEw=\",\n \"RequestId\": \"044e823a-7a0c-4603-b03c-e99be5df998d\"\n }\n}",
|
254
248
|
"title": "生成数据密钥示例"
|
255
249
|
}
|
256
250
|
],
|
@@ -321,16 +315,16 @@
|
|
321
315
|
"ListKeyDetail": [
|
322
316
|
{
|
323
317
|
"document": "",
|
324
|
-
"input": "
|
325
|
-
"output": "{\n \"Response\": {\n \"
|
318
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListKeyDetail\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"Role\": 0,\n \"OrderType\": 0,\n \"KeyState\": 0,\n \"SearchKeyAlias\": \"Weijiali\",\n \"Origin\": \"TENCENT_KMS\",\n \"KeyUsage\": \"ALL\",\n \"TagFilters\": [\n {\n \"TagKey\": \"env\",\n \"TagValue\": [\n \"dev\"\n ]\n }\n ],\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\"\n}",
|
319
|
+
"output": "{\n \"Response\": {\n \"KeyMetadatas\": [\n {\n \"Alias\": \"Weijiali_test_000000005\",\n \"CreateTime\": 1725354067,\n \"CreatorUin\": 700001028674,\n \"DeletionDate\": 0,\n \"Description\": \"weijiali_test_00000000000005\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"0ed49d3e-69d3-11ef-9841-52540089bc41\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ASYMMETRIC_SIGN_VERIFY_SM2\",\n \"NextRotateTime\": 1756890067,\n \"Origin\": \"TENCENT_KMS\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001028674/0ed49d3e-69d3-11ef-9841-52540089bc41\",\n \"Type\": 4,\n \"ValidTo\": 0\n },\n {\n \"Alias\": \"Weijiali_test_00000000000004\",\n \"CreateTime\": 1725354055,\n \"CreatorUin\": 700001028674,\n \"DeletionDate\": 0,\n \"Description\": \"Weijiali_test_00000000000004\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"07ad2031-69d3-11ef-9841-52540089bc41\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ASYMMETRIC_DECRYPT_SM2\",\n \"NextRotateTime\": 1756890055,\n \"Origin\": \"TENCENT_KMS\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001028674/07ad2031-69d3-11ef-9841-52540089bc41\",\n \"Type\": 4,\n \"ValidTo\": 0\n },\n {\n \"Alias\": \"weijiali_test_00000000000003\",\n \"CreateTime\": 1725354040,\n \"CreatorUin\": 700001028674,\n \"DeletionDate\": 0,\n \"Description\": \"weijiali_test_00000000000003\",\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\",\n \"KeyId\": \"fea98175-69d2-11ef-910d-525400d834e5\",\n \"KeyRotationEnabled\": false,\n \"KeyState\": \"Enabled\",\n \"KeyUsage\": \"ENCRYPT_DECRYPT\",\n \"NextRotateTime\": 1756890040,\n \"Origin\": \"TENCENT_KMS\",\n \"Owner\": \"user\",\n \"ResourceId\": \"creatorUin/700001028674/fea98175-69d2-11ef-910d-525400d834e5\",\n \"Type\": 4,\n \"ValidTo\": 0\n }\n ],\n \"RequestId\": \"57c12411-dd1a-4f3c-aaff-aec49a442b6c\",\n \"TotalCount\": 3\n }\n}",
|
326
320
|
"title": "获取主密钥列表详情"
|
327
321
|
}
|
328
322
|
],
|
329
323
|
"ListKeys": [
|
330
324
|
{
|
331
325
|
"document": "获取主密钥列表",
|
332
|
-
"input": "
|
333
|
-
"output": "{\n \"Response\": {\n \"
|
326
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListKeys\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 2,\n \"Role\": 0,\n \"HsmClusterId\": \"cls-hsm-3dflmo9g\"\n}",
|
327
|
+
"output": "{\n \"Response\": {\n \"Keys\": [\n {\n \"KeyId\": \"515d337d-70b4-11ef-bc87-02ac442a5a1f\"\n },\n {\n \"KeyId\": \"0ed49d3e-69d3-11ef-9841-52540089bc41\"\n }\n ],\n \"RequestId\": \"28c0e45c-c034-4d8b-b006-f018aa88597d\",\n \"TotalCount\": 14\n }\n}",
|
334
328
|
"title": "获取主密钥列表示例"
|
335
329
|
}
|
336
330
|
],
|
@@ -345,40 +339,40 @@
|
|
345
339
|
"PostQuantumCryptoDecrypt": [
|
346
340
|
{
|
347
341
|
"document": "使用后量子密码算法解密。",
|
348
|
-
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoDecrypt\n<公共请求参数>\n\n{\n \"CiphertextBlob\": \"
|
349
|
-
"output": "{\n \"Response\": {\n \"KeyId\": \"
|
342
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoDecrypt\n<公共请求参数>\n\n{\n \"CiphertextBlob\": \"Ade234dasdeEWdGVzdCUyMHBsYWlJJlIHL\",\n \"EncryptionPublicKey\": \"-----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYI******VWhjH2dhziiH/NWCkk3FjIhjIwqjmnWhmUTg== -----END PUBLIC KEY----- \",\n \"EncryptionAlgorithm\": \"SM2\"\n}",
|
343
|
+
"output": "{\n \"Response\": {\n \"KeyId\": \"23e80852-1e38-11e9-b129-5cb9019b4b01\",\n \"PlainText\": \"dGVzdCUyMHBsYWluJTIwdGV4dA==\",\n \"RequestId\": \"cc8f9b3c-620d-4a25-9fb5-decd94357bd8\"\n }\n}",
|
350
344
|
"title": "使用后量子密码算法解密"
|
351
345
|
}
|
352
346
|
],
|
353
347
|
"PostQuantumCryptoEncrypt": [
|
354
348
|
{
|
355
349
|
"document": "使用后量子密码算法密钥进行数据加密。",
|
356
|
-
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoEncrypt\n<公共请求参数>\n\n{\n \"KeyId\": \"
|
357
|
-
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"
|
350
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoEncrypt\n<公共请求参数>\n\n{\n \"KeyId\": \"23e80852-1e38-11e9-b129-5cb9019b4b01\",\n \"PlainText\": \"dGVzdAo=\"\n}",
|
351
|
+
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"ZHNhZHNpbzEyMW5uaz1qb2lqMm***********TIxbWExcwo=\",\n \"KeyId\": \"23e80852-1e38-11e9-b129-5cb9019b4b01\",\n \"RequestId\": \"403150d4-1736-4e61-9259-d70bb7799620\"\n }\n}",
|
358
352
|
"title": "使用后量子密码算法密钥进行数据加密"
|
359
353
|
}
|
360
354
|
],
|
361
355
|
"PostQuantumCryptoSign": [
|
362
356
|
{
|
363
357
|
"document": "后量子密码算法签名。",
|
364
|
-
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoSign\n<公共请求参数>\n\n{\n \"Message\": \"
|
365
|
-
"output": "{\n \"Response\": {\n \"
|
358
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoSign\n<公共请求参数>\n\n{\n \"Message\": \"dGVzdAo=\",\n \"KeyId\": \"b2b90f78-df57-11ed-979b-525400cf6ac4\"\n}",
|
359
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5a3e2a73-73c3-480c-9e32-36a263803eec\",\n \"Signature\": \"wb8u5CM+MnlZ2tlDCxwT8OmhslNZ8rMGCDC78iJJe8FA6eZKmxcIM5MVGh6TqFU53qOaJc7fOOjR4DTl4Pp1Mcrr6aFyw1bVErnaF8G8q6jBVGNZ52O+b8H+kFuySy6xWMcEuTKnaZRFlMU566d0TqLXlqntR641oP0X9UuzHvpMdRYKorg5IDPq3x5aWOtRIsyDBG7Pa6X7+XOdE1+uWbzjP4bOClm+Q/fl3KPdcbICxEuDvfdb1qdR4qBZ4uy5bG7JElk0z+NpKcpxiaFz4RaHJO8o64FFyD2F3A6rrKY5jku4Il3kXbklYlW93KKGGnJI9sEaqSQjETeLgwPaQECQBByPyzD+fYes9tvUbttQuZ18frl2bnmlCvFzpeigl7nzznxByFSYGBefNjnuzzTX26zUhy54I+sNijYzJyur/nKXXnX6ltcOLYBDke06bjPaPW73HryD1WesWgrL4m0kKoyIy8TdGDVbI5sGNmSOvOBvccMQ7b/jD2DWoVh7dGWJcLiroITUf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Wp8zsnnpbBRV2xlYtbZ557Y7h8/7gyjd43CZnYxCG3Rr7Q8r76dXJVmgBrb9P8mVOzDgRZBaYlwEalKBZLeJhmO9M0MeUkA+6DYwiup6ypPwa7INz1hiKLO5OUBcHWLp7naOmafrOT9YY6cqLEmOFhlm9vtKDM3VbHZ/EaBp2OmxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA8VGiEoKy4=\"\n }\n}",
|
366
360
|
"title": "后量子密码算法签名"
|
367
361
|
}
|
368
362
|
],
|
369
363
|
"PostQuantumCryptoVerify": [
|
370
364
|
{
|
371
365
|
"document": "后量子密码算法验签。",
|
372
|
-
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoVerify\n<公共请求参数>\n\n{\n \"KeyId\": \"
|
373
|
-
"output": "{\n \"Response\": {\n \"
|
366
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PostQuantumCryptoVerify\n<公共请求参数>\n\n{\n \"KeyId\": \"b2b90f78-df57-11ed-979b-525400cf6ac4\",\n \"SignatureValue\": \"wb8u5CM+MnlZ2tlDCxwT8OmhslNZ8rMGCDC78iJJe8FA6eZKmxcIM5MVGh6TqFU53qOaJc7fOOjR4DTl4Pp1Mcrr6aFyw1bVErnaF8G8q6jBVGNZ52O+b8H+kFuySy6xWMcEuTKnaZRFlMU566d0TqLXlqntR641oP0X9UuzHvpMdRYKorg5IDPq3x5aWOtRIsyDBG7Pa6X7+XOdE1+uWbzjP4bOClm+Q/fl3KPdcbICxEuDvfdb1qdR4qBZ4uy5bG7JElk0z+NpKcpxiaFz4RaHJO8o64FFyD2F3A6rrKY5jku4Il3kXbklYlW93KKGGnJI9sEaqSQjETeLgwPaQECQBByPyzD+fYes9tvUbttQuZ18frl2bnmlCvFzpeigl7nzznxByFSYGBefNjnuzzTX26zUhy54I+sNijYzJyur/nKXXnX6ltcOLYBDke06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Yn5HWJRSnOiA+uAbRSZVC5ggAiD1eqP+Bb1ymgNpbTYoZKD9jiZiZjKkrPSP9DR/B0e29/NcWp8zsnnpbBRV2xlYtbZ557Y7h8/7gyjd43CZnYxCG3Rr7Q8r76dXJVmgBrb9P8mVOzDgRZBaYlwEalKBZLeJhmO9M0MeUkA+6DYwiup6ypPwa7INz1hiKLO5OUBcHWLp7naOmafrOT9YY6cqLEmOFhlm9vtKDM3VbHZ/EaBp2OmxgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA8VGiEoKy4=\",\n \"Message\": \"dGVzdAo=\"\n}",
|
367
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e9be01bf-1bed-43d7-bc27-df198a52eef1\",\n \"SignatureValid\": true\n }\n}",
|
374
368
|
"title": "后量子密码算法验签"
|
375
369
|
}
|
376
370
|
],
|
377
371
|
"ReEncrypt": [
|
378
372
|
{
|
379
373
|
"document": "对密文进行重新加密。",
|
380
|
-
"input": "
|
381
|
-
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"
|
374
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReEncrypt\n<公共请求参数>\n\n{\n \"CiphertextBlob\": \"M1UPpYhWviWGrfn78MLVBG1n5G2H6+pGK5u7xOmoWoCcWpxVKC1OAQujzQSLHWBE54p3Kd8Qji+7FOPN3nkQeA==-k-fKVP3WIlGpg8m9LMW4jEkQ==-k-8VyKJSv97jE/+mKGeevmUUvCXLYzWs6Zxn3PZoeBW4aPCjYX\",\n \"DestinationKeyId\": \"87ff856e-973c-11ef-947b-525400d834e5\",\n \"DestinationEncryptionContext\": \"{\\\"key1\\\":\\\"value1\\\"}\"\n}",
|
375
|
+
"output": "{\n \"Response\": {\n \"CiphertextBlob\": \"M1UPpYhWviWGrfn78MLVBG1n5G2H6+pGK5u7xOmoWoCcWpxVKC1OAQujzQSLHWBE54p3Kd8Qji+7FOPN3nkQeA==-k-XqqalxTyNKIC1rITRePFGQ==-k-8VyKJSv97jE/+mKGeevmUUvCXLYzWs6Zxn3PZoeBW4aPCjYX\",\n \"KeyId\": \"87ff856e-973c-11ef-947b-525400d834e5\",\n \"ReEncrypted\": true,\n \"RequestId\": \"6c3281fb-5286-49d5-8aeb-4a4424bc4271\",\n \"SourceKeyId\": \"87ff856e-973c-11ef-947b-525400d834e5\"\n }\n}",
|
382
376
|
"title": "重加密接口示例"
|
383
377
|
}
|
384
378
|
],
|
@@ -393,8 +387,8 @@
|
|
393
387
|
"SignByAsymmetricKey": [
|
394
388
|
{
|
395
389
|
"document": "",
|
396
|
-
"input": "
|
397
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
390
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SignByAsymmetricKey\n<公共请求参数>\n\n{\n \"Algorithm\": \"SM2DSA\",\n \"Message\": \"dGVzdAo=\",\n \"KeyId\": \"d79e97e5-69d1-11ef-bc87-02ac442a5a1f\",\n \"MessageType\": \"RAW\"\n}",
|
391
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f60b4087-ab02-4c5b-bf50-956e591ccbc4\",\n \"Signature\": \"MEYCIQDFunV6ujrE9k4IMOEeH4J0uwENYSf1JH2DI01qlFWKkwIhAMiv6S2s3VsLtMF/+4rDEiF3IyE3zfRGq5B+k7hHfGoQ\"\n }\n}",
|
398
392
|
"title": "非对称密钥签名"
|
399
393
|
}
|
400
394
|
],
|
@@ -425,8 +419,8 @@
|
|
425
419
|
"VerifyByAsymmetricKey": [
|
426
420
|
{
|
427
421
|
"document": "",
|
428
|
-
"input": "
|
429
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
422
|
+
"input": "POST / HTTP/1.1\nHost: kms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyByAsymmetricKey\n<公共请求参数>\n\n{\n \"KeyId\": \"d79e97e5-69d1-11ef-bc87-02ac442a5a1f\",\n \"SignatureValue\": \"MEUCIQDunw5PZuSVI6IPX2xxdce6ohrm9Rt8KBqpMr6yogDbdgIgVyqCOiOs9OVb/frwglpg+43QXMMRnFKmBd5VNpS4A/o=\",\n \"Message\": \"dGVzdAo=\",\n \"MessageType\": \"RAW\",\n \"Algorithm\": \"SM2DSA\"\n}",
|
423
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"020b75ba-22f8-4f53-ab16-46ae5120711a\",\n \"SignatureValid\": true\n }\n}",
|
430
424
|
"title": "使用非对称密钥验签"
|
431
425
|
}
|
432
426
|
]
|
@@ -1577,6 +1577,58 @@ def doSendRoomNormalMessage(args, parsed_globals):
|
|
1577
1577
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1578
|
|
1579
1579
|
|
1580
|
+
def doDescribeRecord(args, parsed_globals):
|
1581
|
+
g_param = parse_global_arg(parsed_globals)
|
1582
|
+
|
1583
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1584
|
+
cred = credential.CVMRoleCredential()
|
1585
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1586
|
+
cred = credential.STSAssumeRoleCredential(
|
1587
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1588
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1589
|
+
)
|
1590
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1591
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1592
|
+
else:
|
1593
|
+
cred = credential.Credential(
|
1594
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1595
|
+
)
|
1596
|
+
http_profile = HttpProfile(
|
1597
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1598
|
+
reqMethod="POST",
|
1599
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1600
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1601
|
+
)
|
1602
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1603
|
+
if g_param[OptionsDefine.Language]:
|
1604
|
+
profile.language = g_param[OptionsDefine.Language]
|
1605
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1606
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1608
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
+
model = models.DescribeRecordRequest()
|
1610
|
+
model.from_json_string(json.dumps(args))
|
1611
|
+
start_time = time.time()
|
1612
|
+
while True:
|
1613
|
+
rsp = client.DescribeRecord(model)
|
1614
|
+
result = rsp.to_json_string()
|
1615
|
+
try:
|
1616
|
+
json_obj = json.loads(result)
|
1617
|
+
except TypeError as e:
|
1618
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1619
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1620
|
+
break
|
1621
|
+
cur_time = time.time()
|
1622
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1623
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1624
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1625
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1626
|
+
else:
|
1627
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1628
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1629
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
|
+
|
1631
|
+
|
1580
1632
|
def doCreateGroupWithSubGroup(args, parsed_globals):
|
1581
1633
|
g_param = parse_global_arg(parsed_globals)
|
1582
1634
|
|
@@ -2669,6 +2721,58 @@ def doDeleteDocument(args, parsed_globals):
|
|
2669
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
2722
|
|
2671
2723
|
|
2724
|
+
def doStopRecord(args, parsed_globals):
|
2725
|
+
g_param = parse_global_arg(parsed_globals)
|
2726
|
+
|
2727
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2728
|
+
cred = credential.CVMRoleCredential()
|
2729
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2730
|
+
cred = credential.STSAssumeRoleCredential(
|
2731
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2732
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2733
|
+
)
|
2734
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2735
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2736
|
+
else:
|
2737
|
+
cred = credential.Credential(
|
2738
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2739
|
+
)
|
2740
|
+
http_profile = HttpProfile(
|
2741
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2742
|
+
reqMethod="POST",
|
2743
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2744
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2745
|
+
)
|
2746
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2747
|
+
if g_param[OptionsDefine.Language]:
|
2748
|
+
profile.language = g_param[OptionsDefine.Language]
|
2749
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2750
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2752
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
+
model = models.StopRecordRequest()
|
2754
|
+
model.from_json_string(json.dumps(args))
|
2755
|
+
start_time = time.time()
|
2756
|
+
while True:
|
2757
|
+
rsp = client.StopRecord(model)
|
2758
|
+
result = rsp.to_json_string()
|
2759
|
+
try:
|
2760
|
+
json_obj = json.loads(result)
|
2761
|
+
except TypeError as e:
|
2762
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2763
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2764
|
+
break
|
2765
|
+
cur_time = time.time()
|
2766
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2767
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2768
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2769
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2770
|
+
else:
|
2771
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2772
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2773
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
|
+
|
2775
|
+
|
2672
2776
|
def doBatchDeleteRecord(args, parsed_globals):
|
2673
2777
|
g_param = parse_global_arg(parsed_globals)
|
2674
2778
|
|
@@ -2981,6 +3085,58 @@ def doUnbindDocumentFromRoom(args, parsed_globals):
|
|
2981
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
3086
|
|
2983
3087
|
|
3088
|
+
def doStartRecord(args, parsed_globals):
|
3089
|
+
g_param = parse_global_arg(parsed_globals)
|
3090
|
+
|
3091
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3092
|
+
cred = credential.CVMRoleCredential()
|
3093
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3094
|
+
cred = credential.STSAssumeRoleCredential(
|
3095
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3096
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3097
|
+
)
|
3098
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3099
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3100
|
+
else:
|
3101
|
+
cred = credential.Credential(
|
3102
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3103
|
+
)
|
3104
|
+
http_profile = HttpProfile(
|
3105
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3106
|
+
reqMethod="POST",
|
3107
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3108
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3109
|
+
)
|
3110
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3111
|
+
if g_param[OptionsDefine.Language]:
|
3112
|
+
profile.language = g_param[OptionsDefine.Language]
|
3113
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3114
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3116
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
+
model = models.StartRecordRequest()
|
3118
|
+
model.from_json_string(json.dumps(args))
|
3119
|
+
start_time = time.time()
|
3120
|
+
while True:
|
3121
|
+
rsp = client.StartRecord(model)
|
3122
|
+
result = rsp.to_json_string()
|
3123
|
+
try:
|
3124
|
+
json_obj = json.loads(result)
|
3125
|
+
except TypeError as e:
|
3126
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3127
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3128
|
+
break
|
3129
|
+
cur_time = time.time()
|
3130
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3131
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3132
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3133
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3134
|
+
else:
|
3135
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3136
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3137
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
|
+
|
3139
|
+
|
2984
3140
|
def doUnblockKickedUser(args, parsed_globals):
|
2985
3141
|
g_param = parse_global_arg(parsed_globals)
|
2986
3142
|
|
@@ -3282,6 +3438,7 @@ ACTION_MAP = {
|
|
3282
3438
|
"DescribeRoom": doDescribeRoom,
|
3283
3439
|
"DescribeDocuments": doDescribeDocuments,
|
3284
3440
|
"SendRoomNormalMessage": doSendRoomNormalMessage,
|
3441
|
+
"DescribeRecord": doDescribeRecord,
|
3285
3442
|
"CreateGroupWithSubGroup": doCreateGroupWithSubGroup,
|
3286
3443
|
"GetRoomMessage": doGetRoomMessage,
|
3287
3444
|
"DeleteSupervisor": doDeleteSupervisor,
|
@@ -3303,12 +3460,14 @@ ACTION_MAP = {
|
|
3303
3460
|
"DescribeAppDetail": doDescribeAppDetail,
|
3304
3461
|
"DescribeAnswerList": doDescribeAnswerList,
|
3305
3462
|
"DeleteDocument": doDeleteDocument,
|
3463
|
+
"StopRecord": doStopRecord,
|
3306
3464
|
"BatchDeleteRecord": doBatchDeleteRecord,
|
3307
3465
|
"GetRooms": doGetRooms,
|
3308
3466
|
"EndRoom": doEndRoom,
|
3309
3467
|
"SendRoomNotificationMessage": doSendRoomNotificationMessage,
|
3310
3468
|
"DeleteRoom": doDeleteRoom,
|
3311
3469
|
"UnbindDocumentFromRoom": doUnbindDocumentFromRoom,
|
3470
|
+
"StartRecord": doStartRecord,
|
3312
3471
|
"UnblockKickedUser": doUnblockKickedUser,
|
3313
3472
|
"CreateRoom": doCreateRoom,
|
3314
3473
|
"BatchCreateGroupWithMembers": doBatchCreateGroupWithMembers,
|