tccli 3.0.1113.1__py2.py3-none-any.whl → 3.0.1115.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/cat/v20180409/api.json +2 -2
  4. tccli/services/cat/v20180409/examples.json +2 -2
  5. tccli/services/cdwdoris/v20211228/api.json +9 -0
  6. tccli/services/cynosdb/v20190107/api.json +151 -50
  7. tccli/services/dasb/dasb_client.py +347 -29
  8. tccli/services/dasb/v20191018/api.json +966 -13
  9. tccli/services/dasb/v20191018/examples.json +48 -0
  10. tccli/services/dbbrain/dbbrain_client.py +110 -4
  11. tccli/services/dbbrain/v20210527/api.json +235 -5
  12. tccli/services/dbbrain/v20210527/examples.json +23 -1
  13. tccli/services/dlc/dlc_client.py +190 -31
  14. tccli/services/dlc/v20210125/api.json +176 -0
  15. tccli/services/dlc/v20210125/examples.json +24 -0
  16. tccli/services/dsgc/v20190723/api.json +30 -17
  17. tccli/services/dsgc/v20190723/examples.json +1 -1
  18. tccli/services/ess/ess_client.py +110 -4
  19. tccli/services/ess/v20201111/api.json +146 -1
  20. tccli/services/ess/v20201111/examples.json +17 -1
  21. tccli/services/essbasic/v20210526/api.json +12 -2
  22. tccli/services/essbasic/v20210526/examples.json +4 -4
  23. tccli/services/hunyuan/v20230901/api.json +6 -6
  24. tccli/services/hunyuan/v20230901/examples.json +6 -6
  25. tccli/services/iotexplorer/iotexplorer_client.py +326 -8
  26. tccli/services/iotexplorer/v20190423/api.json +583 -0
  27. tccli/services/iotexplorer/v20190423/examples.json +48 -0
  28. tccli/services/monitor/v20180724/api.json +27 -0
  29. tccli/services/mps/v20190612/api.json +67 -1
  30. tccli/services/svp/svp_client.py +159 -0
  31. tccli/services/svp/v20240125/api.json +723 -0
  32. tccli/services/svp/v20240125/examples.json +24 -0
  33. tccli/services/tdmq/v20200217/api.json +2 -2
  34. tccli/services/tione/v20211111/api.json +11 -0
  35. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/METADATA +2 -2
  36. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/RECORD +39 -39
  37. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/WHEEL +0 -0
  38. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/entry_points.txt +0 -0
  39. {tccli-3.0.1113.1.dist-info → tccli-3.0.1115.1.dist-info}/license_files/LICENSE +0 -0
@@ -56,6 +56,14 @@
56
56
  "title": "创建主机资产同步任务"
57
57
  }
58
58
  ],
59
+ "CreateChangePwdTask": [
60
+ {
61
+ "document": "创建改密任务成功",
62
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateChangePwdTask\n<公共请求参数>\n\n{\n \"TaskName\": \"test\",\n \"DeviceIdSet\": [\n 213\n ],\n \"AccountSet\": [\n \"111\"\n ],\n \"ChangeMethod\": 1,\n \"RunAccount\": \"root\",\n \"AuthGenerationStrategy\": 3,\n \"Password\": \"Pw1234567\",\n \"PasswordLength\": 12,\n \"SmallLetter\": 1,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"JX4h=\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"112@qq.com\",\n \"115@qq.com\"\n ],\n \"FilePassword\": \"123456\",\n \"DepartmentId\": \"1\",\n \"Type\": 4,\n \"Period\": 14,\n \"FirstTime\": \"2024-04-27T00:00:00+08:00\"\n}",
63
+ "output": "{\n \"Response\": {\n \"OperationId\": \"ops-xxx\",\n \"RequestId\": \"f0be45dd-8719-46b5-b7ff-xxxx\"\n }\n}",
64
+ "title": "创建改密任务"
65
+ }
66
+ ],
59
67
  "CreateCmdTemplate": [
60
68
  {
61
69
  "document": "控制台页面新增高危命令模板",
@@ -112,6 +120,14 @@
112
120
  "title": "删除访问权限"
113
121
  }
114
122
  ],
123
+ "DeleteChangePwdTask": [
124
+ {
125
+ "document": "删除改密任务",
126
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteChangePwdTask\n<公共请求参数>\n\n{\n \"IdSet\": [\n 1\n ]\n}",
127
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxx\"\n }\n}",
128
+ "title": "删除改密任务"
129
+ }
130
+ ],
115
131
  "DeleteCmdTemplates": [
116
132
  {
117
133
  "document": "",
@@ -206,6 +222,22 @@
206
222
  "title": "查询主机资产自动同步结果"
207
223
  }
208
224
  ],
225
+ "DescribeChangePwdTask": [
226
+ {
227
+ "document": "查询修改密码任务信息",
228
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangePwdTask\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"TaskName\",\n \"Values\": [\n \"task1\"\n ]\n }\n ],\n \"Limit\": 20,\n \"Offset\": 0\n}",
229
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\",\n \"Tasks\": [\n {\n \"Id\": 1,\n \"TaskName\": \"test-xxx\",\n \"OperationId\": \"ops-xxx\",\n \"ChangeMethod\": 1,\n \"RunAccount\": \"root\",\n \"AuthGenerationStrategy\": 1,\n \"PasswordLength\": 12,\n \"SmallLetter\": 1,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"11323@qq.com\"\n ],\n \"FilePassword\": \"xxx\",\n \"Type\": 4,\n \"Period\": 0,\n \"FirstTime\": null,\n \"NextTime\": null,\n \"DeviceSet\": [\n {\n \"Id\": 1,\n \"InstanceId\": \"ins-a3dvgvte\",\n \"Name\": \"可用-预发标准版-linux\",\n \"PublicIp\": \"\",\n \"PrivateIp\": \"172.20.0.17\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"OsName\": \"TencentOS Server 3.1 (TK4)\",\n \"Kind\": 1,\n \"Port\": 22,\n \"IpPortSet\": null,\n \"VpcId\": \"vpc-test\",\n \"SubnetId\": \"subnet-test\",\n \"AccountCount\": 0,\n \"GroupSet\": [],\n \"Resource\": {\n \"ResourceId\": \"bh-saas-test\",\n \"ResourceName\": \"T-Sec-堡垒机(SaaS型)/专业版\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"Zone\": \"ap-shanghai-fsi-1\",\n \"Pid\": 10,\n \"SvArgs\": \"sv_cds_dasb_saas_ex_pro_xxx\",\n \"PackageBandwidth\": 0,\n \"PackageNode\": 0,\n \"LogDeliveryArgs\": \"\",\n \"ProductCode\": \"p_cds_dasb\",\n \"SubProductCode\": \"sp_cds_dasb_bh_saas_pro\",\n \"VpcId\": \"vpc-test\",\n \"VpcName\": \"Default-VPC\",\n \"VpcCidrBlock\": \"172.20.0.0/16\",\n \"SubnetId\": \"subnet-test\",\n \"SubnetName\": \"1qu\",\n \"CidrBlock\": \"172.20.50.0/24\",\n \"Nodes\": 50,\n \"UsedNodes\": 2,\n \"PublicIpSet\": [\n \"101.35.32.101\"\n ],\n \"PrivateIpSet\": [\n \"172.20.50.50\"\n ],\n \"RenewFlag\": 2,\n \"CreateTime\": \"2024-04-28T11:00:59+08:00\",\n \"ExpireTime\": \"2024-05-28T11:00:59+08:00\",\n \"Expired\": false,\n \"Deployed\": true,\n \"Status\": 1,\n \"ExtendPoints\": 0,\n \"ModuleSet\": []\n },\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n }\n ],\n \"AccountSet\": [\n \"test042303\",\n \"test042304\",\n \"test042305\",\n \"test092702\"\n ],\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n }\n ],\n \"TotalCount\": 1\n }\n}",
230
+ "title": "查询修改密码任务信息"
231
+ }
232
+ ],
233
+ "DescribeChangePwdTaskDetail": [
234
+ {
235
+ "document": "查询改密计划详情",
236
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangePwdTaskDetail\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"Filters\": [\n {\n \"Name\": \"InstanceId\",\n \"Values\": [\n \"ins-xxx\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 20\n}",
237
+ "output": "{\n \"Response\": {\n \"Details\": [\n {\n \"Device\": {\n \"Id\": 1,\n \"InstanceId\": \"ins-test\",\n \"Name\": \"linux\",\n \"PublicIp\": \"\",\n \"PrivateIp\": \"172.20.0.1\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"OsName\": \"TencentOS Server 3.1 (TK4)\",\n \"Kind\": 1,\n \"Port\": 22,\n \"IpPortSet\": null,\n \"VpcId\": \"vpc-test\",\n \"SubnetId\": \"subnet-test\",\n \"AccountCount\": 0,\n \"GroupSet\": [\n {\n \"Id\": 1,\n \"Name\": \"测试\",\n \"Department\": {\n \"Id\": \"\",\n \"Name\": \"\",\n \"Managers\": null,\n \"ManagerUsers\": null\n },\n \"Count\": 0\n }\n ],\n \"Resource\": {\n \"ResourceId\": \"bh-saas-test\",\n \"ResourceName\": \"T-Sec-堡垒机(SaaS型)/专业版\",\n \"ApCode\": \"ap-shanghai-fsi\",\n \"Zone\": \"ap-shanghai-fsi-1\",\n \"Pid\": 10,\n \"SvArgs\": \"sv_cds_dasb_saas_ex_pro_xxx\",\n \"PackageBandwidth\": 0,\n \"PackageNode\": 0,\n \"LogDeliveryArgs\": \"\",\n \"ProductCode\": \"p_cds_dasb\",\n \"SubProductCode\": \"sp_cds_dasb_bh_saas_pro\",\n \"VpcId\": \"vpc-test\",\n \"VpcName\": \"Default-VPC\",\n \"VpcCidrBlock\": \"172.20.0.0/16\",\n \"SubnetId\": \"subnet-test\",\n \"SubnetName\": \"1qu\",\n \"CidrBlock\": \"172.20.50.0/24\",\n \"Nodes\": 50,\n \"UsedNodes\": 2,\n \"PublicIpSet\": [\n \"1.1.1.1\"\n ],\n \"PrivateIpSet\": [\n \"172.0.0.1\"\n ],\n \"RenewFlag\": 2,\n \"CreateTime\": \"2024-04-28T11:00:59+08:00\",\n \"ExpireTime\": \"2024-05-28T11:00:59+08:00\",\n \"Expired\": false,\n \"Deployed\": true,\n \"Status\": 1,\n \"ExtendPoints\": 0,\n \"ModuleSet\": []\n },\n \"Department\": {\n \"Id\": \"1\",\n \"Name\": \"总部\",\n \"Managers\": null,\n \"ManagerUsers\": null\n }\n },\n \"Account\": \"worktest\",\n \"LastChangeStatus\": 1\n }\n ],\n \"RequestId\": \"rid-test\",\n \"TotalCount\": 1\n }\n}",
238
+ "title": "查询改密计划详情"
239
+ }
240
+ ],
209
241
  "DescribeCmdTemplates": [
210
242
  {
211
243
  "document": "",
@@ -330,6 +362,14 @@
330
362
  "title": "修改访问权限"
331
363
  }
332
364
  ],
365
+ "ModifyChangePwdTask": [
366
+ {
367
+ "document": "修改改密任务",
368
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyChangePwdTask\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"TaskName\": \"testchangePwd\",\n \"DeviceIdSet\": [\n 215,\n 213\n ],\n \"AccountSet\": [\n \"1111\"\n ],\n \"ModifyType\": 1,\n \"DepartmentId\": \"1.10\",\n \"ChangeMethod\": 2,\n \"RunAccount\": \"\",\n \"AuthGenerationStrategy\": 1,\n \"Password\": \"test1234567\",\n \"PasswordLength\": 12,\n \"SmallLetter\": 0,\n \"BigLetter\": 1,\n \"Digit\": 1,\n \"Symbol\": \"ISMkJQ==\",\n \"CompleteNotify\": 1,\n \"NotifyEmails\": [\n \"113@qq.com\"\n ],\n \"FilePassword\": \"1234567\",\n \"Type\": 5,\n \"Period\": 16,\n \"FirstTime\": \"2023-06-01T00:00:00+08:00\"\n}",
369
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\"\n }\n}",
370
+ "title": "修改改密任务"
371
+ }
372
+ ],
333
373
  "ModifyCmdTemplate": [
334
374
  {
335
375
  "document": "修改高危命令模板",
@@ -410,6 +450,14 @@
410
450
  "title": "重置用户"
411
451
  }
412
452
  ],
453
+ "RunChangePwdTask": [
454
+ {
455
+ "document": "执行改密任务成功",
456
+ "input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunChangePwdTask\n<公共请求参数>\n\n{\n \"OperationId\": \"ops-xxx\",\n \"Details\": []\n}",
457
+ "output": "{\n \"Response\": {\n \"RequestId\": \"rid-test\"\n }\n}",
458
+ "title": "执行改密任务"
459
+ }
460
+ ],
413
461
  "SearchAuditLog": [
414
462
  {
415
463
  "document": "搜索审计日志",
@@ -903,6 +903,58 @@ def doDescribeAuditInstanceList(args, parsed_globals):
903
903
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
904
904
 
905
905
 
906
+ def doDeleteRedisBigKeyAnalysisTasks(args, parsed_globals):
907
+ g_param = parse_global_arg(parsed_globals)
908
+
909
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
910
+ cred = credential.CVMRoleCredential()
911
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
912
+ cred = credential.STSAssumeRoleCredential(
913
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
914
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
915
+ )
916
+ 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):
917
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
918
+ else:
919
+ cred = credential.Credential(
920
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
921
+ )
922
+ http_profile = HttpProfile(
923
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
924
+ reqMethod="POST",
925
+ endpoint=g_param[OptionsDefine.Endpoint],
926
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
927
+ )
928
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
929
+ if g_param[OptionsDefine.Language]:
930
+ profile.language = g_param[OptionsDefine.Language]
931
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
932
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
933
+ client._sdkVersion += ("_CLI_" + __version__)
934
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
935
+ model = models.DeleteRedisBigKeyAnalysisTasksRequest()
936
+ model.from_json_string(json.dumps(args))
937
+ start_time = time.time()
938
+ while True:
939
+ rsp = client.DeleteRedisBigKeyAnalysisTasks(model)
940
+ result = rsp.to_json_string()
941
+ try:
942
+ json_obj = json.loads(result)
943
+ except TypeError as e:
944
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
945
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
946
+ break
947
+ cur_time = time.time()
948
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
949
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
950
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
951
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
952
+ else:
953
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
954
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
955
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
956
+
957
+
906
958
  def doDescribeTopSpaceTableTimeSeries(args, parsed_globals):
907
959
  g_param = parse_global_arg(parsed_globals)
908
960
 
@@ -1891,7 +1943,7 @@ def doDescribeAllUserContact(args, parsed_globals):
1891
1943
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1892
1944
 
1893
1945
 
1894
- def doDescribeProxyProcessStatistics(args, parsed_globals):
1946
+ def doDescribeRedisBigKeyAnalysisTasks(args, parsed_globals):
1895
1947
  g_param = parse_global_arg(parsed_globals)
1896
1948
 
1897
1949
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1920,11 +1972,11 @@ def doDescribeProxyProcessStatistics(args, parsed_globals):
1920
1972
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
1921
1973
  client._sdkVersion += ("_CLI_" + __version__)
1922
1974
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1923
- model = models.DescribeProxyProcessStatisticsRequest()
1975
+ model = models.DescribeRedisBigKeyAnalysisTasksRequest()
1924
1976
  model.from_json_string(json.dumps(args))
1925
1977
  start_time = time.time()
1926
1978
  while True:
1927
- rsp = client.DescribeProxyProcessStatistics(model)
1979
+ rsp = client.DescribeRedisBigKeyAnalysisTasks(model)
1928
1980
  result = rsp.to_json_string()
1929
1981
  try:
1930
1982
  json_obj = json.loads(result)
@@ -2567,6 +2619,58 @@ def doModifyDiagDBInstanceConf(args, parsed_globals):
2567
2619
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2568
2620
 
2569
2621
 
2622
+ def doDescribeProxyProcessStatistics(args, parsed_globals):
2623
+ g_param = parse_global_arg(parsed_globals)
2624
+
2625
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2626
+ cred = credential.CVMRoleCredential()
2627
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2628
+ cred = credential.STSAssumeRoleCredential(
2629
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2630
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2631
+ )
2632
+ 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):
2633
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2634
+ else:
2635
+ cred = credential.Credential(
2636
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2637
+ )
2638
+ http_profile = HttpProfile(
2639
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2640
+ reqMethod="POST",
2641
+ endpoint=g_param[OptionsDefine.Endpoint],
2642
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2643
+ )
2644
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2645
+ if g_param[OptionsDefine.Language]:
2646
+ profile.language = g_param[OptionsDefine.Language]
2647
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2648
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
2649
+ client._sdkVersion += ("_CLI_" + __version__)
2650
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2651
+ model = models.DescribeProxyProcessStatisticsRequest()
2652
+ model.from_json_string(json.dumps(args))
2653
+ start_time = time.time()
2654
+ while True:
2655
+ rsp = client.DescribeProxyProcessStatistics(model)
2656
+ result = rsp.to_json_string()
2657
+ try:
2658
+ json_obj = json.loads(result)
2659
+ except TypeError as e:
2660
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2661
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2662
+ break
2663
+ cur_time = time.time()
2664
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2665
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2666
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2667
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2668
+ else:
2669
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2670
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2671
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2672
+
2673
+
2570
2674
  def doCreateKillTask(args, parsed_globals):
2571
2675
  g_param = parse_global_arg(parsed_globals)
2572
2676
 
@@ -3221,6 +3325,7 @@ ACTION_MAP = {
3221
3325
  "DescribeAllUserGroup": doDescribeAllUserGroup,
3222
3326
  "DescribeDBDiagEvents": doDescribeDBDiagEvents,
3223
3327
  "DescribeAuditInstanceList": doDescribeAuditInstanceList,
3328
+ "DeleteRedisBigKeyAnalysisTasks": doDeleteRedisBigKeyAnalysisTasks,
3224
3329
  "DescribeTopSpaceTableTimeSeries": doDescribeTopSpaceTableTimeSeries,
3225
3330
  "CreateDBDiagReportTask": doCreateDBDiagReportTask,
3226
3331
  "DescribeRedisProcessList": doDescribeRedisProcessList,
@@ -3240,7 +3345,7 @@ ACTION_MAP = {
3240
3345
  "DescribeSlowLogTopSqls": doDescribeSlowLogTopSqls,
3241
3346
  "DescribeSecurityAuditLogExportTasks": doDescribeSecurityAuditLogExportTasks,
3242
3347
  "DescribeAllUserContact": doDescribeAllUserContact,
3243
- "DescribeProxyProcessStatistics": doDescribeProxyProcessStatistics,
3348
+ "DescribeRedisBigKeyAnalysisTasks": doDescribeRedisBigKeyAnalysisTasks,
3244
3349
  "DescribeSlowLogs": doDescribeSlowLogs,
3245
3350
  "DescribeDBDiagEvent": doDescribeDBDiagEvent,
3246
3351
  "DescribeDBDiagHistory": doDescribeDBDiagHistory,
@@ -3253,6 +3358,7 @@ ACTION_MAP = {
3253
3358
  "DescribeIndexRecommendInfo": doDescribeIndexRecommendInfo,
3254
3359
  "DescribeIndexRecommendAggregationSlowLogs": doDescribeIndexRecommendAggregationSlowLogs,
3255
3360
  "ModifyDiagDBInstanceConf": doModifyDiagDBInstanceConf,
3361
+ "DescribeProxyProcessStatistics": doDescribeProxyProcessStatistics,
3256
3362
  "CreateKillTask": doCreateKillTask,
3257
3363
  "UpdateAgentSwitch": doUpdateAgentSwitch,
3258
3364
  "UpdateMonitorSwitch": doUpdateMonitorSwitch,
@@ -105,6 +105,13 @@
105
105
  "output": "DeleteDBDiagReportTasksResponse",
106
106
  "status": "online"
107
107
  },
108
+ "DeleteRedisBigKeyAnalysisTasks": {
109
+ "document": "删除Redis实例的大key分析任务。",
110
+ "input": "DeleteRedisBigKeyAnalysisTasksRequest",
111
+ "name": "删除redis实例大key分析任务",
112
+ "output": "DeleteRedisBigKeyAnalysisTasksResponse",
113
+ "status": "online"
114
+ },
108
115
  "DeleteSecurityAuditLogExportTasks": {
109
116
  "document": "删除安全审计日志导出任务。",
110
117
  "input": "DeleteSecurityAuditLogExportTasksRequest",
@@ -252,6 +259,13 @@
252
259
  "output": "DescribeProxySessionKillTasksResponse",
253
260
  "status": "online"
254
261
  },
262
+ "DescribeRedisBigKeyAnalysisTasks": {
263
+ "document": "查询redis大key分析任务列表。",
264
+ "input": "DescribeRedisBigKeyAnalysisTasksRequest",
265
+ "name": "查询redis大key分析任务列表",
266
+ "output": "DescribeRedisBigKeyAnalysisTasksResponse",
267
+ "status": "online"
268
+ },
255
269
  "DescribeRedisProcessList": {
256
270
  "document": "获取 Redis 实例所有 proxy 节点的实时会话详情列表。",
257
271
  "input": "DescribeRedisProcessListRequest",
@@ -386,7 +400,7 @@
386
400
  "status": "online"
387
401
  },
388
402
  "ModifyDiagDBInstanceConf": {
389
- "document": "修改实例巡检开关。",
403
+ "document": "修改实例的配置信息。",
390
404
  "input": "ModifyDiagDBInstanceConfRequest",
391
405
  "name": "修改实例巡检开关状态",
392
406
  "output": "ModifyDiagDBInstanceConfResponse",
@@ -2129,6 +2143,61 @@
2129
2143
  ],
2130
2144
  "type": "object"
2131
2145
  },
2146
+ "DeleteRedisBigKeyAnalysisTasksRequest": {
2147
+ "document": "DeleteRedisBigKeyAnalysisTasks请求参数结构体",
2148
+ "members": [
2149
+ {
2150
+ "disabled": false,
2151
+ "document": "实例ID。",
2152
+ "example": "crs-c1nl9rpv",
2153
+ "member": "string",
2154
+ "name": "InstanceId",
2155
+ "required": true,
2156
+ "type": "string"
2157
+ },
2158
+ {
2159
+ "disabled": false,
2160
+ "document": "待删除的异步任务ID列表。",
2161
+ "example": "[11822974]",
2162
+ "member": "int64",
2163
+ "name": "AsyncRequestIds",
2164
+ "required": true,
2165
+ "type": "list"
2166
+ },
2167
+ {
2168
+ "disabled": false,
2169
+ "document": "服务产品类型,支持值包括 \"redis\" - 云数据库 Redis。",
2170
+ "example": "redis",
2171
+ "member": "string",
2172
+ "name": "Product",
2173
+ "required": true,
2174
+ "type": "string"
2175
+ }
2176
+ ],
2177
+ "type": "object"
2178
+ },
2179
+ "DeleteRedisBigKeyAnalysisTasksResponse": {
2180
+ "document": "DeleteRedisBigKeyAnalysisTasks返回参数结构体",
2181
+ "members": [
2182
+ {
2183
+ "disabled": false,
2184
+ "document": "状态值,为0时代表正常处理。",
2185
+ "example": "0",
2186
+ "member": "int64",
2187
+ "name": "Status",
2188
+ "output_required": true,
2189
+ "type": "int",
2190
+ "value_allowed_null": false
2191
+ },
2192
+ {
2193
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2194
+ "member": "string",
2195
+ "name": "RequestId",
2196
+ "type": "string"
2197
+ }
2198
+ ],
2199
+ "type": "object"
2200
+ },
2132
2201
  "DeleteSecurityAuditLogExportTasksRequest": {
2133
2202
  "document": "DeleteSecurityAuditLogExportTasks请求参数结构体",
2134
2203
  "members": [
@@ -3116,7 +3185,7 @@
3116
3185
  },
3117
3186
  {
3118
3187
  "disabled": false,
3119
- "document": "服务产品类型,支持值包括:\"mysql\" - 云数据库 MySQL,\"cynosdb\" - 云数据库 TDSQL-C for MySQL,\"dbbrain-mysql\" - 自建 MySQL,默认为\"mysql\"。",
3188
+ "document": "服务产品类型,支持值包括:\"mysql\" - 云数据库 MySQL,\"cynosdb\" - 云数据库 TDSQL-C for MySQL,\"dbbrain-mysql\" - 自建 MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
3120
3189
  "example": "mysql",
3121
3190
  "member": "string",
3122
3191
  "name": "Product",
@@ -3911,6 +3980,80 @@
3911
3980
  ],
3912
3981
  "type": "object"
3913
3982
  },
3983
+ "DescribeRedisBigKeyAnalysisTasksRequest": {
3984
+ "document": "DescribeRedisBigKeyAnalysisTasks请求参数结构体",
3985
+ "members": [
3986
+ {
3987
+ "disabled": false,
3988
+ "document": "服务产品类型,支持值包括 \"redis\" - 云数据库 Redis。",
3989
+ "example": "redis",
3990
+ "member": "string",
3991
+ "name": "Product",
3992
+ "required": true,
3993
+ "type": "string"
3994
+ },
3995
+ {
3996
+ "disabled": false,
3997
+ "document": "实例ID。",
3998
+ "example": "crs-c1nl9rpv",
3999
+ "member": "string",
4000
+ "name": "InstanceId",
4001
+ "required": true,
4002
+ "type": "string"
4003
+ },
4004
+ {
4005
+ "disabled": false,
4006
+ "document": "查询数目,默认为20,最大值为100。",
4007
+ "example": "20",
4008
+ "member": "int64",
4009
+ "name": "Limit",
4010
+ "required": false,
4011
+ "type": "int"
4012
+ },
4013
+ {
4014
+ "disabled": false,
4015
+ "document": "偏移量,默认为0。",
4016
+ "example": "0",
4017
+ "member": "int64",
4018
+ "name": "Offset",
4019
+ "required": false,
4020
+ "type": "int"
4021
+ }
4022
+ ],
4023
+ "type": "object"
4024
+ },
4025
+ "DescribeRedisBigKeyAnalysisTasksResponse": {
4026
+ "document": "DescribeRedisBigKeyAnalysisTasks返回参数结构体",
4027
+ "members": [
4028
+ {
4029
+ "disabled": false,
4030
+ "document": "任务总数。\n注意:此字段可能返回 null,表示取不到有效值。",
4031
+ "example": "100",
4032
+ "member": "int64",
4033
+ "name": "TotalCount",
4034
+ "output_required": true,
4035
+ "type": "int",
4036
+ "value_allowed_null": true
4037
+ },
4038
+ {
4039
+ "disabled": false,
4040
+ "document": "任务列表。",
4041
+ "example": "无",
4042
+ "member": "RedisBigKeyTask",
4043
+ "name": "Tasks",
4044
+ "output_required": false,
4045
+ "type": "list",
4046
+ "value_allowed_null": false
4047
+ },
4048
+ {
4049
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4050
+ "member": "string",
4051
+ "name": "RequestId",
4052
+ "type": "string"
4053
+ }
4054
+ ],
4055
+ "type": "object"
4056
+ },
3914
4057
  "DescribeRedisProcessListRequest": {
3915
4058
  "document": "DescribeRedisProcessList请求参数结构体",
3916
4059
  "members": [
@@ -6028,7 +6171,7 @@
6028
6171
  "example": "无",
6029
6172
  "member": "string",
6030
6173
  "name": "KeyDelimiters",
6031
- "output_required": true,
6174
+ "output_required": false,
6032
6175
  "required": false,
6033
6176
  "type": "list",
6034
6177
  "value_allowed_null": true
@@ -6039,7 +6182,18 @@
6039
6182
  "example": "3",
6040
6183
  "member": "string",
6041
6184
  "name": "ShardNum",
6042
- "output_required": true,
6185
+ "output_required": false,
6186
+ "required": false,
6187
+ "type": "string",
6188
+ "value_allowed_null": true
6189
+ },
6190
+ {
6191
+ "disabled": false,
6192
+ "document": "是否开启大key周期性分析,仅redis产品有效。\n注意:此字段可能返回 null,表示取不到有效值。",
6193
+ "example": "Yes",
6194
+ "member": "string",
6195
+ "name": "AnalysisTopKey",
6196
+ "output_required": false,
6043
6197
  "required": false,
6044
6198
  "type": "string",
6045
6199
  "value_allowed_null": true
@@ -6822,7 +6976,7 @@
6822
6976
  },
6823
6977
  {
6824
6978
  "disabled": false,
6825
- "document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL。",
6979
+ "document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"redis\" - 云数据库 Redis。",
6826
6980
  "example": "mysql",
6827
6981
  "member": "string",
6828
6982
  "name": "Product",
@@ -7515,6 +7669,82 @@
7515
7669
  ],
7516
7670
  "usage": "out"
7517
7671
  },
7672
+ "RedisBigKeyTask": {
7673
+ "document": "Redis大Key分析任务详情。",
7674
+ "members": [
7675
+ {
7676
+ "disabled": false,
7677
+ "document": "异步任务请求 ID。",
7678
+ "example": "12306",
7679
+ "member": "int64",
7680
+ "name": "AsyncRequestId",
7681
+ "output_required": true,
7682
+ "type": "int",
7683
+ "value_allowed_null": false
7684
+ },
7685
+ {
7686
+ "disabled": false,
7687
+ "document": "任务创建时间。",
7688
+ "example": "2024-01-02 21:02:24",
7689
+ "member": "string",
7690
+ "name": "CreateTime",
7691
+ "output_required": true,
7692
+ "type": "string",
7693
+ "value_allowed_null": false
7694
+ },
7695
+ {
7696
+ "disabled": false,
7697
+ "document": "任务开始时间。",
7698
+ "example": "2024-01-02 21:02:25",
7699
+ "member": "string",
7700
+ "name": "StartTime",
7701
+ "output_required": true,
7702
+ "type": "string",
7703
+ "value_allowed_null": false
7704
+ },
7705
+ {
7706
+ "disabled": false,
7707
+ "document": "任务结束时间。",
7708
+ "example": "2024-01-08 11:52:41",
7709
+ "member": "string",
7710
+ "name": "EndTime",
7711
+ "output_required": true,
7712
+ "type": "string",
7713
+ "value_allowed_null": false
7714
+ },
7715
+ {
7716
+ "disabled": false,
7717
+ "document": "任务状态。",
7718
+ "example": "finished",
7719
+ "member": "string",
7720
+ "name": "TaskStatus",
7721
+ "output_required": true,
7722
+ "type": "string",
7723
+ "value_allowed_null": false
7724
+ },
7725
+ {
7726
+ "disabled": false,
7727
+ "document": "任务执行进度。",
7728
+ "example": "100",
7729
+ "member": "int64",
7730
+ "name": "Progress",
7731
+ "output_required": true,
7732
+ "type": "int",
7733
+ "value_allowed_null": false
7734
+ },
7735
+ {
7736
+ "disabled": false,
7737
+ "document": "任务包含的分片节点序号列表。",
7738
+ "example": "[2,3]",
7739
+ "member": "int64",
7740
+ "name": "ShardIds",
7741
+ "output_required": true,
7742
+ "type": "list",
7743
+ "value_allowed_null": false
7744
+ }
7745
+ ],
7746
+ "usage": "out"
7747
+ },
7518
7748
  "RedisKeySpaceData": {
7519
7749
  "document": "redis key空间信息。",
7520
7750
  "members": [
@@ -120,6 +120,14 @@
120
120
  "title": "删除健康报告生成任务"
121
121
  }
122
122
  ],
123
+ "DeleteRedisBigKeyAnalysisTasks": [
124
+ {
125
+ "document": "删除Redis实例的大key分析任务。",
126
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRedisBigKeyAnalysisTasks\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"InstanceId\": \"crs-0hnhwega\",\n \"AsyncRequestIds\": [\n 11822173\n ]\n}",
127
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"RequestId\": \"e9833850-b223-18ee-8376-93f024a9a071\"\n }\n}",
128
+ "title": "删除Redis实例的大key分析任务"
129
+ }
130
+ ],
123
131
  "DeleteSecurityAuditLogExportTasks": [
124
132
  {
125
133
  "document": "",
@@ -288,6 +296,14 @@
288
296
  "title": "查询 kill 会话任务执行结果"
289
297
  }
290
298
  ],
299
+ "DescribeRedisBigKeyAnalysisTasks": [
300
+ {
301
+ "document": "获取某个Redis实例的大Key分析任务列表。",
302
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRedisBigKeyAnalysisTasks\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-7i2test\",\n \"Product\": \"redis\",\n \"Limit\": 50,\n \"Offset\": 0\n}",
303
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Tasks\": [\n {\n \"Progress\": 100,\n \"AsyncRequestId\": 7309733,\n \"EndTime\": \"2024-01-12 11:41:53\",\n \"CreateTime\": \"2024-01-12 11:38:37\",\n \"StartTime\": \"2024-01-12 11:38:38\",\n \"TaskStatus\": \"finished\",\n \"ShardIds\": [\n \"2\",\n \"3\"\n ]\n }\n ],\n \"RequestId\": \"e9833850-b113-11ee-8376-93f024a9a001\"\n }\n}",
304
+ "title": "获取Redis大Key分析任务列表"
305
+ }
306
+ ],
291
307
  "DescribeRedisProcessList": [
292
308
  {
293
309
  "document": "指定 Offset 分页获取实例 Proxy 实时会话详情列表。",
@@ -448,10 +464,16 @@
448
464
  ],
449
465
  "ModifyDiagDBInstanceConf": [
450
466
  {
451
- "document": "",
467
+ "document": "修改实例巡检状态。",
452
468
  "input": "https://dbbrain.tencentcloudapi.com/?Action=ModifyDiagDBInstanceConf\n&InstanceIds.0=cdb-fyclrp7r\n&InstanceConfs.DailyInspection=Yes\n&Regions=All\n&Product=mysql\n&<公共请求参数>",
453
469
  "output": "{\n \"Response\": {\n \"RequestId\": \"77db16d7-bbe8-48a7-868b-ed776a96f1ab\"\n }\n}",
454
470
  "title": "修改实例巡检状态"
471
+ },
472
+ {
473
+ "document": "开启Redis实例大key周期性分析并自定义分隔符。",
474
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDiagDBInstanceConf\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"Regions\": \"All\",\n \"InstanceIds\": [\n \"crs-pz1raq11\"\n ],\n \"InstanceConfs\": {\n \"AnalysisTopKey\": \"Yes\",\n \"KeyDelimiters\": [\n \"_\",\n \"-\",\n \":\"\n ]\n }\n}",
475
+ "output": "{\n \"Response\": {\n \"RequestId\": \"bcd97ab0-16d1-11ef-8e52-3d11a9997f13\"\n }\n}",
476
+ "title": "修改Redis实例大key周期性分析"
455
477
  }
456
478
  ],
457
479
  "ModifySqlFilters": [