tccli 3.0.1131.1__py2.py3-none-any.whl → 3.0.1133.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/apm/v20210622/api.json +1 -0
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +9 -9
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +18 -0
- tccli/services/cfw/v20190904/api.json +4 -4
- tccli/services/ckafka/v20190819/api.json +133 -76
- tccli/services/ckafka/v20190819/examples.json +17 -17
- tccli/services/cms/v20190321/api.json +2 -0
- tccli/services/cms/v20190321/examples.json +1 -1
- tccli/services/csip/csip_client.py +106 -0
- tccli/services/csip/v20221121/api.json +862 -129
- tccli/services/csip/v20221121/examples.json +20 -4
- tccli/services/cynosdb/v20190107/api.json +340 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +34 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dsgc/v20190723/api.json +20 -18
- tccli/services/dsgc/v20190723/examples.json +5 -5
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/ess/v20201111/api.json +3 -3
- tccli/services/essbasic/v20210526/api.json +6 -6
- tccli/services/gaap/v20180529/api.json +21 -1
- tccli/services/gaap/v20180529/examples.json +0 -6
- tccli/services/iecp/v20210914/api.json +40 -40
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/lke/lke_client.py +171 -12
- tccli/services/lke/v20231130/api.json +524 -0
- tccli/services/lke/v20231130/examples.json +24 -0
- tccli/services/monitor/v20180724/api.json +47 -19
- tccli/services/monitor/v20180724/examples.json +4 -4
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +2 -2
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/redis/v20180412/api.json +33 -29
- tccli/services/redis/v20180412/examples.json +8 -8
- tccli/services/rum/v20210622/api.json +2 -0
- tccli/services/rum/v20210622/examples.json +1 -1
- tccli/services/sms/v20210111/api.json +26 -26
- tccli/services/tcr/v20190924/api.json +13 -10
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20180525/api.json +227 -41
- tccli/services/tke/v20180525/examples.json +26 -0
- tccli/services/tse/v20201207/api.json +13 -2
- tccli/services/tsf/v20180326/api.json +10 -8
- tccli/services/tsf/v20180326/examples.json +3 -3
- tccli/services/waf/v20180125/api.json +65 -9
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +111 -20
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1131.1.dist-info → tccli-3.0.1133.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1131.1.dist-info → tccli-3.0.1133.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1131.1.dist-info → tccli-3.0.1133.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1131.1.dist-info → tccli-3.0.1133.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1131.1.dist-info → tccli-3.0.1133.1.dist-info}/license_files/LICENSE +0 -0
@@ -90,7 +90,7 @@
|
|
90
90
|
{
|
91
91
|
"document": "创建消费者",
|
92
92
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConsumer\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-xxx\",\n \"TopicName\": \"topic-xxx\",\n \"GroupName\": \"group-xxx\"\n}",
|
93
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"
|
93
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"abc\",\n \"ReturnCode\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
94
94
|
"title": "创建消费者"
|
95
95
|
}
|
96
96
|
],
|
@@ -153,7 +153,7 @@
|
|
153
153
|
"CreatePartition": [
|
154
154
|
{
|
155
155
|
"document": "",
|
156
|
-
"input": "https://ckafka.tencentcloudapi.com/?Action=CreatePartition\
|
156
|
+
"input": "https://ckafka.tencentcloudapi.com/?Action=CreatePartition\n&InstanceId=xxx\n&TopicName=xxx\n&PartitionNum=3\n&<公共请求参数>",
|
157
157
|
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply success]\"\n },\n \"RequestId\": \"483c3edd-a2ac-420c-905d-47a5ec7de4ad\"\n }\n}",
|
158
158
|
"title": "增加主题分区"
|
159
159
|
}
|
@@ -230,7 +230,7 @@
|
|
230
230
|
{
|
231
231
|
"document": "",
|
232
232
|
"input": "https://ckafka.tencentcloudapi.com/?Action=DeleteAcl\n&InstanceId=xxx\n&ResourceType=2\n&ResourceName=1\n&Operation=2\n&PermissionType=2\n&<公共请求参数>",
|
233
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"ok[apply ok]\",\n \"ReturnCode\": \"0\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"2140f435-b350-4429-a105-9b83efe104b0\"\n }\n}",
|
233
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"ok[apply ok]\",\n \"ReturnCode\": \"0\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"2140f435-b350-4429-a105-9b83efe104b0\"\n }\n}",
|
234
234
|
"title": "删除ACL"
|
235
235
|
}
|
236
236
|
],
|
@@ -294,7 +294,7 @@
|
|
294
294
|
{
|
295
295
|
"document": "",
|
296
296
|
"input": "https://ckafka.tencentcloudapi.com/?Action=DeleteRoute\n&InstanceId=xxx\n&RouteId=1\n&CallerAppid=1\n&<公共请求参数>",
|
297
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"
|
297
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"abc\",\n \"ReturnCode\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"3d0d9aeb-82f9-440a-ab9b-a016212c6fb0\"\n }\n}",
|
298
298
|
"title": "删除路由"
|
299
299
|
}
|
300
300
|
],
|
@@ -342,7 +342,7 @@
|
|
342
342
|
{
|
343
343
|
"document": "",
|
344
344
|
"input": "https://ckafka.tencentcloudapi.com/?Action=DescribeAclRule\n&InstanceId=xxx\n&RuleName=xxx\n&PatternType=xxx\n&IsSimplified=false\n&<公共请求参数>",
|
345
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 1,\n \"AclRuleList\": [\n {\n \"RuleName\": \"
|
345
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 1,\n \"AclRuleList\": [\n {\n \"RuleName\": \"test\",\n \"InstanceId\": \"ckafka-abc\",\n \"PatternType\": \"PRESET\",\n \"Pattern\": \"\",\n \"ResourceType\": \"Topic\",\n \"AclList\": \"[{\\\"host\\\":\\\"*\\\",\\\"operation\\\":\\\"Read\\\",\\\"permissionType\\\":\\\"Allow\\\",\\\"principal\\\":\\\"User:*\\\"}]\",\n \"CreateTimeStamp\": \"Thu Jun 06 13:07:13 CST 2024\",\n \"IsApplied\": 0,\n \"UpdateTimeStamp\": \"Thu Jun 06 13:07:13 CST 2024\",\n \"Comment\": \"\",\n \"TopicName\": \"\",\n \"TopicCount\": 0,\n \"PatternTypeTitle\": \"预设策略\"\n }\n ]\n },\n \"RequestId\": \"62d589e0-53d5-47e0-95ff-237c48b8fb77\"\n }\n}",
|
346
346
|
"title": "枚举ACL"
|
347
347
|
}
|
348
348
|
],
|
@@ -358,7 +358,7 @@
|
|
358
358
|
{
|
359
359
|
"document": "",
|
360
360
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCkafkaZone\n<公共请求参数>\n\n{}",
|
361
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ZoneList\": [\n {\n \"ZoneId\": \"
|
361
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ZoneList\": [\n {\n \"ZoneId\": \"abc\",\n \"IsInternalApp\": 0,\n \"AppId\": 0,\n \"Flag\": true,\n \"ZoneName\": \"abc\",\n \"ZoneStatus\": 0,\n \"Exflag\": \"abc\",\n \"SoldOut\": \"abc\",\n \"SalesInfo\": [\n {\n \"Flag\": true,\n \"Version\": \"abc\",\n \"Platform\": \"abc\",\n \"SoldOut\": true\n }\n ],\n \"ExtraFlag\": \"abc\"\n }\n ],\n \"MaxBuyInstanceNum\": 0,\n \"MaxBandwidth\": 0,\n \"UnitPrice\": {\n \"RealTotalCost\": 0,\n \"TotalCost\": 0\n },\n \"MessagePrice\": {\n \"RealTotalCost\": 0,\n \"TotalCost\": 0\n },\n \"ClusterInfo\": [\n {\n \"ClusterId\": 0,\n \"ClusterName\": \"abc\",\n \"MaxDiskSize\": 0,\n \"MaxBandWidth\": 0,\n \"AvailableDiskSize\": 0,\n \"AvailableBandWidth\": 0,\n \"ZoneId\": 0,\n \"ZoneIds\": [\n 0\n ]\n }\n ],\n \"Standard\": \"abc\",\n \"StandardS2\": \"abc\",\n \"Profession\": \"abc\",\n \"Physical\": \"abc\",\n \"PublicNetwork\": \"abc\",\n \"PublicNetworkLimit\": \"abc\",\n \"RequestId\": \"abc\",\n \"Version\": \"abc\",\n \"Offset\": 0,\n \"Limit\": 0,\n \"ForceCheckTag\": true\n },\n \"RequestId\": \"abc\"\n }\n}",
|
362
362
|
"title": "查看可用区列表"
|
363
363
|
}
|
364
364
|
],
|
@@ -374,7 +374,7 @@
|
|
374
374
|
{
|
375
375
|
"document": "查询Datahub连接源列表",
|
376
376
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConnectResources\n<公共请求参数>\n\n{\n \"Limit\": 0,\n \"Type\": \"xxx\",\n \"SearchWord\": \"xxx\",\n \"Offset\": 0\n}",
|
377
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"ConnectResourceList\": [\n {\n \"
|
377
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"ConnectResourceList\": [\n {\n \"ResourceId\": \"abc\",\n \"ResourceName\": \"abc\",\n \"Description\": \"abc\",\n \"Type\": \"abc\",\n \"Status\": 0,\n \"CreateTime\": \"abc\",\n \"ErrorMessage\": \"abc\",\n \"DatahubTaskCount\": 0,\n \"CurrentStep\": \"abc\",\n \"TaskProgress\": 0,\n \"StepList\": [\n \"abc\"\n ],\n \"DtsConnectParam\": {\n \"Port\": 0,\n \"GroupId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"IsUpdate\": true,\n \"Topic\": \"abc\"\n },\n \"MongoDBConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"IsUpdate\": true\n },\n \"EsConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"IsUpdate\": true\n },\n \"ClickHouseConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"IsUpdate\": true\n },\n \"MySQLConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"IsUpdate\": true,\n \"ClusterId\": \"abc\",\n \"SelfBuilt\": true\n },\n \"PostgreSQLConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"ClusterId\": \"abc\",\n \"IsUpdate\": true,\n \"SelfBuilt\": true\n },\n \"MariaDBConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"IsUpdate\": true\n },\n \"SQLServerConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"IsUpdate\": true\n },\n \"CtsdbConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\"\n },\n \"DorisConnectParam\": {\n \"Port\": 0,\n \"ServiceVip\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"IsUpdate\": true,\n \"SelfBuilt\": true,\n \"BePort\": 0\n },\n \"KafkaConnectParam\": {\n \"Resource\": \"abc\",\n \"SelfBuilt\": true,\n \"IsUpdate\": true,\n \"BrokerAddress\": \"abc\",\n \"Region\": \"abc\"\n },\n \"MqttConnectParam\": {\n \"UserName\": \"abc\",\n \"Password\": \"abc\",\n \"Resource\": \"abc\",\n \"UniqVpcId\": \"abc\",\n \"SelfBuilt\": true,\n \"IsUpdate\": true,\n \"Region\": \"abc\"\n }\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
378
378
|
"title": "查询Datahub连接源列表"
|
379
379
|
}
|
380
380
|
],
|
@@ -422,7 +422,7 @@
|
|
422
422
|
{
|
423
423
|
"document": "",
|
424
424
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatahubTopics\n<公共请求参数>\n\n{}",
|
425
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 1,\n \"TopicList\": [\n {}\n ]\n },\n \"RequestId\": \"
|
425
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 1,\n \"TopicList\": [\n {\n \"Name\": \"abc\",\n \"TopicName\": \"abc\",\n \"TopicId\": \"abc\",\n \"PartitionNum\": 1,\n \"RetentionMs\": 1,\n \"Note\": \"abc\",\n \"Status\": 1\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
426
426
|
"title": "查询Datahub主题列表"
|
427
427
|
}
|
428
428
|
],
|
@@ -518,7 +518,7 @@
|
|
518
518
|
{
|
519
519
|
"document": "",
|
520
520
|
"input": "https://ckafka.tencentcloudapi.com/?Action=DescribeTopicAttributes\n&InstanceId=xxx\n&TopicName=xxx\n&<公共请求参数>",
|
521
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicId\": \"
|
521
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicId\": \"abc\",\n \"CreateTime\": 0,\n \"Note\": \"abc\",\n \"PartitionNum\": 0,\n \"EnableWhiteList\": 0,\n \"IpWhiteList\": [\n \"abc\"\n ],\n \"Config\": {\n \"Retention\": 0,\n \"MinInsyncReplicas\": 0,\n \"CleanUpPolicy\": \"abc\",\n \"SegmentMs\": 0,\n \"UncleanLeaderElectionEnable\": 0,\n \"SegmentBytes\": 0,\n \"MaxMessageBytes\": 0,\n \"RetentionBytes\": 0\n },\n \"Partitions\": [\n {\n \"Partition\": 0,\n \"LeaderStatus\": 0,\n \"IsrNum\": 0,\n \"ReplicaNum\": 0\n }\n ],\n \"EnableAclRule\": 0,\n \"AclRuleList\": [\n {\n \"RuleName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"PatternType\": \"abc\",\n \"Pattern\": \"abc\",\n \"ResourceType\": \"abc\",\n \"AclList\": \"abc\",\n \"CreateTimeStamp\": \"abc\",\n \"IsApplied\": 0,\n \"UpdateTimeStamp\": \"abc\",\n \"Comment\": \"abc\",\n \"TopicName\": \"abc\",\n \"TopicCount\": 0,\n \"PatternTypeTitle\": \"abc\"\n }\n ],\n \"QuotaConfig\": {\n \"QuotaProducerByteRate\": 0,\n \"QuotaConsumerByteRate\": 0\n },\n \"ReplicaNum\": 0\n },\n \"RequestId\": \"abc\"\n }\n}",
|
522
522
|
"title": "获取主题属性"
|
523
523
|
}
|
524
524
|
],
|
@@ -526,7 +526,7 @@
|
|
526
526
|
{
|
527
527
|
"document": "",
|
528
528
|
"input": "https://ckafka.tencentcloudapi.com/?Action=DescribeTopicDetail\n&InstanceId=ckafka-xxooa0\n&<公共请求参数>",
|
529
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicList\": [\n {\n \"TopicName\": \"
|
529
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicList\": [\n {\n \"TopicName\": \"abc\",\n \"TopicId\": \"abc\",\n \"PartitionNum\": 0,\n \"ReplicaNum\": 0,\n \"Note\": \"abc\",\n \"CreateTime\": 0,\n \"EnableWhiteList\": true,\n \"IpWhiteListCount\": 0,\n \"ForwardCosBucket\": \"abc\",\n \"ForwardStatus\": 0,\n \"ForwardInterval\": 0,\n \"Config\": {\n \"Retention\": 0,\n \"MinInsyncReplicas\": 0,\n \"CleanUpPolicy\": \"abc\",\n \"SegmentMs\": 0,\n \"UncleanLeaderElectionEnable\": 0,\n \"SegmentBytes\": 0,\n \"MaxMessageBytes\": 0,\n \"RetentionBytes\": 0\n },\n \"RetentionTimeConfig\": {\n \"Expect\": 0,\n \"Current\": 0,\n \"ModTimeStamp\": 0\n },\n \"Status\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ],\n \"TotalCount\": 0\n },\n \"RequestId\": \"abc\"\n }\n}",
|
530
530
|
"title": "获取实例列表详情"
|
531
531
|
}
|
532
532
|
],
|
@@ -534,7 +534,7 @@
|
|
534
534
|
{
|
535
535
|
"document": "检查当前实例的主题流量top 情况",
|
536
536
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicFlowRanking\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-3inxiic\",\n \"BeginDate\": \"2020-09-22T00:00:00+00:00\",\n \"EndDate\": \"2020-09-22T00:00:00+00:00\",\n \"RankingType\": \"PRO\"\n}",
|
537
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicFlow\": [\n {\n \"TopicId\": \"abc\",\n \"TopicName\": \"abc\",\n \"PartitionNum\": 1,\n \"ReplicaNum\": 1,\n \"TopicTraffic\": \"abc\",\n \"MessageHeap\": 1\n }\n ],\n \"ConsumeSpeed\": [\n {\n \"ConsumerGroupName\": \"abc\",\n \"Speed\": 1\n }\n ],\n \"TopicMessageHeap\": [\n {\n \"TopicId\": \"abc\",\n \"TopicName\": \"abc\",\n \"PartitionNum\": 1,\n \"ReplicaNum\": 1,\n \"TopicTraffic\": \"abc\",\n \"MessageHeap\": 1\n }\n ],\n \"BrokerIp\": [\n \"abc\"\n ],\n \"BrokerTopicData\": [\n {\n \"TopicName\": \"abc\",\n \"TopicId\": \"abc\",\n \"DataSize\": 1\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
537
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TopicFlow\": [\n {\n \"TopicId\": \"abc\",\n \"TopicName\": \"abc\",\n \"PartitionNum\": 1,\n \"ReplicaNum\": 1,\n \"TopicTraffic\": \"abc\",\n \"MessageHeap\": 1\n }\n ],\n \"ConsumeSpeed\": [\n {\n \"ConsumerGroupName\": \"abc\",\n \"Speed\": 1\n }\n ],\n \"TopicMessageHeap\": [\n {\n \"TopicId\": \"abc\",\n \"TopicName\": \"abc\",\n \"PartitionNum\": 1,\n \"ReplicaNum\": 1,\n \"TopicTraffic\": \"abc\",\n \"MessageHeap\": 1\n }\n ],\n \"BrokerIp\": [\n \"abc\"\n ],\n \"BrokerTopicData\": [\n {\n \"TopicName\": \"abc\",\n \"TopicId\": \"abc\",\n \"DataSize\": 1\n }\n ],\n \"BrokerTopicFlowData\": [\n {\n \"TopicName\": \"abc\",\n \"TopicId\": \"abc\",\n \"TopicTraffic\": \"abc\"\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
538
538
|
"title": "Topic 流量排行"
|
539
539
|
}
|
540
540
|
],
|
@@ -542,7 +542,7 @@
|
|
542
542
|
{
|
543
543
|
"document": "获取topic连接信息",
|
544
544
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicProduceConnection\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-xxxx\",\n \"TopicName\": \"xxxx\"\n}",
|
545
|
-
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"IpAddr\": \"
|
545
|
+
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"IpAddr\": \"abc\",\n \"Time\": \"abc\",\n \"IsUnSupportVersion\": true\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
546
546
|
"title": "获取topic连接信息"
|
547
547
|
}
|
548
548
|
],
|
@@ -550,7 +550,7 @@
|
|
550
550
|
{
|
551
551
|
"document": "",
|
552
552
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicSubscribeGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-kmex0nvv\",\n \"TopicName\": \"test\"\n}",
|
553
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"Status\":
|
553
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"Status\": 1,\n \"TotalCount\": 2,\n \"StatusCountInfo\": \"1 Empty, 1 Stable\",\n \"GroupsInfo\": [\n {\n \"Protocol\": \"\",\n \"ProtocolType\": \"\",\n \"ErrorCode\": \"0\",\n \"State\": \"Empty\",\n \"Members\": [],\n \"Group\": \"xx1\"\n },\n {\n \"Protocol\": \"roundrobin\",\n \"ProtocolType\": \"consumer\",\n \"ErrorCode\": \"0\",\n \"State\": \"Stable\",\n \"Members\": [\n {\n \"ClientHost\": \"10.0.0.0\",\n \"MemberId\": \"consumer-63-/10.0.0.0-2022-07-31 19:09:08:169-73e4xx82-4c42-4ccf-8d01-7c74c8xxxxx2\",\n \"ClientId\": \"consumer-63\",\n \"Assignment\": {\n \"Topics\": [\n {\n \"Topic\": \"xx_topic\",\n \"Partitions\": [\n 10\n ]\n }\n ],\n \"Version\": 0\n }\n }\n ],\n \"Group\": \"xx2\"\n }\n ]\n },\n \"RequestId\": \"91b6b112-7f0a-4e18-b353-5202bcafd2c2\"\n }\n}",
|
554
554
|
"title": "查询订阅某主题消息分组信息"
|
555
555
|
}
|
556
556
|
],
|
@@ -590,7 +590,7 @@
|
|
590
590
|
{
|
591
591
|
"document": "",
|
592
592
|
"input": "https://ckafka.tencentcloudapi.com/?Action=FetchMessageByOffset\n&InstanceId=xxx\n&Topic=xxx\n&Partition=1\n&Offset=1\n&<公共请求参数>",
|
593
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"
|
593
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"Topic\": \"abc\",\n \"Partition\": 0,\n \"Offset\": 0,\n \"Key\": \"abc\",\n \"Value\": \"abc\",\n \"Timestamp\": 0,\n \"Headers\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
594
594
|
"title": "消息查询"
|
595
595
|
}
|
596
596
|
],
|
@@ -598,7 +598,7 @@
|
|
598
598
|
{
|
599
599
|
"document": "",
|
600
600
|
"input": "https://ckafka.tencentcloudapi.com/?Action=FetchMessageListByOffset\n&InstanceId=xxx\n&Topic=xxx\n&Partition=1\n&Offset=1\n&SinglePartitionRecordNumber=20\n&<公共请求参数>",
|
601
|
-
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"Topic\": \"
|
601
|
+
"output": "{\n \"Response\": {\n \"Result\": [\n {\n \"Topic\": \"abc\",\n \"Partition\": 0,\n \"Offset\": 0,\n \"Key\": \"abc\",\n \"Value\": \"abc\",\n \"Timestamp\": 0,\n \"Headers\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
602
602
|
"title": "根据offset查询消息"
|
603
603
|
}
|
604
604
|
],
|
@@ -662,7 +662,7 @@
|
|
662
662
|
{
|
663
663
|
"document": " ",
|
664
664
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceAttributes\n<公共请求参数>\n\n{\n \"InstanceId\": \"10\"\n}",
|
665
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"
|
665
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"abc\",\n \"ReturnMessage\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
666
666
|
"title": "设置实例属性"
|
667
667
|
}
|
668
668
|
],
|
@@ -686,7 +686,7 @@
|
|
686
686
|
{
|
687
687
|
"document": "",
|
688
688
|
"input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyTopicAttributes\n<公共请求参数>\n\n{\n \"InstanceId\": \"xxx\",\n \"Note\": \"xxx\",\n \"TopicName\": \"xxx\"\n}",
|
689
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"
|
689
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"abc\",\n \"ReturnMessage\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
|
690
690
|
"title": "设置主题属性"
|
691
691
|
}
|
692
692
|
],
|
@@ -509,6 +509,7 @@
|
|
509
509
|
"example": "50",
|
510
510
|
"member": "int64",
|
511
511
|
"name": "TotalCount",
|
512
|
+
"output_required": true,
|
512
513
|
"type": "int",
|
513
514
|
"value_allowed_null": false
|
514
515
|
},
|
@@ -518,6 +519,7 @@
|
|
518
519
|
"example": "1",
|
519
520
|
"member": "KeywordsLibInfo",
|
520
521
|
"name": "Infos",
|
522
|
+
"output_required": true,
|
521
523
|
"type": "list",
|
522
524
|
"value_allowed_null": false
|
523
525
|
},
|
@@ -20,7 +20,7 @@
|
|
20
20
|
{
|
21
21
|
"document": "获取用户词库列表",
|
22
22
|
"input": "POST / HTTP/1.1\nHost: cms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKeywordsLibs\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Offset\": \"0\",\n \"Filters\": [\n {\n \"Name\": \"LibName\",\n \"Values\": [\n \"test\"\n ]\n }\n ]\n}",
|
23
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Infos\": [\n {\n \"ID\": \"abc\",\n \"LibName\": \"abc\",\n \"Describe\": \"abc\",\n \"CreateTime\": \"abc\",\n \"Suggestion\": \"abc\",\n \"MatchType\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Infos\": [\n {\n \"ID\": \"abc\",\n \"LibName\": \"abc\",\n \"Describe\": \"abc\",\n \"CreateTime\": \"abc\",\n \"Suggestion\": \"abc\",\n \"MatchType\": \"abc\",\n \"BizTypes\": [\n \"abc\"\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
24
24
|
"title": "获取用户词库列表"
|
25
25
|
}
|
26
26
|
],
|
@@ -1057,6 +1057,58 @@ def doDescribeAssetViewVulRiskList(args, parsed_globals):
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1058
|
|
1059
1059
|
|
1060
|
+
def doDescribeVULRiskDetail(args, parsed_globals):
|
1061
|
+
g_param = parse_global_arg(parsed_globals)
|
1062
|
+
|
1063
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1064
|
+
cred = credential.CVMRoleCredential()
|
1065
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1066
|
+
cred = credential.STSAssumeRoleCredential(
|
1067
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1068
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1069
|
+
)
|
1070
|
+
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):
|
1071
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1072
|
+
else:
|
1073
|
+
cred = credential.Credential(
|
1074
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1075
|
+
)
|
1076
|
+
http_profile = HttpProfile(
|
1077
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1078
|
+
reqMethod="POST",
|
1079
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1080
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1081
|
+
)
|
1082
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1083
|
+
if g_param[OptionsDefine.Language]:
|
1084
|
+
profile.language = g_param[OptionsDefine.Language]
|
1085
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1086
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1088
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
+
model = models.DescribeVULRiskDetailRequest()
|
1090
|
+
model.from_json_string(json.dumps(args))
|
1091
|
+
start_time = time.time()
|
1092
|
+
while True:
|
1093
|
+
rsp = client.DescribeVULRiskDetail(model)
|
1094
|
+
result = rsp.to_json_string()
|
1095
|
+
try:
|
1096
|
+
json_obj = json.loads(result)
|
1097
|
+
except TypeError as e:
|
1098
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1099
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1100
|
+
break
|
1101
|
+
cur_time = time.time()
|
1102
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1103
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1104
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1105
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1106
|
+
else:
|
1107
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1108
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1109
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
|
+
|
1111
|
+
|
1060
1112
|
def doDescribeRiskCenterWebsiteRiskList(args, parsed_globals):
|
1061
1113
|
g_param = parse_global_arg(parsed_globals)
|
1062
1114
|
|
@@ -1369,6 +1421,58 @@ def doDescribeTaskLogList(args, parsed_globals):
|
|
1369
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1422
|
|
1371
1423
|
|
1424
|
+
def doDescribeVulViewVulRiskList(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.DescribeVulViewVulRiskListRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.DescribeVulViewVulRiskList(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1372
1476
|
def doDescribeScanReportList(args, parsed_globals):
|
1373
1477
|
g_param = parse_global_arg(parsed_globals)
|
1374
1478
|
|
@@ -2128,12 +2232,14 @@ ACTION_MAP = {
|
|
2128
2232
|
"DescribeCVMAssets": doDescribeCVMAssets,
|
2129
2233
|
"ModifyRiskCenterScanTask": doModifyRiskCenterScanTask,
|
2130
2234
|
"DescribeAssetViewVulRiskList": doDescribeAssetViewVulRiskList,
|
2235
|
+
"DescribeVULRiskDetail": doDescribeVULRiskDetail,
|
2131
2236
|
"DescribeRiskCenterWebsiteRiskList": doDescribeRiskCenterWebsiteRiskList,
|
2132
2237
|
"StopRiskCenterTask": doStopRiskCenterTask,
|
2133
2238
|
"CreateRiskCenterScanTask": doCreateRiskCenterScanTask,
|
2134
2239
|
"DescribeGatewayAssets": doDescribeGatewayAssets,
|
2135
2240
|
"DescribeSearchBugInfo": doDescribeSearchBugInfo,
|
2136
2241
|
"DescribeTaskLogList": doDescribeTaskLogList,
|
2242
|
+
"DescribeVulViewVulRiskList": doDescribeVulViewVulRiskList,
|
2137
2243
|
"DescribeScanReportList": doDescribeScanReportList,
|
2138
2244
|
"CreateDomainAndIp": doCreateDomainAndIp,
|
2139
2245
|
"DescribeAlertList": doDescribeAlertList,
|