tccli 3.0.1284.1__py2.py3-none-any.whl → 3.0.1285.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.
Files changed (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +88 -86
  3. tccli/services/bh/bh_client.py +53 -0
  4. tccli/services/bh/v20230418/api.json +199 -0
  5. tccli/services/bh/v20230418/examples.json +8 -0
  6. tccli/services/cdwch/v20200915/api.json +19 -9
  7. tccli/services/cdwch/v20200915/examples.json +1 -1
  8. tccli/services/cfg/v20210820/api.json +43 -19
  9. tccli/services/cfg/v20210820/examples.json +8 -2
  10. tccli/services/clb/v20180317/api.json +1 -1
  11. tccli/services/cmq/v20190304/api.json +92 -92
  12. tccli/services/cynosdb/v20190107/api.json +379 -379
  13. tccli/services/dlc/v20210125/api.json +2 -2
  14. tccli/services/dlc/v20210125/examples.json +2 -2
  15. tccli/services/domain/v20180808/api.json +157 -157
  16. tccli/services/dsgc/v20190723/api.json +2 -2
  17. tccli/services/dts/v20180330/api.json +3 -3
  18. tccli/services/dts/v20211206/api.json +336 -330
  19. tccli/services/emr/emr_client.py +53 -0
  20. tccli/services/emr/v20190103/api.json +247 -0
  21. tccli/services/emr/v20190103/examples.json +8 -0
  22. tccli/services/es/v20180416/api.json +10 -0
  23. tccli/services/es/v20180416/examples.json +1 -1
  24. tccli/services/fmu/fmu_client.py +8 -167
  25. tccli/services/fmu/v20191213/api.json +0 -292
  26. tccli/services/fmu/v20191213/examples.json +0 -24
  27. tccli/services/iotcloud/v20210408/api.json +27 -27
  28. tccli/services/iotcloud/v20210408/examples.json +6 -6
  29. tccli/services/iotexplorer/iotexplorer_client.py +0 -106
  30. tccli/services/iotexplorer/v20190423/api.json +0 -274
  31. tccli/services/iotexplorer/v20190423/examples.json +0 -16
  32. tccli/services/iss/v20230517/api.json +547 -537
  33. tccli/services/iss/v20230517/examples.json +2 -2
  34. tccli/services/kms/v20190118/api.json +20 -0
  35. tccli/services/lcic/lcic_client.py +114 -8
  36. tccli/services/lcic/v20220817/api.json +108 -0
  37. tccli/services/lcic/v20220817/examples.json +16 -0
  38. tccli/services/mongodb/mongodb_client.py +57 -4
  39. tccli/services/mongodb/v20190725/api.json +63 -0
  40. tccli/services/mongodb/v20190725/examples.json +14 -0
  41. tccli/services/monitor/v20180724/api.json +29 -29
  42. tccli/services/monitor/v20180724/examples.json +8 -8
  43. tccli/services/rum/v20210622/api.json +2 -2
  44. tccli/services/svp/svp_client.py +57 -4
  45. tccli/services/svp/v20240125/api.json +319 -0
  46. tccli/services/svp/v20240125/examples.json +8 -0
  47. tccli/services/trtc/v20190722/api.json +16 -5
  48. tccli/services/tsf/tsf_client.py +53 -0
  49. tccli/services/tsf/v20180326/api.json +48 -4
  50. tccli/services/tsf/v20180326/examples.json +8 -0
  51. tccli/services/vpc/v20170312/api.json +54 -0
  52. tccli/services/vpc/v20170312/examples.json +8 -0
  53. tccli/services/vpc/vpc_client.py +53 -0
  54. tccli/services/wedata/v20210820/api.json +383 -0
  55. tccli/services/wedata/v20210820/examples.json +8 -0
  56. tccli/services/wedata/wedata_client.py +53 -0
  57. {tccli-3.0.1284.1.dist-info → tccli-3.0.1285.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1284.1.dist-info → tccli-3.0.1285.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1284.1.dist-info → tccli-3.0.1285.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1284.1.dist-info → tccli-3.0.1285.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1284.1.dist-info → tccli-3.0.1285.1.dist-info}/license_files/LICENSE +0 -0
@@ -953,6 +953,58 @@ def doDeleteAcls(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
+ def doAccessDevices(args, parsed_globals):
957
+ g_param = parse_global_arg(parsed_globals)
958
+
959
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
960
+ cred = credential.CVMRoleCredential()
961
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
962
+ cred = credential.STSAssumeRoleCredential(
963
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
964
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
965
+ )
966
+ 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):
967
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
968
+ else:
969
+ cred = credential.Credential(
970
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
971
+ )
972
+ http_profile = HttpProfile(
973
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
974
+ reqMethod="POST",
975
+ endpoint=g_param[OptionsDefine.Endpoint],
976
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
977
+ )
978
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
979
+ if g_param[OptionsDefine.Language]:
980
+ profile.language = g_param[OptionsDefine.Language]
981
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
982
+ client = mod.BhClient(cred, g_param[OptionsDefine.Region], profile)
983
+ client._sdkVersion += ("_CLI_" + __version__)
984
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
+ model = models.AccessDevicesRequest()
986
+ model.from_json_string(json.dumps(args))
987
+ start_time = time.time()
988
+ while True:
989
+ rsp = client.AccessDevices(model)
990
+ result = rsp.to_json_string()
991
+ try:
992
+ json_obj = json.loads(result)
993
+ except TypeError as e:
994
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
995
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
996
+ break
997
+ cur_time = time.time()
998
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
999
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1000
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1001
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1002
+ else:
1003
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1004
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1005
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
+
1007
+
956
1008
  def doDescribeResources(args, parsed_globals):
957
1009
  g_param = parse_global_arg(parsed_globals)
958
1010
 
@@ -3270,6 +3322,7 @@ ACTION_MAP = {
3270
3322
  "BindDeviceAccountPassword": doBindDeviceAccountPassword,
3271
3323
  "SearchSession": doSearchSession,
3272
3324
  "DeleteAcls": doDeleteAcls,
3325
+ "AccessDevices": doAccessDevices,
3273
3326
  "DescribeResources": doDescribeResources,
3274
3327
  "DeleteUserGroupMembers": doDeleteUserGroupMembers,
3275
3328
  "ModifyChangePwdTask": doModifyChangePwdTask,
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "actions": {
3
+ "AccessDevices": {
4
+ "document": "外部客户访问资产",
5
+ "input": "AccessDevicesRequest",
6
+ "name": "运维登录资产",
7
+ "output": "AccessDevicesResponse",
8
+ "status": "online"
9
+ },
3
10
  "AddDeviceGroupMembers": {
4
11
  "document": "添加资产组成员",
5
12
  "input": "AddDeviceGroupMembersRequest",
@@ -481,6 +488,198 @@
481
488
  ],
482
489
  "usage": "both"
483
490
  },
491
+ "AccessDevicesRequest": {
492
+ "document": "AccessDevices请求参数结构体",
493
+ "members": [
494
+ {
495
+ "disabled": false,
496
+ "document": "资源id",
497
+ "example": "ins-bhtest",
498
+ "member": "string",
499
+ "name": "InstanceId",
500
+ "required": true,
501
+ "type": "string"
502
+ },
503
+ {
504
+ "disabled": false,
505
+ "document": "账号",
506
+ "example": "root",
507
+ "member": "string",
508
+ "name": "Account",
509
+ "required": true,
510
+ "type": "string"
511
+ },
512
+ {
513
+ "disabled": false,
514
+ "document": "运维端登录账号",
515
+ "example": "zhangsan",
516
+ "member": "string",
517
+ "name": "LoginAccount",
518
+ "required": true,
519
+ "type": "string"
520
+ },
521
+ {
522
+ "disabled": false,
523
+ "document": "运维端登录密码",
524
+ "example": "980930",
525
+ "member": "string",
526
+ "name": "LoginPassword",
527
+ "required": true,
528
+ "type": "string"
529
+ },
530
+ {
531
+ "disabled": false,
532
+ "document": "密码",
533
+ "example": "1a2b3c",
534
+ "member": "string",
535
+ "name": "Password",
536
+ "required": false,
537
+ "type": "string"
538
+ },
539
+ {
540
+ "disabled": false,
541
+ "document": "私钥",
542
+ "example": "bh-test-private-key",
543
+ "member": "string",
544
+ "name": "PrivateKey",
545
+ "required": false,
546
+ "type": "string"
547
+ },
548
+ {
549
+ "disabled": false,
550
+ "document": "私钥密码",
551
+ "example": "1a2b3c",
552
+ "member": "string",
553
+ "name": "PrivateKeyPassword",
554
+ "required": false,
555
+ "type": "string"
556
+ },
557
+ {
558
+ "disabled": false,
559
+ "document": "客户端工具",
560
+ "example": "mrd",
561
+ "member": "string",
562
+ "name": "Exe",
563
+ "required": false,
564
+ "type": "string"
565
+ },
566
+ {
567
+ "disabled": false,
568
+ "document": "RDP挂载盘符驱动(mstsc支持)",
569
+ "example": "[\"c:\",\"d:\"]",
570
+ "member": "string",
571
+ "name": "Drivers",
572
+ "required": false,
573
+ "type": "list"
574
+ },
575
+ {
576
+ "disabled": false,
577
+ "document": "窗口宽度(RDP支持)",
578
+ "example": "800",
579
+ "member": "uint64",
580
+ "name": "Width",
581
+ "required": false,
582
+ "type": "int"
583
+ },
584
+ {
585
+ "disabled": false,
586
+ "document": "窗口高度(RDP支持)",
587
+ "example": "600",
588
+ "member": "uint64",
589
+ "name": "Height",
590
+ "required": false,
591
+ "type": "int"
592
+ },
593
+ {
594
+ "disabled": false,
595
+ "document": "是否内网访问(默认不是)",
596
+ "example": "false",
597
+ "member": "bool",
598
+ "name": "IntranetAccess",
599
+ "required": false,
600
+ "type": "bool"
601
+ }
602
+ ],
603
+ "type": "object"
604
+ },
605
+ "AccessDevicesResponse": {
606
+ "document": "AccessDevices返回参数结构体",
607
+ "members": [
608
+ {
609
+ "disabled": false,
610
+ "document": "认证信息",
611
+ "example": "{\"Ip\":\"127.0.0.1\",\"Port\":22}",
612
+ "member": "AccessInfo",
613
+ "name": "AccessInfo",
614
+ "output_required": false,
615
+ "type": "object",
616
+ "value_allowed_null": false
617
+ },
618
+ {
619
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
620
+ "member": "string",
621
+ "name": "RequestId",
622
+ "type": "string"
623
+ }
624
+ ],
625
+ "type": "object"
626
+ },
627
+ "AccessInfo": {
628
+ "document": "认证信息",
629
+ "members": [
630
+ {
631
+ "disabled": false,
632
+ "document": "地址",
633
+ "example": "127.0.0.1",
634
+ "member": "string",
635
+ "name": "Ip",
636
+ "output_required": false,
637
+ "type": "string",
638
+ "value_allowed_null": false
639
+ },
640
+ {
641
+ "disabled": false,
642
+ "document": "端口",
643
+ "example": "80",
644
+ "member": "uint64",
645
+ "name": "Port",
646
+ "output_required": false,
647
+ "type": "int",
648
+ "value_allowed_null": false
649
+ },
650
+ {
651
+ "disabled": false,
652
+ "document": "账号",
653
+ "example": "v_feifei",
654
+ "member": "string",
655
+ "name": "User",
656
+ "output_required": false,
657
+ "type": "string",
658
+ "value_allowed_null": false
659
+ },
660
+ {
661
+ "disabled": false,
662
+ "document": "密码",
663
+ "example": "980930",
664
+ "member": "string",
665
+ "name": "Password",
666
+ "output_required": false,
667
+ "type": "string",
668
+ "value_allowed_null": false
669
+ },
670
+ {
671
+ "disabled": false,
672
+ "document": "唤起链接|wss链接",
673
+ "example": "tsecbh://CgcxLjIuMS4xEgNtcmQaDzEyMy4yMDcuMTA2LjIxNyDFQSoNMTkyLjE2OC4xMS4xMzIr546w572R546v5aKD5YaF572R6K6_6Zeu6ZW_5pyf5L2_55SoLeWLv-WIoDoNYWRtaW5pc3RyYXRvckIQcmYwU1pIQ0ozcmlFQ1lVb0gBUIAIWIAGeAA",
674
+ "member": "string",
675
+ "name": "AccessURL",
676
+ "output_required": false,
677
+ "type": "string",
678
+ "value_allowed_null": false
679
+ }
680
+ ],
681
+ "usage": "out"
682
+ },
484
683
  "Acl": {
485
684
  "document": "访问权限",
486
685
  "members": [
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "actions": {
3
+ "AccessDevices": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: bh.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AccessDevices\n<公共请求参数>\n\n{\n \"InstanceId\": \"ins-2ftyp2vu\",\n \"Account\": \"zhangsan\",\n \"LoginAccount\": \"account\",\n \"LoginPassword\": \"pass\",\n \"Password\": \"\",\n \"PrivateKey\": \"\",\n \"PrivateKeyPassword\": \"\",\n \"Exe\": \"web\",\n \"Drivers\": [\n \"\"\n ],\n \"Width\": 60,\n \"Height\": 80,\n \"IntranetAccess\": false\n}",
7
+ "output": "{\n \"Response\": {\n \"AccessInfo\": {\n \"AccessURL\": \"\",\n \"Ip\": \"11.11.11.11\",\n \"Password\": \"sHUbwq6nFm9mja05n10X6YZ1TbTr0mpS\",\n \"Port\": 8322,\n \"User\": \"root@FdfmcRltiJZ2nNam\"\n },\n \"RequestId\": \"3bd56f7b-6453-476d-b0fa-c97c164d68b8\"\n }\n}",
8
+ "title": "访问示例"
9
+ }
10
+ ],
3
11
  "AddDeviceGroupMembers": [
4
12
  {
5
13
  "document": "",
@@ -2419,7 +2419,7 @@
2419
2419
  {
2420
2420
  "disabled": false,
2421
2421
  "document": "错误流程说明信息\n注意:此字段可能返回 null,表示取不到有效值。",
2422
- "example": "\"\"",
2422
+ "example": "error",
2423
2423
  "member": "string",
2424
2424
  "name": "FlowMsg",
2425
2425
  "output_required": true,
@@ -2479,7 +2479,7 @@
2479
2479
  {
2480
2480
  "disabled": false,
2481
2481
  "document": "日志主题ID\n注意:此字段可能返回 null,表示取不到有效值。",
2482
- "example": "xxx",
2482
+ "example": "error",
2483
2483
  "member": "string",
2484
2484
  "name": "ClsTopicId",
2485
2485
  "output_required": true,
@@ -2489,7 +2489,7 @@
2489
2489
  {
2490
2490
  "disabled": false,
2491
2491
  "document": "日志集ID\n注意:此字段可能返回 null,表示取不到有效值。",
2492
- "example": "xxx",
2492
+ "example": "error",
2493
2493
  "member": "string",
2494
2494
  "name": "ClsLogSetId",
2495
2495
  "output_required": true,
@@ -2639,7 +2639,7 @@
2639
2639
  {
2640
2640
  "disabled": false,
2641
2641
  "document": "服务信息\n注意:此字段可能返回 null,表示取不到有效值。",
2642
- "example": "[]",
2642
+ "example": "[\"error\"]",
2643
2643
  "member": "ServiceInfo",
2644
2644
  "name": "Components",
2645
2645
  "output_required": true,
@@ -2649,7 +2649,7 @@
2649
2649
  {
2650
2650
  "disabled": false,
2651
2651
  "document": "可升级的内核版本\n注意:此字段可能返回 null,表示取不到有效值。",
2652
- "example": "xxx",
2652
+ "example": "error",
2653
2653
  "member": "string",
2654
2654
  "name": "UpgradeVersions",
2655
2655
  "output_required": true,
@@ -2755,6 +2755,16 @@
2755
2755
  "output_required": false,
2756
2756
  "type": "list",
2757
2757
  "value_allowed_null": true
2758
+ },
2759
+ {
2760
+ "disabled": false,
2761
+ "document": "是否开启公网clb",
2762
+ "example": "true",
2763
+ "member": "bool",
2764
+ "name": "HasPublicCloudClb",
2765
+ "output_required": false,
2766
+ "type": "bool",
2767
+ "value_allowed_null": false
2758
2768
  }
2759
2769
  ],
2760
2770
  "usage": "out"
@@ -3975,7 +3985,7 @@
3975
3985
  "example": "123",
3976
3986
  "member": "string",
3977
3987
  "name": "FlowId",
3978
- "required": true,
3988
+ "output_required": true,
3979
3989
  "type": "string",
3980
3990
  "value_allowed_null": true
3981
3991
  },
@@ -3985,17 +3995,17 @@
3985
3995
  "example": "cdwch-xxxxxxx",
3986
3996
  "member": "string",
3987
3997
  "name": "InstanceId",
3988
- "required": true,
3998
+ "output_required": true,
3989
3999
  "type": "string",
3990
4000
  "value_allowed_null": true
3991
4001
  },
3992
4002
  {
3993
4003
  "disabled": false,
3994
4004
  "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
3995
- "example": "xxx",
4005
+ "example": "InvalidParameter",
3996
4006
  "member": "string",
3997
4007
  "name": "ErrorMsg",
3998
- "required": true,
4008
+ "output_required": true,
3999
4009
  "type": "string",
4000
4010
  "value_allowed_null": true
4001
4011
  },
@@ -220,7 +220,7 @@
220
220
  {
221
221
  "document": "",
222
222
  "input": "POST / HTTP/1.1\nHost: cdwch.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScaleUpInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwch-nzb9s4zz\",\n \"Type\": \"DATA\",\n \"SpecName\": \"SCH1\",\n \"ScaleUpEnableRolling\": false\n}",
223
- "output": "{\n \"Response\": {\n \"InstanceId\": \"xx\",\n \"FlowId\": 0,\n \"RequestId\": \"xx\",\n \"ErrorMsg\": \"xx\"\n }\n}",
223
+ "output": "{\n \"Response\": {\n \"InstanceId\": \"cdwch-xxxxxxxx\",\n \"FlowId\": \"001\",\n \"RequestId\": \"20a71202-27c4-4120-80c4-fb1a8e15dxxx\",\n \"ErrorMsg\": \"InvalidParameter\"\n }\n}",
224
224
  "title": "示例"
225
225
  }
226
226
  ]
@@ -136,7 +136,7 @@
136
136
  "example": "input",
137
137
  "member": "string",
138
138
  "name": "Type",
139
- "required": true,
139
+ "output_required": true,
140
140
  "type": "string",
141
141
  "value_allowed_null": false
142
142
  },
@@ -146,7 +146,7 @@
146
146
  "example": "开机时间",
147
147
  "member": "string",
148
148
  "name": "Lable",
149
- "required": true,
149
+ "output_required": true,
150
150
  "type": "string",
151
151
  "value_allowed_null": false
152
152
  },
@@ -156,7 +156,7 @@
156
156
  "example": "open_time",
157
157
  "member": "string",
158
158
  "name": "Field",
159
- "required": true,
159
+ "output_required": true,
160
160
  "type": "string",
161
161
  "value_allowed_null": false
162
162
  },
@@ -166,17 +166,17 @@
166
166
  "example": "默认值",
167
167
  "member": "string",
168
168
  "name": "DefaultValue",
169
- "required": true,
169
+ "output_required": true,
170
170
  "type": "string",
171
171
  "value_allowed_null": true
172
172
  },
173
173
  {
174
174
  "disabled": false,
175
175
  "document": "支持配置项如下,可根据需要选择配置项,不需要配置是设置空{}:\n\n{\n\n placeholder: string (占位符)\n\n tooltip: string (提示信息)\n\n reg: RegExp (对输入内容格式进行正则校验的规则)\n\n max: number (对于输入框,限制最大输入字符数,对于数值输入框,设置上限)\n\n min: number (对于数值输入框,设置下限)\n\n step: number (设置数值输入框的步长,默认为1)\n\n format: string (时间选择的格式,如YYYY-MM-DD表示年月日, YYYY-MM-DD HH:mm:ss 表示时分秒)\n\n separator: string[] (多行输入框的分隔符,不传或者为空时表示不分隔,直接返回用户输入的文本字符串)\n\n multiple: boolean (是否多选,对选择器和级联选择器有效)\n\n options: 选择器的选项【支持以下两种形式】\n\n直接给定选项数组 { value: string; label: string }[]\n通过调接口获取选项 { api: string(接口地址), params: string[] (接口参数,对应于参数配置的field,前端根据field对应的所有组件的输入值作为参数查询数据, 为空时在组件加载时直接请求数据) }\n}",
176
- "example": "{}",
176
+ "example": "\"{\\\"max\\\": 86400, \\\"min\\\": 0, \\\"tooltip\\\": \\\"动作的超时时间\\\"}\"",
177
177
  "member": "string",
178
178
  "name": "Config",
179
- "required": true,
179
+ "output_required": true,
180
180
  "type": "string",
181
181
  "value_allowed_null": false
182
182
  },
@@ -186,27 +186,27 @@
186
186
  "example": "0",
187
187
  "member": "uint64",
188
188
  "name": "Required",
189
- "required": true,
189
+ "output_required": true,
190
190
  "type": "int",
191
191
  "value_allowed_null": false
192
192
  },
193
193
  {
194
194
  "disabled": false,
195
195
  "document": "compute配置依赖的其他field满足的条件时通过校验(如:三个表单项中必须至少有一个填写了)\n\n[fieldName,\n\n{ config: 此项保留,等待后面具体场景细化 }\n\n]",
196
- "example": "{}",
196
+ "example": "\"{\\\"op\\\": \\\"==\\\", \\\"value\\\": \\\"指定个数重启\\\", \\\"relatedField\\\": \\\"reboot_mod\\\"}\"",
197
197
  "member": "string",
198
198
  "name": "Validate",
199
- "required": true,
199
+ "output_required": true,
200
200
  "type": "string",
201
201
  "value_allowed_null": false
202
202
  },
203
203
  {
204
204
  "disabled": false,
205
205
  "document": "是否可见",
206
- "example": "{}",
206
+ "example": "\"{\\\"op\\\": \\\"<\\\", \\\"type\\\": \\\"need_insert\\\", \\\"value\\\": 0, \\\"relatedField\\\": \\\"ActionTimeout\\\"}\"",
207
207
  "member": "string",
208
208
  "name": "Visible",
209
- "required": true,
209
+ "output_required": true,
210
210
  "type": "string",
211
211
  "value_allowed_null": false
212
212
  }
@@ -497,7 +497,7 @@
497
497
  {
498
498
  "disabled": false,
499
499
  "document": "业务ID\n注意:此字段可能返回 null,表示取不到有效值。",
500
- "example": "apm-xxxx",
500
+ "example": "apm-5akd64",
501
501
  "member": "string",
502
502
  "name": "InstanceId",
503
503
  "output_required": true,
@@ -999,14 +999,14 @@
999
999
  },
1000
1000
  {
1001
1001
  "disabled": false,
1002
- "document": "护栏策略生效处理策略 1:顺序执行,2:暂停\n注意:此字段可能返回 null,表示取不到有效值。",
1002
+ "document": "护栏策略生效处理策略 1:顺序执行,2:暂停",
1003
1003
  "example": "1",
1004
1004
  "member": "int64",
1005
1005
  "name": "TaskPolicyDealType",
1006
1006
  "output_required": true,
1007
1007
  "required": true,
1008
1008
  "type": "int",
1009
- "value_allowed_null": true
1009
+ "value_allowed_null": false
1010
1010
  }
1011
1011
  ],
1012
1012
  "usage": "both"
@@ -1769,6 +1769,16 @@
1769
1769
  "output_required": false,
1770
1770
  "type": "int",
1771
1771
  "value_allowed_null": false
1772
+ },
1773
+ {
1774
+ "disabled": false,
1775
+ "document": "是否支持演练生图",
1776
+ "example": "true",
1777
+ "member": "bool",
1778
+ "name": "IsArchSvg",
1779
+ "output_required": false,
1780
+ "type": "bool",
1781
+ "value_allowed_null": false
1772
1782
  }
1773
1783
  ],
1774
1784
  "usage": "out"
@@ -2431,6 +2441,17 @@
2431
2441
  "required": false,
2432
2442
  "type": "string",
2433
2443
  "value_allowed_null": true
2444
+ },
2445
+ {
2446
+ "disabled": false,
2447
+ "document": "架构ID",
2448
+ "example": "arch-ca2c",
2449
+ "member": "string",
2450
+ "name": "TaskArchId",
2451
+ "output_required": false,
2452
+ "required": false,
2453
+ "type": "string",
2454
+ "value_allowed_null": false
2434
2455
  }
2435
2456
  ],
2436
2457
  "usage": "both"
@@ -3101,7 +3122,7 @@
3101
3122
  {
3102
3123
  "disabled": true,
3103
3124
  "document": "实例动作执行日志\n注意:此字段可能返回 null,表示取不到有效值。",
3104
- "example": "{}",
3125
+ "example": "\"2024-01-10 14:01:00 执行完成\"",
3105
3126
  "member": "string",
3106
3127
  "name": "TaskGroupInstanceExecuteLog",
3107
3128
  "output_required": true,
@@ -3143,6 +3164,7 @@
3143
3164
  "example": "1",
3144
3165
  "member": "int64",
3145
3166
  "name": "TaskGroupInstancesExecuteMode",
3167
+ "output_required": true,
3146
3168
  "required": false,
3147
3169
  "type": "int",
3148
3170
  "value_allowed_null": true
@@ -3153,6 +3175,7 @@
3153
3175
  "example": "100",
3154
3176
  "member": "int64",
3155
3177
  "name": "TaskGroupInstancesExecutePercent",
3178
+ "output_required": false,
3156
3179
  "required": false,
3157
3180
  "type": "int",
3158
3181
  "value_allowed_null": true
@@ -3163,6 +3186,7 @@
3163
3186
  "example": "10",
3164
3187
  "member": "int64",
3165
3188
  "name": "TaskGroupInstancesExecuteNum",
3189
+ "output_required": false,
3166
3190
  "required": false,
3167
3191
  "type": "int",
3168
3192
  "value_allowed_null": true
@@ -3492,13 +3516,13 @@
3492
3516
  },
3493
3517
  {
3494
3518
  "disabled": false,
3495
- "document": "演练报告cos文件地址\n注意:此字段可能返回 null,表示取不到有效值。",
3519
+ "document": "演练报告cos文件地址",
3496
3520
  "example": "\"http://xxxx\"",
3497
3521
  "member": "string",
3498
3522
  "name": "CosUrl",
3499
3523
  "output_required": true,
3500
3524
  "type": "string",
3501
- "value_allowed_null": true
3525
+ "value_allowed_null": false
3502
3526
  },
3503
3527
  {
3504
3528
  "disabled": false,
@@ -3532,13 +3556,13 @@
3532
3556
  },
3533
3557
  {
3534
3558
  "disabled": false,
3535
- "document": "归档ID\n注意:此字段可能返回 null,表示取不到有效值。",
3559
+ "document": "归档ID",
3536
3560
  "example": "cfg-uixxx",
3537
3561
  "member": "string",
3538
3562
  "name": "ArchiveUuid",
3539
3563
  "output_required": false,
3540
3564
  "type": "string",
3541
- "value_allowed_null": true
3565
+ "value_allowed_null": false
3542
3566
  }
3543
3567
  ],
3544
3568
  "usage": "out"
@@ -59,9 +59,15 @@
59
59
  "DescribeTask": [
60
60
  {
61
61
  "document": "",
62
- "input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTask\n<公共请求参数>\n\n{\n \"TaskId\": 0\n}",
63
- "output": "{\n \"Response\": {\n \"ReportInfo\": null,\n \"RequestId\": \"68da5328-ff1f-4320-92c0-a67e65c8a298\",\n \"Task\": {\n \"AlarmPolicy\": [],\n \"ApmServiceList\": [\n {\n \"InstanceId\": \"test-ins\",\n \"RegionId\": 1,\n \"ServiceNameList\": [\n \"test-service\"\n ]\n }\n ],\n \"ApplicationId\": \"\",\n \"ApplicationName\": \"\",\n \"Tags\": [],\n \"TaskCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskDescription\": \"测试\",\n \"TaskEndTime\": null,\n \"TaskExpect\": null,\n \"TaskGroups\": [\n {\n \"ObjectTypeId\": 1,\n \"TaskGroupActions\": [\n {\n \"ActionApiType\": 1,\n \"ActionAttribute\": 1,\n \"ActionId\": 1,\n \"ActionRisk\": \"高风险\",\n \"ActionTitle\": \"关机(测试)\",\n \"ActionType\": \"平台\",\n \"IsExecuteRedo\": false,\n \"TaskGroupActionCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupActionCustomConfiguration\": \"{}\",\n \"TaskGroupActionExecuteId\": null,\n \"TaskGroupActionExecuteTime\": null,\n \"TaskGroupActionGeneralConfiguration\": \"{\\\"AliasTitle\\\": \\\"\\\", \\\"PreTimeWait\\\": 0, \\\"ActionTimeout\\\": 1800, \\\"AfterTimeWait\\\": 0}\",\n \"TaskGroupActionId\": 13785,\n \"TaskGroupActionOrder\": 1,\n \"TaskGroupActionRandomId\": 457181,\n \"TaskGroupActionRecoverId\": 355514,\n \"TaskGroupActionStatus\": 2001,\n \"TaskGroupActionStatusType\": 0,\n \"TaskGroupActionUpdateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupInstances\": []\n },\n {\n \"ActionApiType\": 1,\n \"ActionAttribute\": 2,\n \"ActionId\": 2,\n \"ActionRisk\": \"高风险\",\n \"ActionTitle\": \"开机\",\n \"ActionType\": \"平台\",\n \"IsExecuteRedo\": false,\n \"TaskGroupActionCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupActionCustomConfiguration\": \"{}\",\n \"TaskGroupActionExecuteId\": 457181,\n \"TaskGroupActionExecuteTime\": null,\n \"TaskGroupActionGeneralConfiguration\": \"{\\\"PreTimeWait\\\": 0, \\\"ActionTimeout\\\": 1800, \\\"AfterTimeWait\\\": 0}\",\n \"TaskGroupActionId\": 13786,\n \"TaskGroupActionOrder\": 2,\n \"TaskGroupActionRandomId\": 355514,\n \"TaskGroupActionRecoverId\": null,\n \"TaskGroupActionStatus\": 2001,\n \"TaskGroupActionStatusType\": 0,\n \"TaskGroupActionUpdateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupInstances\": []\n }\n ],\n \"TaskGroupCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupDescription\": \"1\",\n \"TaskGroupDiscardInstanceList\": [],\n \"TaskGroupId\": 6454,\n \"TaskGroupInstanceList\": [\n \"ins-knq6h3r8\",\n \"ins-61eitwrk\",\n \"ins-d2e45nba\"\n ],\n \"TaskGroupInstancesExecuteRule\": [\n {\n \"TaskGroupInstancesExecuteMode\": 3,\n \"TaskGroupInstancesExecuteNum\": 2,\n \"TaskGroupInstancesExecutePercent\": 100\n }\n ],\n \"TaskGroupMode\": 1,\n \"TaskGroupOrder\": 1,\n \"TaskGroupSelectedInstanceList\": [],\n \"TaskGroupTitle\": \"1\",\n \"TaskGroupUpdateTime\": \"2023-10-09 10:55:18\"\n }\n ],\n \"TaskId\": 5417,\n \"TaskMode\": 1,\n \"TaskMonitors\": [\n {\n \"InstancesIds\": [\n \"ins-knq6h3r8\",\n \"ins-61eitwrk\",\n \"ins-d2e45nba\"\n ],\n \"MetricChineseName\": \"CPU使用率\",\n \"MetricId\": 614,\n \"MetricName\": \"CpuUsage\",\n \"TaskMonitorId\": 5850,\n \"TaskMonitorObjectTypeId\": 1,\n \"Unit\": \"%\"\n }\n ],\n \"TaskOwnerUin\": \"700000174829\",\n \"TaskPauseDuration\": 60,\n \"TaskPlanId\": null,\n \"TaskPlanTitle\": null,\n \"TaskPolicy\": null,\n \"TaskProtectStrategy\": null,\n \"TaskRegionId\": 1,\n \"TaskStartTime\": null,\n \"TaskStatus\": 1001,\n \"TaskStatusType\": 0,\n \"TaskSummary\": null,\n \"TaskTag\": \"\",\n \"TaskTitle\": \"测试\",\n \"TaskUpdateTime\": \"2023-10-09 10:55:18\"\n }\n }\n}",
62
+ "input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTask\n<公共请求参数>\n\n{\n \"TaskId\": 6834\n}",
63
+ "output": "{\n \"Response\": {\n \"ReportInfo\": null,\n \"RequestId\": \"68da5328-ff1f-4320-92c0-a67e65c8a298\",\n \"Task\": {\n \"AlarmPolicy\": [],\n \"ApmServiceList\": [\n {\n \"InstanceId\": \"test-ins\",\n \"RegionId\": 1,\n \"ServiceNameList\": [\n \"test-service\"\n ]\n }\n ],\n \"ApplicationId\": \"\",\n \"ApplicationName\": \"\",\n \"Tags\": [],\n \"TaskCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskDescription\": \"游戏登录服跨AZ容灾演练\",\n \"TaskEndTime\": null,\n \"TaskExpect\": null,\n \"TaskGroups\": [\n {\n \"ObjectTypeId\": 1,\n \"TaskGroupActions\": [\n {\n \"ActionApiType\": 1,\n \"ActionAttribute\": 1,\n \"ActionId\": 1,\n \"ActionRisk\": \"高风险\",\n \"ActionTitle\": \"关机(测试)\",\n \"ActionType\": \"平台\",\n \"IsExecuteRedo\": false,\n \"TaskGroupActionCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupActionCustomConfiguration\": \"{\\\"force\\\": \\\"否\\\", \\\"destIp\\\": \\\"\\\", \\\"excludeIp\\\": \\\"\\\", \\\"localPort\\\": \\\"\\\", \\\"netPercent\\\": 8, \\\"remotePort\\\": \\\"\\\", \\\"excludePort\\\": \\\"\\\", \\\"netInterface\\\": \\\"eth0\\\"}\",\n \"TaskGroupActionExecuteId\": null,\n \"TaskGroupActionExecuteTime\": null,\n \"TaskGroupActionGeneralConfiguration\": \"{\\\"AliasTitle\\\": \\\"\\\", \\\"PreTimeWait\\\": 0, \\\"ActionTimeout\\\": 1800, \\\"AfterTimeWait\\\": 0}\",\n \"TaskGroupActionId\": 13785,\n \"TaskGroupActionOrder\": 1,\n \"TaskGroupActionRandomId\": 457181,\n \"TaskGroupActionRecoverId\": 355514,\n \"TaskGroupActionStatus\": 2001,\n \"TaskGroupActionStatusType\": 0,\n \"TaskGroupActionUpdateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupInstances\": []\n },\n {\n \"ActionApiType\": 1,\n \"ActionAttribute\": 2,\n \"ActionId\": 2,\n \"ActionRisk\": \"高风险\",\n \"ActionTitle\": \"开机\",\n \"ActionType\": \"平台\",\n \"IsExecuteRedo\": false,\n \"TaskGroupActionCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupActionCustomConfiguration\": \"{\\\"force\\\": \\\"否\\\", \\\"destIp\\\": \\\"\\\", \\\"excludeIp\\\": \\\"\\\", \\\"localPort\\\": \\\"\\\", \\\"netPercent\\\": 8, \\\"remotePort\\\": \\\"\\\", \\\"excludePort\\\": \\\"\\\", \\\"netInterface\\\": \\\"eth0\\\"}\",\n \"TaskGroupActionExecuteId\": 457181,\n \"TaskGroupActionExecuteTime\": null,\n \"TaskGroupActionGeneralConfiguration\": \"{\\\"PreTimeWait\\\": 0, \\\"ActionTimeout\\\": 1800, \\\"AfterTimeWait\\\": 0}\",\n \"TaskGroupActionId\": 13786,\n \"TaskGroupActionOrder\": 2,\n \"TaskGroupActionRandomId\": 355514,\n \"TaskGroupActionRecoverId\": null,\n \"TaskGroupActionStatus\": 2001,\n \"TaskGroupActionStatusType\": 0,\n \"TaskGroupActionUpdateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupInstances\": []\n }\n ],\n \"TaskGroupCreateTime\": \"2023-10-09 10:55:18\",\n \"TaskGroupDescription\": \"1\",\n \"TaskGroupDiscardInstanceList\": [],\n \"TaskGroupId\": 6454,\n \"TaskGroupInstanceList\": [\n \"ins-knq6h3r8\",\n \"ins-61eitwrk\",\n \"ins-d2e45nba\"\n ],\n \"TaskGroupInstancesExecuteRule\": [\n {\n \"TaskGroupInstancesExecuteMode\": 3,\n \"TaskGroupInstancesExecuteNum\": 2,\n \"TaskGroupInstancesExecutePercent\": 100\n }\n ],\n \"TaskGroupMode\": 1,\n \"TaskGroupOrder\": 1,\n \"TaskGroupSelectedInstanceList\": [],\n \"TaskGroupTitle\": \"1\",\n \"TaskGroupUpdateTime\": \"2023-10-09 10:55:18\"\n }\n ],\n \"TaskId\": 5417,\n \"TaskMode\": 1,\n \"TaskMonitors\": [\n {\n \"InstancesIds\": [\n \"ins-knq6h3r8\",\n \"ins-61eitwrk\",\n \"ins-d2e45nba\"\n ],\n \"MetricChineseName\": \"CPU使用率\",\n \"MetricId\": 614,\n \"MetricName\": \"CpuUsage\",\n \"TaskMonitorId\": 5850,\n \"TaskMonitorObjectTypeId\": 1,\n \"Unit\": \"%\"\n }\n ],\n \"TaskOwnerUin\": \"700000174829\",\n \"TaskPauseDuration\": 60,\n \"TaskPlanId\": null,\n \"TaskPlanTitle\": null,\n \"TaskPolicy\": null,\n \"TaskProtectStrategy\": null,\n \"TaskRegionId\": 1,\n \"TaskStartTime\": null,\n \"TaskStatus\": 1001,\n \"TaskStatusType\": 0,\n \"TaskSummary\": null,\n \"TaskTag\": \"\",\n \"TaskTitle\": \"跨AZ容灾演练\",\n \"TaskUpdateTime\": \"2023-10-09 10:55:18\"\n }\n }\n}",
64
64
  "title": "查询演练任务"
65
+ },
66
+ {
67
+ "document": "",
68
+ "input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTask\n<公共请求参数>\n\n{\n \"TaskId\": 6834\n}",
69
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"UnauthorizedOperation\",\n \"Message\": \"您无权操作此功能!\"\n },\n \"RequestId\": \"d1fc7e73-8e6d-45fa-a333-c199914883e9\"\n }\n}",
70
+ "title": "无权限的调用"
65
71
  }
66
72
  ],
67
73
  "DescribeTaskExecuteLogs": [
@@ -1309,7 +1309,7 @@
1309
1309
  {
1310
1310
  "disabled": false,
1311
1311
  "document": "七层规则 ID。7层负载均衡该参数必填",
1312
- "example": "lbl-4apy****",
1312
+ "example": "loc-4apy****",
1313
1313
  "member": "string",
1314
1314
  "name": "LocationId",
1315
1315
  "required": false,