tccli 3.0.833.1__py2.py3-none-any.whl → 3.0.834.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -27
- tccli/services/autoscaling/v20180419/examples.json +5 -5
- tccli/services/cls/v20201016/api.json +11 -24
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +368 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +73 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +0 -5
- tccli/services/gaap/v20180529/examples.json +4 -4
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +307 -18
- tccli/services/mps/v20190612/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +119 -49
- tccli/services/tdmq/v20200217/api.json +38 -38
- tccli/services/vod/v20180717/api.json +0 -14
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vpc/v20170312/examples.json +1 -1
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/METADATA +2 -2
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/RECORD +30 -30
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.833.1.dist-info → tccli-3.0.834.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.834.1'
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"CompleteLifecycleAction": {
|
25
|
-
"document": "本接口(CompleteLifecycleAction)用于完成生命周期动作。\n\n* 用户通过调用本接口,指定一个具体的生命周期挂钩的结果(“CONITNUE”或者“ABANDON”)。如果一直不调用本接口,则生命周期挂钩会在超时后按照“DefaultResult
|
25
|
+
"document": "本接口(CompleteLifecycleAction)用于完成生命周期动作。\n\n* 用户通过调用本接口,指定一个具体的生命周期挂钩的结果(“CONITNUE”或者“ABANDON”)。如果一直不调用本接口,则生命周期挂钩会在超时后按照“DefaultResult”进行处理。",
|
26
26
|
"input": "CompleteLifecycleActionRequest",
|
27
27
|
"name": "完成生命周期动作",
|
28
28
|
"output": "CompleteLifecycleActionResponse",
|
@@ -1183,7 +1183,6 @@
|
|
1183
1183
|
"document": "CompleteLifecycleAction请求参数结构体",
|
1184
1184
|
"members": [
|
1185
1185
|
{
|
1186
|
-
"default": "",
|
1187
1186
|
"document": "生命周期挂钩ID",
|
1188
1187
|
"example": "ash-fbjiexz7",
|
1189
1188
|
"member": "string",
|
@@ -1192,7 +1191,6 @@
|
|
1192
1191
|
"type": "string"
|
1193
1192
|
},
|
1194
1193
|
{
|
1195
|
-
"default": "",
|
1196
1194
|
"document": "生命周期动作的结果,取值范围为“CONTINUE”或“ABANDON”",
|
1197
1195
|
"example": "CONTINUE",
|
1198
1196
|
"member": "string",
|
@@ -1201,7 +1199,6 @@
|
|
1201
1199
|
"type": "string"
|
1202
1200
|
},
|
1203
1201
|
{
|
1204
|
-
"default": "",
|
1205
1202
|
"document": "实例ID,“InstanceId”和“LifecycleActionToken”必须填充其中一个",
|
1206
1203
|
"example": "ins-ni8bpmve",
|
1207
1204
|
"member": "string",
|
@@ -1210,7 +1207,6 @@
|
|
1210
1207
|
"type": "string"
|
1211
1208
|
},
|
1212
1209
|
{
|
1213
|
-
"default": "",
|
1214
1210
|
"document": "“InstanceId”和“LifecycleActionToken”必须填充其中一个",
|
1215
1211
|
"example": "无",
|
1216
1212
|
"member": "string",
|
@@ -4592,7 +4588,6 @@
|
|
4592
4588
|
"document": "ModifyAutoScalingGroup请求参数结构体",
|
4593
4589
|
"members": [
|
4594
4590
|
{
|
4595
|
-
"default": "",
|
4596
4591
|
"document": "伸缩组ID",
|
4597
4592
|
"example": "asg-aaaabbbb",
|
4598
4593
|
"member": "string",
|
@@ -4601,7 +4596,6 @@
|
|
4601
4596
|
"type": "string"
|
4602
4597
|
},
|
4603
4598
|
{
|
4604
|
-
"default": "",
|
4605
4599
|
"document": "伸缩组名称,在您账号中必须唯一。名称仅支持中文、英文、数字、下划线、分隔符\"-\"、小数点,最大长度不能超55个字节。",
|
4606
4600
|
"example": "asgname",
|
4607
4601
|
"member": "string",
|
@@ -4610,7 +4604,6 @@
|
|
4610
4604
|
"type": "string"
|
4611
4605
|
},
|
4612
4606
|
{
|
4613
|
-
"default": "",
|
4614
4607
|
"document": "默认冷却时间,单位秒,默认值为300",
|
4615
4608
|
"example": "300",
|
4616
4609
|
"member": "uint64",
|
@@ -4619,7 +4612,6 @@
|
|
4619
4612
|
"type": "int"
|
4620
4613
|
},
|
4621
4614
|
{
|
4622
|
-
"default": "",
|
4623
4615
|
"document": "期望实例数,大小介于最小实例数和最大实例数之间",
|
4624
4616
|
"example": "1",
|
4625
4617
|
"member": "uint64",
|
@@ -4628,7 +4620,6 @@
|
|
4628
4620
|
"type": "int"
|
4629
4621
|
},
|
4630
4622
|
{
|
4631
|
-
"default": "",
|
4632
4623
|
"document": "启动配置ID",
|
4633
4624
|
"example": "asc-aaaabbbb",
|
4634
4625
|
"member": "string",
|
@@ -4637,7 +4628,6 @@
|
|
4637
4628
|
"type": "string"
|
4638
4629
|
},
|
4639
4630
|
{
|
4640
|
-
"default": "",
|
4641
4631
|
"document": "最大实例数,取值范围为0-2000。",
|
4642
4632
|
"example": "1",
|
4643
4633
|
"member": "uint64",
|
@@ -4646,7 +4636,6 @@
|
|
4646
4636
|
"type": "int"
|
4647
4637
|
},
|
4648
4638
|
{
|
4649
|
-
"default": "",
|
4650
4639
|
"document": "最小实例数,取值范围为0-2000。",
|
4651
4640
|
"example": "1",
|
4652
4641
|
"member": "uint64",
|
@@ -4655,7 +4644,6 @@
|
|
4655
4644
|
"type": "int"
|
4656
4645
|
},
|
4657
4646
|
{
|
4658
|
-
"default": "",
|
4659
4647
|
"document": "项目ID",
|
4660
4648
|
"example": "1",
|
4661
4649
|
"member": "uint64",
|
@@ -4664,7 +4652,6 @@
|
|
4664
4652
|
"type": "int"
|
4665
4653
|
},
|
4666
4654
|
{
|
4667
|
-
"default": "",
|
4668
4655
|
"document": "子网ID列表",
|
4669
4656
|
"example": "[\"subnet-aaaabbbb\"]",
|
4670
4657
|
"member": "string",
|
@@ -4673,7 +4660,6 @@
|
|
4673
4660
|
"type": "list"
|
4674
4661
|
},
|
4675
4662
|
{
|
4676
|
-
"default": "",
|
4677
4663
|
"document": "销毁策略,目前长度上限为1。取值包括 OLDEST_INSTANCE 和 NEWEST_INSTANCE。\n<br><li> OLDEST_INSTANCE 优先销毁伸缩组中最旧的实例。\n<br><li> NEWEST_INSTANCE,优先销毁伸缩组中最新的实例。",
|
4678
4664
|
"example": "[\"OLDEST_INSTANCE\"]",
|
4679
4665
|
"member": "string",
|
@@ -4682,7 +4668,6 @@
|
|
4682
4668
|
"type": "list"
|
4683
4669
|
},
|
4684
4670
|
{
|
4685
|
-
"default": "",
|
4686
4671
|
"document": "VPC ID,基础网络则填空字符串。修改为具体VPC ID时,需指定相应的SubnetIds;修改为基础网络时,需指定相应的Zones。",
|
4687
4672
|
"example": "vpc-aaaabbbb",
|
4688
4673
|
"member": "string",
|
@@ -4691,7 +4676,6 @@
|
|
4691
4676
|
"type": "string"
|
4692
4677
|
},
|
4693
4678
|
{
|
4694
|
-
"default": "",
|
4695
4679
|
"document": "可用区列表",
|
4696
4680
|
"example": "[\"ap-beijing-1\"]",
|
4697
4681
|
"member": "string",
|
@@ -4700,7 +4684,6 @@
|
|
4700
4684
|
"type": "list"
|
4701
4685
|
},
|
4702
4686
|
{
|
4703
|
-
"default": "",
|
4704
4687
|
"document": "重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY。\n<br><li> IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。\n<br><li> INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。\n<br><li> NO_RETRY,不进行重试,直到再次收到用户调用或者告警信息后才会重试。",
|
4705
4688
|
"example": "IMMEDIATE_RETRY",
|
4706
4689
|
"member": "string",
|
@@ -4709,7 +4692,6 @@
|
|
4709
4692
|
"type": "string"
|
4710
4693
|
},
|
4711
4694
|
{
|
4712
|
-
"default": "",
|
4713
4695
|
"document": "可用区校验策略,取值包括 ALL 和 ANY,默认取值为ANY。在伸缩组实际变更资源相关字段时(启动配置、可用区、子网)发挥作用。\n<br><li> ALL,所有可用区(Zone)或子网(SubnetId)都可用则通过校验,否则校验报错。\n<br><li> ANY,存在任何一个可用区(Zone)或子网(SubnetId)可用则通过校验,否则校验报错。\n\n可用区或子网不可用的常见原因包括该可用区CVM实例类型售罄、该可用区CBS云盘售罄、该可用区配额不足、该子网IP不足等。\n如果 Zones/SubnetIds 中可用区或者子网不存在,则无论 ZonesCheckPolicy 采用何种取值,都会校验报错。",
|
4714
4696
|
"example": "ALL",
|
4715
4697
|
"member": "string",
|
@@ -4718,7 +4700,6 @@
|
|
4718
4700
|
"type": "string"
|
4719
4701
|
},
|
4720
4702
|
{
|
4721
|
-
"default": "",
|
4722
4703
|
"document": "服务设置,包括云监控不健康替换等服务设置。",
|
4723
4704
|
"example": "无",
|
4724
4705
|
"member": "ServiceSettings",
|
@@ -4727,7 +4708,6 @@
|
|
4727
4708
|
"type": "object"
|
4728
4709
|
},
|
4729
4710
|
{
|
4730
|
-
"default": "",
|
4731
4711
|
"document": "实例具有IPv6地址数量的配置,取值包括0、1。",
|
4732
4712
|
"example": "1",
|
4733
4713
|
"member": "int64",
|
@@ -4736,7 +4716,6 @@
|
|
4736
4716
|
"type": "int"
|
4737
4717
|
},
|
4738
4718
|
{
|
4739
|
-
"default": "",
|
4740
4719
|
"document": "多可用区/子网策略,取值包括 PRIORITY 和 EQUALITY,默认为 PRIORITY。\n<br><li> PRIORITY,按照可用区/子网列表的顺序,作为优先级来尝试创建实例,如果优先级最高的可用区/子网可以创建成功,则总在该可用区/子网创建。\n<br><li> EQUALITY:扩容出的实例会打散到多个可用区/子网,保证扩容后的各个可用区/子网实例数相对均衡。\n\n与本策略相关的注意点:\n<br><li> 当伸缩组为基础网络时,本策略适用于多可用区;当伸缩组为VPC网络时,本策略适用于多子网,此时不再考虑可用区因素,例如四个子网ABCD,其中ABC处于可用区1,D处于可用区2,此时考虑子网ABCD进行排序,而不考虑可用区1、2。\n<br><li> 本策略适用于多可用区/子网,不适用于启动配置的多机型。多机型按照优先级策略进行选择。\n<br><li> 按照 PRIORITY 策略创建实例时,先保证多机型的策略,后保证多可用区/子网的策略。例如多机型A、B,多子网1、2、3,会按照A1、A2、A3、B1、B2、B3 进行尝试,如果A1售罄,会尝试A2(而非B1)。",
|
4741
4720
|
"example": "无",
|
4742
4721
|
"member": "string",
|
@@ -4745,7 +4724,6 @@
|
|
4745
4724
|
"type": "string"
|
4746
4725
|
},
|
4747
4726
|
{
|
4748
|
-
"default": "",
|
4749
4727
|
"document": "伸缩组实例健康检查类型,取值如下:<br><li>CVM:根据实例网络状态判断实例是否处于不健康状态,不健康的网络状态即发生实例 PING 不可达事件,详细判断标准可参考[实例健康检查](https://cloud.tencent.com/document/product/377/8553)<br><li>CLB:根据 CLB 的健康检查状态判断实例是否处于不健康状态,CLB健康检查原理可参考[健康检查](https://cloud.tencent.com/document/product/214/6097)",
|
4750
4728
|
"example": "CLB",
|
4751
4729
|
"member": "string",
|
@@ -4754,7 +4732,6 @@
|
|
4754
4732
|
"type": "string"
|
4755
4733
|
},
|
4756
4734
|
{
|
4757
|
-
"default": "",
|
4758
4735
|
"document": "CLB健康检查宽限期。",
|
4759
4736
|
"example": "0",
|
4760
4737
|
"member": "uint64",
|
@@ -4763,7 +4740,6 @@
|
|
4763
4740
|
"type": "int"
|
4764
4741
|
},
|
4765
4742
|
{
|
4766
|
-
"default": "",
|
4767
4743
|
"document": "实例分配策略,取值包括 LAUNCH_CONFIGURATION 和 SPOT_MIXED。\n<br><li> LAUNCH_CONFIGURATION,代表传统的按照启动配置模式。\n<br><li> SPOT_MIXED,代表竞价混合模式。目前仅支持启动配置为按量计费模式时使用混合模式,混合模式下,伸缩组将根据设定扩容按量或竞价机型。使用混合模式时,关联的启动配置的计费类型不可被修改。",
|
4768
4744
|
"example": "LAUNCH_CONFIGURATION",
|
4769
4745
|
"member": "string",
|
@@ -4772,7 +4748,6 @@
|
|
4772
4748
|
"type": "string"
|
4773
4749
|
},
|
4774
4750
|
{
|
4775
|
-
"default": "",
|
4776
4751
|
"document": "竞价混合模式下,各计费类型实例的分配策略。\n仅当 InstanceAllocationPolicy 取 SPOT_MIXED 时可用。",
|
4777
4752
|
"example": "无",
|
4778
4753
|
"member": "SpotMixedAllocationPolicy",
|
@@ -4781,7 +4756,6 @@
|
|
4781
4756
|
"type": "object"
|
4782
4757
|
},
|
4783
4758
|
{
|
4784
|
-
"default": "",
|
4785
4759
|
"document": "容量重平衡功能,仅对伸缩组内的竞价实例有效。取值范围:\n<br><li> TRUE,开启该功能,当伸缩组内的竞价实例即将被竞价实例服务自动回收前,AS 主动发起竞价实例销毁流程,如果有配置过缩容 hook,则销毁前 hook 会生效。销毁流程启动后,AS 会异步开启一个扩容活动,用于补齐期望实例数。\n<br><li> FALSE,不开启该功能,则 AS 等待竞价实例被销毁后才会去扩容补齐伸缩组期望实例数。",
|
4786
4760
|
"example": "false",
|
4787
4761
|
"member": "bool",
|
@@ -32,13 +32,13 @@
|
|
32
32
|
],
|
33
33
|
"CompleteLifecycleAction": [
|
34
34
|
{
|
35
|
-
"document": "",
|
35
|
+
"document": "通过InstanceId参数,完成指定实例的生命周期挂钩",
|
36
36
|
"input": "POST / HTTP/1.1\nHost: as.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CompleteLifecycleAction\n<公共请求参数>\n\n{\n \"InstanceId\": \"ins-ni8bpmve\",\n \"LifecycleActionResult\": \"CONTINUE\",\n \"LifecycleHookId\": \"ash-fbjiexz7\"\n}",
|
37
37
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d0cf47b9-4236-491c-bfab-106947198afe\"\n }\n}",
|
38
38
|
"title": "完成生命周期动作,通过InstanceId调用"
|
39
39
|
},
|
40
40
|
{
|
41
|
-
"document": "",
|
41
|
+
"document": "通过LifecycleActionToken参数,完成指定实例的生命周期挂钩,生命周期挂钩发送给TDMQ的通知消息中包含LifecycleActionToken参数",
|
42
42
|
"input": "POST / HTTP/1.1\nHost: as.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CompleteLifecycleAction\n<公共请求参数>\n\n{\n \"LifecycleActionResult\": \"CONTINUE\",\n \"LifecycleHookId\": \"ash-fbjiexz7\",\n \"LifecycleActionToken\": \"4d910016-2590-444d-8f4a-c14940036902\"\n}",
|
43
43
|
"output": "{\n \"Response\": {\n \"RequestId\": \"de792ffe-e37e-4f1d-8534-300b555739da\"\n }\n}",
|
44
44
|
"title": "完成生命周期动作,通过LifecycleActionToken调用"
|
@@ -374,14 +374,14 @@
|
|
374
374
|
],
|
375
375
|
"ModifyAutoScalingGroup": [
|
376
376
|
{
|
377
|
-
"document": "",
|
377
|
+
"document": "修改指定伸缩组的VpcId和SubnetIds参数",
|
378
378
|
"input": "POST / HTTP/1.1\nHost: as.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoScalingGroup\n<公共请求参数>\n\n{\n \"AutoScalingGroupId\": \"asg-ka0s0q80\",\n \"SubnetIds\": [\n \"subnet-b0vxjhot\",\n \"subnet-3tmerl37\"\n ],\n \"VpcId\": \"vpc-hy436tmc\"\n}",
|
379
379
|
"output": "{\n \"Response\": {\n \"RequestId\": \"c503ddc6-496c-44c9-8cec-e9f1c3f9c11c\"\n }\n}",
|
380
380
|
"title": "修改伸缩组VPC子网信息"
|
381
381
|
},
|
382
382
|
{
|
383
|
-
"document": "",
|
384
|
-
"input": "POST / HTTP/1.1\nHost: as.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoScalingGroup\n<公共请求参数>\n\n{\n \"AutoScalingGroupId\": \"asg-ka0s0q80\",\n \"MinSize\":
|
383
|
+
"document": "修改指定伸缩组的期望实例数为3,最大实例数为10,最小实例数为1",
|
384
|
+
"input": "POST / HTTP/1.1\nHost: as.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoScalingGroup\n<公共请求参数>\n\n{\n \"AutoScalingGroupId\": \"asg-ka0s0q80\",\n \"MinSize\": 1,\n \"MaxSize\": 10,\n \"DesiredCapacity\": 3\n}",
|
385
385
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b41d8d30-21d4-412c-b7f3-53041879968c\"\n }\n}",
|
386
386
|
"title": "修改伸缩组期望实例、最大实例数、最小实例数"
|
387
387
|
}
|
@@ -5226,7 +5226,6 @@
|
|
5226
5226
|
"document": "日志集相关信息",
|
5227
5227
|
"members": [
|
5228
5228
|
{
|
5229
|
-
"default": "",
|
5230
5229
|
"document": "日志集ID",
|
5231
5230
|
"example": "4463e7b0-3ec8-41a1-ae48-5d24b22167c2",
|
5232
5231
|
"member": "string",
|
@@ -5236,7 +5235,6 @@
|
|
5236
5235
|
"value_allowed_null": false
|
5237
5236
|
},
|
5238
5237
|
{
|
5239
|
-
"default": "",
|
5240
5238
|
"document": "日志集名称",
|
5241
5239
|
"example": "test",
|
5242
5240
|
"member": "string",
|
@@ -5246,7 +5244,6 @@
|
|
5246
5244
|
"value_allowed_null": false
|
5247
5245
|
},
|
5248
5246
|
{
|
5249
|
-
"default": "",
|
5250
5247
|
"document": "创建时间",
|
5251
5248
|
"example": "2021-04-01 08:00:00",
|
5252
5249
|
"member": "string",
|
@@ -5256,7 +5253,6 @@
|
|
5256
5253
|
"value_allowed_null": false
|
5257
5254
|
},
|
5258
5255
|
{
|
5259
|
-
"default": "",
|
5260
5256
|
"document": "云产品标识,日志集由其它云产品创建时,该字段会显示云产品名称,例如CDN、TKE\n注意:此字段可能返回 null,表示取不到有效值。",
|
5261
5257
|
"example": "TCB",
|
5262
5258
|
"member": "string",
|
@@ -5266,7 +5262,6 @@
|
|
5266
5262
|
"value_allowed_null": true
|
5267
5263
|
},
|
5268
5264
|
{
|
5269
|
-
"default": "",
|
5270
5265
|
"document": "日志集绑定的标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
5271
5266
|
"example": "无",
|
5272
5267
|
"member": "Tag",
|
@@ -5276,7 +5271,6 @@
|
|
5276
5271
|
"value_allowed_null": true
|
5277
5272
|
},
|
5278
5273
|
{
|
5279
|
-
"default": "",
|
5280
5274
|
"document": "日志集下日志主题的数目",
|
5281
5275
|
"example": "10",
|
5282
5276
|
"member": "int64",
|
@@ -5286,7 +5280,6 @@
|
|
5286
5280
|
"value_allowed_null": false
|
5287
5281
|
},
|
5288
5282
|
{
|
5289
|
-
"default": "",
|
5290
5283
|
"document": "若AssumerName非空,则表示创建该日志集的服务方角色",
|
5291
5284
|
"example": "TCB_QcsRole",
|
5292
5285
|
"member": "string",
|
@@ -7315,8 +7308,8 @@
|
|
7315
7308
|
"document": "创建资源实例时同时绑定的标签对说明",
|
7316
7309
|
"members": [
|
7317
7310
|
{
|
7318
|
-
"default": "",
|
7319
7311
|
"document": "标签键",
|
7312
|
+
"example": "无",
|
7320
7313
|
"member": "string",
|
7321
7314
|
"name": "Key",
|
7322
7315
|
"required": true,
|
@@ -7324,8 +7317,8 @@
|
|
7324
7317
|
"value_allowed_null": false
|
7325
7318
|
},
|
7326
7319
|
{
|
7327
|
-
"default": "",
|
7328
7320
|
"document": "标签值",
|
7321
|
+
"example": "无",
|
7329
7322
|
"member": "string",
|
7330
7323
|
"name": "Value",
|
7331
7324
|
"required": true,
|
@@ -7339,7 +7332,6 @@
|
|
7339
7332
|
"document": "日志主题信息",
|
7340
7333
|
"members": [
|
7341
7334
|
{
|
7342
|
-
"default": "",
|
7343
7335
|
"document": "日志集ID",
|
7344
7336
|
"example": "57f5808c-4a55-11eb-b378-0242ac130002",
|
7345
7337
|
"member": "string",
|
@@ -7349,7 +7341,6 @@
|
|
7349
7341
|
"value_allowed_null": false
|
7350
7342
|
},
|
7351
7343
|
{
|
7352
|
-
"default": "",
|
7353
7344
|
"document": "日志主题ID",
|
7354
7345
|
"example": "57f5808c-4a55-11eb-b378-0242ac130002",
|
7355
7346
|
"member": "string",
|
@@ -7359,7 +7350,6 @@
|
|
7359
7350
|
"value_allowed_null": false
|
7360
7351
|
},
|
7361
7352
|
{
|
7362
|
-
"default": "",
|
7363
7353
|
"document": "日志主题名称",
|
7364
7354
|
"example": "test",
|
7365
7355
|
"member": "string",
|
@@ -7369,7 +7359,6 @@
|
|
7369
7359
|
"value_allowed_null": false
|
7370
7360
|
},
|
7371
7361
|
{
|
7372
|
-
"default": "",
|
7373
7362
|
"document": "主题分区个数",
|
7374
7363
|
"example": "1",
|
7375
7364
|
"member": "int64",
|
@@ -7379,7 +7368,6 @@
|
|
7379
7368
|
"value_allowed_null": false
|
7380
7369
|
},
|
7381
7370
|
{
|
7382
|
-
"default": "",
|
7383
7371
|
"document": "是否开启索引",
|
7384
7372
|
"example": "true",
|
7385
7373
|
"member": "bool",
|
@@ -7389,7 +7377,6 @@
|
|
7389
7377
|
"value_allowed_null": false
|
7390
7378
|
},
|
7391
7379
|
{
|
7392
|
-
"default": "",
|
7393
7380
|
"document": "云产品标识,日志主题由其它云产品创建时,该字段会显示云产品名称,例如CDN、TKE\n注意:此字段可能返回 null,表示取不到有效值。",
|
7394
7381
|
"example": "test",
|
7395
7382
|
"member": "string",
|
@@ -7399,7 +7386,6 @@
|
|
7399
7386
|
"value_allowed_null": true
|
7400
7387
|
},
|
7401
7388
|
{
|
7402
|
-
"default": "",
|
7403
7389
|
"document": "创建时间",
|
7404
7390
|
"example": "无",
|
7405
7391
|
"member": "string",
|
@@ -7409,7 +7395,6 @@
|
|
7409
7395
|
"value_allowed_null": false
|
7410
7396
|
},
|
7411
7397
|
{
|
7412
|
-
"default": "",
|
7413
7398
|
"document": "日主主题是否开启采集",
|
7414
7399
|
"example": "true",
|
7415
7400
|
"member": "bool",
|
@@ -7419,7 +7404,6 @@
|
|
7419
7404
|
"value_allowed_null": false
|
7420
7405
|
},
|
7421
7406
|
{
|
7422
|
-
"default": "",
|
7423
7407
|
"document": "日志主题绑定的标签信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
7424
7408
|
"example": "无",
|
7425
7409
|
"member": "Tag",
|
@@ -7429,7 +7413,6 @@
|
|
7429
7413
|
"value_allowed_null": true
|
7430
7414
|
},
|
7431
7415
|
{
|
7432
|
-
"default": "",
|
7433
7416
|
"document": "该主题是否开启自动分裂\n注意:此字段可能返回 null,表示取不到有效值。",
|
7434
7417
|
"example": "true",
|
7435
7418
|
"member": "bool",
|
@@ -7439,7 +7422,6 @@
|
|
7439
7422
|
"value_allowed_null": true
|
7440
7423
|
},
|
7441
7424
|
{
|
7442
|
-
"default": "",
|
7443
7425
|
"document": "若开启自动分裂的话,该主题能够允许的最大分区数\n注意:此字段可能返回 null,表示取不到有效值。",
|
7444
7426
|
"example": "50",
|
7445
7427
|
"member": "int64",
|
@@ -7449,7 +7431,6 @@
|
|
7449
7431
|
"value_allowed_null": true
|
7450
7432
|
},
|
7451
7433
|
{
|
7452
|
-
"default": "",
|
7453
7434
|
"document": "日主题的存储类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
7454
7435
|
"example": "hot",
|
7455
7436
|
"member": "string",
|
@@ -7459,7 +7440,6 @@
|
|
7459
7440
|
"value_allowed_null": true
|
7460
7441
|
},
|
7461
7442
|
{
|
7462
|
-
"default": "",
|
7463
7443
|
"document": "生命周期,单位天,可取值范围1~3600。取值为3640时代表永久保存\n注意:此字段可能返回 null,表示取不到有效值。",
|
7464
7444
|
"example": "30",
|
7465
7445
|
"member": "int64",
|
@@ -7469,7 +7449,6 @@
|
|
7469
7449
|
"value_allowed_null": true
|
7470
7450
|
},
|
7471
7451
|
{
|
7472
|
-
"default": "",
|
7473
7452
|
"document": "云产品二级标识,日志主题由其它云产品创建时,该字段会显示云产品名称及其日志类型的二级分类,例如TKE-Audit、TKE-Event。部分云产品仅有云产品标识(AssumerName),无该字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7474
7453
|
"example": "TKE-Audio",
|
7475
7454
|
"member": "string",
|
@@ -7479,7 +7458,6 @@
|
|
7479
7458
|
"value_allowed_null": true
|
7480
7459
|
},
|
7481
7460
|
{
|
7482
|
-
"default": "",
|
7483
7461
|
"document": "日志主题描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
7484
7462
|
"example": "xx部门xx业务topic",
|
7485
7463
|
"member": "string",
|
@@ -7487,6 +7465,15 @@
|
|
7487
7465
|
"required": true,
|
7488
7466
|
"type": "string",
|
7489
7467
|
"value_allowed_null": true
|
7468
|
+
},
|
7469
|
+
{
|
7470
|
+
"document": "开启日志沉降,热存储的生命周期, hotPeriod < Period。\n热存储为 hotPeriod, 冷存储则为 Period-hotPeriod。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7471
|
+
"example": "0",
|
7472
|
+
"member": "uint64",
|
7473
|
+
"name": "HotPeriod",
|
7474
|
+
"required": true,
|
7475
|
+
"type": "int",
|
7476
|
+
"value_allowed_null": true
|
7490
7477
|
}
|
7491
7478
|
],
|
7492
7479
|
"usage": "out"
|
@@ -356,7 +356,7 @@
|
|
356
356
|
{
|
357
357
|
"document": "获取日志主题列表",
|
358
358
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopics\n<公共请求参数>\n\n{\n \"Filters\": [],\n \"Offset\": 10,\n \"Limit\": 30\n}",
|
359
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Topics\": [\n {\n \"Index\": true,\n \"PartitionCount\": 1,\n \"Describes\": \"x1\",\n \"Status\": true,\n \"Tags\": [\n {\n \"Value\": \"x10\",\n \"Key\": \"x11\"\n }\n ],\n \"AssumerName\": \"x12\",\n \"SubAssumerName\": \"x13\",\n \"MaxSplitPartitions\": 0,\n \"LogsetId\": \"x15\",\n \"TopicId\": \"x16\",\n \"StorageType\": \"x17\",\n \"Period\": 0,\n \"AutoSplit\": true,\n \"CreateTime\": \"x18\",\n \"TopicName\": \"x19\"\n }\n ],\n \"RequestId\": \"x20\"\n }\n}",
|
359
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Topics\": [\n {\n \"Index\": true,\n \"PartitionCount\": 1,\n \"Describes\": \"x1\",\n \"Status\": true,\n \"Tags\": [\n {\n \"Value\": \"x10\",\n \"Key\": \"x11\"\n }\n ],\n \"AssumerName\": \"x12\",\n \"SubAssumerName\": \"x13\",\n \"MaxSplitPartitions\": 0,\n \"LogsetId\": \"x15\",\n \"TopicId\": \"x16\",\n \"HotPeriod\": 1,\n \"StorageType\": \"x17\",\n \"Period\": 0,\n \"AutoSplit\": true,\n \"CreateTime\": \"x18\",\n \"TopicName\": \"x19\"\n }\n ],\n \"RequestId\": \"x20\"\n }\n}",
|
360
360
|
"title": "获取日志主题列表"
|
361
361
|
}
|
362
362
|
],
|
tccli/services/cvm/cvm_client.py
CHANGED
@@ -3085,6 +3085,58 @@ def doDescribeKeyPairs(args, parsed_globals):
|
|
3085
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3086
|
|
3087
3087
|
|
3088
|
+
def doDescribeTaskInfo(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('-', '_')]
|
3097
|
+
)
|
3098
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_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.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3115
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3116
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3117
|
+
model = models.DescribeTaskInfoRequest()
|
3118
|
+
model.from_json_string(json.dumps(args))
|
3119
|
+
start_time = time.time()
|
3120
|
+
while True:
|
3121
|
+
rsp = client.DescribeTaskInfo(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
|
+
|
3088
3140
|
def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
3089
3141
|
g_param = parse_global_arg(parsed_globals)
|
3090
3142
|
|
@@ -4871,6 +4923,7 @@ ACTION_MAP = {
|
|
4871
4923
|
"DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
|
4872
4924
|
"ModifyInstancesProject": doModifyInstancesProject,
|
4873
4925
|
"DescribeKeyPairs": doDescribeKeyPairs,
|
4926
|
+
"DescribeTaskInfo": doDescribeTaskInfo,
|
4874
4927
|
"DescribeReservedInstancesOfferings": doDescribeReservedInstancesOfferings,
|
4875
4928
|
"InquiryPriceModifyInstancesChargeType": doInquiryPriceModifyInstancesChargeType,
|
4876
4929
|
"DescribeInternetChargeTypeConfigs": doDescribeInternetChargeTypeConfigs,
|