tccli 3.0.1220.1__py2.py3-none-any.whl → 3.0.1222.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/services/billing/v20180709/api.json +36 -36
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/bsca/v20210811/api.json +11 -1
- tccli/services/cdb/v20170320/api.json +5 -5
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/cfg_client.py +57 -4
- tccli/services/cfg/v20210820/api.json +113 -0
- tccli/services/cfg/v20210820/examples.json +8 -0
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +14 -0
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +15 -5
- tccli/services/dbdc/v20201029/api.json +43 -43
- tccli/services/dbdc/v20201029/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +67 -79
- tccli/services/dnspod/v20210323/api.json +1 -1
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gwlb/v20240906/api.json +6 -6
- tccli/services/gwlb/v20240906/examples.json +4 -4
- tccli/services/iotexplorer/v20190423/api.json +5 -5
- tccli/services/live/live_client.py +731 -42
- tccli/services/live/v20180801/api.json +1060 -96
- tccli/services/live/v20180801/examples.json +104 -0
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +789 -87
- tccli/services/lke/v20231130/examples.json +24 -16
- tccli/services/mariadb/v20170312/api.json +70 -88
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/svp/v20240125/api.json +6 -6
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/trtc/v20190722/api.json +56 -73
- tccli/services/tse/v20201207/api.json +150 -129
- tccli/services/tse/v20201207/examples.json +58 -58
- tccli/services/vpc/v20170312/api.json +13 -16
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +3 -3
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1220.1.dist-info → tccli-3.0.1222.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1222.1'
|
@@ -3918,17 +3918,17 @@
|
|
3918
3918
|
"example": "全产品通用",
|
3919
3919
|
"member": "string",
|
3920
3920
|
"name": "GoodsName",
|
3921
|
-
"
|
3921
|
+
"output_required": true,
|
3922
3922
|
"type": "string",
|
3923
3923
|
"value_allowed_null": false
|
3924
3924
|
},
|
3925
3925
|
{
|
3926
3926
|
"disabled": false,
|
3927
3927
|
"document": "postPay后付费/prePay预付费/riPay预留实例/空字符串或者\"*\"表示全部模式。如GoodsName为多个商品名以\",\"分割组成的string,而PayMode为\"*\",表示每一件商品的模式都为\"*\"。",
|
3928
|
-
"example": "
|
3928
|
+
"example": "postPay",
|
3929
3929
|
"member": "string",
|
3930
3930
|
"name": "PayMode",
|
3931
|
-
"
|
3931
|
+
"output_required": true,
|
3932
3932
|
"type": "string",
|
3933
3933
|
"value_allowed_null": false
|
3934
3934
|
}
|
@@ -13253,7 +13253,7 @@
|
|
13253
13253
|
{
|
13254
13254
|
"disabled": false,
|
13255
13255
|
"document": "代金券id",
|
13256
|
-
"example": "
|
13256
|
+
"example": "FIQJQDYJLMA221ZFOGJ81R",
|
13257
13257
|
"member": "string",
|
13258
13258
|
"name": "VoucherId",
|
13259
13259
|
"required": false,
|
@@ -13262,7 +13262,7 @@
|
|
13262
13262
|
{
|
13263
13263
|
"disabled": false,
|
13264
13264
|
"document": "代金券订单id",
|
13265
|
-
"example": "
|
13265
|
+
"example": "20230627799000283860282011",
|
13266
13266
|
"member": "string",
|
13267
13267
|
"name": "CodeId",
|
13268
13268
|
"required": false,
|
@@ -13271,7 +13271,7 @@
|
|
13271
13271
|
{
|
13272
13272
|
"disabled": false,
|
13273
13273
|
"document": "商品码",
|
13274
|
-
"example": "
|
13274
|
+
"example": "p_cvm",
|
13275
13275
|
"member": "string",
|
13276
13276
|
"name": "ProductCode",
|
13277
13277
|
"required": false,
|
@@ -13280,7 +13280,7 @@
|
|
13280
13280
|
{
|
13281
13281
|
"disabled": false,
|
13282
13282
|
"document": "活动id",
|
13283
|
-
"example": "
|
13283
|
+
"example": "570",
|
13284
13284
|
"member": "string",
|
13285
13285
|
"name": "ActivityId",
|
13286
13286
|
"required": false,
|
@@ -13289,7 +13289,7 @@
|
|
13289
13289
|
{
|
13290
13290
|
"disabled": false,
|
13291
13291
|
"document": "代金券名称",
|
13292
|
-
"example": "
|
13292
|
+
"example": "代金券二期现金券",
|
13293
13293
|
"member": "string",
|
13294
13294
|
"name": "VoucherName",
|
13295
13295
|
"required": false,
|
@@ -13343,7 +13343,7 @@
|
|
13343
13343
|
{
|
13344
13344
|
"disabled": false,
|
13345
13345
|
"document": "付费场景PayMode=postPay时:spotpay-竞价实例,\"settle account\"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景",
|
13346
|
-
"example": "
|
13346
|
+
"example": "postPay",
|
13347
13347
|
"member": "string",
|
13348
13348
|
"name": "PayScene",
|
13349
13349
|
"required": false,
|
@@ -13352,7 +13352,7 @@
|
|
13352
13352
|
{
|
13353
13353
|
"disabled": false,
|
13354
13354
|
"document": "操作人,默认就是用户uin",
|
13355
|
-
"example": "
|
13355
|
+
"example": "700000866965",
|
13356
13356
|
"member": "string",
|
13357
13357
|
"name": "Operator",
|
13358
13358
|
"required": false,
|
@@ -13404,13 +13404,13 @@
|
|
13404
13404
|
},
|
13405
13405
|
{
|
13406
13406
|
"disabled": false,
|
13407
|
-
"document": "
|
13408
|
-
"example": "
|
13407
|
+
"document": "代金券相关信息",
|
13408
|
+
"example": "{\"Status\":\"used\",\"PayScene\":\"all\",\"EndTime\":\"2024-04-22 23:59:59\",\"NominalValue\":2000000,\"VoucherId\":\"JTZFEPHBZMRDH33MM45JGU\",\"BeginTime\":\"2022-04-22 00:00:00\",\"ExcludedProducts\":[{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-One_Time\"},{\"PayMode\":\"*\",\"GoodsName\":\"Customer product training\"},{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-Package\"},{\"PayMode\":\"*\",\"GoodsName\":\"Cloud_Market-Package_Cycle\"},{\"PayMode\":\"*\",\"GoodsName\":\"Saving Plan\"},{\"PayMode\":\"*\",\"GoodsName\":\"marketplace image\"},{\"PayMode\":\"*\",\"GoodsName\":\"market\"}],\"OwnerUin\":\"909619400\",\"Balance\":0,\"PayMode\":\"*\",\"ApplicableProducts\":{\"PayMode\":\"*\",\"GoodsName\":\"Common for all products\"}}",
|
13409
13409
|
"member": "VoucherInfos",
|
13410
13410
|
"name": "VoucherInfos",
|
13411
13411
|
"output_required": true,
|
13412
13412
|
"type": "list",
|
13413
|
-
"value_allowed_null":
|
13413
|
+
"value_allowed_null": false
|
13414
13414
|
},
|
13415
13415
|
{
|
13416
13416
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -13872,17 +13872,17 @@
|
|
13872
13872
|
"example": "某产品",
|
13873
13873
|
"member": "string",
|
13874
13874
|
"name": "GoodsName",
|
13875
|
-
"
|
13875
|
+
"output_required": true,
|
13876
13876
|
"type": "string",
|
13877
13877
|
"value_allowed_null": false
|
13878
13878
|
},
|
13879
13879
|
{
|
13880
13880
|
"disabled": false,
|
13881
13881
|
"document": "postPay后付费/prePay预付费/riPay预留实例/空字符串或者\"*\"表示全部模式。",
|
13882
|
-
"example": "
|
13882
|
+
"example": "postPay",
|
13883
13883
|
"member": "string",
|
13884
13884
|
"name": "PayMode",
|
13885
|
-
"
|
13885
|
+
"output_required": true,
|
13886
13886
|
"type": "string",
|
13887
13887
|
"value_allowed_null": false
|
13888
13888
|
}
|
@@ -15504,10 +15504,10 @@
|
|
15504
15504
|
{
|
15505
15505
|
"disabled": false,
|
15506
15506
|
"document": "代金券拥有者",
|
15507
|
-
"example": "
|
15507
|
+
"example": "700000866965",
|
15508
15508
|
"member": "string",
|
15509
15509
|
"name": "OwnerUin",
|
15510
|
-
"
|
15510
|
+
"output_required": true,
|
15511
15511
|
"type": "string",
|
15512
15512
|
"value_allowed_null": false
|
15513
15513
|
},
|
@@ -15517,7 +15517,7 @@
|
|
15517
15517
|
"example": "unUsed",
|
15518
15518
|
"member": "string",
|
15519
15519
|
"name": "Status",
|
15520
|
-
"
|
15520
|
+
"output_required": true,
|
15521
15521
|
"type": "string",
|
15522
15522
|
"value_allowed_null": false
|
15523
15523
|
},
|
@@ -15527,7 +15527,7 @@
|
|
15527
15527
|
"example": "10000",
|
15528
15528
|
"member": "int64",
|
15529
15529
|
"name": "NominalValue",
|
15530
|
-
"
|
15530
|
+
"output_required": true,
|
15531
15531
|
"type": "int",
|
15532
15532
|
"value_allowed_null": false
|
15533
15533
|
},
|
@@ -15537,17 +15537,17 @@
|
|
15537
15537
|
"example": "10000",
|
15538
15538
|
"member": "int64",
|
15539
15539
|
"name": "Balance",
|
15540
|
-
"
|
15540
|
+
"output_required": true,
|
15541
15541
|
"type": "int",
|
15542
15542
|
"value_allowed_null": false
|
15543
15543
|
},
|
15544
15544
|
{
|
15545
15545
|
"disabled": false,
|
15546
15546
|
"document": "代金券id",
|
15547
|
-
"example": "
|
15547
|
+
"example": "VHPIUDFG9GUZDESWPR4W99",
|
15548
15548
|
"member": "string",
|
15549
15549
|
"name": "VoucherId",
|
15550
|
-
"
|
15550
|
+
"output_required": true,
|
15551
15551
|
"type": "string",
|
15552
15552
|
"value_allowed_null": false
|
15553
15553
|
},
|
@@ -15557,17 +15557,17 @@
|
|
15557
15557
|
"example": "postPay",
|
15558
15558
|
"member": "string",
|
15559
15559
|
"name": "PayMode",
|
15560
|
-
"
|
15560
|
+
"output_required": true,
|
15561
15561
|
"type": "string",
|
15562
15562
|
"value_allowed_null": false
|
15563
15563
|
},
|
15564
15564
|
{
|
15565
15565
|
"disabled": false,
|
15566
15566
|
"document": "付费场景PayMode=postPay时:spotpay-竞价实例,\"settle account\"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景",
|
15567
|
-
"example": "
|
15567
|
+
"example": "common",
|
15568
15568
|
"member": "string",
|
15569
15569
|
"name": "PayScene",
|
15570
|
-
"
|
15570
|
+
"output_required": true,
|
15571
15571
|
"type": "string",
|
15572
15572
|
"value_allowed_null": false
|
15573
15573
|
},
|
@@ -15577,7 +15577,7 @@
|
|
15577
15577
|
"example": "2020-01-01",
|
15578
15578
|
"member": "string",
|
15579
15579
|
"name": "BeginTime",
|
15580
|
-
"
|
15580
|
+
"output_required": true,
|
15581
15581
|
"type": "string",
|
15582
15582
|
"value_allowed_null": false
|
15583
15583
|
},
|
@@ -15587,29 +15587,29 @@
|
|
15587
15587
|
"example": "2020-01-01",
|
15588
15588
|
"member": "string",
|
15589
15589
|
"name": "EndTime",
|
15590
|
-
"
|
15590
|
+
"output_required": true,
|
15591
15591
|
"type": "string",
|
15592
15592
|
"value_allowed_null": false
|
15593
15593
|
},
|
15594
15594
|
{
|
15595
15595
|
"disabled": false,
|
15596
|
-
"document": "
|
15597
|
-
"example": "
|
15596
|
+
"document": "适用商品信息",
|
15597
|
+
"example": "{\"GoodsName\": \"全产品通用\",\"PayMode\": \"postPay\"}",
|
15598
15598
|
"member": "ApplicableProducts",
|
15599
15599
|
"name": "ApplicableProducts",
|
15600
|
-
"
|
15600
|
+
"output_required": true,
|
15601
15601
|
"type": "object",
|
15602
|
-
"value_allowed_null":
|
15602
|
+
"value_allowed_null": false
|
15603
15603
|
},
|
15604
15604
|
{
|
15605
15605
|
"disabled": false,
|
15606
|
-
"document": "
|
15607
|
-
"example": "
|
15606
|
+
"document": "不适用商品信息",
|
15607
|
+
"example": "{\"GoodsName\": \"域名注册\",\"PayMode\": \"postPay\"}",
|
15608
15608
|
"member": "ExcludedProducts",
|
15609
15609
|
"name": "ExcludedProducts",
|
15610
|
-
"
|
15610
|
+
"output_required": true,
|
15611
15611
|
"type": "list",
|
15612
|
-
"value_allowed_null":
|
15612
|
+
"value_allowed_null": false
|
15613
15613
|
}
|
15614
15614
|
],
|
15615
15615
|
"usage": "out"
|
@@ -402,7 +402,7 @@
|
|
402
402
|
{
|
403
403
|
"document": "获取代金券相关信息",
|
404
404
|
"input": "https://billing.tencentcloudapi.com/?Action=DescribeVoucherInfo\n&Limit=10\n&Offset=1\n&<公共请求参数>",
|
405
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"9988deda-d6b4-4c74-9bbf-b3f0cd4f5dba\",\n \"TotalBalance\": 42000000000,\n \"TotalCount\": 2,\n \"VoucherInfos\": [\n {\n \"ApplicableProducts\": {\n \"GoodsName\": \"全产品通用\",\n \"PayMode\": \"
|
405
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9988deda-d6b4-4c74-9bbf-b3f0cd4f5dba\",\n \"TotalBalance\": 42000000000,\n \"TotalCount\": 2,\n \"VoucherInfos\": [\n {\n \"ApplicableProducts\": {\n \"GoodsName\": \"全产品通用\",\n \"PayMode\": \"postPay\"\n },\n \"Balance\": 12000000000,\n \"BeginTime\": \"2023-01-10 14:42:17\",\n \"EndTime\": \"2023-04-10 14:42:17\",\n \"ExcludedProducts\": [\n {\n \"GoodsName\": \"域名注册\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"云市场\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"云市场镜像\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"培训服务training\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"节省计划\",\n \"PayMode\": \"postPay\"\n }\n ],\n \"NominalValue\": 30000000000,\n \"OwnerUin\": \"100026601318\",\n \"PayMode\": \"postPay\",\n \"PayScene\": \"settle account\",\n \"Status\": \"unUsed\",\n \"VoucherId\": \"OZRCGNAV5AB9H9ECMP1VVP\"\n },\n {\n \"ApplicableProducts\": {\n \"GoodsName\": \"全产品通用\",\n \"PayMode\": \"postPay\"\n },\n \"Balance\": 30000000000,\n \"BeginTime\": \"2023-02-07 16:40:45\",\n \"EndTime\": \"2023-05-08 16:40:45\",\n \"ExcludedProducts\": [\n {\n \"GoodsName\": \"域名注册\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"云市场\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"云市场镜像\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"培训服务training\",\n \"PayMode\": \"postPay\"\n },\n {\n \"GoodsName\": \"节省计划\",\n \"PayMode\": \"postPay\"\n }\n ],\n \"NominalValue\": 30000000000,\n \"OwnerUin\": \"100026601318\",\n \"PayMode\": \"postPay\",\n \"PayScene\": \"settle account\",\n \"Status\": \"unUsed\",\n \"VoucherId\": \"OZRCGNAV8D9BMI9KMG1FIQ\"\n }\n ]\n }\n}",
|
406
406
|
"title": "获取代金券相关信息"
|
407
407
|
}
|
408
408
|
],
|
@@ -717,7 +717,7 @@
|
|
717
717
|
},
|
718
718
|
{
|
719
719
|
"disabled": false,
|
720
|
-
"document": "
|
720
|
+
"document": "推荐版本,最小无高危/严重漏洞的版本。无法升级到安全版本时的备选方案。",
|
721
721
|
"example": "1.1.12",
|
722
722
|
"member": "string",
|
723
723
|
"name": "RecommendedVersion",
|
@@ -725,6 +725,16 @@
|
|
725
725
|
"type": "string",
|
726
726
|
"value_allowed_null": false
|
727
727
|
},
|
728
|
+
{
|
729
|
+
"disabled": false,
|
730
|
+
"document": "安全版本(首选),最小无漏洞的版本。当无法升级到安全版本时可考虑使用推荐版本。",
|
731
|
+
"example": "1.1.13",
|
732
|
+
"member": "string",
|
733
|
+
"name": "SecureVersion",
|
734
|
+
"output_required": false,
|
735
|
+
"type": "string",
|
736
|
+
"value_allowed_null": false
|
737
|
+
},
|
728
738
|
{
|
729
739
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
730
740
|
"member": "string",
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"status": "online"
|
128
128
|
},
|
129
129
|
"CreateCdbProxy": {
|
130
|
-
"document": "
|
130
|
+
"document": "本接口(CreateCdbProxy)用于主实例创建数据库代理。",
|
131
131
|
"input": "CreateCdbProxyRequest",
|
132
132
|
"name": "创建数据库代理",
|
133
133
|
"output": "CreateCdbProxyResponse",
|
@@ -5158,8 +5158,8 @@
|
|
5158
5158
|
},
|
5159
5159
|
{
|
5160
5160
|
"disabled": false,
|
5161
|
-
"document": "
|
5162
|
-
"example": "{
|
5161
|
+
"document": "节点规格配置。\n示例中参数说明:\nNodeCount:节点个数。\nRegion:节点地域。\nZone:节点可用区。\nCpu:单个代理节点核数(单位:核)。\nMem:单个代理节点内存数(单位:MB)。\n备注:\n1. 数据库代理支持的节点规格为:2C4000MB、4C8000MB、8C16000MB。\n2. 上述参数项(如节点个数、可用区等)均为必填,在调用接口时如未填写完整,可能会创建失败。",
|
5162
|
+
"example": "{\"NodeCount\": 2,\"Region\": \"ap-guangzhou\",\"Zone\": \"ap-guangzhou-1\",\"Cpu\": 2,\"Mem\": 4000}",
|
5163
5163
|
"member": "ProxyNodeCustom",
|
5164
5164
|
"name": "ProxyNodeCustom",
|
5165
5165
|
"required": true,
|
@@ -5177,7 +5177,7 @@
|
|
5177
5177
|
{
|
5178
5178
|
"disabled": false,
|
5179
5179
|
"document": "描述",
|
5180
|
-
"example": "
|
5180
|
+
"example": "andy_proxy",
|
5181
5181
|
"member": "string",
|
5182
5182
|
"name": "Desc",
|
5183
5183
|
"required": false,
|
@@ -5210,7 +5210,7 @@
|
|
5210
5210
|
{
|
5211
5211
|
"disabled": false,
|
5212
5212
|
"document": "异步任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
5213
|
-
"example": "
|
5213
|
+
"example": "a6040589-3b098df5-b551d9e5-81c6bfdc",
|
5214
5214
|
"member": "string",
|
5215
5215
|
"name": "AsyncRequestId",
|
5216
5216
|
"output_required": true,
|
@@ -159,8 +159,8 @@
|
|
159
159
|
"CreateCdbProxy": [
|
160
160
|
{
|
161
161
|
"document": "主实例创建数据库代理",
|
162
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCdbProxy\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-aykuksx3\",\n \"UniqVpcId\": \"vpc-ixw3ll2d\",\n \"UniqSubnetId\": \"subnet-0z3r56vq\",\n \"Desc\": \"
|
163
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
162
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCdbProxy\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-aykuksx3\",\n \"UniqVpcId\": \"vpc-ixw3ll2d\",\n \"UniqSubnetId\": \"subnet-0z3r56vq\",\n \"Desc\": \"andy_proxy\",\n \"ProxyNodeCustom\": [\n {\n \"NodeCount\": 2,\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-1\",\n \"Cpu\": 1,\n \"Mem\": 1\n }\n ]\n}",
|
163
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"AsyncRequestId\": \"7EF78BEC-0111-43AF-BB11-111112FB54A7\"\n }\n}",
|
164
164
|
"title": "创建数据库代理"
|
165
165
|
}
|
166
166
|
],
|
@@ -302,9 +302,9 @@
|
|
302
302
|
"status": "online"
|
303
303
|
},
|
304
304
|
"DescribeTopData": {
|
305
|
-
"document": "DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:\n\n+ 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP\n+ 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer\n+ 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型\n+ 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统\n+ 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器\n\n注意:\n+ 仅支持 90 天内数据查询,且从2021年09月20
|
305
|
+
"document": "DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:\n\n+ 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP\n+ 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer\n+ 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型\n+ 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统\n+ 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器\n\n注意:\n+ 仅支持 90 天内数据查询,且从2021年09月20日开始有数据",
|
306
306
|
"input": "DescribeTopDataRequest",
|
307
|
-
"name": "TOP
|
307
|
+
"name": "TOP 新版数据查询",
|
308
308
|
"output": "DescribeTopDataResponse",
|
309
309
|
"status": "online"
|
310
310
|
},
|
@@ -7712,7 +7712,7 @@
|
|
7712
7712
|
"example": "[]",
|
7713
7713
|
"member": "TopDataMore",
|
7714
7714
|
"name": "Data",
|
7715
|
-
"
|
7715
|
+
"output_required": true,
|
7716
7716
|
"type": "list",
|
7717
7717
|
"value_allowed_null": false
|
7718
7718
|
},
|
@@ -2583,6 +2583,36 @@
|
|
2583
2583
|
"type": "list",
|
2584
2584
|
"value_allowed_null": false
|
2585
2585
|
},
|
2586
|
+
{
|
2587
|
+
"disabled": false,
|
2588
|
+
"document": "msg\n注意:此字段可能返回 null,表示取不到有效值。",
|
2589
|
+
"example": "msg",
|
2590
|
+
"member": "string",
|
2591
|
+
"name": "Msg",
|
2592
|
+
"output_required": false,
|
2593
|
+
"type": "string",
|
2594
|
+
"value_allowed_null": true
|
2595
|
+
},
|
2596
|
+
{
|
2597
|
+
"disabled": false,
|
2598
|
+
"document": "未知version\n注意:此字段可能返回 null,表示取不到有效值。",
|
2599
|
+
"example": "true",
|
2600
|
+
"member": "bool",
|
2601
|
+
"name": "IsUnknownVersion",
|
2602
|
+
"output_required": false,
|
2603
|
+
"type": "bool",
|
2604
|
+
"value_allowed_null": true
|
2605
|
+
},
|
2606
|
+
{
|
2607
|
+
"disabled": false,
|
2608
|
+
"document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
2609
|
+
"example": "xxx",
|
2610
|
+
"member": "string",
|
2611
|
+
"name": "ErrorMsg",
|
2612
|
+
"output_required": false,
|
2613
|
+
"type": "string",
|
2614
|
+
"value_allowed_null": true
|
2615
|
+
},
|
2586
2616
|
{
|
2587
2617
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2588
2618
|
"member": "string",
|
@@ -3292,6 +3322,16 @@
|
|
3292
3322
|
"type": "object",
|
3293
3323
|
"value_allowed_null": false
|
3294
3324
|
},
|
3325
|
+
{
|
3326
|
+
"disabled": false,
|
3327
|
+
"document": "记录列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
3328
|
+
"example": "[]",
|
3329
|
+
"member": "DataBaseAuditRecord",
|
3330
|
+
"name": "Records",
|
3331
|
+
"output_required": false,
|
3332
|
+
"type": "list",
|
3333
|
+
"value_allowed_null": true
|
3334
|
+
},
|
3295
3335
|
{
|
3296
3336
|
"disabled": false,
|
3297
3337
|
"document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
tccli/services/cfg/cfg_client.py
CHANGED
@@ -121,7 +121,7 @@ def doCreateTaskFromTemplate(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doCreateTaskFromMultiAction(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doDescribeTemplate(args, parsed_globals):
|
|
150
150
|
client = mod.CfgClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.CreateTaskFromMultiActionRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.CreateTaskFromMultiAction(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -849,6 +849,58 @@ def doDeleteTask(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
+
def doDescribeTemplate(args, parsed_globals):
|
853
|
+
g_param = parse_global_arg(parsed_globals)
|
854
|
+
|
855
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
+
cred = credential.CVMRoleCredential()
|
857
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
+
cred = credential.STSAssumeRoleCredential(
|
859
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
+
)
|
862
|
+
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):
|
863
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
+
else:
|
865
|
+
cred = credential.Credential(
|
866
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
+
)
|
868
|
+
http_profile = HttpProfile(
|
869
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
+
reqMethod="POST",
|
871
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
+
)
|
874
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
+
if g_param[OptionsDefine.Language]:
|
876
|
+
profile.language = g_param[OptionsDefine.Language]
|
877
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
+
client = mod.CfgClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
+
model = models.DescribeTemplateRequest()
|
882
|
+
model.from_json_string(json.dumps(args))
|
883
|
+
start_time = time.time()
|
884
|
+
while True:
|
885
|
+
rsp = client.DescribeTemplate(model)
|
886
|
+
result = rsp.to_json_string()
|
887
|
+
try:
|
888
|
+
json_obj = json.loads(result)
|
889
|
+
except TypeError as e:
|
890
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
+
break
|
893
|
+
cur_time = time.time()
|
894
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
+
else:
|
899
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
+
|
903
|
+
|
852
904
|
CLIENT_MAP = {
|
853
905
|
"v20210820": cfg_client_v20210820,
|
854
906
|
|
@@ -862,7 +914,7 @@ MODELS_MAP = {
|
|
862
914
|
ACTION_MAP = {
|
863
915
|
"DescribeObjectTypeList": doDescribeObjectTypeList,
|
864
916
|
"CreateTaskFromTemplate": doCreateTaskFromTemplate,
|
865
|
-
"
|
917
|
+
"CreateTaskFromMultiAction": doCreateTaskFromMultiAction,
|
866
918
|
"ExecuteTaskInstance": doExecuteTaskInstance,
|
867
919
|
"ModifyTaskRunStatus": doModifyTaskRunStatus,
|
868
920
|
"DescribeActionLibraryList": doDescribeActionLibraryList,
|
@@ -876,6 +928,7 @@ ACTION_MAP = {
|
|
876
928
|
"DescribeTemplateList": doDescribeTemplateList,
|
877
929
|
"ExecuteTask": doExecuteTask,
|
878
930
|
"DeleteTask": doDeleteTask,
|
931
|
+
"DescribeTemplate": doDescribeTemplate,
|
879
932
|
|
880
933
|
}
|
881
934
|
|