tccli 3.0.1351.1__py2.py3-none-any.whl → 3.0.1352.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/ai3d/v20250513/api.json +1 -1
- tccli/services/ai3d/v20250513/examples.json +1 -1
- tccli/services/ccc/v20200210/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/ctem/ctem_client.py +212 -0
- tccli/services/ctem/v20231128/api.json +1609 -633
- tccli/services/ctem/v20231128/examples.json +32 -0
- tccli/services/cwp/v20180228/api.json +11 -1
- tccli/services/cynosdb/v20190107/api.json +28 -0
- tccli/services/cynosdb/v20190107/examples.json +4 -4
- tccli/services/ess/ess_client.py +114 -8
- tccli/services/ess/v20201111/api.json +212 -0
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/iss/v20230517/api.json +9 -9
- tccli/services/live/v20180801/api.json +299 -3
- tccli/services/live/v20180801/examples.json +6 -6
- tccli/services/lkeap/v20240522/api.json +94 -17
- tccli/services/lkeap/v20240522/examples.json +2 -2
- tccli/services/mongodb/v20190725/api.json +2 -2
- tccli/services/mongodb/v20190725/examples.json +1 -1
- tccli/services/monitor/v20180724/api.json +38 -24
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +580 -279
- tccli/services/mps/v20190612/examples.json +18 -4
- tccli/services/ocr/v20181119/api.json +24 -4
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +9 -0
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/teo/teo_client.py +777 -35
- tccli/services/teo/v20220901/api.json +1026 -3
- tccli/services/teo/v20220901/examples.json +154 -0
- tccli/services/tione/v20211111/api.json +9 -0
- tccli/services/vod/v20180717/api.json +60 -60
- tccli/services/vod/v20180717/examples.json +20 -20
- {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1351.1.dist-info → tccli-3.0.1352.1.dist-info}/license_files/LICENSE +0 -0
@@ -72,6 +72,38 @@
|
|
72
72
|
"title": "查看子公司数据"
|
73
73
|
}
|
74
74
|
],
|
75
|
+
"DescribeFakeApps": [
|
76
|
+
{
|
77
|
+
"document": "",
|
78
|
+
"input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFakeApps\n<公共请求参数>\n\n{\n \"CustomerId\": 100279,\n \"EnterpriseUidList\": [],\n \"Limit\": 10,\n \"Offset\": 0,\n \"Filters\": []\n}",
|
79
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"AppName\": \"测试\",\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2025-06-09 11:25:54\",\n \"CustomerId\": 100279,\n \"CustomerName\": \"信息泄露测试\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"分支机构\",\n \"EnterpriseUid\": \"beea23ea16f0d399f33ab77b208c41f7\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Labels\": \"{}\",\n \"Md5\": \"a73c252da5dff90d71bf093551d76982\",\n \"UpdateAt\": \"2025-06-09 14:43:25\"\n },\n \"DownloadUrl\": \"https://xxxxqq.com/http-docker.arthin.net-80-Qndxn.png\",\n \"HandlingStatus\": 1,\n \"Id\": 1,\n \"PackageName\": \"com.xxx.test\",\n \"ShutdownStatus\": 0,\n \"ShutdownTime\": \"\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
80
|
+
"title": "查询仿冒应用"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"DescribeFakeMiniPrograms": [
|
84
|
+
{
|
85
|
+
"document": "",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFakeMiniPrograms\n<公共请求参数>\n\n{\n \"CustomerId\": 100279,\n \"EnterpriseUidList\": [],\n \"Limit\": 10,\n \"Offset\": 0,\n \"Filters\": []\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"Category\": \"安全\",\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2025-06-09 11:32:25\",\n \"CustomerId\": 100279,\n \"CustomerName\": \"信息泄露测试\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"分支机构\",\n \"EnterpriseUid\": \"beea23ea16f0d399f33ab77b208c41f7\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Labels\": \"{}\",\n \"Md5\": \"a734442da5dff90d71bf093551d76982\",\n \"UpdateAt\": \"2025-06-09 14:40:28\"\n },\n \"HandlingStatus\": 2,\n \"Id\": 1,\n \"ProgramId\": \"wx_sdfsdfasdf\",\n \"ProgramName\": \"情报\",\n \"QrCode\": \"https://pcmsdfses.com/applet-code.jpg\",\n \"ShutdownStatus\": 0,\n \"ShutdownTime\": \"\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
88
|
+
"title": "查询仿冒小程序"
|
89
|
+
}
|
90
|
+
],
|
91
|
+
"DescribeFakeWebsites": [
|
92
|
+
{
|
93
|
+
"document": "",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFakeWebsites\n<公共请求参数>\n\n{\n \"CustomerId\": 100279,\n \"EnterpriseUidList\": [],\n \"Limit\": 10,\n \"Offset\": 0,\n \"Filters\": []\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2025-06-06 11:26:29\",\n \"CustomerId\": 100279,\n \"CustomerName\": \"信息泄露测试\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"分支机构\",\n \"EnterpriseUid\": \"beea23ea16f0d399f33ab77b208c41f7\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Labels\": \"{}\",\n \"Md5\": \"a73c252da53b290d71bf093551d76982\",\n \"UpdateAt\": \"2025-06-09 14:43:12\"\n },\n \"HandlingStatus\": 0,\n \"IPLocation\": \"中国 北京市\",\n \"Id\": 1,\n \"Screenshot\": \"https://xxxxxxxxx.com/http-docker.arthin.net-80-Qndxn.png\",\n \"ShutdownStatus\": 0,\n \"ShutdownTime\": \"\",\n \"Website\": \"test.qq.com\"\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Total\": 1\n }\n}",
|
96
|
+
"title": "查询仿冒网站"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"DescribeFakeWechatOfficials": [
|
100
|
+
{
|
101
|
+
"document": "",
|
102
|
+
"input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFakeWechatOfficials\n<公共请求参数>\n\n{\n \"CustomerId\": 100279,\n \"EnterpriseUidList\": [],\n \"Limit\": 10,\n \"Offset\": 0,\n \"Filters\": []\n}",
|
103
|
+
"output": "{\n \"Response\": {\n \"List\": [\n {\n \"AccountName\": \"测试1\",\n \"Avatar\": \"https://screenoud.com/2025-05-26/http-docker.arthin.net-80-Qndxn.png\",\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2025-06-09 14:42:28\",\n \"CustomerId\": 100279,\n \"CustomerName\": \"信息泄露测试\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"分支机构\",\n \"EnterpriseUid\": \"beea23ea16f0d399f33ab77b208c41f7\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Labels\": \"{}\",\n \"Md5\": \"\",\n \"UpdateAt\": \"2025-06-09 14:43:42\"\n },\n \"HandlingStatus\": 2,\n \"Id\": 2,\n \"QrCode\": \"https://pcmgcloud.com/web-static/images/expert-code.svg\",\n \"ShutdownStatus\": 5,\n \"ShutdownTime\": \"\",\n \"WechatId\": \"wx_2222\"\n },\n {\n \"AccountName\": \"测试公众号\",\n \"Avatar\": \"https://screenssdfadfa.com/5-26/http-docker.arthin.net-80-Qndxn.png\",\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2025-06-09 11:26:59\",\n \"CustomerId\": 100279,\n \"CustomerName\": \"信息泄露测试\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"分支机构\",\n \"EnterpriseUid\": \"beea23ea16f0d399f33ab77b208c41f7\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Labels\": \"{}\",\n \"Md5\": \"a73c252123dff90d71bf093551d76982\",\n \"UpdateAt\": \"2025-06-09 14:43:51\"\n },\n \"HandlingStatus\": 0,\n \"Id\": 1,\n \"QrCode\": \"https://sdfasfaages.com/expert-code.svg\",\n \"ShutdownStatus\": 0,\n \"ShutdownTime\": \"\",\n \"WechatId\": \"wx_xxxxddfa\"\n }\n ],\n \"Total\": 2,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
104
|
+
"title": "查询仿冒公众号"
|
105
|
+
}
|
106
|
+
],
|
75
107
|
"DescribeGithubs": [
|
76
108
|
{
|
77
109
|
"document": "查看github泄露数据",
|
@@ -37104,7 +37104,7 @@
|
|
37104
37104
|
{
|
37105
37105
|
"disabled": false,
|
37106
37106
|
"document": "漏洞标签 多个逗号分割",
|
37107
|
-
"example": "
|
37107
|
+
"example": "EXP:存在EXP, KNOWN_EXPLOITED:在野攻击, LOCAL:本地利用, NEED_FIX:必修漏洞, NETWORK:远程利用, POC:存在POC, RESTART:系统重启",
|
37108
37108
|
"member": "string",
|
37109
37109
|
"name": "Labels",
|
37110
37110
|
"output_required": true,
|
@@ -44668,6 +44668,16 @@
|
|
44668
44668
|
"output_required": true,
|
44669
44669
|
"type": "string",
|
44670
44670
|
"value_allowed_null": false
|
44671
|
+
},
|
44672
|
+
{
|
44673
|
+
"disabled": false,
|
44674
|
+
"document": "主机安全agent版本",
|
44675
|
+
"example": "2.0.1.1",
|
44676
|
+
"member": "string",
|
44677
|
+
"name": "AgentVersion",
|
44678
|
+
"output_required": false,
|
44679
|
+
"type": "string",
|
44680
|
+
"value_allowed_null": false
|
44671
44681
|
}
|
44672
44682
|
],
|
44673
44683
|
"usage": "out"
|
@@ -1424,6 +1424,15 @@
|
|
1424
1424
|
"name": "BinlogSyncWay",
|
1425
1425
|
"required": false,
|
1426
1426
|
"type": "string"
|
1427
|
+
},
|
1428
|
+
{
|
1429
|
+
"disabled": false,
|
1430
|
+
"document": "半同步超时时间,单位ms。为保证业务稳定性,半同步复制存在退化逻辑,当主可用区集群在等待备可用区集群确认事务时若超过该超时时间,复制方式将降为异步复制。最低设置为1000ms,最高支持4294967295ms,默认10000ms。",
|
1431
|
+
"example": "10000",
|
1432
|
+
"member": "int64",
|
1433
|
+
"name": "SemiSyncTimeout",
|
1434
|
+
"required": false,
|
1435
|
+
"type": "int"
|
1427
1436
|
}
|
1428
1437
|
],
|
1429
1438
|
"type": "object"
|
@@ -16110,6 +16119,15 @@
|
|
16110
16119
|
"name": "BinlogSyncWay",
|
16111
16120
|
"required": false,
|
16112
16121
|
"type": "string"
|
16122
|
+
},
|
16123
|
+
{
|
16124
|
+
"disabled": false,
|
16125
|
+
"document": "半同步超时时间,单位ms。为保证业务稳定性,半同步复制存在退化逻辑,当主可用区集群在等待备可用区集群确认事务时若超过该超时时间,复制方式将降为异步复制。最低设置为1000ms,最高支持4294967295ms,默认10000ms。",
|
16126
|
+
"example": "10000",
|
16127
|
+
"member": "int64",
|
16128
|
+
"name": "SemiSyncTimeout",
|
16129
|
+
"required": false,
|
16130
|
+
"type": "int"
|
16113
16131
|
}
|
16114
16132
|
],
|
16115
16133
|
"type": "object"
|
@@ -22011,6 +22029,16 @@
|
|
22011
22029
|
"output_required": false,
|
22012
22030
|
"type": "string",
|
22013
22031
|
"value_allowed_null": false
|
22032
|
+
},
|
22033
|
+
{
|
22034
|
+
"disabled": false,
|
22035
|
+
"document": "半同步超时时间,单位ms",
|
22036
|
+
"example": "10000",
|
22037
|
+
"member": "int64",
|
22038
|
+
"name": "SemiSyncTimeout",
|
22039
|
+
"output_required": false,
|
22040
|
+
"type": "int",
|
22041
|
+
"value_allowed_null": false
|
22014
22042
|
}
|
22015
22043
|
],
|
22016
22044
|
"usage": "out"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"AddClusterSlaveZone": [
|
12
12
|
{
|
13
13
|
"document": "开启多可用区部署",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"SlaveZone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"async\"\n}",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"SlaveZone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"async\",\n \"SemiSyncTimeout\": 10000\n}",
|
15
15
|
"output": "{\n \"Response\": {\n \"FlowId\": 147184,\n \"RequestId\": \"fd5759b5-89e9-483c-b79c-d99b27c33192\"\n }\n}",
|
16
16
|
"title": "开启多可用区部署"
|
17
17
|
}
|
@@ -422,7 +422,7 @@
|
|
422
422
|
{
|
423
423
|
"document": "集群信息描述",
|
424
424
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterDetail\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbpg-5804k48e\"\n}",
|
425
|
-
"output": "{\n \"Response\": {\n \"Detail\": {\n \"ClusterId\": \"cynosdbmysql-sgvwu2is\",\n \"ClusterName\": \"cynodbmysql-自定义用户名\",\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-5\",\n \"PhysicalZone\": \"ap-guangzhou-5\",\n \"Status\": \"running\",\n \"StatusDesc\": \"运行中\",\n \"ServerlessStatus\": \"运行中\",\n \"StorageId\": \"cynosdbmysql-sgvwu2is\",\n \"Storage\": 20,\n \"MaxStorageSize\": 1000,\n \"MinStorageSize\": 10,\n \"StoragePayMode\": 0,\n \"VpcName\": \"vpc-osjw7wbx\",\n \"VpcId\": \"vpc-osjw7wbx\",\n \"SubnetName\": \"subnet-stbcji8s\",\n \"SubnetId\": \"subnet-stbcji8s\",\n \"Charset\": \"utf8mb4\",\n \"CreateTime\": \"2020-02-20 20:20:20\",\n \"DbType\": \"MYSQL\",\n \"DbMode\": \"normal\",\n \"DbVersion\": \"5.7\",\n \"StorageLimit\": 20,\n \"UsedStorage\": 14,\n \"Vip\": \"1.2.3.4\",\n \"Vport\": 3306,\n \"RoAddr\": [\n {\n \"IP\": \"1.2.3.5\",\n \"Port\": 3306\n }\n ],\n \"Ability\": {\n \"IsSupportSlaveZone\": \"yes\",\n \"NonsupportSlaveZoneReason\": \"aaabbbccc\",\n \"IsSupportRo\": \"yes\",\n \"NonsupportRoReason\": \"aaabbbccc\",\n \"IsSupportManualSnapshot\": \"yes\"\n },\n \"CynosVersion\": \"3.1.10\",\n \"BusinessType\": \"\",\n \"HasSlaveZone\": \"yes\",\n \"IsFreeze\": \"no\",\n \"Tasks\": [\n {\n \"TaskId\": 10,\n \"TaskType\": \"taskAutoBackup\",\n \"TaskStatus\": \"processing\",\n \"ObjectId\": \"cynosdbmysql-sgvwu2is\",\n \"ObjectType\": \"taskObjTypeCluster\"\n }\n ],\n \"MasterZone\": \"ap-guangzhou-5\",\n \"SlaveZones\": [\n \"ap-guangzhou-3\"\n ],\n \"InstanceSet\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-xvs9osn2\",\n \"InstanceName\": \"cynosdbmysql-用户自定义名称\",\n \"InstanceType\": \"rw\",\n \"InstanceStatus\": \"running\",\n \"InstanceStatusDesc\": \"运行中\",\n \"InstanceCpu\": 1,\n \"InstanceMemory\": 2,\n \"InstanceStorage\": 0,\n \"InstanceRole\": \"master\",\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"Mon\"\n ],\n \"ServerlessStatus\": \"pause\"\n }\n ],\n \"PayMode\": 0,\n \"PeriodEndTime\": \"2030-01-01 10:01:01\",\n \"ProjectID\": 0,\n \"ResourceTags\": [\n {\n \"TagKey\": \"tagKey-1\",\n \"TagValue\": \"tagValue-1\"\n }\n ],\n \"ProxyStatus\": \"running\",\n \"LogBin\": \"ON\",\n \"IsSkipTrade\": \"no\",\n \"PitrType\": \"redo_pitr\",\n \"IsOpenPasswordComplexity\": \"yes\",\n \"NetworkStatus\": \"whole_rdma\",\n \"ResourcePackages\": [\n {\n \"PackageId\": \"package-xbhsw7wk\",\n \"PackageType\": \"CCU\",\n \"DeductionPriority\": 1\n }\n ],\n \"RenewFlag\": 0,\n \"NetworkType\": \"whole_rdma\",\n \"SlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"BinlogSyncWay\": \"async\"\n }\n ]\n },\n \"RequestId\": \"6febb6f0-b0fc-11ee-93cb-73a07daf38c5\"\n }\n}",
|
425
|
+
"output": "{\n \"Response\": {\n \"Detail\": {\n \"ClusterId\": \"cynosdbmysql-sgvwu2is\",\n \"ClusterName\": \"cynodbmysql-自定义用户名\",\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-5\",\n \"PhysicalZone\": \"ap-guangzhou-5\",\n \"Status\": \"running\",\n \"StatusDesc\": \"运行中\",\n \"ServerlessStatus\": \"运行中\",\n \"StorageId\": \"cynosdbmysql-sgvwu2is\",\n \"Storage\": 20,\n \"MaxStorageSize\": 1000,\n \"MinStorageSize\": 10,\n \"StoragePayMode\": 0,\n \"VpcName\": \"vpc-osjw7wbx\",\n \"VpcId\": \"vpc-osjw7wbx\",\n \"SubnetName\": \"subnet-stbcji8s\",\n \"SubnetId\": \"subnet-stbcji8s\",\n \"Charset\": \"utf8mb4\",\n \"CreateTime\": \"2020-02-20 20:20:20\",\n \"DbType\": \"MYSQL\",\n \"DbMode\": \"normal\",\n \"DbVersion\": \"5.7\",\n \"StorageLimit\": 20,\n \"UsedStorage\": 14,\n \"Vip\": \"1.2.3.4\",\n \"Vport\": 3306,\n \"RoAddr\": [\n {\n \"IP\": \"1.2.3.5\",\n \"Port\": 3306\n }\n ],\n \"Ability\": {\n \"IsSupportSlaveZone\": \"yes\",\n \"NonsupportSlaveZoneReason\": \"aaabbbccc\",\n \"IsSupportRo\": \"yes\",\n \"NonsupportRoReason\": \"aaabbbccc\",\n \"IsSupportManualSnapshot\": \"yes\"\n },\n \"CynosVersion\": \"3.1.10\",\n \"BusinessType\": \"\",\n \"HasSlaveZone\": \"yes\",\n \"IsFreeze\": \"no\",\n \"Tasks\": [\n {\n \"TaskId\": 10,\n \"TaskType\": \"taskAutoBackup\",\n \"TaskStatus\": \"processing\",\n \"ObjectId\": \"cynosdbmysql-sgvwu2is\",\n \"ObjectType\": \"taskObjTypeCluster\"\n }\n ],\n \"MasterZone\": \"ap-guangzhou-5\",\n \"SlaveZones\": [\n \"ap-guangzhou-3\"\n ],\n \"InstanceSet\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-xvs9osn2\",\n \"InstanceName\": \"cynosdbmysql-用户自定义名称\",\n \"InstanceType\": \"rw\",\n \"InstanceStatus\": \"running\",\n \"InstanceStatusDesc\": \"运行中\",\n \"InstanceCpu\": 1,\n \"InstanceMemory\": 2,\n \"InstanceStorage\": 0,\n \"InstanceRole\": \"master\",\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"Mon\"\n ],\n \"ServerlessStatus\": \"pause\"\n }\n ],\n \"PayMode\": 0,\n \"PeriodEndTime\": \"2030-01-01 10:01:01\",\n \"ProjectID\": 0,\n \"ResourceTags\": [\n {\n \"TagKey\": \"tagKey-1\",\n \"TagValue\": \"tagValue-1\"\n }\n ],\n \"ProxyStatus\": \"running\",\n \"LogBin\": \"ON\",\n \"IsSkipTrade\": \"no\",\n \"PitrType\": \"redo_pitr\",\n \"IsOpenPasswordComplexity\": \"yes\",\n \"NetworkStatus\": \"whole_rdma\",\n \"ResourcePackages\": [\n {\n \"PackageId\": \"package-xbhsw7wk\",\n \"PackageType\": \"CCU\",\n \"DeductionPriority\": 1\n }\n ],\n \"RenewFlag\": 0,\n \"NetworkType\": \"whole_rdma\",\n \"SlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"BinlogSyncWay\": \"async\",\n \"SemiSyncTimeout\": 10000\n }\n ]\n },\n \"RequestId\": \"6febb6f0-b0fc-11ee-93cb-73a07daf38c5\"\n }\n}",
|
426
426
|
"title": "集群信息描述"
|
427
427
|
}
|
428
428
|
],
|
@@ -732,7 +732,7 @@
|
|
732
732
|
{
|
733
733
|
"document": "查询任务列表",
|
734
734
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 0\n}",
|
735
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"ID\": 1,\n \"AppId\": 23623651237,\n \"ClusterId\": \"cynoadbmysql-ydtwlxig\",\n \"CreateTime\": \"2024-10-01 23:22:54\",\n \"DelayTime\": \"2024-10-12 17:52:19\",\n \"ErrMsg\": \"\",\n \"FlowId\": 6521,\n \"Input\": \"{\\\"AppId\\\":251232125,\\\"uin\\\":\\\"700000433509\\\",\\\"operateUin\\\":\\\"700000433509\\\",\\\"region\\\":1,\\\"zoneId\\\":100007,\\\"dealName\\\":\\\"20240627509001289127581\\\",\\\"bigDealId\\\":\\\"20240627509001289141381\\\",\\\"tranId\\\":\\\"20240627509001289127591\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"payMode\\\":0,\\\"projectId\\\":0,\\\"goodsDetail\\\":{\\\"requestId\\\":\\\"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\\\",\\\"Action\\\":\\\"CreateMultiSpecClusters\\\",\\\"pid\\\":1001166,\\\"extparam\\\":{\\\"token\\\":\\\"\\\"},\\\"timeSpan\\\":3600,\\\"timeUnit\\\":\\\"s\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"goodsNum\\\":1,\\\"sv_cynosdb_cpu_mysql\\\":1,\\\"sv_cynosdb_memory_mysql\\\":1,\\\"sv_cynosdb_cpu_smallcommoncpu\\\":0,\\\"sv_cynosdb_memory_smallcommonmem\\\":0,\\\"sv_cynosdb_cpu_largecommoncpu\\\":0,\\\"sv_cynosdb_memory_largecommonmem\\\":0,\\\"sv_cynosdb_storage_mysql\\\":0,\\\"sv_cynosdb_ccu_mysql\\\":0,\\\"resourceTags\\\":[{\\\"tagKey\\\":\\\"mockTagKey\\\",\\\"tagValue\\\":\\\"mockTagValue\\\"}],\\\"productInfo\\\":[{\\\"name\\\":\\\"配置\\\",\\\"value\\\":\\\"1核,1GB内存\\\"},{\\\"name\\\":\\\"地域\\\",\\\"value\\\":\\\"ap-guangzhou\\\"},{\\\"name\\\":\\\"可用区\\\",\\\"value\\\":\\\"ap-guangzhou-7\\\"}],\\\"zone\\\":\\\"ap-guangzhou-7\\\",\\\"source\\\":\\\"API\\\",\\\"slaveZone\\\":\\\"\\\",\\\"businessType\\\":\\\"\\\",\\\"vpcId\\\":\\\"vpc-rhfuibtt\\\",\\\"subnetId\\\":\\\"subnet-87qviva4\\\",\\\"dbType\\\":\\\"MYSQL\\\",\\\"dbVersion\\\":\\\"5.7\\\",\\\"cynosVersion\\\":\\\"\\\",\\\"clusterName\\\":\\\"后付费集群\\\",\\\"adminPassword\\\":\\\"Abcde@123\\\",\\\"port\\\":3306,\\\"count\\\":1,\\\"haCount\\\":0,\\\"instanceCount\\\":1,\\\"storageTraceId\\\":\\\"\\\",\\\"storagePayMode\\\":0,\\\"rollbackStrategy\\\":\\\"noneRollback\\\",\\\"OrderSource\\\":\\\"go_test\\\",\\\"isLhdb\\\":\\\"no\\\",\\\"lhdbAppId\\\":0,\\\"isDisableConsole\\\":\\\"no\\\",\\\"sourcePlatform\\\":\\\"\\\",\\\"clusterParams\\\":[{\\\"ParamName\\\":\\\"character_set_server\\\",\\\"CurrentValue\\\":\\\"utf8\\\",\\\"OldValue\\\":\\\"\\\"},{\\\"ParamName\\\":\\\"collation_server\\\",\\\"CurrentValue\\\":\\\"utf8_general_ci\\\",\\\"OldValue\\\":\\\"\\\"}],\\\"ParamTemplateId\\\":0,\\\"instanceType\\\":\\\"rw\\\",\\\"clusterTraceId\\\":\\\"9642a74e-fa27-4f8f-b854-653b3083c4cb\\\",\\\"outside_invisible_is_skip_trade\\\":\\\"\\\",\\\"ClusterInstanceCount\\\":1}}\",\n \"InstanceGrpId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceGroupId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceId\": \"cynosdbmysql-qjuxpows\",\n \"ObjectId\": \"cynosdbmysql-grwlskip\",\n \"ObjectType\": \"taskCreateCluster\",\n \"Operator\": \"700000433509\",\n \"Output\": \"{\\\"Storage\\\":3000}\",\n \"Status\": \"success\",\n \"TaskType\": \"taskCreateCluster\",\n \"TriggerTaskId\": 0,\n \"UpdateTime\": \"2024-06-27 16:18:12\",\n \"StartTime\": \"2024-06-27 16:18:07\",\n \"EndTime\": \"2024-06-27 16:18:12\",\n \"ClusterName\": \"MyClusterName\",\n \"InstanceName\": \"MyInstanceName\",\n \"Process\": 100,\n \"ModifyParamsData\": [\n {\n \"Name\": \"sql_auto_is_null\",\n \"OldValue\": \"OFF\",\n \"CurValue\": \"ON\"\n }\n ],\n \"CreateClustersData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200\n },\n \"RollbackData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200,\n \"OriginalClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"OriginalClusterName\": \"MyOriginalClusterName\",\n \"RollbackStrategy\": \"timeRollback\",\n \"SnapshotTime\": \"2024-05-12 11:28:55\",\n \"MinCpu\": 2,\n \"MaxCpu\": 8,\n \"SnapShotId\": 5562,\n \"RollbackDatabases\": [\n {\n \"OldDatabase\": \"test_database\",\n \"NewDatabase\": \"new_test_database\"\n }\n ],\n \"RollbackTables\": [\n {\n \"Database\": \"test-database\",\n \"Tables\": [\n {\n \"OldTable\": \"test-table-1\",\n \"NewTable\": \"new-test-table-1\"\n }\n ]\n }\n ],\n \"BackupFileName\": \"cynosdbmysql-oaj6te97_20240610111357\"\n },\n \"ModifyInstanceData\": {\n \"Cpu\": 2,\n \"Memory\": 4,\n \"StorageLimit\": 400,\n \"OldCpu\": 1,\n \"OldMemory\": 2,\n \"OldStorageLimit\": 200,\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ManualBackupData\": {\n \"BackupType\": \"snapshot\",\n \"BackupMethod\": \"manual\",\n \"SnapshotTime\": \"2023-11-03 15:27:22\"\n },\n \"ModifyDbVersionData\": {\n \"OldVersion\": \"3.1.11\",\n \"NewVersion\": \"3.1.13\",\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ClusterSlaveData\": {\n \"OldMasterZone\": \"ap-guangzhou-4\",\n \"OldSlaveZone\": [\n \"ap-guangzhou-7\"\n ],\n \"NewMasterZone\": \"ap-guangzhou-7\",\n \"NewSlaveZone\": [\n \"ap-guangzhou-4\"\n ],\n \"NewSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"sync\"\n }\n ],\n \"OldSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-7\",\n \"BinlogSyncWay\": \"async\"\n }\n ]\n },\n \"SwitchClusterLogBin\": {\n \"Status\": \"OFF\"\n },\n \"ModifyInstanceParamsData\": {\n \"ClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"ClusterParamList\": [\n {\n \"ParamName\": \"innodb_backquery_history_limit\",\n \"CurrentValue\": \"1100\",\n \"OldValue\": \"1000\"\n }\n ],\n \"ModifyInstanceParams\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-twpmnatl\",\n \"ModifyInstanceParamList\": [\n {\n \"ParamName\": \"innodb_secondary_evict_only_lru\",\n \"CurrentValue\": \"ON\",\n \"OldValue\": \"OFF\"\n }\n ]\n }\n ]\n },\n \"TaskMaintainInfo\": {\n \"MaintainStartTime\": 10800,\n \"MaintainDuration\": 3600,\n \"MaintainWeekDays\": [\n \"Mon\",\n \"Tue\",\n \"Wed\",\n \"Thu\",\n \"Fri\"\n ]\n }\n }\n ],\n \"RequestId\": \"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\"\n }\n}",
|
735
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"ID\": 1,\n \"AppId\": 23623651237,\n \"ClusterId\": \"cynoadbmysql-ydtwlxig\",\n \"CreateTime\": \"2024-10-01 23:22:54\",\n \"DelayTime\": \"2024-10-12 17:52:19\",\n \"ErrMsg\": \"\",\n \"FlowId\": 6521,\n \"Input\": \"{\\\"AppId\\\":251232125,\\\"uin\\\":\\\"700000433509\\\",\\\"operateUin\\\":\\\"700000433509\\\",\\\"region\\\":1,\\\"zoneId\\\":100007,\\\"dealName\\\":\\\"20240627509001289127581\\\",\\\"bigDealId\\\":\\\"20240627509001289141381\\\",\\\"tranId\\\":\\\"20240627509001289127591\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"payMode\\\":0,\\\"projectId\\\":0,\\\"goodsDetail\\\":{\\\"requestId\\\":\\\"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\\\",\\\"Action\\\":\\\"CreateMultiSpecClusters\\\",\\\"pid\\\":1001166,\\\"extparam\\\":{\\\"token\\\":\\\"\\\"},\\\"timeSpan\\\":3600,\\\"timeUnit\\\":\\\"s\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"goodsNum\\\":1,\\\"sv_cynosdb_cpu_mysql\\\":1,\\\"sv_cynosdb_memory_mysql\\\":1,\\\"sv_cynosdb_cpu_smallcommoncpu\\\":0,\\\"sv_cynosdb_memory_smallcommonmem\\\":0,\\\"sv_cynosdb_cpu_largecommoncpu\\\":0,\\\"sv_cynosdb_memory_largecommonmem\\\":0,\\\"sv_cynosdb_storage_mysql\\\":0,\\\"sv_cynosdb_ccu_mysql\\\":0,\\\"resourceTags\\\":[{\\\"tagKey\\\":\\\"mockTagKey\\\",\\\"tagValue\\\":\\\"mockTagValue\\\"}],\\\"productInfo\\\":[{\\\"name\\\":\\\"配置\\\",\\\"value\\\":\\\"1核,1GB内存\\\"},{\\\"name\\\":\\\"地域\\\",\\\"value\\\":\\\"ap-guangzhou\\\"},{\\\"name\\\":\\\"可用区\\\",\\\"value\\\":\\\"ap-guangzhou-7\\\"}],\\\"zone\\\":\\\"ap-guangzhou-7\\\",\\\"source\\\":\\\"API\\\",\\\"slaveZone\\\":\\\"\\\",\\\"businessType\\\":\\\"\\\",\\\"vpcId\\\":\\\"vpc-rhfuibtt\\\",\\\"subnetId\\\":\\\"subnet-87qviva4\\\",\\\"dbType\\\":\\\"MYSQL\\\",\\\"dbVersion\\\":\\\"5.7\\\",\\\"cynosVersion\\\":\\\"\\\",\\\"clusterName\\\":\\\"后付费集群\\\",\\\"adminPassword\\\":\\\"Abcde@123\\\",\\\"port\\\":3306,\\\"count\\\":1,\\\"haCount\\\":0,\\\"instanceCount\\\":1,\\\"storageTraceId\\\":\\\"\\\",\\\"storagePayMode\\\":0,\\\"rollbackStrategy\\\":\\\"noneRollback\\\",\\\"OrderSource\\\":\\\"go_test\\\",\\\"isLhdb\\\":\\\"no\\\",\\\"lhdbAppId\\\":0,\\\"isDisableConsole\\\":\\\"no\\\",\\\"sourcePlatform\\\":\\\"\\\",\\\"clusterParams\\\":[{\\\"ParamName\\\":\\\"character_set_server\\\",\\\"CurrentValue\\\":\\\"utf8\\\",\\\"OldValue\\\":\\\"\\\"},{\\\"ParamName\\\":\\\"collation_server\\\",\\\"CurrentValue\\\":\\\"utf8_general_ci\\\",\\\"OldValue\\\":\\\"\\\"}],\\\"ParamTemplateId\\\":0,\\\"instanceType\\\":\\\"rw\\\",\\\"clusterTraceId\\\":\\\"9642a74e-fa27-4f8f-b854-653b3083c4cb\\\",\\\"outside_invisible_is_skip_trade\\\":\\\"\\\",\\\"ClusterInstanceCount\\\":1}}\",\n \"InstanceGrpId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceGroupId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceId\": \"cynosdbmysql-qjuxpows\",\n \"ObjectId\": \"cynosdbmysql-grwlskip\",\n \"ObjectType\": \"taskCreateCluster\",\n \"Operator\": \"700000433509\",\n \"Output\": \"{\\\"Storage\\\":3000}\",\n \"Status\": \"success\",\n \"TaskType\": \"taskCreateCluster\",\n \"TriggerTaskId\": 0,\n \"UpdateTime\": \"2024-06-27 16:18:12\",\n \"StartTime\": \"2024-06-27 16:18:07\",\n \"EndTime\": \"2024-06-27 16:18:12\",\n \"ClusterName\": \"MyClusterName\",\n \"InstanceName\": \"MyInstanceName\",\n \"Process\": 100,\n \"ModifyParamsData\": [\n {\n \"Name\": \"sql_auto_is_null\",\n \"OldValue\": \"OFF\",\n \"CurValue\": \"ON\"\n }\n ],\n \"CreateClustersData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200\n },\n \"RollbackData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200,\n \"OriginalClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"OriginalClusterName\": \"MyOriginalClusterName\",\n \"RollbackStrategy\": \"timeRollback\",\n \"SnapshotTime\": \"2024-05-12 11:28:55\",\n \"MinCpu\": 2,\n \"MaxCpu\": 8,\n \"SnapShotId\": 5562,\n \"RollbackDatabases\": [\n {\n \"OldDatabase\": \"test_database\",\n \"NewDatabase\": \"new_test_database\"\n }\n ],\n \"RollbackTables\": [\n {\n \"Database\": \"test-database\",\n \"Tables\": [\n {\n \"OldTable\": \"test-table-1\",\n \"NewTable\": \"new-test-table-1\"\n }\n ]\n }\n ],\n \"BackupFileName\": \"cynosdbmysql-oaj6te97_20240610111357\"\n },\n \"ModifyInstanceData\": {\n \"Cpu\": 2,\n \"Memory\": 4,\n \"StorageLimit\": 400,\n \"OldCpu\": 1,\n \"OldMemory\": 2,\n \"OldStorageLimit\": 200,\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ManualBackupData\": {\n \"BackupType\": \"snapshot\",\n \"BackupMethod\": \"manual\",\n \"SnapshotTime\": \"2023-11-03 15:27:22\"\n },\n \"ModifyDbVersionData\": {\n \"OldVersion\": \"3.1.11\",\n \"NewVersion\": \"3.1.13\",\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ClusterSlaveData\": {\n \"OldMasterZone\": \"ap-guangzhou-4\",\n \"OldSlaveZone\": [\n \"ap-guangzhou-7\"\n ],\n \"NewMasterZone\": \"ap-guangzhou-7\",\n \"NewSlaveZone\": [\n \"ap-guangzhou-4\"\n ],\n \"NewSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"sync\",\n \"SemiSyncTimeout\": 10000\n }\n ],\n \"OldSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-7\",\n \"BinlogSyncWay\": \"async\",\n \"SemiSyncTimeout\": 10000\n }\n ]\n },\n \"SwitchClusterLogBin\": {\n \"Status\": \"OFF\"\n },\n \"ModifyInstanceParamsData\": {\n \"ClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"ClusterParamList\": [\n {\n \"ParamName\": \"innodb_backquery_history_limit\",\n \"CurrentValue\": \"1100\",\n \"OldValue\": \"1000\"\n }\n ],\n \"ModifyInstanceParams\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-twpmnatl\",\n \"ModifyInstanceParamList\": [\n {\n \"ParamName\": \"innodb_secondary_evict_only_lru\",\n \"CurrentValue\": \"ON\",\n \"OldValue\": \"OFF\"\n }\n ]\n }\n ]\n },\n \"TaskMaintainInfo\": {\n \"MaintainStartTime\": 10800,\n \"MaintainDuration\": 3600,\n \"MaintainWeekDays\": [\n \"Mon\",\n \"Tue\",\n \"Wed\",\n \"Thu\",\n \"Fri\"\n ]\n }\n }\n ],\n \"RequestId\": \"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\"\n }\n}",
|
736
736
|
"title": "查询任务列表"
|
737
737
|
}
|
738
738
|
],
|
@@ -963,7 +963,7 @@
|
|
963
963
|
"ModifyClusterSlaveZone": [
|
964
964
|
{
|
965
965
|
"document": "",
|
966
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"OldSlaveZone\": \"ap-guangzhou-2\",\n \"NewSlaveZone\": \"ap-guangzhou-3\",\n \"BinlogSyncWay\": \"async\"\n}",
|
966
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"OldSlaveZone\": \"ap-guangzhou-2\",\n \"NewSlaveZone\": \"ap-guangzhou-3\",\n \"BinlogSyncWay\": \"async\",\n \"SemiSyncTimeout\": 10000\n}",
|
967
967
|
"output": "{\n \"Response\": {\n \"FlowId\": 123,\n \"RequestId\": \"128046\"\n }\n}",
|
968
968
|
"title": "变更备可用区"
|
969
969
|
}
|
tccli/services/ess/ess_client.py
CHANGED
@@ -849,7 +849,7 @@ def doCreatePartnerAutoSignAuthUrl(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
-
def
|
852
|
+
def doCreateBatchInformationExtractionTask(args, parsed_globals):
|
853
853
|
g_param = parse_global_arg(parsed_globals)
|
854
854
|
|
855
855
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -878,11 +878,11 @@ def doCreateFlowByFiles(args, parsed_globals):
|
|
878
878
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
879
879
|
client._sdkVersion += ("_CLI_" + __version__)
|
880
880
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
-
model = models.
|
881
|
+
model = models.CreateBatchInformationExtractionTaskRequest()
|
882
882
|
model.from_json_string(json.dumps(args))
|
883
883
|
start_time = time.time()
|
884
884
|
while True:
|
885
|
-
rsp = client.
|
885
|
+
rsp = client.CreateBatchInformationExtractionTask(model)
|
886
886
|
result = rsp.to_json_string()
|
887
887
|
try:
|
888
888
|
json_obj = json.loads(result)
|
@@ -1213,6 +1213,58 @@ def doCreateBatchSignUrl(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
+
def doDescribeInformationExtractionTask(args, parsed_globals):
|
1217
|
+
g_param = parse_global_arg(parsed_globals)
|
1218
|
+
|
1219
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1220
|
+
cred = credential.CVMRoleCredential()
|
1221
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1222
|
+
cred = credential.STSAssumeRoleCredential(
|
1223
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1224
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1225
|
+
)
|
1226
|
+
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):
|
1227
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1228
|
+
else:
|
1229
|
+
cred = credential.Credential(
|
1230
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1231
|
+
)
|
1232
|
+
http_profile = HttpProfile(
|
1233
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1234
|
+
reqMethod="POST",
|
1235
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1236
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1237
|
+
)
|
1238
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1239
|
+
if g_param[OptionsDefine.Language]:
|
1240
|
+
profile.language = g_param[OptionsDefine.Language]
|
1241
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1242
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1244
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
+
model = models.DescribeInformationExtractionTaskRequest()
|
1246
|
+
model.from_json_string(json.dumps(args))
|
1247
|
+
start_time = time.time()
|
1248
|
+
while True:
|
1249
|
+
rsp = client.DescribeInformationExtractionTask(model)
|
1250
|
+
result = rsp.to_json_string()
|
1251
|
+
try:
|
1252
|
+
json_obj = json.loads(result)
|
1253
|
+
except TypeError as e:
|
1254
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1255
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1256
|
+
break
|
1257
|
+
cur_time = time.time()
|
1258
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1259
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1260
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1261
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1262
|
+
else:
|
1263
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1264
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1265
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
|
+
|
1267
|
+
|
1216
1268
|
def doCreateFlowReminds(args, parsed_globals):
|
1217
1269
|
g_param = parse_global_arg(parsed_globals)
|
1218
1270
|
|
@@ -1681,6 +1733,58 @@ def doRenewAutoSignLicense(args, parsed_globals):
|
|
1681
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1734
|
|
1683
1735
|
|
1736
|
+
def doCreateWebThemeConfig(args, parsed_globals):
|
1737
|
+
g_param = parse_global_arg(parsed_globals)
|
1738
|
+
|
1739
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1740
|
+
cred = credential.CVMRoleCredential()
|
1741
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1742
|
+
cred = credential.STSAssumeRoleCredential(
|
1743
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1744
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1745
|
+
)
|
1746
|
+
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):
|
1747
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1748
|
+
else:
|
1749
|
+
cred = credential.Credential(
|
1750
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1751
|
+
)
|
1752
|
+
http_profile = HttpProfile(
|
1753
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1754
|
+
reqMethod="POST",
|
1755
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1756
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1757
|
+
)
|
1758
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1759
|
+
if g_param[OptionsDefine.Language]:
|
1760
|
+
profile.language = g_param[OptionsDefine.Language]
|
1761
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1762
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1764
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
+
model = models.CreateWebThemeConfigRequest()
|
1766
|
+
model.from_json_string(json.dumps(args))
|
1767
|
+
start_time = time.time()
|
1768
|
+
while True:
|
1769
|
+
rsp = client.CreateWebThemeConfig(model)
|
1770
|
+
result = rsp.to_json_string()
|
1771
|
+
try:
|
1772
|
+
json_obj = json.loads(result)
|
1773
|
+
except TypeError as e:
|
1774
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1775
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1776
|
+
break
|
1777
|
+
cur_time = time.time()
|
1778
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1779
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1780
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1781
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1782
|
+
else:
|
1783
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1784
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1785
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
|
+
|
1787
|
+
|
1684
1788
|
def doVerifyPdf(args, parsed_globals):
|
1685
1789
|
g_param = parse_global_arg(parsed_globals)
|
1686
1790
|
|
@@ -4073,7 +4177,7 @@ def doDescribeFlowComponents(args, parsed_globals):
|
|
4073
4177
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
4178
|
|
4075
4179
|
|
4076
|
-
def
|
4180
|
+
def doCreateFlowByFiles(args, parsed_globals):
|
4077
4181
|
g_param = parse_global_arg(parsed_globals)
|
4078
4182
|
|
4079
4183
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4102,11 +4206,11 @@ def doCreateWebThemeConfig(args, parsed_globals):
|
|
4102
4206
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
4207
|
client._sdkVersion += ("_CLI_" + __version__)
|
4104
4208
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
-
model = models.
|
4209
|
+
model = models.CreateFlowByFilesRequest()
|
4106
4210
|
model.from_json_string(json.dumps(args))
|
4107
4211
|
start_time = time.time()
|
4108
4212
|
while True:
|
4109
|
-
rsp = client.
|
4213
|
+
rsp = client.CreateFlowByFiles(model)
|
4110
4214
|
result = rsp.to_json_string()
|
4111
4215
|
try:
|
4112
4216
|
json_obj = json.loads(result)
|
@@ -5816,13 +5920,14 @@ ACTION_MAP = {
|
|
5816
5920
|
"CreateFlowGroupByTemplates": doCreateFlowGroupByTemplates,
|
5817
5921
|
"VerifyDigitFile": doVerifyDigitFile,
|
5818
5922
|
"CreatePartnerAutoSignAuthUrl": doCreatePartnerAutoSignAuthUrl,
|
5819
|
-
"
|
5923
|
+
"CreateBatchInformationExtractionTask": doCreateBatchInformationExtractionTask,
|
5820
5924
|
"CreateIntegrationSubOrganizationActiveRecord": doCreateIntegrationSubOrganizationActiveRecord,
|
5821
5925
|
"DescribeIntegrationRoles": doDescribeIntegrationRoles,
|
5822
5926
|
"DescribeIntegrationEmployees": doDescribeIntegrationEmployees,
|
5823
5927
|
"CreatePersonAuthCertificateImage": doCreatePersonAuthCertificateImage,
|
5824
5928
|
"CreateIntegrationUserRoles": doCreateIntegrationUserRoles,
|
5825
5929
|
"CreateBatchSignUrl": doCreateBatchSignUrl,
|
5930
|
+
"DescribeInformationExtractionTask": doDescribeInformationExtractionTask,
|
5826
5931
|
"CreateFlowReminds": doCreateFlowReminds,
|
5827
5932
|
"CreateUserNameChangeUrl": doCreateUserNameChangeUrl,
|
5828
5933
|
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
@@ -5832,6 +5937,7 @@ ACTION_MAP = {
|
|
5832
5937
|
"CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
|
5833
5938
|
"DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
|
5834
5939
|
"RenewAutoSignLicense": doRenewAutoSignLicense,
|
5940
|
+
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
5835
5941
|
"VerifyPdf": doVerifyPdf,
|
5836
5942
|
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|
5837
5943
|
"CreateOrganizationAuthFile": doCreateOrganizationAuthFile,
|
@@ -5878,7 +5984,7 @@ ACTION_MAP = {
|
|
5878
5984
|
"UploadFiles": doUploadFiles,
|
5879
5985
|
"CreateFlowForwards": doCreateFlowForwards,
|
5880
5986
|
"DescribeFlowComponents": doDescribeFlowComponents,
|
5881
|
-
"
|
5987
|
+
"CreateFlowByFiles": doCreateFlowByFiles,
|
5882
5988
|
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|
5883
5989
|
"DescribeUserFlowType": doDescribeUserFlowType,
|
5884
5990
|
"CreateModifyAdminAuthorizationUrl": doCreateModifyAdminAuthorizationUrl,
|