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
@@ -101,7 +101,7 @@
101
101
  "CreateContentIdentifier": [
102
102
  {
103
103
  "document": "创建内容标识符,同时绑定标签。",
104
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateContentIdentifier\n<公共请求参数>\n\n{\n \"Tags\": [\n {\n \"TagKey\": \"test\",\n \"TagValue\": \"abc\"\n }\n ],\n \"PlanId\": \"edgeone-37q0w7qali10\",\n \"Description\": \"content-test\"\n}",
104
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateContentIdentifier\n<公共请求参数>\n\n{\n \"Tags\": [\n {\n \"TagKey\": \"testkey\",\n \"TagValue\": \"testvalue\"\n }\n ],\n \"PlanId\": \"edgeone-37q0w7qali10\",\n \"Description\": \"content-test\"\n}",
105
105
  "output": "{\n \"Response\": {\n \"ContentId\": \"eocontent-27q0p1bali16\",\n \"RequestId\": \"3c140219-cff9-470e-b241-907877d6fb03\"\n }\n}",
106
106
  "title": "创建内容标识符"
107
107
  }
@@ -153,13 +153,13 @@
153
153
  "CreateL4Proxy": [
154
154
  {
155
155
  "document": "在 ZoneId 为 zone-2jc2xy3hr7f7 的站点下创建一个名称为 test,加速区域为中国大陆可用区的四层实例。",
156
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4Proxy\n<公共请求参数>\n\n{\n \"ProxyName\": \"test\",\n \"ZoneId\": \"zone-2jc2xy3hr7f7\",\n \"Area\": \"mainland\"\n}",
156
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4Proxy\n<公共请求参数>\n\n{\n \"ProxyName\": \"proxy1\",\n \"ZoneId\": \"zone-2jc2xy3hr7f7\",\n \"Area\": \"mainland\"\n}",
157
157
  "output": "{\n \"Response\": {\n \"ProxyId\": \"sid-2jc2hl2hr8f7\",\n \"RequestId\": \"0se57a54-cc42-11ed-8efb-525401a961b1\"\n }\n}",
158
158
  "title": "新建加速区域为中国大陆可用区的四层代理实例"
159
159
  },
160
160
  {
161
161
  "document": "在 ZoneId 为 zone-2jc2xy3hr7f7 的站点下创建一个名称为 test,加速区域为全球可用区(不含中国大陆)的四层实例,且开启独立 DDoS 防护,提供加速区域范围的全力防护。",
162
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4Proxy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2jc2xy3hr7f7\",\n \"ProxyName\": \"test\",\n \"Area\": \"overseas\",\n \"DDosProtectionConfig\": {\n \"LevelOverseas\": \"ANYCAST_ALLIN\"\n }\n}",
162
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4Proxy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2jc2xy3hr7f7\",\n \"ProxyName\": \"proxy2\",\n \"Area\": \"overseas\",\n \"DDosProtectionConfig\": {\n \"LevelOverseas\": \"ANYCAST_ALLIN\"\n }\n}",
163
163
  "output": "{\n \"Response\": {\n \"ProxyId\": \"sid-2jc2hl2hr8f7\",\n \"RequestId\": \"0se57a54-cc42-11ed-8efb-525401a961b1\"\n }\n}",
164
164
  "title": "新建加速区域为全球可用区(不含中国大陆),开启独立 DDoS 防护的四层代理实例"
165
165
  }
@@ -167,7 +167,7 @@
167
167
  "CreateL4ProxyRules": [
168
168
  {
169
169
  "document": "在 ZoneId 为 zone-24wjy25v1cwi 下 ProxyId 为 sid-2qwk27xf7j9g 的实例中创建一条转发规则。",
170
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4ProxyRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-24wjy25v1cwi\",\n \"ProxyId\": \"sid-2qwk27xf7j9g\",\n \"L4ProxyRules\": [\n {\n \"Protocol\": \"TCP\",\n \"PortRange\": [\n \"80\"\n ],\n \"OriginType\": \"IP_DOMAIN\",\n \"OriginValue\": [\n \"119.23.100.45\"\n ],\n \"OriginPortRange\": \"90\",\n \"ClientIPPassThroughMode\": \"TOA\",\n \"SessionPersist\": \"on\",\n \"SessionPersistTime\": 3600,\n \"RuleTag\": \"test\"\n }\n ]\n}",
170
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL4ProxyRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-24wjy25v1cwi\",\n \"ProxyId\": \"sid-2qwk27xf7j9g\",\n \"L4ProxyRules\": [\n {\n \"Protocol\": \"TCP\",\n \"PortRange\": [\n \"80\"\n ],\n \"OriginType\": \"IP_DOMAIN\",\n \"OriginValue\": [\n \"119.23.100.45\"\n ],\n \"OriginPortRange\": \"90\",\n \"ClientIPPassThroughMode\": \"TOA\",\n \"SessionPersist\": \"on\",\n \"SessionPersistTime\": 3600,\n \"RuleTag\": \"testrule\"\n }\n ]\n}",
171
171
  "output": "{\n \"Response\": {\n \"RequestId\": \"6f8h5358-df6d-4d2a-ac39-1706cbf8a707\",\n \"L4ProxyRuleIds\": [\n \"rule-2qzkbvx3hxl1\"\n ]\n }\n}",
172
172
  "title": "创建四层代理转发规则"
173
173
  }
@@ -363,8 +363,8 @@
363
363
  "CreateSharedCNAME": [
364
364
  {
365
365
  "document": "在 ZoneId 为 zone-225qgrnvbi9w 的站点下,创建一个共享 CNAME 前缀为 test,描述为 For Service A 的共享 CNAME。",
366
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSharedCNAME\n<公共请求参数>\n\n{\n \"SharedCNAMEPrefix\": \"test\",\n \"ZoneId\": \"zone-225qgrnvbi9w\",\n \"Description\": \"For Service A\"\n}",
367
- "output": "{\n \"Response\": {\n \"SharedCNAME\": \"test.225qgrnvbi9w.share.dnse1.com\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
366
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSharedCNAME\n<公共请求参数>\n\n{\n \"SharedCNAMEPrefix\": \"example.com\",\n \"ZoneId\": \"zone-225qgrnvbi9w\",\n \"Description\": \"For Service A\"\n}",
367
+ "output": "{\n \"Response\": {\n \"SharedCNAME\": \"example.com.225qgrnvbi9w.share.dnse1.com\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
368
368
  "title": "创建共享 CNAME"
369
369
  }
370
370
  ],
@@ -592,7 +592,7 @@
592
592
  {
593
593
  "document": "查询 ZoneId 为 zone-m2kplohsdc4b 的站点下 VersionId 为 ver-5ksglmhghsu3 的版本详情信息。",
594
594
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConfigGroupVersionDetail\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"VersionId\": \"ver-5ksglmhghsu3\"\n}",
595
- "output": "{\n \"Response\": {\n \"Content\": \"{\\n \\\"FormatVersion\\\": \\\"1.0\\\",\\n \\\"ZoneConfig\\\": {\\n \\\"SmartRouting\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"Cache\\\": {\\n \\\"CustomTime\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"CacheTime\\\": 604800\\n }\\n },\\n \\\"MaxAge\\\": {\\n \\\"FollowOrigin\\\": \\\"on\\\",\\n \\\"CacheTime\\\": 600\\n },\\n \\\"CacheKey\\\": {\\n \\\"FullURLCache\\\": \\\"off\\\",\\n \\\"QueryString\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Action\\\": \\\"includeCustom\\\",\\n \\\"Values\\\": [\\n \\\"key1\\\",\\n \\\"key2\\\"\\n ]\\n },\\n \\\"IgnoreCase\\\": \\\"on\\\"\\n },\\n \\\"CachePrefresh\\\": {\\n \\\"Switch\\\": \\\"off\\\",\\n \\\"CacheTimePercent\\\": 90\\n },\\n \\\"OfflineCache\\\": {\\n \\\"Switch\\\": \\\"on\\\"\\n },\\n \\\"Compression\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Algorithms\\\": [\\n \\\"brotli\\\",\\n \\\"gzip\\\"\\n ]\\n },\\n \\\"ImageOptimize\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"ForceRedirectHTTPS\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"RedirectStatusCode\\\": 302\\n },\\n \\\"HSTS\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"IncludeSubDomains\\\": \\\"on\\\",\\n \\\"Timeout\\\": 16070400,\\n \\\"Preload\\\": \\\"on\\\"\\n },\\n \\\"TLSConfig\\\": {\\n \\\"CipherSuite\\\": \\\"loose-v2023\\\",\\n \\\"Version\\\": [\\n \\\"TLSv1\\\",\\n \\\"TLSv1.1\\\",\\n \\\"TLSv1.2\\\",\\n \\\"TLSv1.3\\\"\\n ]\\n },\\n \\\"OCSPStapling\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"HTTP2\\\": {\\n \\\"Switch\\\": \\\"on\\\"\\n },\\n \\\"QUIC\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"UpstreamHTTP2\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"IPv6\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"WebSocket\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Timeout\\\": 30\\n },\\n \\\"PostMaxSize\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 838860800\\n },\\n \\\"ClientIPHeader\\\": {\\n \\\"Switch\\\": \\\"off\\\",\\n \\\"HeaderName\\\": \\\"\\\"\\n },\\n \\\"ClientIPCountry\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"\\n },\\n \\\"gRPC\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"AccelerateMainland\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"StandardDebug\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"AllowClientIPList\\\": [\\n \\\"1.2.3.4\\\"\\n ],\\n \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"\\n }\\n },\\n \\\"Rules\\\": [\\n {\\n \\\"RuleName\\\": \\\"未命名规则\\\",\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.host} matches '.*'\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"UpstreamURLRewrite\\\",\\n \\\"Parameters\\\": {\\n \\\"Type\\\": \\\"Path\\\",\\n \\\"Action\\\": \\\"rmvPrefix\\\",\\n \\\"Value\\\": \\\"/prefix\\\"\\n }\\n }\\n ],\\n \\\"SubRules\\\": [\\n {\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.file_extension} in ['.jpg']\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"PostMaxSize\\\",\\n \\\"Parameters\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 524288000\\n }\\n }\\n ]\\n }\\n ]\\n },\\n {\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.file_extension} in ['.png']\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"PostMaxSize\\\",\\n \\\"Parameters\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 209715200\\n }\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}\",\n \"ConfigGroupVersionInfo\": {\n \"CreateTime\": \"2023-11-06T11:33:12Z\",\n \"Description\": \"test\",\n \"GroupId\": \"cg-2p9unsmt54uw\",\n \"GroupType\": \"l7_acceleration\",\n \"Status\": \"inactive\",\n \"VersionId\": \"ver-2pn240kqwgti\",\n \"VersionNumber\": \"1\"\n },\n \"RequestId\": \"9bd9c732-8f9a-4cd3-a3e8-1c9db5e53631\"\n }\n}",
595
+ "output": "{\n \"Response\": {\n \"Content\": \"{\\n \\\"FormatVersion\\\": \\\"1.0\\\",\\n \\\"ZoneConfig\\\": {\\n \\\"SmartRouting\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"Cache\\\": {\\n \\\"CustomTime\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"CacheTime\\\": 604800\\n }\\n },\\n \\\"MaxAge\\\": {\\n \\\"FollowOrigin\\\": \\\"on\\\",\\n \\\"CacheTime\\\": 600\\n },\\n \\\"CacheKey\\\": {\\n \\\"FullURLCache\\\": \\\"off\\\",\\n \\\"QueryString\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Action\\\": \\\"includeCustom\\\",\\n \\\"Values\\\": [\\n \\\"key1\\\",\\n \\\"key2\\\"\\n ]\\n },\\n \\\"IgnoreCase\\\": \\\"on\\\"\\n },\\n \\\"CachePrefresh\\\": {\\n \\\"Switch\\\": \\\"off\\\",\\n \\\"CacheTimePercent\\\": 90\\n },\\n \\\"OfflineCache\\\": {\\n \\\"Switch\\\": \\\"on\\\"\\n },\\n \\\"Compression\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Algorithms\\\": [\\n \\\"brotli\\\",\\n \\\"gzip\\\"\\n ]\\n },\\n \\\"ImageOptimize\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"ForceRedirectHTTPS\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"RedirectStatusCode\\\": 302\\n },\\n \\\"HSTS\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"IncludeSubDomains\\\": \\\"on\\\",\\n \\\"Timeout\\\": 16070400,\\n \\\"Preload\\\": \\\"on\\\"\\n },\\n \\\"TLSConfig\\\": {\\n \\\"CipherSuite\\\": \\\"loose-v2023\\\",\\n \\\"Version\\\": [\\n \\\"TLSv1\\\",\\n \\\"TLSv1.1\\\",\\n \\\"TLSv1.2\\\",\\n \\\"TLSv1.3\\\"\\n ]\\n },\\n \\\"OCSPStapling\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"HTTP2\\\": {\\n \\\"Switch\\\": \\\"on\\\"\\n },\\n \\\"QUIC\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"UpstreamHTTP2\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"IPv6\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"WebSocket\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"Timeout\\\": 30\\n },\\n \\\"PostMaxSize\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 838860800\\n },\\n \\\"ClientIPHeader\\\": {\\n \\\"Switch\\\": \\\"off\\\",\\n \\\"HeaderName\\\": \\\"\\\"\\n },\\n \\\"ClientIPCountry\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"\\n },\\n \\\"gRPC\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"AccelerateMainland\\\": {\\n \\\"Switch\\\": \\\"off\\\"\\n },\\n \\\"StandardDebug\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"AllowClientIPList\\\": [\\n \\\"1.2.3.4\\\"\\n ],\\n \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"\\n }\\n },\\n \\\"Rules\\\": [\\n {\\n \\\"RuleName\\\": \\\"未命名规则\\\",\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.host} matches '.*'\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"UpstreamURLRewrite\\\",\\n \\\"Parameters\\\": {\\n \\\"Type\\\": \\\"Path\\\",\\n \\\"Action\\\": \\\"rmvPrefix\\\",\\n \\\"Value\\\": \\\"/prefix\\\"\\n }\\n }\\n ],\\n \\\"SubRules\\\": [\\n {\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.file_extension} in ['.jpg']\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"PostMaxSize\\\",\\n \\\"Parameters\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 524288000\\n }\\n }\\n ]\\n }\\n ]\\n },\\n {\\n \\\"Branches\\\": [\\n {\\n \\\"Condition\\\": \\\"${http.request.file_extension} in ['.png']\\\",\\n \\\"Actions\\\": [\\n {\\n \\\"Name\\\": \\\"PostMaxSize\\\",\\n \\\"Parameters\\\": {\\n \\\"Switch\\\": \\\"on\\\",\\n \\\"MaxSize\\\": 209715200\\n }\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}\",\n \"ConfigGroupVersionInfo\": {\n \"CreateTime\": \"2023-11-06T11:33:12Z\",\n \"Description\": \"testversion\",\n \"GroupId\": \"cg-2p9unsmt54uw\",\n \"GroupType\": \"l7_acceleration\",\n \"Status\": \"inactive\",\n \"VersionId\": \"ver-2pn240kqwgti\",\n \"VersionNumber\": \"1\"\n },\n \"RequestId\": \"9bd9c732-8f9a-4cd3-a3e8-1c9db5e53631\"\n }\n}",
596
596
  "title": "查询版本详情"
597
597
  }
598
598
  ],
@@ -600,7 +600,7 @@
600
600
  {
601
601
  "document": "查询站点 ID 为 zone-2kpsqmtisdcb 的站点下配置组 ID 为 cg-27fil26zq2s1 的配置组下版本 ID 为 ver-2kuq2mhis9c0 的版本信息。",
602
602
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConfigGroupVersions\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2kpsqmtisdcb\",\n \"GroupId\": \"cg-27fil26zq2s1\",\n \"Filters\": [\n {\n \"Name\": \"version-id\",\n \"Values\": [\n \"ver-2kuq2mhis9c0\"\n ]\n }\n ]\n}",
603
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ConfigGroupVersionInfos\": [\n {\n \"VersionId\": \"ver-2kuq2mhis9c0\",\n \"Description\": \"test\",\n \"VersionNumber\": \"1.0\",\n \"GroupId\": \"cg-27fil26zq2s1\",\n \"GroupType\": \"l7_acceleration\",\n \"Status\": \"RELEASED\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ],\n \"RequestId\": \"9bd9c732-8f9a-4cd3-a3e8-1c9db5e53631\"\n }\n}",
603
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ConfigGroupVersionInfos\": [\n {\n \"VersionId\": \"ver-2kuq2mhis9c0\",\n \"Description\": \"testversion\",\n \"VersionNumber\": \"1.0\",\n \"GroupId\": \"cg-27fil26zq2s1\",\n \"GroupType\": \"l7_acceleration\",\n \"Status\": \"RELEASED\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ],\n \"RequestId\": \"9bd9c732-8f9a-4cd3-a3e8-1c9db5e53631\"\n }\n}",
604
604
  "title": "查询版本列表"
605
605
  }
606
606
  ],
@@ -608,7 +608,7 @@
608
608
  {
609
609
  "document": "指定 ID 查询内容标识符",
610
610
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeContentIdentifiers\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"content-id\",\n \"Values\": [\n \"eocontent-27q0p0sali16\"\n ],\n \"Fuzzy\": false\n }\n ]\n}",
611
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b341-907877d6fb03\",\n \"ContentIdentifiers\": [\n {\n \"ContentId\": \"eocontent-27q0p0sali16\",\n \"Description\": \"content-test\",\n \"PlanId\": \"edgeone-2ycvs8ml4zpq\",\n \"ReferenceCount\": 10,\n \"Tags\": [\n {\n \"TagKey\": \"test\",\n \"TagValue\": \"ct\"\n }\n ],\n \"CreatedOn\": \"2023-10-05T15:30:45Z\",\n \"ModifiedOn\": \"2023-10-05T15:30:45Z\",\n \"DeletedOn\": null,\n \"Status\": \"active\"\n }\n ]\n }\n}",
611
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b341-907877d6fb03\",\n \"ContentIdentifiers\": [\n {\n \"ContentId\": \"eocontent-27q0p0sali16\",\n \"Description\": \"content-test\",\n \"PlanId\": \"edgeone-2ycvs8ml4zpq\",\n \"ReferenceCount\": 10,\n \"Tags\": [\n {\n \"TagKey\": \"testkey\",\n \"TagValue\": \"ct\"\n }\n ],\n \"CreatedOn\": \"2023-10-05T15:30:45Z\",\n \"ModifiedOn\": \"2023-10-05T15:30:45Z\",\n \"DeletedOn\": null,\n \"Status\": \"active\"\n }\n ]\n }\n}",
612
612
  "title": "查询内容标识符信息"
613
613
  }
614
614
  ],
@@ -700,7 +700,7 @@
700
700
  {
701
701
  "document": "",
702
702
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctionRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\"\n}",
703
- "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-n1j14wfm\",\n \"FunctionName\": \"test\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
703
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-n1j14wfm\",\n \"FunctionName\": \"testfunction\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
704
704
  "title": "查询边缘函数触发规则列表"
705
705
  }
706
706
  ],
@@ -715,8 +715,8 @@
715
715
  "DescribeFunctions": [
716
716
  {
717
717
  "document": "",
718
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctions\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Filters\": [\n {\n \"Name\": \"name\",\n \"Values\": [\n \"test\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 2\n}",
719
- "output": "{\n \"Response\": {\n \"Functions\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Content\": \"addEventListener('fetch', e => {\\r\\n const response = new Response('Hello World!');\\r\\n e.respondWith(response);\\r\\n});\",\n \"Name\": \"test-function\",\n \"Remark\": \"my function\",\n \"Domain\": \"test-function-zone-293e7s5jne1i-123456789.eo-edgefunctions1.com\",\n \"CreateTime\": \"2022-09-19T15:23:25+08:00\",\n \"UpdateTime\": \"2022-09-19T15:27:13+08:00\"\n },\n {\n \"FunctionId\": \"ef-2pakw1uk\",\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Content\": \"addEventListener('fetch', e => {\\r\\n const response = new Response('Hello World test!');\\r\\n e.respondWith(response);\\r\\n});\",\n \"Name\": \"test-function2\",\n \"Remark\": \"my function 2\",\n \"Domain\": \"test-function-zone-293e7s5jne1i-123456789.eo-edgefunctions1.com\",\n \"CreateTime\": \"2022-09-20T15:23:25+08:00\",\n \"UpdateTime\": \"2022-09-20T15:27:13+08:00\"\n }\n ],\n \"TotalCount\": 17,\n \"RequestId\": \"ab8a61c5-4eef-45af-9384-b071f1922541\"\n }\n}",
718
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctions\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Filters\": [\n {\n \"Name\": \"name\",\n \"Values\": [\n \"test-function\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 2\n}",
719
+ "output": "{\n \"Response\": {\n \"Functions\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Content\": \"addEventListener('fetch', e => {\\r\\n const response = new Response('Hello World!');\\r\\n e.respondWith(response);\\r\\n});\",\n \"Name\": \"test-function\",\n \"Remark\": \"my function\",\n \"Domain\": \"test-function-zone-293e7s5jne1i-123456789.eo-edgefunctions1.com\",\n \"CreateTime\": \"2022-09-19T15:23:25+08:00\",\n \"UpdateTime\": \"2022-09-19T15:27:13+08:00\"\n },\n {\n \"FunctionId\": \"ef-2pakw1uk\",\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"Content\": \"addEventListener('fetch', e => {\\r\\n const response = new Response('Hello World test!');\\r\\n e.respondWith(response);\\r\\n});\",\n \"Name\": \"test-function2\",\n \"Remark\": \"my function 2\",\n \"Domain\": \"test-function2-zone-293e7s5jne1i-123456789.eo-edgefunctions1.com\",\n \"CreateTime\": \"2022-09-20T15:23:25+08:00\",\n \"UpdateTime\": \"2022-09-20T15:27:13+08:00\"\n }\n ],\n \"TotalCount\": 17,\n \"RequestId\": \"ab8a61c5-4eef-45af-9384-b071f1922541\"\n }\n}",
720
720
  "title": "根据名称匹配边缘函数列表"
721
721
  },
722
722
  {
@@ -762,7 +762,7 @@
762
762
  {
763
763
  "document": "查询 Zoneld 为 zone-24wjy25v1cwi 下 Proxyld 为 sid-2qwk27xf7j9g 下的转发规则列表。",
764
764
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeL4ProxyRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-24wjy25v1cwi\",\n \"ProxyId\": \"sid-2qwk27xf7j9g\",\n \"Offset\": 1,\n \"Limit\": 0\n}",
765
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"L4ProxyRules\": [\n {\n \"RuleId\": \"rule-2qzkbvx3hxl1\",\n \"Protocol\": \"TCP\",\n \"PortRange\": [\n \"80\"\n ],\n \"OriginType\": \"IP_DOMAIN\",\n \"OriginValue\": [\n \"test.origin.com\"\n ],\n \"OriginPortRange\": \"90\",\n \"ClientIPPassThroughMode\": \"TOA\",\n \"SessionPersist\": \"on\",\n \"SessionPersistTime\": 3600,\n \"RuleTag\": \"test\",\n \"Status\": \"online\"\n }\n ],\n \"RequestId\": \"6f8h5358-cdda-4f82-b7sc-0aef4a219244\"\n }\n}",
765
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"L4ProxyRules\": [\n {\n \"RuleId\": \"rule-2qzkbvx3hxl1\",\n \"Protocol\": \"TCP\",\n \"PortRange\": [\n \"80\"\n ],\n \"OriginType\": \"IP_DOMAIN\",\n \"OriginValue\": [\n \"test.origin.com\"\n ],\n \"OriginPortRange\": \"90\",\n \"ClientIPPassThroughMode\": \"TOA\",\n \"SessionPersist\": \"on\",\n \"SessionPersistTime\": 3600,\n \"RuleTag\": \"origin\",\n \"Status\": \"online\"\n }\n ],\n \"RequestId\": \"6f8h5358-cdda-4f82-b7sc-0aef4a219244\"\n }\n}",
766
766
  "title": "查询四层代理实例转发规则列表"
767
767
  },
768
768
  {
@@ -2047,6 +2047,58 @@ def doCreatePresignedNotebookUrl(args, parsed_globals):
2047
2047
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2048
2048
 
2049
2049
 
2050
+ def doDescribeLogs(args, parsed_globals):
2051
+ g_param = parse_global_arg(parsed_globals)
2052
+
2053
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2054
+ cred = credential.CVMRoleCredential()
2055
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2056
+ cred = credential.STSAssumeRoleCredential(
2057
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2058
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2059
+ )
2060
+ 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):
2061
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2062
+ else:
2063
+ cred = credential.Credential(
2064
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2065
+ )
2066
+ http_profile = HttpProfile(
2067
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2068
+ reqMethod="POST",
2069
+ endpoint=g_param[OptionsDefine.Endpoint],
2070
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2071
+ )
2072
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2073
+ if g_param[OptionsDefine.Language]:
2074
+ profile.language = g_param[OptionsDefine.Language]
2075
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2076
+ client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
2077
+ client._sdkVersion += ("_CLI_" + __version__)
2078
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2079
+ model = models.DescribeLogsRequest()
2080
+ model.from_json_string(json.dumps(args))
2081
+ start_time = time.time()
2082
+ while True:
2083
+ rsp = client.DescribeLogs(model)
2084
+ result = rsp.to_json_string()
2085
+ try:
2086
+ json_obj = json.loads(result)
2087
+ except TypeError as e:
2088
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2089
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2090
+ break
2091
+ cur_time = time.time()
2092
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2093
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2094
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2095
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2096
+ else:
2097
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2098
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2099
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2100
+
2101
+
2050
2102
  def doDeleteModelService(args, parsed_globals):
2051
2103
  g_param = parse_global_arg(parsed_globals)
2052
2104
 
@@ -3451,6 +3503,7 @@ ACTION_MAP = {
3451
3503
  "DescribeTrainingJob": doDescribeTrainingJob,
3452
3504
  "StopNotebookInstance": doStopNotebookInstance,
3453
3505
  "CreatePresignedNotebookUrl": doCreatePresignedNotebookUrl,
3506
+ "DescribeLogs": doDescribeLogs,
3454
3507
  "DeleteModelService": doDeleteModelService,
3455
3508
  "DescribeDatasets": doDescribeDatasets,
3456
3509
  "DescribeBillingResourceInstanceRunningJobs": doDescribeBillingResourceInstanceRunningJobs,
@@ -154,6 +154,13 @@
154
154
  "output": "DescribeInferTemplatesResponse",
155
155
  "status": "deprecated"
156
156
  },
157
+ "DescribeLogs": {
158
+ "document": "获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API",
159
+ "input": "DescribeLogsRequest",
160
+ "name": "获取日志",
161
+ "output": "DescribeLogsResponse",
162
+ "status": "online"
163
+ },
157
164
  "DescribeModelAccelerateTask": {
158
165
  "document": "查询模型优化任务详情",
159
166
  "input": "DescribeModelAccelerateTaskRequest",
@@ -541,6 +548,34 @@
541
548
  ],
542
549
  "usage": "out"
543
550
  },
551
+ "CodeRepoConfig": {
552
+ "document": "代码仓库配置",
553
+ "members": [
554
+ {
555
+ "disabled": false,
556
+ "document": "代码仓库Id",
557
+ "example": "cr-1000669213287070080",
558
+ "member": "string",
559
+ "name": "Id",
560
+ "output_required": false,
561
+ "required": true,
562
+ "type": "string",
563
+ "value_allowed_null": false
564
+ },
565
+ {
566
+ "disabled": false,
567
+ "document": "代码仓下载目标地址",
568
+ "example": "/opt/ml/code",
569
+ "member": "string",
570
+ "name": "TargetPath",
571
+ "output_required": false,
572
+ "required": true,
573
+ "type": "string",
574
+ "value_allowed_null": false
575
+ }
576
+ ],
577
+ "usage": "both"
578
+ },
544
579
  "Container": {
545
580
  "document": "容器信息",
546
581
  "members": [
@@ -1965,6 +2000,15 @@
1965
2000
  "name": "EncodedStartCmdInfo",
1966
2001
  "required": false,
1967
2002
  "type": "object"
2003
+ },
2004
+ {
2005
+ "disabled": false,
2006
+ "document": "代码仓库配置",
2007
+ "example": "[{\"Id\":\"cr-1000669213287070080\",\"TargetPath\":\"/opt/ml/code\"}]",
2008
+ "member": "CodeRepoConfig",
2009
+ "name": "CodeRepos",
2010
+ "required": false,
2011
+ "type": "list"
1968
2012
  }
1969
2013
  ],
1970
2014
  "type": "object"
@@ -2208,6 +2252,17 @@
2208
2252
  "required": false,
2209
2253
  "type": "object",
2210
2254
  "value_allowed_null": true
2255
+ },
2256
+ {
2257
+ "disabled": false,
2258
+ "document": "主机路径信息",
2259
+ "example": "无",
2260
+ "member": "HostPath",
2261
+ "name": "HostPathSource",
2262
+ "output_required": false,
2263
+ "required": false,
2264
+ "type": "object",
2265
+ "value_allowed_null": false
2211
2266
  }
2212
2267
  ],
2213
2268
  "usage": "both"
@@ -3768,6 +3823,134 @@
3768
3823
  ],
3769
3824
  "type": "object"
3770
3825
  },
3826
+ "DescribeLogsRequest": {
3827
+ "document": "DescribeLogs请求参数结构体",
3828
+ "members": [
3829
+ {
3830
+ "disabled": false,
3831
+ "document": "服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测\n枚举值:\n- TRAIN\n- NOTEBOOK\n- INFER\n- BATCH",
3832
+ "example": "TRAIN",
3833
+ "member": "string",
3834
+ "name": "Service",
3835
+ "required": true,
3836
+ "type": "string"
3837
+ },
3838
+ {
3839
+ "disabled": false,
3840
+ "document": "日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时",
3841
+ "example": "2021-11-30T16:22:09+08:00",
3842
+ "member": "string",
3843
+ "name": "StartTime",
3844
+ "required": false,
3845
+ "type": "string"
3846
+ },
3847
+ {
3848
+ "disabled": false,
3849
+ "document": "日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间",
3850
+ "example": "2021-11-30T16:22:09+08:00",
3851
+ "member": "string",
3852
+ "name": "EndTime",
3853
+ "required": false,
3854
+ "type": "string"
3855
+ },
3856
+ {
3857
+ "disabled": false,
3858
+ "document": "日志查询条数,默认值100,最大值100",
3859
+ "example": "100",
3860
+ "member": "uint64",
3861
+ "name": "Limit",
3862
+ "required": false,
3863
+ "type": "int"
3864
+ },
3865
+ {
3866
+ "disabled": false,
3867
+ "document": "服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:\n- Service类型为TRAIN:\n 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId\n- Service类型为NOTEBOOK:\n 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName\n- Service类型为INFER:\n 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId\n- Service类型为BATCH:\n 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId",
3868
+ "example": "train-fsdjl-1",
3869
+ "member": "string",
3870
+ "name": "ServiceId",
3871
+ "required": false,
3872
+ "type": "string"
3873
+ },
3874
+ {
3875
+ "disabled": false,
3876
+ "document": "Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下:\n- Service类型为TRAIN:\n 调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames\n- Service类型为NOTEBOOK:\n 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName\n- Service类型为INFER:\n 调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos\n- Service类型为BATCH:\n 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList\n注:支持结尾通配符*",
3877
+ "example": "train-fsdjl-1",
3878
+ "member": "string",
3879
+ "name": "PodName",
3880
+ "required": false,
3881
+ "type": "string"
3882
+ },
3883
+ {
3884
+ "disabled": false,
3885
+ "document": "排序方向(可选值为ASC, DESC ),默认为DESC",
3886
+ "example": "DESC",
3887
+ "member": "string",
3888
+ "name": "Order",
3889
+ "required": false,
3890
+ "type": "string"
3891
+ },
3892
+ {
3893
+ "disabled": false,
3894
+ "document": "按哪个字段排序(可选值为Timestamp),默认值为Timestamp",
3895
+ "example": "Timestamp",
3896
+ "member": "string",
3897
+ "name": "OrderField",
3898
+ "required": false,
3899
+ "type": "string"
3900
+ },
3901
+ {
3902
+ "disabled": false,
3903
+ "document": "日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回",
3904
+ "example": "aaa-bbb-ccc",
3905
+ "member": "string",
3906
+ "name": "Context",
3907
+ "required": false,
3908
+ "type": "string"
3909
+ },
3910
+ {
3911
+ "disabled": false,
3912
+ "document": "过滤条件\n注意: \n1. Filter.Name:目前只支持Key(也就是按关键字过滤日志)\n2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足\n3. Filter. Negative和Filter. Fuzzy没有使用",
3913
+ "example": "无",
3914
+ "member": "Filter",
3915
+ "name": "Filters",
3916
+ "required": false,
3917
+ "type": "list"
3918
+ }
3919
+ ],
3920
+ "type": "object"
3921
+ },
3922
+ "DescribeLogsResponse": {
3923
+ "document": "DescribeLogs返回参数结构体",
3924
+ "members": [
3925
+ {
3926
+ "disabled": false,
3927
+ "document": "分页的游标\n注意:此字段可能返回 null,表示取不到有效值。",
3928
+ "example": "aaa-bbb-ccc",
3929
+ "member": "string",
3930
+ "name": "Context",
3931
+ "output_required": true,
3932
+ "type": "string",
3933
+ "value_allowed_null": true
3934
+ },
3935
+ {
3936
+ "disabled": false,
3937
+ "document": "日志数组\n注意:此字段可能返回 null,表示取不到有效值。",
3938
+ "example": "无",
3939
+ "member": "LogIdentity",
3940
+ "name": "Content",
3941
+ "output_required": true,
3942
+ "type": "list",
3943
+ "value_allowed_null": true
3944
+ },
3945
+ {
3946
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3947
+ "member": "string",
3948
+ "name": "RequestId",
3949
+ "type": "string"
3950
+ }
3951
+ ],
3952
+ "type": "object"
3953
+ },
3771
3954
  "DescribeModelAccelerateTaskRequest": {
3772
3955
  "document": "DescribeModelAccelerateTask请求参数结构体",
3773
3956
  "members": [
@@ -4973,6 +5156,23 @@
4973
5156
  ],
4974
5157
  "usage": "both"
4975
5158
  },
5159
+ "HostPath": {
5160
+ "document": "主机路径挂载配置",
5161
+ "members": [
5162
+ {
5163
+ "disabled": false,
5164
+ "document": "需要挂载的主机路径",
5165
+ "example": "/mnt",
5166
+ "member": "string",
5167
+ "name": "Path",
5168
+ "output_required": false,
5169
+ "required": false,
5170
+ "type": "string",
5171
+ "value_allowed_null": false
5172
+ }
5173
+ ],
5174
+ "usage": "both"
5175
+ },
4976
5176
  "HyperParameter": {
4977
5177
  "document": "模型专业参数",
4978
5178
  "members": [
@@ -5669,6 +5869,52 @@
5669
5869
  ],
5670
5870
  "usage": "both"
5671
5871
  },
5872
+ "LogIdentity": {
5873
+ "document": "单条日志数据结构",
5874
+ "members": [
5875
+ {
5876
+ "disabled": false,
5877
+ "document": "单条日志的ID\n注意:此字段可能返回 null,表示取不到有效值。",
5878
+ "example": "aaa-ccc-ddd",
5879
+ "member": "string",
5880
+ "name": "Id",
5881
+ "required": true,
5882
+ "type": "string",
5883
+ "value_allowed_null": true
5884
+ },
5885
+ {
5886
+ "disabled": false,
5887
+ "document": "单条日志的内容\n注意:此字段可能返回 null,表示取不到有效值。",
5888
+ "example": "This is a log",
5889
+ "member": "string",
5890
+ "name": "Message",
5891
+ "required": true,
5892
+ "type": "string",
5893
+ "value_allowed_null": true
5894
+ },
5895
+ {
5896
+ "disabled": false,
5897
+ "document": "这条日志对应的Pod名称\n注意:此字段可能返回 null,表示取不到有效值。",
5898
+ "example": "train-xxx-1",
5899
+ "member": "string",
5900
+ "name": "PodName",
5901
+ "required": true,
5902
+ "type": "string",
5903
+ "value_allowed_null": true
5904
+ },
5905
+ {
5906
+ "disabled": false,
5907
+ "document": "日志的时间戳(RFC3339格式的时间字符串)\n注意:此字段可能返回 null,表示取不到有效值。",
5908
+ "example": "2021-11-30T16:22:09+08:00",
5909
+ "member": "string",
5910
+ "name": "Timestamp",
5911
+ "required": true,
5912
+ "type": "string",
5913
+ "value_allowed_null": true
5914
+ }
5915
+ ],
5916
+ "usage": "out"
5917
+ },
5672
5918
  "Message": {
5673
5919
  "document": "对话输入内容",
5674
5920
  "members": [
@@ -10821,6 +11067,16 @@
10821
11067
  "output_required": true,
10822
11068
  "type": "string",
10823
11069
  "value_allowed_null": true
11070
+ },
11071
+ {
11072
+ "disabled": false,
11073
+ "document": "任务关联的代码仓库配置",
11074
+ "example": "[{\"Id\":\"cr-1000669213287070080\",\"TargetPath\":\"/opt/ml/code\"}]\t",
11075
+ "member": "CodeRepoConfig",
11076
+ "name": "CodeRepos",
11077
+ "output_required": false,
11078
+ "type": "list",
11079
+ "value_allowed_null": false
10824
11080
  }
10825
11081
  ],
10826
11082
  "usage": "out"
@@ -176,6 +176,14 @@
176
176
  "title": "查询推理镜像模板"
177
177
  }
178
178
  ],
179
+ "DescribeLogs": [
180
+ {
181
+ "document": "获取TI平台各种服务(训练,Notebook,推理等)的日志",
182
+ "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLogs\n<公共请求参数>\n\n{\n \"Service\": \"INFER\",\n \"StartTime\": \"2022-01-10T12:15:03+08:00\",\n \"Limit\": 100,\n \"PodName\": \"ms-cp6rgw9r-1*\",\n \"EndTime\": \"2022-01-11T12:15:03+08:00\"\n}",
183
+ "output": "{\n \"Response\": {\n \"Content\": [\n {\n \"Id\": \"77b5d420-73bc-47f2-96ab-3a2b32262ffe\",\n \"Message\": \"This is a log\",\n \"PodName\": \"ms-cp6rgw9r-1-864587bdb4-p5cv6\",\n \"Timestamp\": \"2022-01-11T04:14:36.348499491Z\"\n }\n ],\n \"RequestId\": \"305ce475-e534-4cad-a4ab-a472a27ca3fd\",\n \"Context\": \"Y29udGV4dC0wYTdiNTRkMi0xOGI0LTQwNzEtYjIzYy1kZDE4NmM2NDFjNTIxNjQxODc0NTA2MTE5\"\n }\n}",
184
+ "title": "获取日志"
185
+ }
186
+ ],
179
187
  "DescribeModelAccelerateTask": [
180
188
  {
181
189
  "document": "",
@@ -7312,7 +7312,7 @@
7312
7312
  "example": "terminate",
7313
7313
  "member": "string",
7314
7314
  "name": "InstanceDeleteMode",
7315
- "required": false,
7315
+ "required": true,
7316
7316
  "type": "string"
7317
7317
  },
7318
7318
  {