tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.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 (85) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/batch_client.py +4 -110
  3. tccli/services/batch/v20170312/api.json +0 -527
  4. tccli/services/batch/v20170312/examples.json +0 -16
  5. tccli/services/bi/v20220105/api.json +87 -1
  6. tccli/services/bi/v20220105/examples.json +7 -7
  7. tccli/services/cam/v20190116/api.json +84 -84
  8. tccli/services/cbs/v20170312/api.json +24 -24
  9. tccli/services/cdn/v20180606/api.json +240 -179
  10. tccli/services/cdn/v20180606/examples.json +1 -1
  11. tccli/services/cfg/v20210820/api.json +5 -3
  12. tccli/services/cfg/v20210820/examples.json +1 -1
  13. tccli/services/chdfs/v20201112/api.json +7 -1
  14. tccli/services/cls/cls_client.py +235 -23
  15. tccli/services/cls/v20201016/api.json +457 -3
  16. tccli/services/cls/v20201016/examples.json +32 -0
  17. tccli/services/controlcenter/v20230110/api.json +63 -58
  18. tccli/services/cvm/v20170312/api.json +2 -2
  19. tccli/services/dbbrain/dbbrain_client.py +106 -0
  20. tccli/services/dbbrain/v20191016/api.json +365 -6
  21. tccli/services/dbbrain/v20191016/examples.json +8 -0
  22. tccli/services/dbbrain/v20210527/api.json +550 -21
  23. tccli/services/dbbrain/v20210527/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +102 -6
  25. tccli/services/dcdb/v20180411/examples.json +4 -4
  26. tccli/services/dlc/dlc_client.py +53 -0
  27. tccli/services/dlc/v20210125/api.json +162 -0
  28. tccli/services/dlc/v20210125/examples.json +8 -0
  29. tccli/services/dnspod/v20210323/api.json +128 -127
  30. tccli/services/ess/v20201111/api.json +1 -1
  31. tccli/services/essbasic/v20210526/api.json +5 -5
  32. tccli/services/facefusion/v20220927/api.json +2 -2
  33. tccli/services/facefusion/v20220927/examples.json +1 -1
  34. tccli/services/gs/v20191118/api.json +22 -3
  35. tccli/services/gs/v20191118/examples.json +1 -1
  36. tccli/services/hai/v20230812/api.json +16 -16
  37. tccli/services/iotcloud/v20210408/api.json +2 -2
  38. tccli/services/iotcloud/v20210408/examples.json +3 -3
  39. tccli/services/iotexplorer/v20190423/api.json +947 -857
  40. tccli/services/iotexplorer/v20190423/examples.json +83 -83
  41. tccli/services/live/v20180801/api.json +2 -2
  42. tccli/services/lkeap/v20240522/api.json +3 -3
  43. tccli/services/mariadb/v20170312/api.json +84 -8
  44. tccli/services/mariadb/v20170312/examples.json +3 -3
  45. tccli/services/mps/v20190612/api.json +63 -61
  46. tccli/services/mps/v20190612/examples.json +48 -48
  47. tccli/services/mqtt/v20240516/api.json +62 -12
  48. tccli/services/mqtt/v20240516/examples.json +6 -6
  49. tccli/services/ocr/ocr_client.py +307 -360
  50. tccli/services/ocr/v20181119/api.json +73 -289
  51. tccli/services/ocr/v20181119/examples.json +0 -8
  52. tccli/services/organization/v20210331/api.json +9 -0
  53. tccli/services/partners/v20180321/api.json +10 -0
  54. tccli/services/sqlserver/v20180328/api.json +9 -0
  55. tccli/services/sqlserver/v20180328/examples.json +1 -1
  56. tccli/services/tcb/v20180608/api.json +11 -1
  57. tccli/services/tdmq/v20200217/api.json +30 -0
  58. tccli/services/teo/v20220106/api.json +4 -4
  59. tccli/services/teo/v20220901/api.json +48 -7
  60. tccli/services/teo/v20220901/examples.json +51 -15
  61. tccli/services/tione/v20211111/api.json +25 -5
  62. tccli/services/tke/v20180525/api.json +2 -2
  63. tccli/services/trro/trro_client.py +269 -4
  64. tccli/services/trro/v20220325/api.json +504 -0
  65. tccli/services/trro/v20220325/examples.json +40 -0
  66. tccli/services/tse/v20201207/api.json +34 -34
  67. tccli/services/vdb/v20230616/api.json +738 -15
  68. tccli/services/vdb/v20230616/examples.json +64 -0
  69. tccli/services/vdb/vdb_client.py +428 -4
  70. tccli/services/vod/v20180717/api.json +9 -0
  71. tccli/services/vod/v20240718/api.json +985 -0
  72. tccli/services/vod/v20240718/examples.json +66 -0
  73. tccli/services/vod/vod_client.py +330 -12
  74. tccli/services/vpc/v20170312/api.json +175 -0
  75. tccli/services/vpc/v20170312/examples.json +8 -0
  76. tccli/services/vpc/vpc_client.py +53 -0
  77. tccli/services/wedata/v20210820/api.json +464 -1
  78. tccli/services/wedata/v20210820/examples.json +22 -0
  79. tccli/services/wedata/wedata_client.py +114 -8
  80. tccli/services/weilingwith/v20230427/api.json +10 -10
  81. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
  82. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
  83. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
  84. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
  85. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -384,6 +384,14 @@
384
384
  "title": "获取 Redis 实例 Proxy 实时会话详情列表"
385
385
  }
386
386
  ],
387
+ "DescribeRedisSlowLogTopSqls": [
388
+ {
389
+ "document": "",
390
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRedisSlowLogTopSqls\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-k1gjspdk\",\n \"StartTime\": \"2025-03-27 02:00:00\",\n \"EndTime\": \"2025-03-27 02:20:00\",\n \"Product\": \"redis\"\n}",
391
+ "output": "{\n \"Response\": {\n \"RequestId\": \"65f3eaaf-935c-4084-8eb5-0c04fbbda952\",\n \"Rows\": [\n {\n \"Cmd\": \"bgsave\",\n \"Detail\": \"bgsave\",\n \"ExecTimes\": 1,\n \"QueryTime\": 0.01,\n \"QueryTimeAvg\": 0.01,\n \"QueryTimeMax\": 0.01,\n \"QueryTimeMin\": 0.01,\n \"QueryTimeRatio\": 100\n }\n ],\n \"TotalCount\": 1\n }\n}",
392
+ "title": "获取redis慢SQL模板列表"
393
+ }
394
+ ],
387
395
  "DescribeRedisTopBigKeys": [
388
396
  {
389
397
  "document": "",
@@ -424,6 +432,14 @@
424
432
  "title": "查询安全审计日志导出任务列表"
425
433
  }
426
434
  ],
435
+ "DescribeSlowLogQueryTimeStats": [
436
+ {
437
+ "document": "",
438
+ "input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSlowLogQueryTimeStats\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-k1gjspdk\",\n \"StartTime\": \"2025-03-27 02:00:00\",\n \"EndTime\": \"2025-03-27 02:20:00\",\n \"Product\": \"redis\"\n}",
439
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Count\": 0,\n \"Ratio\": 0,\n \"To\": 0.001\n },\n {\n \"Count\": 0,\n \"From\": 0.001,\n \"Ratio\": 0,\n \"To\": 0.01\n },\n {\n \"Count\": 1,\n \"From\": 0.01,\n \"Ratio\": 100,\n \"To\": 0.1\n },\n {\n \"Count\": 0,\n \"From\": 0.1,\n \"Ratio\": 0,\n \"To\": 0.5\n },\n {\n \"Count\": 0,\n \"From\": 0.5,\n \"Ratio\": 0,\n \"To\": 1\n },\n {\n \"Count\": 0,\n \"From\": 1,\n \"Ratio\": 0,\n \"To\": 5\n },\n {\n \"Count\": 0,\n \"From\": 5,\n \"Ratio\": 0,\n \"To\": 10\n },\n {\n \"Count\": 0,\n \"From\": 10,\n \"Ratio\": 0,\n \"To\": 15\n },\n {\n \"Count\": 0,\n \"From\": 15,\n \"Ratio\": 0\n }\n ],\n \"RequestId\": \"1ff0b4cf-f59a-440b-a47d-0f3e27eaa172\",\n \"TotalCount\": 9\n }\n}",
440
+ "title": "获取慢日志分段耗时统计"
441
+ }
442
+ ],
427
443
  "DescribeSlowLogTimeSeriesStats": [
428
444
  {
429
445
  "document": "",
@@ -811,6 +811,16 @@
811
811
  "output_required": true,
812
812
  "type": "string",
813
813
  "value_allowed_null": false
814
+ },
815
+ {
816
+ "disabled": false,
817
+ "document": "节点所在可用区",
818
+ "example": "ap-guangzhou-2",
819
+ "member": "string",
820
+ "name": "Zone",
821
+ "output_required": true,
822
+ "type": "string",
823
+ "value_allowed_null": false
814
824
  }
815
825
  ],
816
826
  "usage": "out"
@@ -1548,6 +1558,15 @@
1548
1558
  "name": "DcnSyncMode",
1549
1559
  "required": false,
1550
1560
  "type": "int"
1561
+ },
1562
+ {
1563
+ "disabled": false,
1564
+ "document": "Cpu类型,如:英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD",
1565
+ "example": "Intel/AMD",
1566
+ "member": "string",
1567
+ "name": "CpuType",
1568
+ "required": false,
1569
+ "type": "string"
1551
1570
  }
1552
1571
  ],
1553
1572
  "type": "object"
@@ -2092,6 +2111,15 @@
2092
2111
  "name": "DcnSyncMode",
2093
2112
  "required": false,
2094
2113
  "type": "int"
2114
+ },
2115
+ {
2116
+ "disabled": false,
2117
+ "document": "Cpu类型,如:英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD",
2118
+ "example": "Intel/AMD",
2119
+ "member": "string",
2120
+ "name": "CpuType",
2121
+ "required": false,
2122
+ "type": "string"
2095
2123
  }
2096
2124
  ],
2097
2125
  "type": "object"
@@ -5325,6 +5353,16 @@
5325
5353
  "type": "int",
5326
5354
  "value_allowed_null": false
5327
5355
  },
5356
+ {
5357
+ "disabled": false,
5358
+ "document": "cpu类型,英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD\t",
5359
+ "example": "Intel/AMD",
5360
+ "member": "string",
5361
+ "name": "CpuType",
5362
+ "output_required": true,
5363
+ "type": "string",
5364
+ "value_allowed_null": false
5365
+ },
5328
5366
  {
5329
5367
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5330
5368
  "member": "string",
@@ -5691,6 +5729,15 @@
5691
5729
  "name": "AmountUnit",
5692
5730
  "required": false,
5693
5731
  "type": "string"
5732
+ },
5733
+ {
5734
+ "disabled": false,
5735
+ "document": "Cpu类型,如:英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD",
5736
+ "example": "Intel/AMD",
5737
+ "member": "string",
5738
+ "name": "CpuType",
5739
+ "required": false,
5740
+ "type": "string"
5694
5741
  }
5695
5742
  ],
5696
5743
  "type": "object"
@@ -5704,7 +5751,7 @@
5704
5751
  "example": "42240",
5705
5752
  "member": "int64",
5706
5753
  "name": "OriginalPrice",
5707
- "required": true,
5754
+ "output_required": true,
5708
5755
  "type": "int",
5709
5756
  "value_allowed_null": false
5710
5757
  },
@@ -5714,7 +5761,7 @@
5714
5761
  "example": "42240",
5715
5762
  "member": "int64",
5716
5763
  "name": "Price",
5717
- "required": true,
5764
+ "output_required": true,
5718
5765
  "type": "int",
5719
5766
  "value_allowed_null": false
5720
5767
  },
@@ -6634,7 +6681,17 @@
6634
6681
  },
6635
6682
  "DescribeShardSpecRequest": {
6636
6683
  "document": "DescribeShardSpec请求参数结构体",
6637
- "members": [],
6684
+ "members": [
6685
+ {
6686
+ "disabled": false,
6687
+ "document": "Cpu类型,如:英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD",
6688
+ "example": "Intel/AMD",
6689
+ "member": "string",
6690
+ "name": "CpuType",
6691
+ "required": false,
6692
+ "type": "string"
6693
+ }
6694
+ ],
6638
6695
  "type": "object"
6639
6696
  },
6640
6697
  "DescribeShardSpecResponse": {
@@ -6646,7 +6703,7 @@
6646
6703
  "example": "无",
6647
6704
  "member": "SpecConfig",
6648
6705
  "name": "SpecConfig",
6649
- "required": true,
6706
+ "output_required": true,
6650
6707
  "type": "list",
6651
6708
  "value_allowed_null": false
6652
6709
  },
@@ -8325,6 +8382,16 @@
8325
8382
  "output_required": true,
8326
8383
  "type": "string",
8327
8384
  "value_allowed_null": false
8385
+ },
8386
+ {
8387
+ "disabled": false,
8388
+ "document": "节点所在的可用区",
8389
+ "example": "ap-guangzhou-2",
8390
+ "member": "string",
8391
+ "name": "Zone",
8392
+ "output_required": true,
8393
+ "type": "string",
8394
+ "value_allowed_null": false
8328
8395
  }
8329
8396
  ],
8330
8397
  "usage": "out"
@@ -8685,12 +8752,32 @@
8685
8752
  {
8686
8753
  "disabled": false,
8687
8754
  "document": "可选择的主可用区和从可用区",
8688
- "example": "[{ \"MasterZone\":{ \"Zone\":\"ap-guangzhou-1\", \"ZoneId\":100001, \"ZoneName\":\"广州一区\", \"OnSale\":true }, \"SlaveZones\":[{ \"Zone\":\"ap-guangzhou-1\", \"ZoneId\":100001, \"ZoneName\":\"广州一区\", \"OnSale\":true }, { \"Zone\":\"ap-guangzhou-2\", \"ZoneId\":100002, \"ZoneName\":\"广州二区\", \"OnSale\":true }] }, { \"MasterZone\":{ \"Zone\":\"ap-guangzhou-2\", \"ZoneId\":100002, \"ZoneName\":\"广州二区\", \"OnSale\":true }, \"SlaveZones\":[{ \"Zone\":\"ap-guangzhou-1\", \"ZoneId\":100001, \"ZoneName\":\"广州一区\", \"OnSale\":true }, { \"Zone\":\"ap-guangzhou-2\", \"ZoneId\":100002, \"ZoneName\":\"广州二区\", \"OnSale\":true }] }]",
8755
+ "example": "",
8689
8756
  "member": "ShardZoneChooseInfo",
8690
8757
  "name": "AvailableChoice",
8691
8758
  "output_required": true,
8692
8759
  "type": "list",
8693
8760
  "value_allowed_null": false
8761
+ },
8762
+ {
8763
+ "disabled": false,
8764
+ "document": "主机类型,如:物理机:Machine,容器:Container。",
8765
+ "example": "Machine",
8766
+ "member": "string",
8767
+ "name": "HostType",
8768
+ "output_required": false,
8769
+ "type": "string",
8770
+ "value_allowed_null": false
8771
+ },
8772
+ {
8773
+ "disabled": false,
8774
+ "document": "Cpu类型,如:英特尔:Intel/AMD,海光:Hygon",
8775
+ "example": "Intel/AMD",
8776
+ "member": "string",
8777
+ "name": "CpuType",
8778
+ "output_required": false,
8779
+ "type": "string",
8780
+ "value_allowed_null": false
8694
8781
  }
8695
8782
  ],
8696
8783
  "usage": "out"
@@ -9684,7 +9771,7 @@
9684
9771
  },
9685
9772
  {
9686
9773
  "disabled": false,
9687
- "document": "切换的目标区域,会自动选择该可用区中延迟最低的节点。",
9774
+ "document": "指定可用区标识符,具体含义由zoneMode参数决定。 \n\n- 当zoneMode为target时表示目标可用区 \n\n- 当zoneMode为avoid时表示需避开的故障可用区",
9688
9775
  "example": "ap-guangzhou-3",
9689
9776
  "member": "string",
9690
9777
  "name": "Zone",
@@ -9699,6 +9786,15 @@
9699
9786
  "name": "ShardInstanceIds",
9700
9787
  "required": false,
9701
9788
  "type": "list"
9789
+ },
9790
+ {
9791
+ "disabled": false,
9792
+ "document": "可用区模式选择器,定义zone参数的语义类型。 - 默认值:target - 可选值:target, avoid",
9793
+ "example": "target, avoid",
9794
+ "member": "string",
9795
+ "name": "ZoneMode",
9796
+ "required": false,
9797
+ "type": "string"
9702
9798
  }
9703
9799
  ],
9704
9800
  "type": "object"
@@ -240,10 +240,10 @@
240
240
  ],
241
241
  "DescribeDCDBInstanceDetail": [
242
242
  {
243
- "document": "查询实例详情",
244
- "input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDCDBInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-cgg0czdx\"\n}",
245
- "output": "{\n \"Response\": {\n \"AutoRenewFlag\": 0,\n \"Cpu\": 2,\n \"CreateTime\": \"2025-03-07 10:46:30\",\n \"DbEngine\": \"MySQL\",\n \"DbVersion\": \"8.0.24\",\n \"DbVersionId\": \"8.0\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"EncryptStatus\": 0,\n \"ExclusterId\": \"\",\n \"ExclusterType\": 0,\n \"InstanceId\": \"tdsqlshard-cgg0czdx\",\n \"InstanceName\": \"2.5\",\n \"InstanceType\": 2,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": 1,\n \"IsDcnStrongSyncSupported\": 0,\n \"IsDcnSwitchSupported\": 1,\n \"IsEncryptSupported\": 0,\n \"IsMaxUserConnectionsSupported\": true,\n \"IsPhysicalReplicationSupported\": false,\n \"LogStorage\": 16,\n \"Machine\": \"TS85\",\n \"MasterZone\": \"ap-guangzhou-3\",\n \"Memory\": 4,\n \"NodeCount\": 2,\n \"PayMode\": \"postpaid\",\n \"PeriodEndTime\": \"0001-01-01 00:00:00\",\n \"Pid\": 1001670,\n \"ProjectId\": 0,\n \"Qps\": 2100,\n \"Region\": \"ap-guangzhou\",\n \"RequestId\": \"8e1df28e-3cfd-4735-991a-85356104c5c5\",\n \"ReservedNetResources\": [],\n \"ResourceTags\": [],\n \"RsAccessStrategy\": 0,\n \"Shards\": [\n {\n \"Cpu\": 1,\n \"CreateTime\": \"2025-03-07 10:46:30\",\n \"LogDisk\": 8,\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"e352195dbcc7\",\n \"Role\": \"master\"\n },\n {\n \"NodeId\": \"7686cda46e3c\",\n \"Role\": \"slave\"\n }\n ],\n \"ProxyVersion\": \"\",\n \"ShardInstanceId\": \"shard-p6hy8o3t\",\n \"ShardMasterZone\": \"ap-guangzhou-3\",\n \"ShardSerialId\": \"set_1741315924_3\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-3\"\n ],\n \"Status\": 1,\n \"StatusDesc\": \"调整配置中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.012\n },\n {\n \"Cpu\": 1,\n \"CreateTime\": \"2025-03-07 10:46:30\",\n \"LogDisk\": 8,\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"262cf711c6cc\",\n \"Role\": \"master\"\n },\n {\n \"NodeId\": \"7ade05da7488\",\n \"Role\": \"slave\"\n }\n ],\n \"ProxyVersion\": \"\",\n \"ShardInstanceId\": \"shard-502tx32l\",\n \"ShardMasterZone\": \"ap-guangzhou-3\",\n \"ShardSerialId\": \"set_1741315737_1\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-3\"\n ],\n \"Status\": 1,\n \"StatusDesc\": \"调整配置中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.012\n }\n ],\n \"SlaveZones\": [\n \"ap-guangzhou-3\"\n ],\n \"Status\": 1,\n \"StatusDesc\": \"调整配置中\",\n \"Storage\": 20,\n \"StorageUsage\": 0.012,\n \"SubnetId\": \"subnet-ms3w1jlq\",\n \"Vip\": \"10.1.1.45\",\n \"Vip6\": \"\",\n \"VpcId\": \"vpc-mgfyl2p3\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\"\n }\n}",
246
- "title": "查询实例详情"
243
+ "document": "本接口用于查询实例详细信息",
244
+ "input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDCDBInstanceDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-hn35cf0n\"\n}",
245
+ "output": "{\n \"Response\": {\n \"AutoRenewFlag\": 0,\n \"Cpu\": 2,\n \"CpuType\": \"Intel/AMD\",\n \"CreateTime\": \"2025-03-22 17:01:11\",\n \"DbEngine\": \"MySQL\",\n \"DbVersion\": \"8.0.30\",\n \"DbVersionId\": \"8.0\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"EncryptStatus\": 0,\n \"ExclusterId\": \"dbdc-00wb5kz5\",\n \"ExclusterType\": 0,\n \"InstanceId\": \"tdsqlshard-hn35cf0n\",\n \"InstanceName\": \"QT4st6gv8.0\",\n \"InstanceType\": 1,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": 1,\n \"IsDcnStrongSyncSupported\": 0,\n \"IsDcnSwitchSupported\": 1,\n \"IsEncryptSupported\": 1,\n \"IsMaxUserConnectionsSupported\": true,\n \"IsPhysicalReplicationSupported\": false,\n \"LogStorage\": 16,\n \"Machine\": \"SH12\",\n \"MasterZone\": \"ap-guangzhou-2\",\n \"Memory\": 4,\n \"NodeCount\": 2,\n \"PayMode\": \"prepaid\",\n \"PeriodEndTime\": \"2025-03-28 15:33:44\",\n \"Pid\": 11128,\n \"ProjectId\": 0,\n \"Qps\": 2100,\n \"Region\": \"ap-guangzhou\",\n \"RequestId\": \"37f48ae6-6e19-421c-bc3d-9e5215bce840\",\n \"ReservedNetResources\": [],\n \"ResourceTags\": [],\n \"RsAccessStrategy\": 0,\n \"Shards\": [\n {\n \"Cpu\": 1,\n \"CreateTime\": \"2025-03-22 17:01:12\",\n \"LogDisk\": 8,\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"412f4810600c\",\n \"Role\": \"master\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeId\": \"a0872cc18e43\",\n \"Role\": \"slave\",\n \"Zone\": \"ap-guangzhou-2\"\n }\n ],\n \"ProxyVersion\": \"\",\n \"ShardInstanceId\": \"shard-alt5mizl\",\n \"ShardMasterZone\": \"ap-guangzhou-2\",\n \"ShardSerialId\": \"set_1742635118_5\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-2\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.01\n },\n {\n \"Cpu\": 1,\n \"CreateTime\": \"2025-03-22 17:01:12\",\n \"LogDisk\": 8,\n \"Memory\": 2,\n \"NodeCount\": 2,\n \"NodesInfo\": [\n {\n \"NodeId\": \"557c152b5be8\",\n \"Role\": \"master\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n {\n \"NodeId\": \"5fa1b08b00e8\",\n \"Role\": \"slave\",\n \"Zone\": \"ap-guangzhou-2\"\n }\n ],\n \"ProxyVersion\": \"\",\n \"ShardInstanceId\": \"shard-l4vjg0a3\",\n \"ShardMasterZone\": \"ap-guangzhou-2\",\n \"ShardSerialId\": \"set_1742635315_7\",\n \"ShardSlaveZones\": [\n \"ap-guangzhou-2\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageUsage\": 0.01\n }\n ],\n \"SlaveZones\": [\n \"ap-guangzhou-2\"\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 20,\n \"StorageUsage\": 0.01,\n \"SubnetId\": \"subnet-6rq8ehaq\",\n \"Vip\": \"10.0.0.50\",\n \"Vip6\": \"\",\n \"VpcId\": \"vpc-ilhphh7v\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\"\n }\n}",
246
+ "title": "获取实例详情"
247
247
  }
248
248
  ],
249
249
  "DescribeDCDBInstanceNodeInfo": [
@@ -6413,6 +6413,58 @@ def doUnbindWorkGroupsFromUser(args, parsed_globals):
6413
6413
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6414
6414
 
6415
6415
 
6416
+ def doCreateSparkSubmitTask(args, parsed_globals):
6417
+ g_param = parse_global_arg(parsed_globals)
6418
+
6419
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6420
+ cred = credential.CVMRoleCredential()
6421
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6422
+ cred = credential.STSAssumeRoleCredential(
6423
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6424
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6425
+ )
6426
+ 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):
6427
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6428
+ else:
6429
+ cred = credential.Credential(
6430
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6431
+ )
6432
+ http_profile = HttpProfile(
6433
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6434
+ reqMethod="POST",
6435
+ endpoint=g_param[OptionsDefine.Endpoint],
6436
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6437
+ )
6438
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6439
+ if g_param[OptionsDefine.Language]:
6440
+ profile.language = g_param[OptionsDefine.Language]
6441
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6442
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
6443
+ client._sdkVersion += ("_CLI_" + __version__)
6444
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6445
+ model = models.CreateSparkSubmitTaskRequest()
6446
+ model.from_json_string(json.dumps(args))
6447
+ start_time = time.time()
6448
+ while True:
6449
+ rsp = client.CreateSparkSubmitTask(model)
6450
+ result = rsp.to_json_string()
6451
+ try:
6452
+ json_obj = json.loads(result)
6453
+ except TypeError as e:
6454
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6455
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6456
+ break
6457
+ cur_time = time.time()
6458
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6459
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6460
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6461
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6462
+ else:
6463
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6464
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6465
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6466
+
6467
+
6416
6468
  def doDescribeWorkGroups(args, parsed_globals):
6417
6469
  g_param = parse_global_arg(parsed_globals)
6418
6470
 
@@ -7691,6 +7743,7 @@ ACTION_MAP = {
7691
7743
  "DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
7692
7744
  "DescribeSparkAppTasks": doDescribeSparkAppTasks,
7693
7745
  "UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,
7746
+ "CreateSparkSubmitTask": doCreateSparkSubmitTask,
7694
7747
  "DescribeWorkGroups": doDescribeWorkGroups,
7695
7748
  "CreateScript": doCreateScript,
7696
7749
  "RestartDataEngine": doRestartDataEngine,
@@ -238,6 +238,13 @@
238
238
  "output": "CreateSparkSessionBatchSQLResponse",
239
239
  "status": "online"
240
240
  },
241
+ "CreateSparkSubmitTask": {
242
+ "document": "本接口(CreateSparkSubmitTask)用于提交SparkSbumit批流任务。",
243
+ "input": "CreateSparkSubmitTaskRequest",
244
+ "name": "提交SparkSbumit批流任务",
245
+ "output": "CreateSparkSubmitTaskResponse",
246
+ "status": "online"
247
+ },
241
248
  "CreateStoreLocation": {
242
249
  "document": "该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。",
243
250
  "input": "CreateStoreLocationRequest",
@@ -4661,6 +4668,161 @@
4661
4668
  ],
4662
4669
  "type": "object"
4663
4670
  },
4671
+ "CreateSparkSubmitTaskRequest": {
4672
+ "document": "CreateSparkSubmitTask请求参数结构体",
4673
+ "members": [
4674
+ {
4675
+ "disabled": false,
4676
+ "document": "任务名称",
4677
+ "example": "test",
4678
+ "member": "string",
4679
+ "name": "TaskName",
4680
+ "required": true,
4681
+ "type": "string"
4682
+ },
4683
+ {
4684
+ "disabled": false,
4685
+ "document": "任务类型:当前支持1: BatchType, 2: StreamingType, 4: SQLType",
4686
+ "example": "1",
4687
+ "member": "uint64",
4688
+ "name": "TaskType",
4689
+ "required": true,
4690
+ "type": "int"
4691
+ },
4692
+ {
4693
+ "disabled": false,
4694
+ "document": "引擎名称,当前仅支持Spark批作业集群",
4695
+ "example": "testEngine",
4696
+ "member": "string",
4697
+ "name": "DataEngineName",
4698
+ "required": true,
4699
+ "type": "string"
4700
+ },
4701
+ {
4702
+ "disabled": false,
4703
+ "document": "指定运行的程序脚本路径,当前仅支持jar和py,对于SQLType该值设为空字符串",
4704
+ "example": "cosn://xxx.jar",
4705
+ "member": "string",
4706
+ "name": "PackagePath",
4707
+ "required": true,
4708
+ "type": "string"
4709
+ },
4710
+ {
4711
+ "disabled": false,
4712
+ "document": "指定的鉴权信息",
4713
+ "example": "1",
4714
+ "member": "int64",
4715
+ "name": "RoleArn",
4716
+ "required": true,
4717
+ "type": "int"
4718
+ },
4719
+ {
4720
+ "disabled": false,
4721
+ "document": "运行任务所需资源是否继承自集群上配置资源信息,0(默认,不继承)、1(继承,当设置为该值,则任务级资源配置可不额外指定)",
4722
+ "example": "0",
4723
+ "member": "uint64",
4724
+ "name": "IsInherit",
4725
+ "required": true,
4726
+ "type": "int"
4727
+ },
4728
+ {
4729
+ "disabled": false,
4730
+ "document": "jar任务时需要指定主程序",
4731
+ "example": "Main",
4732
+ "member": "string",
4733
+ "name": "MainClass",
4734
+ "required": false,
4735
+ "type": "string"
4736
+ },
4737
+ {
4738
+ "disabled": false,
4739
+ "document": "当前DriverSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge",
4740
+ "example": "small",
4741
+ "member": "string",
4742
+ "name": "DriverSize",
4743
+ "required": false,
4744
+ "type": "string"
4745
+ },
4746
+ {
4747
+ "disabled": false,
4748
+ "document": "当前ExecutorSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge",
4749
+ "example": "small",
4750
+ "member": "string",
4751
+ "name": "ExecutorSize",
4752
+ "required": false,
4753
+ "type": "string"
4754
+ },
4755
+ {
4756
+ "disabled": false,
4757
+ "document": "指定使用的executor数量,最小为1",
4758
+ "example": "1",
4759
+ "member": "uint64",
4760
+ "name": "ExecutorNumbers",
4761
+ "required": false,
4762
+ "type": "int"
4763
+ },
4764
+ {
4765
+ "disabled": false,
4766
+ "document": "指定使用的executor最大数量, 当该值大于ExecutorNums则自动开启动态",
4767
+ "example": "5",
4768
+ "member": "uint64",
4769
+ "name": "ExecutorMaxNumbers",
4770
+ "required": false,
4771
+ "type": "int"
4772
+ },
4773
+ {
4774
+ "disabled": false,
4775
+ "document": "提交任务的附加配置集合,当前支持Key包含:MAINARGS:程序入口参数,空格分割(SqlType任务通过该值指定base64加密后的sql)、SPARKCONFIG:Spark配置,以换行符分隔、ENI:Eni连接信息、DEPENDENCYPACKAGEPATH:依赖的程序包(--jars、--py-files:支持py/zip/egg等归档格式),多文件以逗号分隔、DEPENDENCYFILEPATH:依赖文件资源(--files: 非jar、zip),多文件以逗号分隔、DEPENDENCYARCHIVESPATH:依赖archives资源(--archives: 支持tar.gz/tgz/tar等归档格式),多文件以逗号分隔、MAXRETRIES:任务重试次数,非流任务默认为1、SPARKIMAGE:Spark镜像版本号,支持使用dlc镜像/用户自定的tcr镜像运行任务、SPARKIMAGEVERSION:Spark镜像版本名称,与SPARKIMAGE一一对应",
4776
+ "example": "无",
4777
+ "member": "KVPair",
4778
+ "name": "CmdArgs",
4779
+ "required": false,
4780
+ "type": "list"
4781
+ },
4782
+ {
4783
+ "disabled": false,
4784
+ "document": "任务来源信息",
4785
+ "example": "无",
4786
+ "member": "KVPair",
4787
+ "name": "SourceInfo",
4788
+ "required": false,
4789
+ "type": "list"
4790
+ }
4791
+ ],
4792
+ "type": "object"
4793
+ },
4794
+ "CreateSparkSubmitTaskResponse": {
4795
+ "document": "CreateSparkSubmitTask返回参数结构体",
4796
+ "members": [
4797
+ {
4798
+ "disabled": false,
4799
+ "document": "批作业ID",
4800
+ "example": "04529f7b-2e3a-70d7-72b4-a0dd3a300c",
4801
+ "member": "string",
4802
+ "name": "BatchId",
4803
+ "output_required": false,
4804
+ "type": "string",
4805
+ "value_allowed_null": false
4806
+ },
4807
+ {
4808
+ "disabled": false,
4809
+ "document": "批任务ID,用改ID进行任务的查询与删除等",
4810
+ "example": "045sjeb-2e3a-70d7-72b4-a0dd3a300c",
4811
+ "member": "string",
4812
+ "name": "TaskId",
4813
+ "output_required": false,
4814
+ "type": "string",
4815
+ "value_allowed_null": false
4816
+ },
4817
+ {
4818
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4819
+ "member": "string",
4820
+ "name": "RequestId",
4821
+ "type": "string"
4822
+ }
4823
+ ],
4824
+ "type": "object"
4825
+ },
4664
4826
  "CreateStoreLocationRequest": {
4665
4827
  "document": "CreateStoreLocation请求参数结构体",
4666
4828
  "members": [
@@ -272,6 +272,14 @@
272
272
  "title": "创建并执行Spark SQL批任务"
273
273
  }
274
274
  ],
275
+ "CreateSparkSubmitTask": [
276
+ {
277
+ "document": "本接口用于提交SparkSubmit任务",
278
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSparkSubmitTask\n<公共请求参数>\n\n{\n \"TaskName\": \"test\",\n \"TaskType\": 1,\n \"DataEngineName\": \"testEngine\",\n \"PackagePath\": \"cosn://xxx.jar\",\n \"MainClass\": \"Main\",\n \"RoleArn\": 0,\n \"IsInherit\": 1,\n \"DriverSize\": \"small\",\n \"ExecutorSize\": \"small\",\n \"ExecutorNumbers\": 1,\n \"ExecutorMaxNumbers\": 1,\n \"CmdArgs\": [\n {\n \"Key\": \"MAINARGS\",\n \"Value\": \"xejalljhhlJFJLd1gl\"\n }\n ]\n}",
279
+ "output": "{\n \"Response\": {\n \"BatchId\": \"2ade477a-9f72-44aa-9fd4-65cb739d6301\",\n \"TaskId\": \"2ae0ds7a-9f72-44aa-9fd4-65cb739d6301\",\n \"RequestId\": \"2ae4707a-9f72-44aa-9fd4-65cb739d6301\"\n }\n}",
280
+ "title": "提交SparkSubmit任务"
281
+ }
282
+ ],
275
283
  "CreateStoreLocation": [
276
284
  {
277
285
  "document": "",