tccli 3.0.1379.1__py2.py3-none-any.whl → 3.0.1380.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.
@@ -245,6 +245,13 @@
245
245
  "output": "DescribeInstanceNodeInfoResponse",
246
246
  "status": "online"
247
247
  },
248
+ "DescribeInstanceSSLAttributes": {
249
+ "document": "本接口(DescribeInstanceSSLAttributes)用于拉取实例SSL认证属性",
250
+ "input": "DescribeInstanceSSLAttributesRequest",
251
+ "name": "拉取实例SSL认证功能属性",
252
+ "output": "DescribeInstanceSSLAttributesResponse",
253
+ "status": "online"
254
+ },
248
255
  "DescribeLogFileRetentionPeriod": {
249
256
  "document": "本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。",
250
257
  "input": "DescribeLogFileRetentionPeriodRequest",
@@ -266,6 +273,13 @@
266
273
  "output": "DescribePriceResponse",
267
274
  "status": "online"
268
275
  },
276
+ "DescribeProcessList": {
277
+ "document": "本接口 (DescribeProcessList) 用于查询当前正在运行的线程(连接/查询)信息。\n\n- 可以根据客户端IP,DB,执行时间等信息来查询实例正在运行的线程信息。过滤信息详细请见过滤器Filter。\n- 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的线程信息。",
278
+ "input": "DescribeProcessListRequest",
279
+ "name": "查询数据库会话列表",
280
+ "output": "DescribeProcessListResponse",
281
+ "status": "online"
282
+ },
269
283
  "DescribeProjectSecurityGroups": {
270
284
  "document": "本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息",
271
285
  "input": "DescribeProjectSecurityGroupsRequest",
@@ -441,6 +455,20 @@
441
455
  "output": "ModifyInstanceNetworkResponse",
442
456
  "status": "online"
443
457
  },
458
+ "ModifyInstanceProtectedProperty": {
459
+ "document": "该接口用于对实例修改删除保护属性",
460
+ "input": "ModifyInstanceProtectedPropertyRequest",
461
+ "name": "修改实例的保护属性",
462
+ "output": "ModifyInstanceProtectedPropertyResponse",
463
+ "status": "online"
464
+ },
465
+ "ModifyInstanceSSLAttributes": {
466
+ "document": "本接口 (ModifyInstanceSSLAttributes)用于修改实例SSL认证功能属性",
467
+ "input": "ModifyInstanceSSLAttributesRequest",
468
+ "name": "修改实例SSL认证功能属性",
469
+ "output": "ModifyInstanceSSLAttributesResponse",
470
+ "status": "online"
471
+ },
444
472
  "ModifyInstanceVip": {
445
473
  "document": "本接口(ModifyInstanceVip)用于修改实例VIP",
446
474
  "input": "ModifyInstanceVipRequest",
@@ -5560,6 +5588,43 @@
5560
5588
  ],
5561
5589
  "type": "object"
5562
5590
  },
5591
+ "DescribeInstanceSSLAttributesRequest": {
5592
+ "document": "DescribeInstanceSSLAttributes请求参数结构体",
5593
+ "members": [
5594
+ {
5595
+ "disabled": false,
5596
+ "document": "实例ID",
5597
+ "example": "tdql-xxx",
5598
+ "member": "string",
5599
+ "name": "InstanceId",
5600
+ "required": true,
5601
+ "type": "string"
5602
+ }
5603
+ ],
5604
+ "type": "object"
5605
+ },
5606
+ "DescribeInstanceSSLAttributesResponse": {
5607
+ "document": "DescribeInstanceSSLAttributes返回参数结构体",
5608
+ "members": [
5609
+ {
5610
+ "disabled": false,
5611
+ "document": "实例SSL认证功能当前状态。1-开启中;2-已开启;3-已关闭;4-关闭中",
5612
+ "example": "2",
5613
+ "member": "int64",
5614
+ "name": "Status",
5615
+ "output_required": true,
5616
+ "type": "int",
5617
+ "value_allowed_null": false
5618
+ },
5619
+ {
5620
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5621
+ "member": "string",
5622
+ "name": "RequestId",
5623
+ "type": "string"
5624
+ }
5625
+ ],
5626
+ "type": "object"
5627
+ },
5563
5628
  "DescribeLogFileRetentionPeriodRequest": {
5564
5629
  "document": "DescribeLogFileRetentionPeriod请求参数结构体",
5565
5630
  "members": [
@@ -5773,6 +5838,79 @@
5773
5838
  ],
5774
5839
  "type": "object"
5775
5840
  },
5841
+ "DescribeProcessListRequest": {
5842
+ "document": "DescribeProcessList请求参数结构体",
5843
+ "members": [
5844
+ {
5845
+ "disabled": false,
5846
+ "document": "实例ID。",
5847
+ "example": "tdsql-2gk4nxyz",
5848
+ "member": "string",
5849
+ "name": "InstanceId",
5850
+ "required": true,
5851
+ "type": "string"
5852
+ },
5853
+ {
5854
+ "disabled": false,
5855
+ "document": "节点ID。",
5856
+ "example": "681390887981",
5857
+ "member": "string",
5858
+ "name": "NodeId",
5859
+ "required": true,
5860
+ "type": "string"
5861
+ },
5862
+ {
5863
+ "disabled": false,
5864
+ "document": "<li><strong>id</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>会话ID</strong>】进行过滤。会话ID例如:125700。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:精确匹配</p>\n\n<li><strong>user</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>用户名</strong>】进行过滤。用户名例如:root。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:精确匹配</p>\n<li><strong>host</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>客户端Host</strong>】进行过滤。客户端Host例如:127.0.0.1:46295。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:前缀匹配,例如可以查询客户端IP不加端口:127.0.0.1。</p>\n<li><strong>state</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>线程状态</strong>】进行过滤。线程状态例如:Updating。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:精确匹配</p>\n<li><strong>db</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>数据库名称</strong>】进行过滤。数据库名称例如:mysql。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:精确匹配</p>\n<li><strong>command</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>命令类型</strong>】进行过滤。命令类型例如:Query。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:精确匹配</p>\n<li><strong>info</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>执行语句</strong>】进行过滤。执行语句例如:select id, name from demo.table1 where id > 10。</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:前缀匹配,例如SQL较长,可以输入SQL前缀:select id, name from demo.table1。</p>\n<li><strong>time</strong></li>\n <p style=\"padding-left: 30px;\">按照【<strong>执行时间大于多少(秒)</strong>】进行过滤。例如:10,表示查询执行时间超过10秒的会话。</p>\n <p style=\"padding-left: 30px;\">类型:Integer</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n <p style=\"padding-left: 30px;\">匹配类型:范围匹配,Values值只支持输入1个。</p>\n每次请求的`Filters`的上限为10,`Filter.Values`的上限为50。",
5865
+ "example": "[{\"Name\": \"user\", \"Values\": [\"root\"]}]",
5866
+ "member": "Filter",
5867
+ "name": "Filters",
5868
+ "required": false,
5869
+ "type": "list"
5870
+ },
5871
+ {
5872
+ "disabled": false,
5873
+ "document": "偏移量,默认为0。",
5874
+ "example": "0",
5875
+ "member": "int64",
5876
+ "name": "Offset",
5877
+ "required": false,
5878
+ "type": "int"
5879
+ },
5880
+ {
5881
+ "disabled": false,
5882
+ "document": "返回数量,默认为20,最大值为100。",
5883
+ "example": "20",
5884
+ "member": "int64",
5885
+ "name": "Limit",
5886
+ "required": false,
5887
+ "type": "int"
5888
+ }
5889
+ ],
5890
+ "type": "object"
5891
+ },
5892
+ "DescribeProcessListResponse": {
5893
+ "document": "DescribeProcessList返回参数结构体",
5894
+ "members": [
5895
+ {
5896
+ "disabled": false,
5897
+ "document": "当前正在运行的线程(连接/查询)信息列表。",
5898
+ "example": "无",
5899
+ "member": "Process",
5900
+ "name": "ProcessList",
5901
+ "output_required": false,
5902
+ "type": "list",
5903
+ "value_allowed_null": false
5904
+ },
5905
+ {
5906
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5907
+ "member": "string",
5908
+ "name": "RequestId",
5909
+ "type": "string"
5910
+ }
5911
+ ],
5912
+ "type": "object"
5913
+ },
5776
5914
  "DescribeProjectSecurityGroupsRequest": {
5777
5915
  "document": "DescribeProjectSecurityGroups请求参数结构体",
5778
5916
  "members": [
@@ -6151,6 +6289,30 @@
6151
6289
  ],
6152
6290
  "type": "object"
6153
6291
  },
6292
+ "Filter": {
6293
+ "document": "描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等\n\n若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。\n若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。",
6294
+ "members": [
6295
+ {
6296
+ "disabled": false,
6297
+ "document": "需要过滤的字段。",
6298
+ "example": "zone",
6299
+ "member": "string",
6300
+ "name": "Name",
6301
+ "required": true,
6302
+ "type": "string"
6303
+ },
6304
+ {
6305
+ "disabled": false,
6306
+ "document": "字段的过滤值。",
6307
+ "example": "[\"ap-guangzhou-2\"]",
6308
+ "member": "string",
6309
+ "name": "Values",
6310
+ "required": true,
6311
+ "type": "list"
6312
+ }
6313
+ ],
6314
+ "usage": "in"
6315
+ },
6154
6316
  "FlushBinlogRequest": {
6155
6317
  "document": "FlushBinlog请求参数结构体",
6156
6318
  "members": [
@@ -7379,6 +7541,78 @@
7379
7541
  ],
7380
7542
  "type": "object"
7381
7543
  },
7544
+ "ModifyInstanceProtectedPropertyRequest": {
7545
+ "document": "ModifyInstanceProtectedProperty请求参数结构体",
7546
+ "members": [
7547
+ {
7548
+ "disabled": false,
7549
+ "document": "实例ID",
7550
+ "example": "tdsql-quidk8ji",
7551
+ "member": "string",
7552
+ "name": "InstanceId",
7553
+ "required": true,
7554
+ "type": "string"
7555
+ },
7556
+ {
7557
+ "disabled": false,
7558
+ "document": "0-允许删除,无销毁保护,1-禁止删除,有销毁保护",
7559
+ "example": "1",
7560
+ "member": "int64",
7561
+ "name": "ProtectedProperty",
7562
+ "required": true,
7563
+ "type": "int"
7564
+ }
7565
+ ],
7566
+ "type": "object"
7567
+ },
7568
+ "ModifyInstanceProtectedPropertyResponse": {
7569
+ "document": "ModifyInstanceProtectedProperty返回参数结构体",
7570
+ "members": [
7571
+ {
7572
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7573
+ "member": "string",
7574
+ "name": "RequestId",
7575
+ "type": "string"
7576
+ }
7577
+ ],
7578
+ "type": "object"
7579
+ },
7580
+ "ModifyInstanceSSLAttributesRequest": {
7581
+ "document": "ModifyInstanceSSLAttributes请求参数结构体",
7582
+ "members": [
7583
+ {
7584
+ "disabled": false,
7585
+ "document": "实例ID",
7586
+ "example": "tdsql-aks3di5h",
7587
+ "member": "string",
7588
+ "name": "InstanceId",
7589
+ "required": true,
7590
+ "type": "string"
7591
+ },
7592
+ {
7593
+ "disabled": false,
7594
+ "document": "是否开启实例的SSL认证。0-关闭;1-开启",
7595
+ "example": "1",
7596
+ "member": "int64",
7597
+ "name": "SSLEnabled",
7598
+ "required": true,
7599
+ "type": "int"
7600
+ }
7601
+ ],
7602
+ "type": "object"
7603
+ },
7604
+ "ModifyInstanceSSLAttributesResponse": {
7605
+ "document": "ModifyInstanceSSLAttributes返回参数结构体",
7606
+ "members": [
7607
+ {
7608
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7609
+ "member": "string",
7610
+ "name": "RequestId",
7611
+ "type": "string"
7612
+ }
7613
+ ],
7614
+ "type": "object"
7615
+ },
7382
7616
  "ModifyInstanceVipRequest": {
7383
7617
  "document": "ModifyInstanceVip请求参数结构体",
7384
7618
  "members": [
@@ -7920,6 +8154,102 @@
7920
8154
  ],
7921
8155
  "usage": "in"
7922
8156
  },
8157
+ "Process": {
8158
+ "document": "用于显示当前正在运行的线程(连接/查询)信息,数据源来自系统表:information_schema.processlist。",
8159
+ "members": [
8160
+ {
8161
+ "disabled": false,
8162
+ "document": "线程ID​​:唯一标识当前连接/线程的整数。",
8163
+ "example": "125700",
8164
+ "member": "int64",
8165
+ "name": "Id",
8166
+ "output_required": false,
8167
+ "type": "int",
8168
+ "value_allowed_null": false
8169
+ },
8170
+ {
8171
+ "disabled": false,
8172
+ "document": "用户名​​:发起连接的 MySQL 用户。",
8173
+ "example": "root",
8174
+ "member": "string",
8175
+ "name": "User",
8176
+ "output_required": false,
8177
+ "type": "string",
8178
+ "value_allowed_null": false
8179
+ },
8180
+ {
8181
+ "disabled": false,
8182
+ "document": "客户端地址​​:发起连接的客户端主机名及端口(格式:host:port)。",
8183
+ "example": "127.0.0.1:46295",
8184
+ "member": "string",
8185
+ "name": "Host",
8186
+ "output_required": false,
8187
+ "type": "string",
8188
+ "value_allowed_null": false
8189
+ },
8190
+ {
8191
+ "disabled": false,
8192
+ "document": "当前数据库​​:线程正在使用的数据库名(未选择数据库时为 空串)。",
8193
+ "example": "mysql",
8194
+ "member": "string",
8195
+ "name": "Db",
8196
+ "output_required": false,
8197
+ "type": "string",
8198
+ "value_allowed_null": false
8199
+ },
8200
+ {
8201
+ "disabled": false,
8202
+ "document": "命令类型​​:线程正在执行的命令类型。常见值:\n\n- Sleep:空闲等待状态(等待新查询)。\n- Query:正在执行查询或 SQL 语句。\n- Binlog Dump:主服务器线程向从服务器发送二进制日志。\n- Connect:客户端正在连接。\n- Killed:线程被终止但未完全退出。",
8203
+ "example": "Query",
8204
+ "member": "string",
8205
+ "name": "Command",
8206
+ "output_required": false,
8207
+ "type": "string",
8208
+ "value_allowed_null": false
8209
+ },
8210
+ {
8211
+ "disabled": false,
8212
+ "document": "执行时间(秒)​​:线程在当前状态持续的秒数。",
8213
+ "example": "10",
8214
+ "member": "int64",
8215
+ "name": "Time",
8216
+ "output_required": false,
8217
+ "type": "int",
8218
+ "value_allowed_null": false
8219
+ },
8220
+ {
8221
+ "disabled": false,
8222
+ "document": "执行开始时间(秒)​​:线程在当前状态开始执行的时间。",
8223
+ "example": "2025-06-24 11:27:26",
8224
+ "member": "string",
8225
+ "name": "ProcessStartTime",
8226
+ "output_required": false,
8227
+ "type": "string",
8228
+ "value_allowed_null": false
8229
+ },
8230
+ {
8231
+ "disabled": false,
8232
+ "document": "​​状态描述​​:线程当前的详细操作状态。常见值:\n\n- Sending data:正在处理/发送数据。\n- Locked:等待表锁释放(例如 MyISAM 表级锁)。\n- Sorting result:排序查询结果。\n- Updating:更新表中数据。\n- 当为NULL返回空串:无明确状态(如 Sleep 时)。",
8233
+ "example": "User sleep",
8234
+ "member": "string",
8235
+ "name": "State",
8236
+ "output_required": false,
8237
+ "type": "string",
8238
+ "value_allowed_null": false
8239
+ },
8240
+ {
8241
+ "disabled": false,
8242
+ "document": "执行语句​​:正在执行的 SQL 语句(前 1024 字符)。",
8243
+ "example": "select * from information_schema.processlist",
8244
+ "member": "string",
8245
+ "name": "Info",
8246
+ "output_required": false,
8247
+ "type": "string",
8248
+ "value_allowed_null": false
8249
+ }
8250
+ ],
8251
+ "usage": "out"
8252
+ },
7923
8253
  "RegionInfo": {
7924
8254
  "document": "售卖可用区信息",
7925
8255
  "members": [
@@ -292,6 +292,14 @@
292
292
  "title": "获取数据库实例主备节点信息"
293
293
  }
294
294
  ],
295
+ "DescribeInstanceSSLAttributes": [
296
+ {
297
+ "document": "",
298
+ "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceSSLAttributes\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-xxxxxx\"\n}",
299
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"RequestId\": \"64fca3d9-df2c-4cfb-814d-xxx\"\n }\n}",
300
+ "title": "获取实例ssl属性请求示例"
301
+ }
302
+ ],
295
303
  "DescribeLogFileRetentionPeriod": [
296
304
  {
297
305
  "document": "",
@@ -316,6 +324,14 @@
316
324
  "title": "查询新购云数据库实例的价格"
317
325
  }
318
326
  ],
327
+ "DescribeProcessList": [
328
+ {
329
+ "document": "",
330
+ "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProcessList\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-048udnfz\",\n \"NodeId\": \"7b1f6e62b767\"\n}",
331
+ "output": "{\n \"Response\": {\n \"ProcessList\": [\n {\n \"Command\": \"Sleep\",\n \"Db\": \"mysql\",\n \"Host\": \"9.71.144.188:55615\",\n \"Id\": 951069,\n \"Info\": \"\",\n \"ProcessStartTime\": \"2025-06-24 11:27:26\",\n \"State\": \"\",\n \"Time\": 30,\n \"User\": \"root\"\n }\n ],\n \"RequestId\": \"d4eb7e99-b3e6-45d6-ae6f-7358c7511cad-013\"\n }\n}",
332
+ "title": "查询主节点当前正在运行的线程"
333
+ }
334
+ ],
319
335
  "DescribeProjectSecurityGroups": [
320
336
  {
321
337
  "document": "",
@@ -516,6 +532,22 @@
516
532
  "title": "无"
517
533
  }
518
534
  ],
535
+ "ModifyInstanceProtectedProperty": [
536
+ {
537
+ "document": "调用成功",
538
+ "input": "POST / HTTP/1.1\nHost: mariadb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceProtectedProperty\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsql-cn1peun5\",\n \"ProtectedProperty\": 1\n}",
539
+ "output": "{\n \"Response\": {\n \"RequestId\": \"8f6e63e1-ca64-42fa-bf67-021d78246dfc\"\n }\n}",
540
+ "title": "修改删除保护属性调用示例"
541
+ }
542
+ ],
543
+ "ModifyInstanceSSLAttributes": [
544
+ {
545
+ "document": "",
546
+ "input": "https://mariadb.tencentcloudapi.com/?Action=ModifyInstanceSSLAttributes\n&InstanceId=tdsql-jv8z8fhl\n&SSLEnabled=1\n&<公共请求参数>",
547
+ "output": "{\n \"Response\": {\n \"RequestId\": \"14f6980a-7fe1-11ea-b896-525400542aa6\"\n }\n}",
548
+ "title": "请求示例DEMO"
549
+ }
550
+ ],
519
551
  "ModifyInstanceVip": [
520
552
  {
521
553
  "document": "",
@@ -26973,7 +26973,7 @@
26973
26973
  },
26974
26974
  {
26975
26975
  "disabled": false,
26976
- "document": "刷新、预热失败描述。",
26976
+ "document": "清除缓存、预热缓存的失败原因描述。",
26977
26977
  "example": "回源失败,可尝试重新提交,或检查源站是否出现以下问题:服务不可用、响应超时、触发限速策略、安全策略限制、网络故障、或达到带宽/连接数上限。",
26978
26978
  "member": "string",
26979
26979
  "name": "FailMessage",
@@ -5909,7 +5909,7 @@
5909
5909
  },
5910
5910
  {
5911
5911
  "disabled": false,
5912
- "document": "是否保存命中文件 0 默认不保存 1 保存命中文件",
5912
+ "document": "是否保存文件 0不保存文件 1保存所有文件 2仅保存命中文件",
5913
5913
  "example": "0",
5914
5914
  "member": "uint64",
5915
5915
  "name": "SaveModerationFile",
@@ -507,7 +507,7 @@
507
507
  "DeployContainerGroup": [
508
508
  {
509
509
  "document": "",
510
- "input": "POST / HTTP/1.1\nHost: tsf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployContainerGroup\n<公共请求参数>\n\n{\n \"DoNotStart\": \"false\",\n \"MemRequest\": \"1024\",\n \"UpdateType\": \"1\",\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"InstanceNum\": 1,\n \"RepoName\": \"tsf_10000617xxxx/test\",\n \"TagName\": \"v1\",\n \"CpuRequest\": \"0.54\",\n \"JvmOpts\": \"-Xms128m-Xmx512m-XX:MetaspaceSize=128m-XX:MaxMetaspaceSize=512m\",\n \"UpdateIvl\": 10,\n \"GroupId\": \"group-6a79x94v\"\n}",
510
+ "input": "POST / HTTP/1.1\nHost: tsf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployContainerGroup\n<公共请求参数>\n\n{\n \"DoNotStart\": \"false\",\n \"MemRequest\": \"1024\",\n \"UpdateType\": 1,\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"InstanceNum\": 1,\n \"RepoName\": \"tsf_10000617xxxx/test\",\n \"TagName\": \"v1\",\n \"CpuRequest\": \"0.54\",\n \"JvmOpts\": \"-Xms128m-Xmx512m-XX:MetaspaceSize=128m-XX:MaxMetaspaceSize=512m\",\n \"UpdateIvl\": 10,\n \"GroupId\": \"group-6a79x94v\"\n}",
511
511
  "output": "{\n \"Response\": {\n \"RequestId\": \"b481cffd-6b00-463f-a1ae-7afe5fd5fa2e\",\n \"Result\": true\n }\n}",
512
512
  "title": "部署容器应用"
513
513
  }
@@ -764,7 +764,7 @@
764
764
  "members": [
765
765
  {
766
766
  "disabled": false,
767
- "document": "特效模板名称。请在 [视频特效模版列表](https://cloud.tencent.com/document/product/1616/119194) 中选择想要生成的特效对应的 template 名称。",
767
+ "document": "特效模板名称。请在 [视频特效模板列表](https://cloud.tencent.com/document/product/1616/119194) 中选择想要生成的特效对应的 template 名称。",
768
768
  "example": "hug",
769
769
  "member": "string",
770
770
  "name": "Template",
@@ -1078,6 +1078,13 @@
1078
1078
  "output": "ModifyOwaspWhiteRuleResponse",
1079
1079
  "status": "online"
1080
1080
  },
1081
+ "ModifyProtectionLevel": {
1082
+ "document": "更改防护等级",
1083
+ "input": "ModifyProtectionLevelRequest",
1084
+ "name": "更改防护等级",
1085
+ "output": "ModifyProtectionLevelResponse",
1086
+ "status": "online"
1087
+ },
1081
1088
  "ModifyProtectionStatus": {
1082
1089
  "document": "开启、关闭WAF开关",
1083
1090
  "input": "ModifyProtectionStatusRequest",
@@ -21255,6 +21262,42 @@
21255
21262
  ],
21256
21263
  "type": "object"
21257
21264
  },
21265
+ "ModifyProtectionLevelRequest": {
21266
+ "document": "ModifyProtectionLevel请求参数结构体",
21267
+ "members": [
21268
+ {
21269
+ "disabled": false,
21270
+ "document": "客户域名",
21271
+ "example": "admin.com",
21272
+ "member": "string",
21273
+ "name": "Domain",
21274
+ "required": false,
21275
+ "type": "string"
21276
+ },
21277
+ {
21278
+ "disabled": false,
21279
+ "document": "防护等级,100,200,300",
21280
+ "example": "200",
21281
+ "member": "int64",
21282
+ "name": "Level",
21283
+ "required": false,
21284
+ "type": "int"
21285
+ }
21286
+ ],
21287
+ "type": "object"
21288
+ },
21289
+ "ModifyProtectionLevelResponse": {
21290
+ "document": "ModifyProtectionLevel返回参数结构体",
21291
+ "members": [
21292
+ {
21293
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
21294
+ "member": "string",
21295
+ "name": "RequestId",
21296
+ "type": "string"
21297
+ }
21298
+ ],
21299
+ "type": "object"
21300
+ },
21258
21301
  "ModifyProtectionStatusRequest": {
21259
21302
  "document": "ModifyProtectionStatus请求参数结构体",
21260
21303
  "members": [
@@ -1292,6 +1292,14 @@
1292
1292
  "title": "修改规则白名单"
1293
1293
  }
1294
1294
  ],
1295
+ "ModifyProtectionLevel": [
1296
+ {
1297
+ "document": "",
1298
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyProtectionLevel\n<公共请求参数>\n\n{\n \"Domain\": \"admin.qcloudwaf.com\",\n \"Level\": 100\n}",
1299
+ "output": "{\n \"Response\": {\n \"RequestId\": \"46757c6e-786c-48ca-b5c4-9fa29ece1c9e\"\n }\n}",
1300
+ "title": "更改防护等级"
1301
+ }
1302
+ ],
1295
1303
  "ModifyProtectionStatus": [
1296
1304
  {
1297
1305
  "document": "",
@@ -5841,6 +5841,58 @@ def doDescribeDomainCountInfo(args, parsed_globals):
5841
5841
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5842
5842
 
5843
5843
 
5844
+ def doModifyProtectionLevel(args, parsed_globals):
5845
+ g_param = parse_global_arg(parsed_globals)
5846
+
5847
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5848
+ cred = credential.CVMRoleCredential()
5849
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5850
+ cred = credential.STSAssumeRoleCredential(
5851
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5852
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5853
+ )
5854
+ 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):
5855
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5856
+ else:
5857
+ cred = credential.Credential(
5858
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5859
+ )
5860
+ http_profile = HttpProfile(
5861
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5862
+ reqMethod="POST",
5863
+ endpoint=g_param[OptionsDefine.Endpoint],
5864
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5865
+ )
5866
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5867
+ if g_param[OptionsDefine.Language]:
5868
+ profile.language = g_param[OptionsDefine.Language]
5869
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5870
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
5871
+ client._sdkVersion += ("_CLI_" + __version__)
5872
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5873
+ model = models.ModifyProtectionLevelRequest()
5874
+ model.from_json_string(json.dumps(args))
5875
+ start_time = time.time()
5876
+ while True:
5877
+ rsp = client.ModifyProtectionLevel(model)
5878
+ result = rsp.to_json_string()
5879
+ try:
5880
+ json_obj = json.loads(result)
5881
+ except TypeError as e:
5882
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5883
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5884
+ break
5885
+ cur_time = time.time()
5886
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5887
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5888
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5889
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5890
+ else:
5891
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5892
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5893
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5894
+
5895
+
5844
5896
  def doDeleteSpartaProtection(args, parsed_globals):
5845
5897
  g_param = parse_global_arg(parsed_globals)
5846
5898
 
@@ -9240,6 +9292,7 @@ ACTION_MAP = {
9240
9292
  "AddAttackWhiteRule": doAddAttackWhiteRule,
9241
9293
  "AddAreaBanAreas": doAddAreaBanAreas,
9242
9294
  "DescribeDomainCountInfo": doDescribeDomainCountInfo,
9295
+ "ModifyProtectionLevel": doModifyProtectionLevel,
9243
9296
  "DeleteSpartaProtection": doDeleteSpartaProtection,
9244
9297
  "SwitchDomainRules": doSwitchDomainRules,
9245
9298
  "UpsertCCAutoStatus": doUpsertCCAutoStatus,
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "metadata": {
12
12
  "apiVersion": "2025-05-08",
13
- "api_brief": "联网搜索API,以json形式向客户提供搜索结果数据,包含不仅限于标题、摘要、内容来源url等信息",
13
+ "api_brief": "联网搜索API,以JSON形式向客户提供搜索结果数据,包含不仅限于标题、摘要、内容来源url等信息",
14
14
  "serviceNameCN": "联网搜索API",
15
15
  "serviceShortName": "wsa"
16
16
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1379.1
3
+ Version: 3.0.1380.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1379
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1380
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介