tccli 3.0.1407.1__py2.py3-none-any.whl → 3.0.1409.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/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +73 -1
- tccli/services/cdb/v20170320/examples.json +11 -3
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfw/v20190904/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/csip/v20221121/api.json +51 -1
- tccli/services/dbbrain/v20210527/api.json +7 -7
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dts/v20211206/api.json +144 -67
- tccli/services/dts/v20211206/examples.json +13 -7
- tccli/services/es/v20180416/api.json +99 -4
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +6 -6
- tccli/services/gaap/v20180529/api.json +13 -3
- tccli/services/ioa/ioa_client.py +61 -8
- tccli/services/ioa/v20220601/api.json +126 -0
- tccli/services/ioa/v20220601/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +36 -0
- tccli/services/lighthouse/v20200324/examples.json +1 -1
- tccli/services/live/v20180801/examples.json +6 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +100 -3
- tccli/services/monitor/v20180724/examples.json +9 -1
- tccli/services/mps/v20190612/api.json +26 -4
- tccli/services/oceanus/v20190422/api.json +9 -12
- tccli/services/oceanus/v20190422/examples.json +2 -2
- tccli/services/ocr/v20181119/api.json +10 -10
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/rum/v20210622/api.json +18 -0
- tccli/services/teo/v20220901/api.json +5 -5
- tccli/services/tke/v20180525/api.json +3 -3
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/tsf/v20180326/api.json +3 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +819 -0
- tccli/services/vpc/v20170312/examples.json +96 -0
- tccli/services/vpc/vpc_client.py +669 -33
- tccli/services/wedata/v20250806/api.json +43 -4
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1409.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1409.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1409.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1409.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1407.1.dist-info → tccli-3.0.1409.1.dist-info}/license_files/LICENSE +0 -0
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
{
|
|
99
99
|
"document": "购买1个按量计费的mysql订阅任务",
|
|
100
100
|
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSubscribe\n<公共请求参数>\n\n{\n \"Product\": \"mysql\",\n \"PayType\": 1,\n \"Count\": 1,\n \"Tags\": [\n {\n \"TagKey\": \"负责人\",\n \"TagValue\": \"jason\"\n }\n ],\n \"Name\": \"binlog订阅\"\n}",
|
|
101
|
-
"output": "{\n \"Response\": {\n \"SubscribeIds\": [\n \"subs-b6x64o31tm\"\n ],\n \"RequestId\": \"
|
|
101
|
+
"output": "{\n \"Response\": {\n \"SubscribeIds\": [\n \"subs-b6x64o31tm\"\n ],\n \"RequestId\": \"11b58de0-a5b5-11f0-a1aa-358a863876dd\"\n }\n}",
|
|
102
102
|
"title": "购买订阅任务"
|
|
103
103
|
}
|
|
104
104
|
],
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
{
|
|
147
147
|
"document": "",
|
|
148
148
|
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCompareReport\n<公共请求参数>\n\n{\n \"JobId\": \"dts-amm1jw5q\",\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\"\n}",
|
|
149
|
-
"output": "{\n \"Response\": {\n \"Abstract\": {\n \"CheckedTables\": 1,\n \"Conclusion\": \"same\",\n \"DifferentRows\": 0,\n \"DifferentTables\": 0,\n \"DstSampleRows\": 0,\n \"FinishedAt\": \"2024-12-20 19:07:20\",\n \"NearlyTableCount\": 1,\n \"Objects\": {\n \"AdvancedObjects\": [],\n \"ObjectItems\": [\n {\n \"DbMode\": \"partial\",\n \"DbName\": \"db_1\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": [\n {\n \"ColumnMode\": \"all\",\n \"Columns\": [],\n \"TableName\": \"tb_1\"\n }\n ],\n \"ViewMode\": \"partial\",\n \"Views\": null\n }\n ],\n \"ObjectMode\": \"partial\"\n },\n \"Options\": {\n \"Method\": \"dataCheck\",\n \"SampleRate\": 100,\n \"ThreadCount\": 1\n },\n \"SkippedTables\": 0,\n \"SrcSampleRows\": 0,\n \"StartedAt\": \"2024-12-20 19:04:03\",\n \"Status\": \"success\",\n \"TotalTables\": 1\n },\n \"Detail\": {\n \"Difference\": {\n \"Items\": [],\n \"TotalCount\": 0\n },\n \"DifferenceAdvancedObjects\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"DifferenceData\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"DifferenceRow\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"Skipped\": {\n \"Items\": [],\n \"TotalCount\": 0\n }\n },\n \"RequestId\": \"a3365b29-2042-4565-9206-8df9e2af1a17\"\n }\n}",
|
|
149
|
+
"output": "{\n \"Response\": {\n \"Abstract\": {\n \"CheckedTables\": 1,\n \"Conclusion\": \"same\",\n \"DifferentRows\": 0,\n \"DifferentTables\": 0,\n \"DstSampleRows\": 0,\n \"FinishedAt\": \"2024-12-20 19:07:20\",\n \"NearlyTableCount\": 1,\n \"Objects\": {\n \"AdvancedObjects\": [],\n \"ObjectItems\": [\n {\n \"DbMode\": \"partial\",\n \"DbName\": \"db_1\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": [\n {\n \"ColumnMode\": \"all\",\n \"Columns\": [],\n \"TableName\": \"tb_1\"\n }\n ],\n \"ViewMode\": \"partial\",\n \"Views\": null\n }\n ],\n \"ObjectMode\": \"partial\"\n },\n \"Options\": {\n \"Method\": \"dataCheck\",\n \"SampleRate\": 100,\n \"ThreadCount\": 1,\n \"Type\": \"builtin\"\n },\n \"SkippedTables\": 0,\n \"SrcSampleRows\": 0,\n \"StartedAt\": \"2024-12-20 19:04:03\",\n \"Status\": \"success\",\n \"TotalTables\": 1\n },\n \"Detail\": {\n \"Difference\": {\n \"Items\": [],\n \"TotalCount\": 0\n },\n \"DifferenceAdvancedObjects\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"DifferenceData\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"DifferenceRow\": {\n \"Items\": null,\n \"TotalCount\": 0\n },\n \"Skipped\": {\n \"Items\": [],\n \"TotalCount\": 0\n }\n },\n \"RequestId\": \"a3365b29-2042-4565-9206-8df9e2af1a17\"\n }\n}",
|
|
150
150
|
"title": "查询一致性校验任务详情"
|
|
151
151
|
}
|
|
152
152
|
],
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
{
|
|
171
171
|
"document": "查询迁移实例列表",
|
|
172
172
|
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMigrateDBInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-eur39922\",\n \"DatabaseType\": \"mysql\",\n \"MigrateRole\": \"src\"\n}",
|
|
173
|
-
"output": "{\n \"Response\": {\n \"
|
|
173
|
+
"output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"Hint\": \"ok\",\n \"InstanceId\": \"cdb-chtaoop0\",\n \"InstanceName\": \"evan-test2\",\n \"Usable\": 1,\n \"Vip\": \"172.21.0.31\",\n \"Vport\": 10086\n },\n {\n \"Hint\": \"ok\",\n \"InstanceId\": \"cdb-o3dplch0\",\n \"InstanceName\": \"evan-test1\",\n \"Usable\": 1,\n \"Vip\": \"172.21.0.37\",\n \"Vport\": 10086\n },\n {\n \"Hint\": \"ok\",\n \"InstanceId\": \"cdb-hbfybwlq\",\n \"InstanceName\": \"joyce-dts2\",\n \"Usable\": 1,\n \"Vip\": \"172.21.0.104\",\n \"Vport\": 3306\n },\n {\n \"Hint\": \"ok\",\n \"InstanceId\": \"cdb-kgmdn6iq\",\n \"InstanceName\": \"joyce-dts1\",\n \"Usable\": 1,\n \"Vip\": \"172.21.0.100\",\n \"Vport\": 3306\n }\n ],\n \"RequestId\": \"a4a8f147-1898-4130-a1cf-f4bd3c92d083\",\n \"TotalCount\": 4\n }\n}",
|
|
174
174
|
"title": "查询迁移实例列表"
|
|
175
175
|
}
|
|
176
176
|
],
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
{
|
|
187
187
|
"document": "查询某个迁移任务详情",
|
|
188
188
|
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMigrationDetail\n<公共请求参数>\n\n{\n \"JobId\": \"dts-amm1jw5q\"\n}",
|
|
189
|
-
"output": "{\n \"Response\": {\n \"Action\": {\n \"AllAction\": [\n \"view\",\n \"modify\",\n \"check\",\n \"start\",\n \"configure\",\n \"stop\",\n \"complete\",\n \"resume\",\n \"createCmpTask\",\n \"isolate\",\n \"offline\",\n \"resize\",\n \"recover\"\n ],\n \"AllowedAction\": [\n \"view\",\n \"stop\",\n \"complete\",\n \"createCmpTask\",\n \"view\",\n \"isolate\",\n \"resize\"\n ]\n },\n \"CheckStepInfo\": {\n \"EndAt\": \"2022-07-11 17:19:25\",\n \"Progress\": {\n \"Message\": \"success\",\n \"Percent\": 100,\n \"Status\": \"success\",\n \"StepAll\": 12,\n \"Steps\": [\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConnectDBCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"连接DB检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"VersionCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"版本检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"SrcPrivilegeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"源实例权限检查\",\n \"StepNo\": 0,\n \"Warnings\": [\n {\n \"HelpDoc\": \"\",\n \"Message\": \"您的授权情况:GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE ON *.* TO 'root'@'%' WITH GRANT OPTION。 源端账号权限范围大于要求的账号权限范围,腾讯云DTS不会使用超过必要的权限,请按照最小化原则给与授权: https://cloud.tencent.com/document/product/571/58700\",\n \"Solution\": \"\"\n }\n ]\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"SimpleParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"部分实例参数检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstPrivilegeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例权限检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstEmptyCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例内容冲突检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstSpaceCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例空间检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"BinlogParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"binlog参数检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConstraintCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"外键依赖检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConstraintRefCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"外键部分库表依赖检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ViewCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"视图检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"WarningParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"警告项检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 0,\n \"StartTime\": \"\",\n \"Status\": \"skipped\",\n \"StepId\": \"OptimizeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"周边检查\",\n \"StepNo\": 0,\n \"Warnings\": [\n {\n \"HelpDoc\": \"\",\n \"Message\": \"skipped\",\n \"Solution\": \"\"\n }\n ]\n }\n ],\n \"StepNow\": 12\n },\n \"StartAt\": \"2022-07-11 17:18:57\"\n },\n \"CompareTask\": {\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Status\": \"consistent\"\n },\n \"CreateTime\": \"2022-07-11 16:20:49\",\n \"DstInfo\": {\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"\",\n \"Host\": \"\",\n \"InstanceId\": \"cdb-o7uph0cj\",\n \"Password\": \"Abc_123456789\",\n \"Port\": 0,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"EndTime\": \"0000-00-00 00:00:00\",\n \"ErrorInfo\": [],\n \"ExpectRunTime\": \"2022-07-11 17:16:50\",\n \"JobId\": \"dts-amm1jw5q\",\n \"JobName\": \"test_config_api\",\n \"BriefMsg\": \"\",\n \"MigrateOption\": {\n \"Consistency\": {\n \"Mode\": \"full\"\n },\n \"DatabaseTable\": {\n \"Databases\": [\n {\n \"DBMode\": \"partial\",\n \"DbName\": \"big100\",\n \"EventMode\": \"\",\n \"FunctionMode\": \"\",\n \"NewDbName\": \"\",\n \"NewSchemaName\": \"\",\n \"ProcedureMode\": \"\",\n \"RoleMode\": \"\",\n \"Roles\": [],\n \"SchemaMode\": \"\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": [\n {\n \"NewTableName\": \"\",\n \"TableEditMode\": \"\",\n \"TableName\": \"sbtest1\",\n \"TmpTables\": []\n },\n {\n \"NewTableName\": \"new_sbtest10\",\n \"TableEditMode\": \"rename\",\n \"TableName\": \"sbtest10\",\n \"TmpTables\": []\n },\n {\n \"NewTableName\": \"\",\n \"TableEditMode\": \"\",\n \"TableName\": \"sbtest100\",\n \"TmpTables\": []\n }\n ],\n \"TriggerMode\": \"\",\n \"ViewMode\": \"none\",\n \"Views\": []\n },\n {\n \"DBMode\": \"all\",\n \"DbName\": \"db1\",\n \"EventMode\": \"\",\n \"FunctionMode\": \"\",\n \"NewDbName\": \"\",\n \"NewSchemaName\": \"\",\n \"ProcedureMode\": \"\",\n \"RoleMode\": \"\",\n \"Roles\": [],\n \"SchemaMode\": \"\",\n \"SchemaName\": \"\",\n \"TableMode\": \"\",\n \"Tables\": [],\n \"TriggerMode\": \"\",\n \"ViewMode\": \"\",\n \"Views\": []\n }\n ],\n \"AdvancedObjects\": [\n \"function\"\n ],\n \"ObjectMode\": \"partial\"\n },\n \"ExtraAttr\": [],\n \"IsMigrateAccount\": false,\n \"IsDstReadOnly\": false,\n \"IsOverrideRoot\": false,\n \"MigrateType\": \"fullAndIncrement\"\n },\n \"RequestId\": \"ac300ff0-00f2-11ed-b005-4930e69d89c2\",\n \"RunMode\": \"immediate\",\n \"SrcInfo\": {\n \"AccessType\": \"intranet\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"5.7\",\n \"Host\": \"9.123.456.789\",\n \"InstanceId\": \"\",\n \"Password\": \"Abc_123456789\",\n \"Port\": 31035,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"StartTime\": \"2022-07-11 17:20:56\",\n \"Status\": \"readyComplete\",\n \"StepInfo\": {\n \"MasterSlaveDistance\": 0,\n \"SecondsBehindMaster\": 0,\n \"StepAll\": 3,\n \"StepInfo\": [\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:21:59\",\n \"Status\": \"finished\",\n \"StepId\": \"dumper\",\n \"StepName\": \"源库导出\",\n \"StepNo\": 1,\n \"Warnings\": []\n },\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:22:43\",\n \"Status\": \"finished\",\n \"StepId\": \"loader\",\n \"StepName\": \"数据导入\",\n \"StepNo\": 2,\n \"Warnings\": []\n },\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:23:26\",\n \"Status\": \"running\",\n \"StepId\": \"sinker\",\n \"StepName\": \"同步增量\",\n \"StepNo\": 3,\n \"Warnings\": []\n }\n ],\n \"StepNow\": 3\n },\n \"Tags\": [],\n \"TradeInfo\": {\n \"BillingType\": \"billing\",\n \"DealName\": \"20220711715001047929481\",\n \"ExpireTime\": \"0000-00-00 00:00:00\",\n \"InstanceClass\": \"xlarge\",\n \"IsolateReason\": \"\",\n \"LastDealName\": \"\",\n \"OfflineReason\": \"\",\n \"PayType\": \"postpay\",\n \"TradeStatus\": \"normal\",\n \"OfflineTime\": \"\",\n \"IsolateTime\": \"\"\n },\n \"UpdateTime\": \"2022-07-11 19:53:03\",\n \"DumperResumeCtrl\": \"no\"\n }\n}",
|
|
189
|
+
"output": "{\n \"Response\": {\n \"Action\": {\n \"AllAction\": [\n \"view\",\n \"modify\",\n \"check\",\n \"start\",\n \"configure\",\n \"stop\",\n \"complete\",\n \"resume\",\n \"createCmpTask\",\n \"isolate\",\n \"offline\",\n \"resize\",\n \"recover\"\n ],\n \"AllowedAction\": [\n \"view\",\n \"stop\",\n \"complete\",\n \"createCmpTask\",\n \"view\",\n \"isolate\",\n \"resize\"\n ]\n },\n \"CheckStepInfo\": {\n \"EndAt\": \"2022-07-11 17:19:25\",\n \"Progress\": {\n \"Message\": \"success\",\n \"Percent\": 100,\n \"Status\": \"success\",\n \"StepAll\": 12,\n \"Steps\": [\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConnectDBCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"连接DB检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"VersionCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"版本检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"SrcPrivilegeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"源实例权限检查\",\n \"StepNo\": 0,\n \"Warnings\": [\n {\n \"HelpDoc\": \"\",\n \"Message\": \"您的授权情况:GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE ON *.* TO 'root'@'%' WITH GRANT OPTION。 源端账号权限范围大于要求的账号权限范围,腾讯云DTS不会使用超过必要的权限,请按照最小化原则给与授权: https://cloud.tencent.com/document/product/571/58700\",\n \"Solution\": \"\"\n }\n ]\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"SimpleParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"部分实例参数检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstPrivilegeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例权限检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstEmptyCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例内容冲突检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"DstSpaceCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"目标实例空间检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"BinlogParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"binlog参数检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConstraintCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"外键依赖检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ConstraintRefCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"外键部分库表依赖检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"ViewCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"视图检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 100,\n \"StartTime\": \"\",\n \"Status\": \"finished\",\n \"StepId\": \"WarningParamCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"警告项检查\",\n \"StepNo\": 0,\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"Percent\": 0,\n \"StartTime\": \"\",\n \"Status\": \"skipped\",\n \"StepId\": \"OptimizeCheck\",\n \"StepMessage\": \"\",\n \"StepName\": \"周边检查\",\n \"StepNo\": 0,\n \"Warnings\": [\n {\n \"HelpDoc\": \"\",\n \"Message\": \"skipped\",\n \"Solution\": \"\"\n }\n ]\n }\n ],\n \"StepNow\": 12\n },\n \"StartAt\": \"2022-07-11 17:18:57\"\n },\n \"CompareTask\": {\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Status\": \"consistent\"\n },\n \"CreateTime\": \"2022-07-11 16:20:49\",\n \"DstInfo\": {\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"\",\n \"Host\": \"\",\n \"InstanceId\": \"cdb-o7uph0cj\",\n \"Password\": \"Abc_123456789\",\n \"Port\": 0,\n \"EncryptConn\": \"UnEncrypted\",\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"EndTime\": \"0000-00-00 00:00:00\",\n \"ErrorInfo\": [],\n \"ExpectRunTime\": \"2022-07-11 17:16:50\",\n \"JobId\": \"dts-amm1jw5q\",\n \"JobName\": \"test_config_api\",\n \"BriefMsg\": \"\",\n \"MigrateOption\": {\n \"Consistency\": {\n \"Mode\": \"full\"\n },\n \"DatabaseTable\": {\n \"Databases\": [\n {\n \"DBMode\": \"partial\",\n \"DbName\": \"big100\",\n \"EventMode\": \"\",\n \"FunctionMode\": \"\",\n \"NewDbName\": \"\",\n \"NewSchemaName\": \"\",\n \"ProcedureMode\": \"\",\n \"RoleMode\": \"\",\n \"Roles\": [],\n \"SchemaMode\": \"\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": [\n {\n \"NewTableName\": \"\",\n \"TableEditMode\": \"\",\n \"TableName\": \"sbtest1\",\n \"TmpTables\": []\n },\n {\n \"NewTableName\": \"new_sbtest10\",\n \"TableEditMode\": \"rename\",\n \"TableName\": \"sbtest10\",\n \"TmpTables\": []\n },\n {\n \"NewTableName\": \"\",\n \"TableEditMode\": \"\",\n \"TableName\": \"sbtest100\",\n \"TmpTables\": []\n }\n ],\n \"TriggerMode\": \"\",\n \"ViewMode\": \"none\",\n \"Views\": []\n },\n {\n \"DBMode\": \"all\",\n \"DbName\": \"db1\",\n \"EventMode\": \"\",\n \"FunctionMode\": \"\",\n \"NewDbName\": \"\",\n \"NewSchemaName\": \"\",\n \"ProcedureMode\": \"\",\n \"RoleMode\": \"\",\n \"Roles\": [],\n \"SchemaMode\": \"\",\n \"SchemaName\": \"\",\n \"TableMode\": \"\",\n \"Tables\": [],\n \"TriggerMode\": \"\",\n \"ViewMode\": \"\",\n \"Views\": []\n }\n ],\n \"AdvancedObjects\": [\n \"function\"\n ],\n \"ObjectMode\": \"partial\"\n },\n \"ExtraAttr\": [],\n \"IsMigrateAccount\": false,\n \"IsDstReadOnly\": false,\n \"IsOverrideRoot\": false,\n \"MigrateType\": \"fullAndIncrement\"\n },\n \"RequestId\": \"ac300ff0-00f2-11ed-b005-4930e69d89c2\",\n \"RunMode\": \"immediate\",\n \"SrcInfo\": {\n \"AccessType\": \"intranet\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"5.7\",\n \"Host\": \"9.123.456.789\",\n \"InstanceId\": \"\",\n \"Password\": \"Abc_123456789\",\n \"Port\": 31035,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"StartTime\": \"2022-07-11 17:20:56\",\n \"Status\": \"readyComplete\",\n \"StepInfo\": {\n \"MasterSlaveDistance\": 0,\n \"SecondsBehindMaster\": 0,\n \"StepAll\": 3,\n \"StepInfo\": [\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:21:59\",\n \"Status\": \"finished\",\n \"StepId\": \"dumper\",\n \"StepName\": \"源库导出\",\n \"StepNo\": 1,\n \"Warnings\": []\n },\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:22:43\",\n \"Status\": \"finished\",\n \"StepId\": \"loader\",\n \"StepName\": \"数据导入\",\n \"StepNo\": 2,\n \"Warnings\": []\n },\n {\n \"StepMessage\": \"\",\n \"Percent\": 100,\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:23:26\",\n \"Status\": \"running\",\n \"StepId\": \"sinker\",\n \"StepName\": \"同步增量\",\n \"StepNo\": 3,\n \"Warnings\": []\n }\n ],\n \"StepNow\": 3\n },\n \"Tags\": [],\n \"TradeInfo\": {\n \"BillingType\": \"billing\",\n \"DealName\": \"20220711715001047929481\",\n \"ExpireTime\": \"0000-00-00 00:00:00\",\n \"InstanceClass\": \"xlarge\",\n \"IsolateReason\": \"\",\n \"LastDealName\": \"\",\n \"OfflineReason\": \"\",\n \"PayType\": \"postpay\",\n \"TradeStatus\": \"normal\",\n \"OfflineTime\": \"\",\n \"IsolateTime\": \"\"\n },\n \"UpdateTime\": \"2022-07-11 19:53:03\",\n \"DumperResumeCtrl\": \"no\"\n }\n}",
|
|
190
190
|
"title": "查询某个迁移任务详情"
|
|
191
191
|
}
|
|
192
192
|
],
|
|
@@ -371,13 +371,19 @@
|
|
|
371
371
|
"document": "",
|
|
372
372
|
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMigrationJob\n<公共请求参数>\n\n{\n \"JobId\": \"dts-efyc7e7l\",\n \"JobName\": \"dts-efyc7e7l\",\n \"RunMode\": \"immediate\",\n \"ExpectRunTime\": \"2024-12-20 19:01:07\",\n \"MigrateOption\": {\n \"MigrateType\": \"fullAndIncrement\",\n \"Consistency\": {\n \"Mode\": \"full\"\n },\n \"DatabaseTable\": {\n \"ObjectMode\": \"partial\",\n \"Databases\": [\n {\n \"DbName\": \"db_1\",\n \"NewDbName\": \"\",\n \"SchemaName\": \"\",\n \"NewSchemaName\": \"\",\n \"DBMode\": \"partial\",\n \"SchemaMode\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": [\n {\n \"TableName\": \"tb_1\",\n \"NewTableName\": \"\",\n \"TmpTables\": [],\n \"TableEditMode\": \"\"\n }\n ],\n \"ViewMode\": \"partial\",\n \"Views\": [\n {\n \"ViewName\": \"view_tb_1\",\n \"NewViewName\": \"\"\n }\n ],\n \"RoleMode\": \"\",\n \"Roles\": [],\n \"FunctionMode\": \"\",\n \"TriggerMode\": \"\",\n \"EventMode\": \"\",\n \"ProcedureMode\": \"\",\n \"Functions\": [],\n \"Procedures\": [],\n \"Events\": [],\n \"Triggers\": []\n }\n ],\n \"AdvancedObjects\": []\n },\n \"IsMigrateAccount\": true,\n \"IsOverrideRoot\": true,\n \"IsDstReadOnly\": true,\n \"ExtraAttr\": []\n },\n \"SrcInfo\": {\n \"Supplier\": \"\",\n \"Region\": \"ap-qingyuan\",\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"NodeType\": \"\",\n \"Info\": [\n {\n \"Role\": \"\",\n \"DbKernel\": \"\",\n \"Host\": \"\",\n \"Port\": 0,\n \"User\": \"tencent\",\n \"Password\": \"tencent***\",\n \"CvmInstanceId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"UniqDcgId\": \"\",\n \"InstanceId\": \"cdb-4gp2nzqy\",\n \"CcnGwId\": \"\",\n \"VpcId\": \"\",\n \"SubnetId\": \"\",\n \"EngineVersion\": \"8.0\",\n \"Account\": \"\",\n \"AccountRole\": \"\",\n \"AccountMode\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"EncryptConn\": \"Encrypted\"\n }\n ],\n \"ExtraAttr\": [],\n \"DatabaseNetEnv\": \"\"\n },\n \"DstInfo\": {\n \"Supplier\": \"\",\n \"Region\": \"ap-qingyuan\",\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"NodeType\": \"\",\n \"Info\": [\n {\n \"Role\": \"\",\n \"DbKernel\": \"\",\n \"Host\": \"\",\n \"Port\": 0,\n \"User\": \"tencent\",\n \"Password\": \"tencent***\",\n \"CvmInstanceId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"UniqDcgId\": \"\",\n \"InstanceId\": \"cdb-4gp2nzqy\",\n \"CcnGwId\": \"\",\n \"VpcId\": \"\",\n \"SubnetId\": \"\",\n \"EngineVersion\": \"8.0\",\n \"Account\": \"\",\n \"AccountRole\": \"\",\n \"AccountMode\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"EncryptConn\": \"Encrypted\"\n }\n ],\n \"ExtraAttr\": [],\n \"DatabaseNetEnv\": \"\"\n },\n \"Tags\": [],\n \"AutoRetryTimeRangeMinutes\": 0\n}",
|
|
373
373
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a3365b29-2042-4565-9206-8df9e2af1a17\"\n }\n}",
|
|
374
|
-
"title": "
|
|
374
|
+
"title": "配置mysql迁移任务"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"document": "1.源端为腾讯云redis实例,目标端为AWS实例并以公网的方式连接目标节点信息填写所有分片上的IP/域名、端口、密码等连接信息;注意一定是所有分片节点连接信息都写。\n2.目标端以覆盖写的方式执行,如果要配置其他目标端写入模式,可以参考入参MigrateOption.ExtraAttr中的字段描述。",
|
|
378
|
-
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMigrationJob\n<公共请求参数>\n\n{\n \"JobId\": \"dts-n6uzsuxz\",\n \"RunMode\": \"immediate\",\n \"MigrateOption\": {\n \"DatabaseTable\": {\n \"ObjectMode\": \"all\"\n },\n \"MigrateType\": \"fullAndIncrement\",\n \"ExtraAttr\": [\n {\n \"Key\": \"DstWriteMode\",\n \"Value\": \"overwrite\"\n }\n ]\n },\n \"SrcInfo\": {\n \"Region\": \"ap-chengdu\",\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"redis\",\n \"NodeType\": \"simple\",\n \"Info\": [\n {\n \"Password\": \"admin12345\",\n \"InstanceId\": \"crs-lktt4ls3\"\n }\n ]\n },\n \"DstInfo\": {\n \"Region\": \"ap-chengdu\",\n \"AccessType\": \"extranet\",\n \"DatabaseType\": \"redis\",\n \"NodeType\": \"cluster-cache\",\n \"Info\": [\n {\n \"Host\": \"44.
|
|
378
|
+
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMigrationJob\n<公共请求参数>\n\n{\n \"JobId\": \"dts-n6uzsuxz\",\n \"RunMode\": \"immediate\",\n \"MigrateOption\": {\n \"DatabaseTable\": {\n \"ObjectMode\": \"all\"\n },\n \"MigrateType\": \"fullAndIncrement\",\n \"ExtraAttr\": [\n {\n \"Key\": \"DstWriteMode\",\n \"Value\": \"overwrite\"\n }\n ]\n },\n \"SrcInfo\": {\n \"Region\": \"ap-chengdu\",\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"redis\",\n \"NodeType\": \"simple\",\n \"Info\": [\n {\n \"Password\": \"admin12345\",\n \"InstanceId\": \"crs-lktt4ls3\"\n }\n ]\n },\n \"DstInfo\": {\n \"Region\": \"ap-chengdu\",\n \"AccessType\": \"extranet\",\n \"DatabaseType\": \"redis\",\n \"NodeType\": \"cluster-cache\",\n \"Info\": [\n {\n \"Host\": \"44.xxx.xxx.125\",\n \"Port\": 6383\n },\n {\n \"Host\": \"44.xxx.xxx.125\",\n \"Port\": 6384\n },\n {\n \"Host\": \"44.xxx.xxx.125\",\n \"Port\": 6385\n }\n ]\n }\n}",
|
|
379
379
|
"output": "{\n \"Response\": {\n \"RequestId\": \"4d21a953-4a23-47f1-91a9-84df62f016f3\"\n }\n}",
|
|
380
380
|
"title": "配置一个直连下云的redis迁移任务"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"document": "配置一个mongodb迁移上云任务,迁移部分库表,源端使用公有云接入方式,使用change_stream的方式拉取。",
|
|
384
|
+
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMigrationJob\n<公共请求参数>\n\n{\n \"JobId\": \"dts-nk75d8oa\",\n \"RunMode\": \"immediate\",\n \"MigrateOption\": {\n \"DatabaseTable\": {\n \"ObjectMode\": \"partial\",\n \"Databases\": [\n {\n \"DbName\": \"db222_index\",\n \"DBMode\": \"all\",\n \"TableMode\": \"all\",\n \"ViewMode\": \"all\"\n }\n ]\n },\n \"MigrateType\": \"fullAndIncrement\",\n \"Consistency\": {\n \"Mode\": \"full\"\n }\n },\n \"SrcInfo\": {\n \"Region\": \"ap-guangzhou\",\n \"AccessType\": \"extranet\",\n \"DatabaseType\": \"mongodb\",\n \"NodeType\": \"cluster\",\n \"Info\": [\n {\n \"Role\": \"mongos\",\n \"Host\": \"9.8.160.69\",\n \"Port\": 6009,\n \"User\": \"mongouser\",\n \"Password\": \"1234567a\"\n }\n ],\n \"ExtraAttr\": [\n {\n \"Key\": \"fetchMethod\",\n \"Value\": \"change_stream\"\n },\n {\n \"Key\": \"AuthDatabase\",\n \"Value\": \"admin\"\n },\n {\n \"Key\": \"AuthFlag\",\n \"Value\": \"1\"\n },\n {\n \"Key\": \"AuthMechanism\",\n \"Value\": \"SCRAM-SHA-1\"\n }\n ]\n },\n \"DstInfo\": {\n \"Region\": \"ap-guangzhou\",\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mongodb\",\n \"NodeType\": \"cluster\",\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EncryptConn\": \"\",\n \"EngineVersion\": \"\",\n \"Host\": \"\",\n \"InstanceId\": \"cmgo-fdbgxxxx\",\n \"Password\": \"xxxxxx\",\n \"Port\": 0,\n \"Role\": \"\",\n \"SetId\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"mongouser\",\n \"VpcId\": \"\"\n }\n ]\n }\n}",
|
|
385
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a3365b29-2042-4565-9206-8df9e2af1a17\"\n }\n}",
|
|
386
|
+
"title": "配置mongodb迁移迁移上云任务"
|
|
381
387
|
}
|
|
382
388
|
],
|
|
383
389
|
"ModifySubscribeAutoRenewFlag": [
|
|
@@ -455,7 +461,7 @@
|
|
|
455
461
|
"ResetConsumerGroupOffset": [
|
|
456
462
|
{
|
|
457
463
|
"document": "将一个订阅任务的kafka offset重置到2023-05-16 00:00:00附近的checkpoint",
|
|
458
|
-
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetConsumerGroupOffset\n<公共请求参数>\n\n{\n \"ConsumerGroupName\": \"consumer-grp-subs-635ns8r71g-1\",\n \"PartitionNos\": [\n
|
|
464
|
+
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetConsumerGroupOffset\n<公共请求参数>\n\n{\n \"ConsumerGroupName\": \"consumer-grp-subs-635ns8r71g-1\",\n \"PartitionNos\": [\n 0,\n 1,\n 2,\n 3\n ],\n \"ResetMode\": \"datetime\",\n \"ResetDatetime\": \"2023-05-16 00:00:00\",\n \"SubscribeId\": \"subs-635ns8r71g\",\n \"TopicName\": \"account-subs-635ns8r71g-1\"\n}",
|
|
459
465
|
"output": "{\n \"Response\": {\n \"RequestId\": \"20461920-b18e-11ec-ae1a-cfe224f4f21f\"\n }\n}",
|
|
460
466
|
"title": "重置消费组offset"
|
|
461
467
|
}
|
|
@@ -2887,6 +2887,51 @@
|
|
|
2887
2887
|
"name": "OrderByType",
|
|
2888
2888
|
"required": false,
|
|
2889
2889
|
"type": "int"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
"disabled": false,
|
|
2893
|
+
"document": "日志级别",
|
|
2894
|
+
"example": "[\"INFO\"]",
|
|
2895
|
+
"member": "string",
|
|
2896
|
+
"name": "LogLevels",
|
|
2897
|
+
"required": false,
|
|
2898
|
+
"type": "list"
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"disabled": false,
|
|
2902
|
+
"document": "节点ID",
|
|
2903
|
+
"example": "[\"167890354315\"]",
|
|
2904
|
+
"member": "string",
|
|
2905
|
+
"name": "NodeIds",
|
|
2906
|
+
"required": false,
|
|
2907
|
+
"type": "list"
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
"disabled": false,
|
|
2911
|
+
"document": "慢日志索引名",
|
|
2912
|
+
"example": "index",
|
|
2913
|
+
"member": "string",
|
|
2914
|
+
"name": "IndexName",
|
|
2915
|
+
"required": false,
|
|
2916
|
+
"type": "string"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"disabled": false,
|
|
2920
|
+
"document": "慢日志索引分片",
|
|
2921
|
+
"example": "[index][0]",
|
|
2922
|
+
"member": "string",
|
|
2923
|
+
"name": "ShardId",
|
|
2924
|
+
"required": false,
|
|
2925
|
+
"type": "string"
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"disabled": false,
|
|
2929
|
+
"document": "慢日志查询耗时",
|
|
2930
|
+
"example": "100",
|
|
2931
|
+
"member": "uint64",
|
|
2932
|
+
"name": "QueryCost",
|
|
2933
|
+
"required": false,
|
|
2934
|
+
"type": "int"
|
|
2890
2935
|
}
|
|
2891
2936
|
],
|
|
2892
2937
|
"type": "object"
|
|
@@ -7216,6 +7261,36 @@
|
|
|
7216
7261
|
"output_required": true,
|
|
7217
7262
|
"type": "string",
|
|
7218
7263
|
"value_allowed_null": false
|
|
7264
|
+
},
|
|
7265
|
+
{
|
|
7266
|
+
"disabled": false,
|
|
7267
|
+
"document": "慢日志索引名",
|
|
7268
|
+
"example": "index",
|
|
7269
|
+
"member": "string",
|
|
7270
|
+
"name": "IndexName",
|
|
7271
|
+
"output_required": false,
|
|
7272
|
+
"type": "string",
|
|
7273
|
+
"value_allowed_null": false
|
|
7274
|
+
},
|
|
7275
|
+
{
|
|
7276
|
+
"disabled": false,
|
|
7277
|
+
"document": "慢日志索引分片",
|
|
7278
|
+
"example": "[index][0]",
|
|
7279
|
+
"member": "string",
|
|
7280
|
+
"name": "Shard",
|
|
7281
|
+
"output_required": false,
|
|
7282
|
+
"type": "string",
|
|
7283
|
+
"value_allowed_null": false
|
|
7284
|
+
},
|
|
7285
|
+
{
|
|
7286
|
+
"disabled": false,
|
|
7287
|
+
"document": "慢日志索引查询耗时",
|
|
7288
|
+
"example": "100",
|
|
7289
|
+
"member": "string",
|
|
7290
|
+
"name": "QueryCost",
|
|
7291
|
+
"output_required": false,
|
|
7292
|
+
"type": "string",
|
|
7293
|
+
"value_allowed_null": false
|
|
7219
7294
|
}
|
|
7220
7295
|
],
|
|
7221
7296
|
"usage": "out"
|
|
@@ -10088,7 +10163,7 @@
|
|
|
10088
10163
|
{
|
|
10089
10164
|
"disabled": false,
|
|
10090
10165
|
"document": "空间白名单\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
10091
|
-
"example": "
|
|
10166
|
+
"example": "无",
|
|
10092
10167
|
"member": "EsAcl",
|
|
10093
10168
|
"name": "KibanaPublicAcl",
|
|
10094
10169
|
"output_required": false,
|
|
@@ -10118,7 +10193,7 @@
|
|
|
10118
10193
|
{
|
|
10119
10194
|
"disabled": false,
|
|
10120
10195
|
"document": "空间vpc信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
10121
|
-
"example": "
|
|
10196
|
+
"example": "无",
|
|
10122
10197
|
"member": "VpcInfo",
|
|
10123
10198
|
"name": "VpcInfo",
|
|
10124
10199
|
"output_required": false,
|
|
@@ -10188,7 +10263,7 @@
|
|
|
10188
10263
|
{
|
|
10189
10264
|
"disabled": false,
|
|
10190
10265
|
"document": "0\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
10191
|
-
"example": "0
|
|
10266
|
+
"example": "0",
|
|
10192
10267
|
"member": "int64",
|
|
10193
10268
|
"name": "ClusterType",
|
|
10194
10269
|
"output_required": false,
|
|
@@ -10198,12 +10273,32 @@
|
|
|
10198
10273
|
{
|
|
10199
10274
|
"disabled": false,
|
|
10200
10275
|
"document": "空间标签信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
|
10201
|
-
"example": "
|
|
10276
|
+
"example": "无",
|
|
10202
10277
|
"member": "TagInfo",
|
|
10203
10278
|
"name": "TagList",
|
|
10204
10279
|
"output_required": false,
|
|
10205
10280
|
"type": "list",
|
|
10206
10281
|
"value_allowed_null": true
|
|
10282
|
+
},
|
|
10283
|
+
{
|
|
10284
|
+
"disabled": false,
|
|
10285
|
+
"document": "是否开启mcp服务",
|
|
10286
|
+
"example": "0",
|
|
10287
|
+
"member": "int64",
|
|
10288
|
+
"name": "EnableMcpAccess",
|
|
10289
|
+
"output_required": false,
|
|
10290
|
+
"type": "int",
|
|
10291
|
+
"value_allowed_null": false
|
|
10292
|
+
},
|
|
10293
|
+
{
|
|
10294
|
+
"disabled": false,
|
|
10295
|
+
"document": "mcp的访问地址",
|
|
10296
|
+
"example": "http://ip:port/sse",
|
|
10297
|
+
"member": "string",
|
|
10298
|
+
"name": "McpAccess",
|
|
10299
|
+
"output_required": false,
|
|
10300
|
+
"type": "string",
|
|
10301
|
+
"value_allowed_null": false
|
|
10207
10302
|
}
|
|
10208
10303
|
],
|
|
10209
10304
|
"usage": "out"
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"status": "online"
|
|
583
583
|
},
|
|
584
584
|
"DescribeUserFlowType": {
|
|
585
|
-
"document": "
|
|
585
|
+
"document": "查询用户模板类型,分为两种模式:\n<ul>\n<li>QueryBindTemplate:false,查询用户合同模板类型,返回用户合同模板类型ID,用户合同模板类型名称,用户合同模板类型描述信息</li>\n<li>QueryBindTemplate:false,查询用户合同模板类型,返回用户合同模板类型ID,用户合同模板类型名称,用户合同模板类型描述信息,被绑定的模板数量</li>\n</ul>",
|
|
586
586
|
"input": "DescribeUserFlowTypeRequest",
|
|
587
587
|
"name": "查询用户合同类型",
|
|
588
588
|
"output": "DescribeUserFlowTypeResponse",
|
|
@@ -9876,7 +9876,7 @@
|
|
|
9876
9876
|
},
|
|
9877
9877
|
{
|
|
9878
9878
|
"disabled": false,
|
|
9879
|
-
"document": "搜索过滤的条件,本字段允许您通过指定模板 ID 或模板名称来进行查询。 <ul><li><strong>模板的用户合同类型</strong>:<strong>Key</strong>设置为 <code>user-flow-type-id</code> ,<strong>Values</strong
|
|
9879
|
+
"document": "搜索过滤的条件,本字段允许您通过指定模板 ID 或模板名称来进行查询。 <ul><li><strong>模板的用户合同类型</strong>:<strong>Key</strong>设置为 <code>user-flow-type-id</code> ,<strong>Values</strong>为您想要查询的用户模板类型id列表。</li></ul>\t",
|
|
9880
9880
|
"example": "无",
|
|
9881
9881
|
"member": "Filter",
|
|
9882
9882
|
"name": "Filters",
|
|
@@ -9885,7 +9885,7 @@
|
|
|
9885
9885
|
},
|
|
9886
9886
|
{
|
|
9887
9887
|
"disabled": false,
|
|
9888
|
-
"document": "
|
|
9888
|
+
"document": "查询绑定了模板的用户合同类型<ul><li>false(默认值),查询用户合同类型</li><li>true,查询绑定了模板的用户合同类型</li></ul>",
|
|
9889
9889
|
"example": "true",
|
|
9890
9890
|
"member": "bool",
|
|
9891
9891
|
"name": "QueryBindTemplate",
|
|
@@ -1296,22 +1296,22 @@
|
|
|
1296
1296
|
"title": "查询用户合同类型(不指定filter)"
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
"document": "
|
|
1299
|
+
"document": "查询用户合同类型(不指定查询绑定模板的合同类型)",
|
|
1300
1300
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"QueryBindTemplate\": false\n}",
|
|
1301
1301
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 0,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1302
|
-
"title": "
|
|
1302
|
+
"title": "查询用户合同类型(不指定查询绑定模板的合同类型)"
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
|
-
"document": "
|
|
1305
|
+
"document": "查询用户合同类型(指定查询绑定模板的合同类型)",
|
|
1306
1306
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"QueryBindTemplate\": true\n}",
|
|
1307
1307
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 10,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1308
|
-
"title": "
|
|
1308
|
+
"title": "查询用户合同类型(指定查询绑定模板的合同类型)"
|
|
1309
1309
|
},
|
|
1310
1310
|
{
|
|
1311
|
-
"document": "
|
|
1311
|
+
"document": "查询用户合同类型(指定用户模板id)",
|
|
1312
1312
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserFlowType\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"Filters\": [\n {\n \"Key\": \"user-flow-type-id\",\n \"Values\": [\n \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n ]\n }\n ],\n \"QueryBindTemplate\": true\n}",
|
|
1313
1313
|
"output": "{\n \"Response\": {\n \"AllUserFlowTypes\": [\n {\n \"Description\": \"\",\n \"Name\": \"单方合同\",\n \"TemplateNum\": 10,\n \"UserFlowTypeId\": \"yDwXXUUckp19hvn8URxp4X6wVwCLodxJ\"\n }\n ],\n \"RequestId\": \"s1741681654595707818\"\n }\n}",
|
|
1314
|
-
"title": "
|
|
1314
|
+
"title": "查询用户合同类型(指定用户模板id)"
|
|
1315
1315
|
}
|
|
1316
1316
|
],
|
|
1317
1317
|
"GetDownloadFlowUrl": [
|
|
@@ -10247,7 +10247,7 @@
|
|
|
10247
10247
|
{
|
|
10248
10248
|
"disabled": false,
|
|
10249
10249
|
"document": "健康检查相关参数",
|
|
10250
|
-
"example": "
|
|
10250
|
+
"example": "无",
|
|
10251
10251
|
"member": "RuleCheckParams",
|
|
10252
10252
|
"name": "CheckParams",
|
|
10253
10253
|
"output_required": true,
|
|
@@ -10257,7 +10257,7 @@
|
|
|
10257
10257
|
{
|
|
10258
10258
|
"disabled": false,
|
|
10259
10259
|
"document": "已绑定的源站相关信息",
|
|
10260
|
-
"example": "
|
|
10260
|
+
"example": "无",
|
|
10261
10261
|
"member": "BindRealServer",
|
|
10262
10262
|
"name": "RealServerSet",
|
|
10263
10263
|
"output_required": true,
|
|
@@ -10266,7 +10266,7 @@
|
|
|
10266
10266
|
},
|
|
10267
10267
|
{
|
|
10268
10268
|
"disabled": false,
|
|
10269
|
-
"document": "源站的服务状态,0表示异常,1表示正常。\n
|
|
10269
|
+
"document": "源站的服务状态,0表示异常,1表示正常。\n未开启健康检查时,该状态始终为正常。\n只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。",
|
|
10270
10270
|
"example": "1",
|
|
10271
10271
|
"member": "uint64",
|
|
10272
10272
|
"name": "BindStatus",
|
|
@@ -10313,6 +10313,16 @@
|
|
|
10313
10313
|
"output_required": true,
|
|
10314
10314
|
"type": "string",
|
|
10315
10315
|
"value_allowed_null": true
|
|
10316
|
+
},
|
|
10317
|
+
{
|
|
10318
|
+
"disabled": false,
|
|
10319
|
+
"document": "七层转发规则的回源协议类型",
|
|
10320
|
+
"example": "HTTP",
|
|
10321
|
+
"member": "string",
|
|
10322
|
+
"name": "ForwardProtocol",
|
|
10323
|
+
"output_required": false,
|
|
10324
|
+
"type": "string",
|
|
10325
|
+
"value_allowed_null": false
|
|
10316
10326
|
}
|
|
10317
10327
|
],
|
|
10318
10328
|
"usage": "out"
|
tccli/services/ioa/ioa_client.py
CHANGED
|
@@ -69,6 +69,58 @@ def doDescribeAggrSoftDeviceList(args, parsed_globals):
|
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
def doExportDeviceDownloadTask(args, parsed_globals):
|
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
|
74
|
+
|
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
76
|
+
cred = credential.CVMRoleCredential()
|
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
81
|
+
)
|
|
82
|
+
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):
|
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
84
|
+
else:
|
|
85
|
+
cred = credential.Credential(
|
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
87
|
+
)
|
|
88
|
+
http_profile = HttpProfile(
|
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
90
|
+
reqMethod="POST",
|
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
93
|
+
)
|
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
95
|
+
if g_param[OptionsDefine.Language]:
|
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
98
|
+
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
101
|
+
model = models.ExportDeviceDownloadTaskRequest()
|
|
102
|
+
model.from_json_string(json.dumps(args))
|
|
103
|
+
start_time = time.time()
|
|
104
|
+
while True:
|
|
105
|
+
rsp = client.ExportDeviceDownloadTask(model)
|
|
106
|
+
result = rsp.to_json_string()
|
|
107
|
+
try:
|
|
108
|
+
json_obj = json.loads(result)
|
|
109
|
+
except TypeError as e:
|
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
112
|
+
break
|
|
113
|
+
cur_time = time.time()
|
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
118
|
+
else:
|
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
122
|
+
|
|
123
|
+
|
|
72
124
|
def doCreateDeviceTask(args, parsed_globals):
|
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
|
74
126
|
|
|
@@ -225,7 +277,7 @@ def doCreateDLPFileDetectTask(args, parsed_globals):
|
|
|
225
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
226
278
|
|
|
227
279
|
|
|
228
|
-
def
|
|
280
|
+
def doCreateDeviceVirtualGroup(args, parsed_globals):
|
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
|
230
282
|
|
|
231
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -254,11 +306,11 @@ def doDescribeDeviceChildGroups(args, parsed_globals):
|
|
|
254
306
|
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
255
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
256
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
257
|
-
model = models.
|
|
309
|
+
model = models.CreateDeviceVirtualGroupRequest()
|
|
258
310
|
model.from_json_string(json.dumps(args))
|
|
259
311
|
start_time = time.time()
|
|
260
312
|
while True:
|
|
261
|
-
rsp = client.
|
|
313
|
+
rsp = client.CreateDeviceVirtualGroup(model)
|
|
262
314
|
result = rsp.to_json_string()
|
|
263
315
|
try:
|
|
264
316
|
json_obj = json.loads(result)
|
|
@@ -901,7 +953,7 @@ def doDescribeDeviceHardwareInfoList(args, parsed_globals):
|
|
|
901
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
902
954
|
|
|
903
955
|
|
|
904
|
-
def
|
|
956
|
+
def doDescribeDeviceChildGroups(args, parsed_globals):
|
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
|
906
958
|
|
|
907
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -930,11 +982,11 @@ def doCreateDeviceVirtualGroup(args, parsed_globals):
|
|
|
930
982
|
client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
-
model = models.
|
|
985
|
+
model = models.DescribeDeviceChildGroupsRequest()
|
|
934
986
|
model.from_json_string(json.dumps(args))
|
|
935
987
|
start_time = time.time()
|
|
936
988
|
while True:
|
|
937
|
-
rsp = client.
|
|
989
|
+
rsp = client.DescribeDeviceChildGroups(model)
|
|
938
990
|
result = rsp.to_json_string()
|
|
939
991
|
try:
|
|
940
992
|
json_obj = json.loads(result)
|
|
@@ -1381,10 +1433,11 @@ MODELS_MAP = {
|
|
|
1381
1433
|
|
|
1382
1434
|
ACTION_MAP = {
|
|
1383
1435
|
"DescribeAggrSoftDeviceList": doDescribeAggrSoftDeviceList,
|
|
1436
|
+
"ExportDeviceDownloadTask": doExportDeviceDownloadTask,
|
|
1384
1437
|
"CreateDeviceTask": doCreateDeviceTask,
|
|
1385
1438
|
"DescribeSoftwareInformation": doDescribeSoftwareInformation,
|
|
1386
1439
|
"CreateDLPFileDetectTask": doCreateDLPFileDetectTask,
|
|
1387
|
-
"
|
|
1440
|
+
"CreateDeviceVirtualGroup": doCreateDeviceVirtualGroup,
|
|
1388
1441
|
"DescribeDLPFileDetectTaskResult": doDescribeDLPFileDetectTaskResult,
|
|
1389
1442
|
"DescribeVirtualDevices": doDescribeVirtualDevices,
|
|
1390
1443
|
"ExportSoftwareInformationList": doExportSoftwareInformationList,
|
|
@@ -1397,7 +1450,7 @@ ACTION_MAP = {
|
|
|
1397
1450
|
"DescribeAggrSoftDetail": doDescribeAggrSoftDetail,
|
|
1398
1451
|
"DescribeDeviceInfo": doDescribeDeviceInfo,
|
|
1399
1452
|
"DescribeDeviceHardwareInfoList": doDescribeDeviceHardwareInfoList,
|
|
1400
|
-
"
|
|
1453
|
+
"DescribeDeviceChildGroups": doDescribeDeviceChildGroups,
|
|
1401
1454
|
"DescribeAccountGroups": doDescribeAccountGroups,
|
|
1402
1455
|
"DescribeDeviceDetailList": doDescribeDeviceDetailList,
|
|
1403
1456
|
"DescribeLocalAccounts": doDescribeLocalAccounts,
|