tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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 (187) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/asr/v20190614/api.json +18 -18
  4. tccli/services/batch/v20170312/api.json +14 -14
  5. tccli/services/bh/bh_client.py +623 -93
  6. tccli/services/bh/v20230418/api.json +1054 -32
  7. tccli/services/bh/v20230418/examples.json +93 -1
  8. tccli/services/billing/billing_client.py +4 -57
  9. tccli/services/billing/v20180709/api.json +3 -305
  10. tccli/services/billing/v20180709/examples.json +2 -10
  11. tccli/services/bpaas/v20181217/api.json +56 -56
  12. tccli/services/cat/cat_client.py +61 -8
  13. tccli/services/cat/v20180409/api.json +115 -0
  14. tccli/services/cat/v20180409/examples.json +20 -0
  15. tccli/services/cbs/v20170312/api.json +9 -7
  16. tccli/services/cbs/v20170312/examples.json +2 -2
  17. tccli/services/ccc/ccc_client.py +216 -4
  18. tccli/services/ccc/v20200210/api.json +364 -6
  19. tccli/services/ccc/v20200210/examples.json +32 -0
  20. tccli/services/cdb/v20170320/api.json +23 -14
  21. tccli/services/cdb/v20170320/examples.json +3 -3
  22. tccli/services/cdc/cdc_client.py +173 -67
  23. tccli/services/cdc/v20201214/api.json +96 -0
  24. tccli/services/cdc/v20201214/examples.json +16 -0
  25. tccli/services/cdn/v20180606/api.json +365 -279
  26. tccli/services/cdwch/v20200915/api.json +21 -21
  27. tccli/services/cdwdoris/v20211228/api.json +21 -1
  28. tccli/services/cdwdoris/v20211228/examples.json +4 -4
  29. tccli/services/cdwpg/v20201230/api.json +375 -360
  30. tccli/services/cdwpg/v20201230/examples.json +1 -1
  31. tccli/services/cfw/cfw_client.py +53 -0
  32. tccli/services/cfw/v20190904/api.json +201 -5
  33. tccli/services/cfw/v20190904/examples.json +8 -0
  34. tccli/services/chc/chc_client.py +57 -4
  35. tccli/services/chc/v20230418/api.json +108 -1
  36. tccli/services/chc/v20230418/examples.json +8 -0
  37. tccli/services/ckafka/ckafka_client.py +408 -302
  38. tccli/services/ckafka/v20190819/api.json +197 -2
  39. tccli/services/ckafka/v20190819/examples.json +16 -0
  40. tccli/services/clb/v20180317/api.json +439 -379
  41. tccli/services/clb/v20180317/examples.json +7 -7
  42. tccli/services/cls/cls_client.py +53 -0
  43. tccli/services/cls/v20201016/api.json +86 -3
  44. tccli/services/cls/v20201016/examples.json +11 -3
  45. tccli/services/cvm/v20170312/api.json +165 -147
  46. tccli/services/cvm/v20170312/examples.json +6 -6
  47. tccli/services/cwp/v20180228/api.json +93 -14
  48. tccli/services/cwp/v20180228/examples.json +7 -7
  49. tccli/services/cynosdb/cynosdb_client.py +171 -12
  50. tccli/services/cynosdb/v20190107/api.json +252 -3
  51. tccli/services/cynosdb/v20190107/examples.json +24 -0
  52. tccli/services/dbbrain/dbbrain_client.py +57 -4
  53. tccli/services/dbbrain/v20210527/api.json +62 -0
  54. tccli/services/dbbrain/v20210527/examples.json +8 -0
  55. tccli/services/dc/v20180410/api.json +1 -1
  56. tccli/services/dlc/dlc_client.py +53 -0
  57. tccli/services/dlc/v20210125/api.json +816 -655
  58. tccli/services/dlc/v20210125/examples.json +73 -59
  59. tccli/services/dsgc/v20190723/api.json +18 -0
  60. tccli/services/dts/v20211206/api.json +4 -4
  61. tccli/services/dts/v20211206/examples.json +6 -0
  62. tccli/services/emr/emr_client.py +53 -0
  63. tccli/services/emr/v20190103/api.json +127 -0
  64. tccli/services/emr/v20190103/examples.json +8 -0
  65. tccli/services/es/es_client.py +686 -151
  66. tccli/services/es/v20180416/api.json +509 -436
  67. tccli/services/es/v20180416/examples.json +43 -49
  68. tccli/services/es/v20250101/api.json +1391 -0
  69. tccli/services/es/v20250101/examples.json +85 -0
  70. tccli/services/ess/ess_client.py +53 -0
  71. tccli/services/ess/v20201111/api.json +142 -21
  72. tccli/services/ess/v20201111/examples.json +14 -0
  73. tccli/services/essbasic/essbasic_client.py +53 -0
  74. tccli/services/essbasic/v20210526/api.json +112 -9
  75. tccli/services/essbasic/v20210526/examples.json +8 -0
  76. tccli/services/gaap/v20180529/api.json +321 -312
  77. tccli/services/gaap/v20180529/examples.json +2 -2
  78. tccli/services/gs/gs_client.py +538 -8
  79. tccli/services/gs/v20191118/api.json +947 -44
  80. tccli/services/gs/v20191118/examples.json +87 -1
  81. tccli/services/gwlb/v20240906/api.json +56 -37
  82. tccli/services/gwlb/v20240906/examples.json +11 -5
  83. tccli/services/hunyuan/hunyuan_client.py +175 -69
  84. tccli/services/hunyuan/v20230901/api.json +191 -1
  85. tccli/services/hunyuan/v20230901/examples.json +17 -1
  86. tccli/services/ioa/ioa_client.py +227 -15
  87. tccli/services/ioa/v20220601/api.json +479 -0
  88. tccli/services/ioa/v20220601/examples.json +44 -0
  89. tccli/services/iotexplorer/iotexplorer_client.py +322 -4
  90. tccli/services/iotexplorer/v20190423/api.json +865 -52
  91. tccli/services/iotexplorer/v20190423/examples.json +64 -16
  92. tccli/services/iotvideo/iotvideo_client.py +57 -4
  93. tccli/services/iotvideo/v20211125/api.json +146 -0
  94. tccli/services/iotvideo/v20211125/examples.json +8 -0
  95. tccli/services/iotvideoindustry/v20201201/api.json +1 -1
  96. tccli/services/kms/v20190118/api.json +38 -2
  97. tccli/services/lcic/v20220817/api.json +66 -1
  98. tccli/services/lcic/v20220817/examples.json +1 -1
  99. tccli/services/lighthouse/lighthouse_client.py +0 -106
  100. tccli/services/lighthouse/v20200324/api.json +11 -98
  101. tccli/services/lighthouse/v20200324/examples.json +0 -16
  102. tccli/services/live/v20180801/api.json +1 -1
  103. tccli/services/lke/v20231130/api.json +208 -10
  104. tccli/services/lke/v20231130/examples.json +10 -10
  105. tccli/services/lkeap/lkeap_client.py +53 -0
  106. tccli/services/lkeap/v20240522/api.json +48 -4
  107. tccli/services/lkeap/v20240522/examples.json +8 -0
  108. tccli/services/mna/mna_client.py +4 -163
  109. tccli/services/mna/v20210119/api.json +0 -524
  110. tccli/services/mna/v20210119/examples.json +0 -24
  111. tccli/services/monitor/monitor_client.py +114 -8
  112. tccli/services/monitor/v20180724/api.json +129 -18
  113. tccli/services/monitor/v20180724/examples.json +17 -1
  114. tccli/services/mps/v20190612/api.json +1223 -1031
  115. tccli/services/mps/v20190612/examples.json +1 -1
  116. tccli/services/nlp/v20190408/examples.json +1 -1
  117. tccli/services/oceanus/v20190422/api.json +12 -12
  118. tccli/services/oceanus/v20190422/examples.json +15 -3
  119. tccli/services/ocr/v20181119/api.json +13 -3
  120. tccli/services/postgres/v20170312/api.json +2 -2
  121. tccli/services/privatedns/v20201028/api.json +30 -11
  122. tccli/services/privatedns/v20201028/examples.json +10 -10
  123. tccli/services/rce/v20201103/api.json +3 -3
  124. tccli/services/ses/v20201002/api.json +10 -1
  125. tccli/services/smop/v20201203/api.json +2 -2
  126. tccli/services/sqlserver/v20180328/api.json +1 -1
  127. tccli/services/ssm/v20190923/api.json +27 -0
  128. tccli/services/sts/sts_client.py +53 -0
  129. tccli/services/sts/v20180813/api.json +101 -1
  130. tccli/services/sts/v20180813/examples.json +8 -0
  131. tccli/services/taf/taf_client.py +0 -53
  132. tccli/services/taf/v20200210/api.json +0 -138
  133. tccli/services/taf/v20200210/examples.json +0 -8
  134. tccli/services/tan/v20220420/api.json +2 -2
  135. tccli/services/tat/v20201028/api.json +2 -2
  136. tccli/services/tcb/v20180608/api.json +29 -1
  137. tccli/services/tcbr/v20220217/api.json +32 -0
  138. tccli/services/tccatalog/v20241024/api.json +1 -1
  139. tccli/services/tccatalog/v20241024/examples.json +1 -1
  140. tccli/services/tcr/v20190924/api.json +5 -5
  141. tccli/services/tcr/v20190924/examples.json +2 -2
  142. tccli/services/tcss/v20201101/api.json +84 -34
  143. tccli/services/tcss/v20201101/examples.json +2809 -0
  144. tccli/services/tdmq/v20200217/api.json +40 -0
  145. tccli/services/tdmq/v20200217/examples.json +1 -1
  146. tccli/services/tds/tds_client.py +53 -0
  147. tccli/services/tds/v20220801/api.json +265 -0
  148. tccli/services/tds/v20220801/examples.json +8 -0
  149. tccli/services/tem/v20210701/api.json +664 -575
  150. tccli/services/tem/v20210701/examples.json +2 -2
  151. tccli/services/teo/v20220901/api.json +236 -208
  152. tccli/services/teo/v20220901/examples.json +13 -13
  153. tccli/services/tione/tione_client.py +53 -0
  154. tccli/services/tione/v20211111/api.json +256 -0
  155. tccli/services/tione/v20211111/examples.json +8 -0
  156. tccli/services/tke/v20180525/api.json +1 -1
  157. tccli/services/trocket/trocket_client.py +489 -12
  158. tccli/services/trocket/v20230308/api.json +925 -146
  159. tccli/services/trocket/v20230308/examples.json +72 -0
  160. tccli/services/trtc/v20190722/api.json +13 -19
  161. tccli/services/trtc/v20190722/examples.json +8 -8
  162. tccli/services/tse/v20201207/api.json +1016 -995
  163. tccli/services/tse/v20201207/examples.json +2 -2
  164. tccli/services/tsf/v20180326/api.json +510 -465
  165. tccli/services/tsf/v20180326/examples.json +4 -4
  166. tccli/services/tts/v20190823/api.json +10 -10
  167. tccli/services/vclm/v20240523/api.json +2 -2
  168. tccli/services/vcube/v20220410/api.json +10 -0
  169. tccli/services/vdb/v20230616/api.json +10 -0
  170. tccli/services/vdb/v20230616/examples.json +1 -1
  171. tccli/services/vpc/v20170312/api.json +824 -254
  172. tccli/services/vpc/v20170312/examples.json +66 -10
  173. tccli/services/vpc/vpc_client.py +383 -12
  174. tccli/services/vrs/v20200824/api.json +9 -0
  175. tccli/services/waf/v20180125/api.json +8113 -5814
  176. tccli/services/waf/v20180125/examples.json +90 -0
  177. tccli/services/waf/waf_client.py +559 -82
  178. tccli/services/wedata/v20210820/api.json +1379 -24
  179. tccli/services/wedata/v20210820/examples.json +25 -1
  180. tccli/services/wedata/wedata_client.py +171 -12
  181. tccli/services/weilingwith/v20230427/api.json +1 -1
  182. tccli/services/weilingwith/v20230427/examples.json +3 -3
  183. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
  184. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
  185. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
  186. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
  187. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -108,7 +108,7 @@
108
108
  {
109
109
  "document": "升级记录",
110
110
  "input": "POST / HTTP/1.1\nHost: cdwpg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUpgradeList\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwpg-xx\",\n \"Offset\": 0,\n \"Limit\": 0\n}",
111
- "output": "{\n \"Response\": {\n \"TotalCount\": \"2\",\n \"UpgradeItems\": [\n {\n \"TaskName\": \"test\",\n \"SourceVersion\": \"3.16.4.7\",\n \"TargetVersion\": \"3.16.4.8\",\n \"CreateTime\": \"2025-01-06 12:12:12\",\n \"EndTime\": \"2025-01-06 12:18:12\",\n \"Status\": \"2\",\n \"OperateUin\": \"1002132343435\"\n }\n ],\n \"RequestId\": \"ssxx\"\n }\n}",
111
+ "output": "{\n \"Response\": {\n \"TotalCount\": \"2\",\n \"UpgradeItems\": [\n {\n \"TaskName\": \"UpgradeTo3.16.4.8_2025-01-06 12:12:12\",\n \"SourceVersion\": \"3.16.4.7\",\n \"TargetVersion\": \"3.16.4.8\",\n \"CreateTime\": \"2025-01-06 12:12:12\",\n \"EndTime\": \"2025-01-06 12:18:12\",\n \"Status\": \"2\",\n \"OperateUin\": \"1002132343435\"\n }\n ],\n \"RequestId\": \"ssxx\"\n }\n}",
112
112
  "title": "升级记录"
113
113
  }
114
114
  ],
@@ -3605,6 +3605,58 @@ def doDescribeIPStatusList(args, parsed_globals):
3605
3605
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
3606
 
3607
3607
 
3608
+ def doDescribeCfwInsStatus(args, parsed_globals):
3609
+ g_param = parse_global_arg(parsed_globals)
3610
+
3611
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3612
+ cred = credential.CVMRoleCredential()
3613
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3614
+ cred = credential.STSAssumeRoleCredential(
3615
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3616
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3617
+ )
3618
+ 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):
3619
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3620
+ else:
3621
+ cred = credential.Credential(
3622
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3623
+ )
3624
+ http_profile = HttpProfile(
3625
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3626
+ reqMethod="POST",
3627
+ endpoint=g_param[OptionsDefine.Endpoint],
3628
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3629
+ )
3630
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3631
+ if g_param[OptionsDefine.Language]:
3632
+ profile.language = g_param[OptionsDefine.Language]
3633
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3634
+ client = mod.CfwClient(cred, g_param[OptionsDefine.Region], profile)
3635
+ client._sdkVersion += ("_CLI_" + __version__)
3636
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
+ model = models.DescribeCfwInsStatusRequest()
3638
+ model.from_json_string(json.dumps(args))
3639
+ start_time = time.time()
3640
+ while True:
3641
+ rsp = client.DescribeCfwInsStatus(model)
3642
+ result = rsp.to_json_string()
3643
+ try:
3644
+ json_obj = json.loads(result)
3645
+ except TypeError as e:
3646
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3647
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3648
+ break
3649
+ cur_time = time.time()
3650
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3651
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3652
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3653
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3654
+ else:
3655
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3656
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3657
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
+
3659
+
3608
3660
  def doDescribeEnterpriseSecurityGroupRule(args, parsed_globals):
3609
3661
  g_param = parse_global_arg(parsed_globals)
3610
3662
 
@@ -5921,6 +5973,7 @@ ACTION_MAP = {
5921
5973
  "ModifySequenceAclRules": doModifySequenceAclRules,
5922
5974
  "DescribeRuleOverview": doDescribeRuleOverview,
5923
5975
  "DescribeIPStatusList": doDescribeIPStatusList,
5976
+ "DescribeCfwInsStatus": doDescribeCfwInsStatus,
5924
5977
  "DescribeEnterpriseSecurityGroupRule": doDescribeEnterpriseSecurityGroupRule,
5925
5978
  "ModifyFwGroupSwitch": doModifyFwGroupSwitch,
5926
5979
  "DescribeLogs": doDescribeLogs,
@@ -266,6 +266,13 @@
266
266
  "output": "DescribeCfwEipsResponse",
267
267
  "status": "online"
268
268
  },
269
+ "DescribeCfwInsStatus": {
270
+ "document": "cfw实例运行状态查询",
271
+ "input": "DescribeCfwInsStatusRequest",
272
+ "name": "cfw实例运行状态查询",
273
+ "output": "DescribeCfwInsStatusResponse",
274
+ "status": "online"
275
+ },
269
276
  "DescribeDefenseSwitch": {
270
277
  "document": "获取入侵防御按钮列表",
271
278
  "input": "DescribeDefenseSwitchRequest",
@@ -1806,6 +1813,92 @@
1806
1813
  ],
1807
1814
  "usage": "out"
1808
1815
  },
1816
+ "CfwInsStatus": {
1817
+ "document": "防火墙实例运行状态",
1818
+ "members": [
1819
+ {
1820
+ "disabled": false,
1821
+ "document": "防火墙实例id",
1822
+ "example": "cfwnat-id",
1823
+ "member": "string",
1824
+ "name": "CfwInsId",
1825
+ "output_required": true,
1826
+ "type": "string",
1827
+ "value_allowed_null": false
1828
+ },
1829
+ {
1830
+ "disabled": false,
1831
+ "document": "防火墙类型,nat:nat防火墙;ew:vpc间防火墙",
1832
+ "example": "nat",
1833
+ "member": "string",
1834
+ "name": "FwType",
1835
+ "output_required": true,
1836
+ "type": "string",
1837
+ "value_allowed_null": false
1838
+ },
1839
+ {
1840
+ "disabled": false,
1841
+ "document": "实例所属地域",
1842
+ "example": "ap-guangzhou",
1843
+ "member": "string",
1844
+ "name": "Region",
1845
+ "output_required": true,
1846
+ "type": "string",
1847
+ "value_allowed_null": false
1848
+ },
1849
+ {
1850
+ "disabled": false,
1851
+ "document": "实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中",
1852
+ "example": "Running",
1853
+ "member": "string",
1854
+ "name": "Status",
1855
+ "output_required": true,
1856
+ "type": "string",
1857
+ "value_allowed_null": false
1858
+ },
1859
+ {
1860
+ "disabled": false,
1861
+ "document": "事件时间",
1862
+ "example": "2024-11-11 11:22:22",
1863
+ "member": "string",
1864
+ "name": "EventTime",
1865
+ "output_required": true,
1866
+ "type": "string",
1867
+ "value_allowed_null": false
1868
+ },
1869
+ {
1870
+ "disabled": false,
1871
+ "document": "恢复时间",
1872
+ "example": "2024-11-11 11:22:22",
1873
+ "member": "string",
1874
+ "name": "RecoverTime",
1875
+ "output_required": true,
1876
+ "type": "string",
1877
+ "value_allowed_null": false
1878
+ },
1879
+ {
1880
+ "disabled": false,
1881
+ "document": "实例名称",
1882
+ "example": "cfwname",
1883
+ "member": "string",
1884
+ "name": "CfwInsName",
1885
+ "output_required": true,
1886
+ "type": "string",
1887
+ "value_allowed_null": false
1888
+ },
1889
+ {
1890
+ "disabled": false,
1891
+ "document": "Normal: 正常模式\nOnlyRoute: 透明模式",
1892
+ "example": "Normal",
1893
+ "member": "string",
1894
+ "name": "TrafficMode",
1895
+ "output_required": false,
1896
+ "type": "string",
1897
+ "value_allowed_null": false
1898
+ }
1899
+ ],
1900
+ "usage": "out"
1901
+ },
1809
1902
  "CfwNatDnatRule": {
1810
1903
  "document": "NAT防火墙Dnat规则",
1811
1904
  "members": [
@@ -4384,6 +4477,26 @@
4384
4477
  "output_required": false,
4385
4478
  "type": "string",
4386
4479
  "value_allowed_null": false
4480
+ },
4481
+ {
4482
+ "disabled": false,
4483
+ "document": "地区简称",
4484
+ "example": "zd",
4485
+ "member": "string",
4486
+ "name": "CountryKey",
4487
+ "output_required": false,
4488
+ "type": "string",
4489
+ "value_allowed_null": false
4490
+ },
4491
+ {
4492
+ "disabled": false,
4493
+ "document": "省份、城市简称",
4494
+ "example": "hn43",
4495
+ "member": "string",
4496
+ "name": "CityKey",
4497
+ "output_required": false,
4498
+ "type": "string",
4499
+ "value_allowed_null": false
4387
4500
  }
4388
4501
  ],
4389
4502
  "usage": "out"
@@ -5477,6 +5590,43 @@
5477
5590
  ],
5478
5591
  "type": "object"
5479
5592
  },
5593
+ "DescribeCfwInsStatusRequest": {
5594
+ "document": "DescribeCfwInsStatus请求参数结构体",
5595
+ "members": [],
5596
+ "type": "object"
5597
+ },
5598
+ "DescribeCfwInsStatusResponse": {
5599
+ "document": "DescribeCfwInsStatus返回参数结构体",
5600
+ "members": [
5601
+ {
5602
+ "disabled": false,
5603
+ "document": "防火墙实例运行状态\n注意:此字段可能返回 null,表示取不到有效值。",
5604
+ "example": "无",
5605
+ "member": "CfwInsStatus",
5606
+ "name": "CfwInsStatus",
5607
+ "output_required": true,
5608
+ "type": "list",
5609
+ "value_allowed_null": true
5610
+ },
5611
+ {
5612
+ "disabled": false,
5613
+ "document": "0",
5614
+ "example": "0",
5615
+ "member": "int64",
5616
+ "name": "TotalCount",
5617
+ "output_required": true,
5618
+ "type": "int",
5619
+ "value_allowed_null": false
5620
+ },
5621
+ {
5622
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5623
+ "member": "string",
5624
+ "name": "RequestId",
5625
+ "type": "string"
5626
+ }
5627
+ ],
5628
+ "type": "object"
5629
+ },
5480
5630
  "DescribeDefenseSwitchRequest": {
5481
5631
  "document": "DescribeDefenseSwitch请求参数结构体",
5482
5632
  "members": [],
@@ -5944,7 +6094,7 @@
5944
6094
  {
5945
6095
  "disabled": false,
5946
6096
  "document": "ip 开关列表",
5947
- "example": "[{\"PublicIp\":\"2.2.2.2\",\"PublicIpType\":2,\"InstanceId\":\"ins-xxxxxxxx\",\"InstanceName\":\"cvm实例1\",\"IntranetIp\":\"172.16.1.1\",\"AssetType\":\"cvm\",\"Region\":\"ap-chongqing\",\"PortRiskCount\":10,\"LastScanTime\":\"2022-07-2716:00:00\",\"SwitchMode\":2,\"IsRegionEip\":1,\"VpcId\":\"vpc-abcdabcd\",\"IsSerialRegion\":1,\"IsPublicClb\":0,\"EndpointBindEipNum\":1,\"ScanMode\":\"medium\",\"ScanStatus\":0,\"EndpointId\":\"vpce-wxecrvtb\",\"EndpointIp\":\"10.10.10.10\",\"SwitchWeight\":100}]",
6097
+ "example": "[ { \"PublicIp\": \"2.2.2.2\" } ]",
5948
6098
  "member": "EdgeIpInfo",
5949
6099
  "name": "Data",
5950
6100
  "output_required": false,
@@ -5981,6 +6131,16 @@
5981
6131
  "type": "list",
5982
6132
  "value_allowed_null": false
5983
6133
  },
6134
+ {
6135
+ "disabled": false,
6136
+ "document": "串行模式开关个数",
6137
+ "example": "1",
6138
+ "member": "int64",
6139
+ "name": "SerilCount",
6140
+ "output_required": false,
6141
+ "type": "int",
6142
+ "value_allowed_null": false
6143
+ },
5984
6144
  {
5985
6145
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5986
6146
  "member": "string",
@@ -8639,6 +8799,16 @@
8639
8799
  "output_required": false,
8640
8800
  "type": "int",
8641
8801
  "value_allowed_null": false
8802
+ },
8803
+ {
8804
+ "disabled": false,
8805
+ "document": "域名解析的IP统计",
8806
+ "example": "{\"ValidCount\":10,\"InvalidCount\":10}",
8807
+ "member": "SgDnsParseCount",
8808
+ "name": "DnsParseCount",
8809
+ "output_required": false,
8810
+ "type": "object",
8811
+ "value_allowed_null": false
8642
8812
  }
8643
8813
  ],
8644
8814
  "usage": "out"
@@ -8877,7 +9047,7 @@
8877
9047
  {
8878
9048
  "disabled": false,
8879
9049
  "document": "防火墙开关ID",
8880
- "example": "cfws-wxecrvtb",
9050
+ "example": "cfws-wecrvtb",
8881
9051
  "member": "string",
8882
9052
  "name": "SwitchId",
8883
9053
  "output_required": true,
@@ -8887,7 +9057,7 @@
8887
9057
  {
8888
9058
  "disabled": false,
8889
9059
  "document": "防火墙开关NAME",
8890
- "example": "vpc1-vpc2开关",
9060
+ "example": "vpc开关",
8891
9061
  "member": "string",
8892
9062
  "name": "SwitchName",
8893
9063
  "output_required": true,
@@ -8927,7 +9097,7 @@
8927
9097
  {
8928
9098
  "disabled": false,
8929
9099
  "document": "连接名称",
8930
- "example": "云联网ccn防火墙开发--勿删",
9100
+ "example": "ccn防火墙开发-",
8931
9101
  "member": "string",
8932
9102
  "name": "ConnectName",
8933
9103
  "output_required": true,
@@ -13020,7 +13190,7 @@
13020
13190
  },
13021
13191
  {
13022
13192
  "disabled": false,
13023
- "document": "描述",
13193
+ "document": "规则描述 用于规则使用或者场景的描述,最多支持50个字符",
13024
13194
  "example": "andy创建的规则",
13025
13195
  "member": "string",
13026
13196
  "name": "Description",
@@ -13325,6 +13495,32 @@
13325
13495
  ],
13326
13496
  "type": "object"
13327
13497
  },
13498
+ "SgDnsParseCount": {
13499
+ "document": "企业安全组域名解析的IP统计",
13500
+ "members": [
13501
+ {
13502
+ "disabled": false,
13503
+ "document": "有效下发的IP个数,离散数据",
13504
+ "example": "10",
13505
+ "member": "int64",
13506
+ "name": "ValidCount",
13507
+ "output_required": false,
13508
+ "type": "int",
13509
+ "value_allowed_null": false
13510
+ },
13511
+ {
13512
+ "disabled": false,
13513
+ "document": "未下发的IP个数,离散数据",
13514
+ "example": "10",
13515
+ "member": "int64",
13516
+ "name": "InvalidCount",
13517
+ "output_required": false,
13518
+ "type": "int",
13519
+ "value_allowed_null": false
13520
+ }
13521
+ ],
13522
+ "usage": "out"
13523
+ },
13328
13524
  "StaticInfo": {
13329
13525
  "document": "StaticInfo 告警柱形图统计信息",
13330
13526
  "members": [
@@ -328,6 +328,14 @@
328
328
  "title": "查询防火墙弹性公网ip"
329
329
  }
330
330
  ],
331
+ "DescribeCfwInsStatus": [
332
+ {
333
+ "document": "",
334
+ "input": "POST / HTTP/1.1\nHost: cfw.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCfwInsStatus\n<公共请求参数>\n\n{}",
335
+ "output": "{\n \"Response\": {\n \"CfwInsStatus\": [\n {\n \"CfwInsId\": \"cfwnat-xx\",\n \"CfwInsName\": \"nat-out\",\n \"Region\": \"ap-guangzhou\",\n \"FwType\": \"ew\",\n \"Status\": \"Running\",\n \"EventTime\": \"2022-09-28 10:57:13\",\n \"RecoverTime\": \"2022-10-12 16:58:27\"\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"jijijge\"\n }\n}",
336
+ "title": "查询cfw引擎升级状态"
337
+ }
338
+ ],
331
339
  "DescribeDefenseSwitch": [
332
340
  {
333
341
  "document": "接口返回常见入侵防御开关接口",
@@ -1109,7 +1109,7 @@ def doDescribeAvailableModelList(args, parsed_globals):
1109
1109
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
1110
 
1111
1111
 
1112
- def doDescribeIdcUnitAssetDetail(args, parsed_globals):
1112
+ def doCreateSpeciallyQuitWorkOrder(args, parsed_globals):
1113
1113
  g_param = parse_global_arg(parsed_globals)
1114
1114
 
1115
1115
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1138,11 +1138,11 @@ def doDescribeIdcUnitAssetDetail(args, parsed_globals):
1138
1138
  client = mod.ChcClient(cred, g_param[OptionsDefine.Region], profile)
1139
1139
  client._sdkVersion += ("_CLI_" + __version__)
1140
1140
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1141
- model = models.DescribeIdcUnitAssetDetailRequest()
1141
+ model = models.CreateSpeciallyQuitWorkOrderRequest()
1142
1142
  model.from_json_string(json.dumps(args))
1143
1143
  start_time = time.time()
1144
1144
  while True:
1145
- rsp = client.DescribeIdcUnitAssetDetail(model)
1145
+ rsp = client.CreateSpeciallyQuitWorkOrder(model)
1146
1146
  result = rsp.to_json_string()
1147
1147
  try:
1148
1148
  json_obj = json.loads(result)
@@ -1629,6 +1629,58 @@ def doDescribeResourceUsage(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
+ def doDescribeIdcUnitAssetDetail(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.ChcClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.DescribeIdcUnitAssetDetailRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.DescribeIdcUnitAssetDetail(model)
1666
+ result = rsp.to_json_string()
1667
+ try:
1668
+ json_obj = json.loads(result)
1669
+ except TypeError as e:
1670
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1671
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1672
+ break
1673
+ cur_time = time.time()
1674
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1675
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1676
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1677
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1678
+ else:
1679
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1680
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1681
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
+
1683
+
1632
1684
  def doCreateRackOnWorkOrder(args, parsed_globals):
1633
1685
  g_param = parse_global_arg(parsed_globals)
1634
1686
 
@@ -1921,7 +1973,7 @@ ACTION_MAP = {
1921
1973
  "DescribeDeviceList": doDescribeDeviceList,
1922
1974
  "CreatePowerOnWorkOrder": doCreatePowerOnWorkOrder,
1923
1975
  "DescribeAvailableModelList": doDescribeAvailableModelList,
1924
- "DescribeIdcUnitAssetDetail": doDescribeIdcUnitAssetDetail,
1976
+ "CreateSpeciallyQuitWorkOrder": doCreateSpeciallyQuitWorkOrder,
1925
1977
  "CreatePowerOffWorkOrder": doCreatePowerOffWorkOrder,
1926
1978
  "CreatePersonnelVisitWorkOrder": doCreatePersonnelVisitWorkOrder,
1927
1979
  "DescribePersonnelVisitWorkOrderDetail": doDescribePersonnelVisitWorkOrderDetail,
@@ -1931,6 +1983,7 @@ ACTION_MAP = {
1931
1983
  "CreateNetDeviceModel": doCreateNetDeviceModel,
1932
1984
  "DescribeWorkOrderStatistics": doDescribeWorkOrderStatistics,
1933
1985
  "DescribeResourceUsage": doDescribeResourceUsage,
1986
+ "DescribeIdcUnitAssetDetail": doDescribeIdcUnitAssetDetail,
1934
1987
  "CreateRackOnWorkOrder": doCreateRackOnWorkOrder,
1935
1988
  "DescribeIdcs": doDescribeIdcs,
1936
1989
  "CreateReceivingWorkOrder": doCreateReceivingWorkOrder,
@@ -91,6 +91,13 @@
91
91
  "output": "CreateServerModelResponse",
92
92
  "status": "online"
93
93
  },
94
+ "CreateSpeciallyQuitWorkOrder": {
95
+ "document": "创建临时设备退出工单",
96
+ "input": "CreateSpeciallyQuitWorkOrderRequest",
97
+ "name": "创建临时设备退出工单",
98
+ "output": "CreateSpeciallyQuitWorkOrderResponse",
99
+ "status": "online"
100
+ },
94
101
  "DescribeAvailableModelList": {
95
102
  "document": "获取机房内可用的型号列表",
96
103
  "input": "DescribeAvailableModelListRequest",
@@ -969,7 +976,7 @@
969
976
  },
970
977
  {
971
978
  "disabled": false,
972
- "document": "下架选择 1.自行解决 2.由腾讯IDC负责 3.不涉及下架,如:其他设备退出",
979
+ "document": "下架选择 1.自行解决 2.由腾讯IDC负责",
973
980
  "example": "1",
974
981
  "member": "string",
975
982
  "name": "StuffOption",
@@ -1429,6 +1436,97 @@
1429
1436
  ],
1430
1437
  "type": "object"
1431
1438
  },
1439
+ "CreateSpeciallyQuitWorkOrderRequest": {
1440
+ "document": "CreateSpeciallyQuitWorkOrder请求参数结构体",
1441
+ "members": [
1442
+ {
1443
+ "disabled": false,
1444
+ "document": "机房id",
1445
+ "example": "325",
1446
+ "member": "uint64",
1447
+ "name": "IdcId",
1448
+ "required": true,
1449
+ "type": "int"
1450
+ },
1451
+ {
1452
+ "disabled": false,
1453
+ "document": "设备类型:otherDevice。此接口只支持其他设备",
1454
+ "example": "otherDevice",
1455
+ "member": "string",
1456
+ "name": "DeviceType",
1457
+ "required": true,
1458
+ "type": "string"
1459
+ },
1460
+ {
1461
+ "disabled": false,
1462
+ "document": "交接方式 1.物流上门收货 2.客户上门自提",
1463
+ "example": "1",
1464
+ "member": "string",
1465
+ "name": "HandoverMethod",
1466
+ "required": true,
1467
+ "type": "string"
1468
+ },
1469
+ {
1470
+ "disabled": false,
1471
+ "document": "物流上门收货必传",
1472
+ "example": "无",
1473
+ "member": "LogisticsReceipt",
1474
+ "name": "LogisticsReceipt",
1475
+ "required": false,
1476
+ "type": "object"
1477
+ },
1478
+ {
1479
+ "disabled": false,
1480
+ "document": "客户上门自提必传",
1481
+ "example": "无",
1482
+ "member": "CustomerReceipt",
1483
+ "name": "CustomerReceipt",
1484
+ "required": false,
1485
+ "type": "object"
1486
+ },
1487
+ {
1488
+ "disabled": false,
1489
+ "document": "备注信息",
1490
+ "example": "备注信息",
1491
+ "member": "string",
1492
+ "name": "Remark",
1493
+ "required": false,
1494
+ "type": "string"
1495
+ },
1496
+ {
1497
+ "disabled": false,
1498
+ "document": "当设备类型为otherDevice,此参数必传",
1499
+ "example": "无",
1500
+ "member": "OtherDevReceivingInfo",
1501
+ "name": "OtherDeviceList",
1502
+ "required": false,
1503
+ "type": "list"
1504
+ }
1505
+ ],
1506
+ "type": "object"
1507
+ },
1508
+ "CreateSpeciallyQuitWorkOrderResponse": {
1509
+ "document": "CreateSpeciallyQuitWorkOrder返回参数结构体",
1510
+ "members": [
1511
+ {
1512
+ "disabled": false,
1513
+ "document": "创建的工单信息",
1514
+ "example": "无",
1515
+ "member": "WorkOrderTinyInfo",
1516
+ "name": "WorkOrderSet",
1517
+ "output_required": false,
1518
+ "type": "list",
1519
+ "value_allowed_null": false
1520
+ },
1521
+ {
1522
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1523
+ "member": "string",
1524
+ "name": "RequestId",
1525
+ "type": "string"
1526
+ }
1527
+ ],
1528
+ "type": "object"
1529
+ },
1432
1530
  "CustomerInfo": {
1433
1531
  "document": "客户信息",
1434
1532
  "members": [
@@ -2209,6 +2307,15 @@
2209
2307
  "name": "CampusId",
2210
2308
  "required": false,
2211
2309
  "type": "int"
2310
+ },
2311
+ {
2312
+ "disabled": false,
2313
+ "document": "型号关键字,可以实现模糊匹配搜索功能",
2314
+ "example": "dell",
2315
+ "member": "string",
2316
+ "name": "ModelName",
2317
+ "required": false,
2318
+ "type": "string"
2212
2319
  }
2213
2320
  ],
2214
2321
  "type": "object"
@@ -104,6 +104,14 @@
104
104
  "title": "创建新服务器型号"
105
105
  }
106
106
  ],
107
+ "CreateSpeciallyQuitWorkOrder": [
108
+ {
109
+ "document": "",
110
+ "input": "POST / HTTP/1.1\nHost: chc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSpeciallyQuitWorkOrder\n<公共请求参数>\n\n{\n \"IdcId\": 159,\n \"DeviceType\": \"otherDevice\",\n \"HandoverMethod\": \"2\",\n \"CustomerReceipt\": {\n \"PickUpStuff\": \"张三\",\n \"PickUpStuffContact\": \"16611111111\",\n \"PickUpStuffIDCard\": \"632525198112198139\",\n \"PickUpTime\": \"2025-12-11 12:00:00\"\n },\n \"Remark\": \"测试xzh111\",\n \"OtherDeviceList\": [\n {\n \"DeviceSn\": \"20250403chc1222\",\n \"TypeName\": \"移动硬盘\",\n \"Manufacturer\": \"华为\",\n \"HardwareMemo\": \"xx设备第二个硬盘\"\n },\n {\n \"DeviceSn\": \"20240101chc0008\",\n \"TypeName\": \"其他\",\n \"HardwareMemo\": \"xxx设备第3个xx\"\n }\n ]\n}",
111
+ "output": "{\n \"Response\": {\n \"RequestId\": \"f8fedcd3-198f-4ac5-be69-1b54ae62601d\",\n \"WorkOrderSet\": [\n {\n \"OrderType\": \"quit\",\n \"ServiceType\": \"quit\",\n \"WorkOrderId\": \"ord-25041015202483289\"\n },\n {\n \"OrderType\": \"personnelVisit\",\n \"ServiceType\": \"quit\",\n \"WorkOrderId\": \"ord-25041015202481186\"\n }\n ]\n }\n}",
112
+ "title": "创建临时设备退出工单"
113
+ }
114
+ ],
107
115
  "DescribeAvailableModelList": [
108
116
  {
109
117
  "document": "",