tccli 3.0.1163.1__py2.py3-none-any.whl → 3.0.1165.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.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +5 -5
- tccli/services/cbs/v20170312/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +48 -12
- tccli/services/cdwdoris/cdwdoris_client.py +1260 -94
- tccli/services/cdwdoris/v20211228/api.json +3331 -617
- tccli/services/cdwdoris/v20211228/examples.json +176 -0
- tccli/services/cfs/v20190719/api.json +56 -9
- tccli/services/csip/v20221121/api.json +20 -0
- tccli/services/emr/v20190103/api.json +21 -3
- tccli/services/emr/v20190103/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +6 -6
- tccli/services/ess/v20201111/examples.json +3 -3
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +10 -1
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +110 -4
- tccli/services/iotexplorer/v20190423/api.json +190 -0
- tccli/services/iotexplorer/v20190423/examples.json +59 -1
- tccli/services/lcic/v20220817/api.json +20 -0
- tccli/services/monitor/v20180724/api.json +13 -13
- tccli/services/monitor/v20180724/examples.json +8 -8
- tccli/services/mps/v20190612/api.json +20 -0
- tccli/services/mps/v20190612/examples.json +2 -2
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +208 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/rce/rce_client.py +477 -0
- tccli/services/rce/v20201103/api.json +1749 -231
- tccli/services/rce/v20201103/examples.json +72 -0
- tccli/services/redis/redis_client.py +114 -8
- tccli/services/redis/v20180412/api.json +392 -0
- tccli/services/redis/v20180412/examples.json +17 -1
- tccli/services/sqlserver/sqlserver_client.py +53 -0
- tccli/services/sqlserver/v20180328/api.json +34 -0
- tccli/services/sqlserver/v20180328/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +2 -2
- tccli/services/trtc/v20190722/api.json +14 -6
- tccli/services/tse/v20201207/api.json +11 -0
- tccli/services/tsi/v20210325/api.json +5 -5
- {tccli-3.0.1163.1.dist-info → tccli-3.0.1165.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1163.1.dist-info → tccli-3.0.1165.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1163.1.dist-info → tccli-3.0.1165.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1163.1.dist-info → tccli-3.0.1165.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1163.1.dist-info → tccli-3.0.1165.1.dist-info}/license_files/LICENSE +0 -0
@@ -385,6 +385,20 @@
|
|
385
385
|
"output": "DescribeProxySlowLogResponse",
|
386
386
|
"status": "online"
|
387
387
|
},
|
388
|
+
"DescribeRedisClusterOverview": {
|
389
|
+
"document": "查询Redis独享集群概览信息",
|
390
|
+
"input": "DescribeRedisClusterOverviewRequest",
|
391
|
+
"name": "查询Redis独享集群概览信息",
|
392
|
+
"output": "DescribeRedisClusterOverviewResponse",
|
393
|
+
"status": "online"
|
394
|
+
},
|
395
|
+
"DescribeRedisClusters": {
|
396
|
+
"document": "查询Redis独享集群列表",
|
397
|
+
"input": "DescribeRedisClustersRequest",
|
398
|
+
"name": "查询Redis独享集群列表",
|
399
|
+
"output": "DescribeRedisClustersResponse",
|
400
|
+
"status": "online"
|
401
|
+
},
|
388
402
|
"DescribeReplicationGroup": {
|
389
403
|
"document": "本接口(DescribeReplicationGroup)用于查询复制组。",
|
390
404
|
"input": "DescribeReplicationGroupRequest",
|
@@ -1191,6 +1205,152 @@
|
|
1191
1205
|
],
|
1192
1206
|
"usage": "out"
|
1193
1207
|
},
|
1208
|
+
"CDCResource": {
|
1209
|
+
"document": "redis独享集群详细信息",
|
1210
|
+
"members": [
|
1211
|
+
{
|
1212
|
+
"disabled": false,
|
1213
|
+
"document": "用户的Appid",
|
1214
|
+
"example": "125639021",
|
1215
|
+
"member": "int64",
|
1216
|
+
"name": "AppId",
|
1217
|
+
"required": true,
|
1218
|
+
"type": "int",
|
1219
|
+
"value_allowed_null": false
|
1220
|
+
},
|
1221
|
+
{
|
1222
|
+
"disabled": false,
|
1223
|
+
"document": "地域id",
|
1224
|
+
"example": "1",
|
1225
|
+
"member": "int64",
|
1226
|
+
"name": "RegionId",
|
1227
|
+
"required": true,
|
1228
|
+
"type": "int",
|
1229
|
+
"value_allowed_null": false
|
1230
|
+
},
|
1231
|
+
{
|
1232
|
+
"disabled": false,
|
1233
|
+
"document": "可用区id",
|
1234
|
+
"example": "100002",
|
1235
|
+
"member": "int64",
|
1236
|
+
"name": "ZoneId",
|
1237
|
+
"required": true,
|
1238
|
+
"type": "int",
|
1239
|
+
"value_allowed_null": false
|
1240
|
+
},
|
1241
|
+
{
|
1242
|
+
"disabled": false,
|
1243
|
+
"document": "redis独享集群id",
|
1244
|
+
"example": "crs-cdc-p8ktf94h",
|
1245
|
+
"member": "string",
|
1246
|
+
"name": "RedisClusterId",
|
1247
|
+
"required": true,
|
1248
|
+
"type": "string",
|
1249
|
+
"value_allowed_null": false
|
1250
|
+
},
|
1251
|
+
{
|
1252
|
+
"disabled": false,
|
1253
|
+
"document": "计费模式,1-包年包月,0-按量计费",
|
1254
|
+
"example": "1",
|
1255
|
+
"member": "int64",
|
1256
|
+
"name": "PayMode",
|
1257
|
+
"required": true,
|
1258
|
+
"type": "int",
|
1259
|
+
"value_allowed_null": false
|
1260
|
+
},
|
1261
|
+
{
|
1262
|
+
"disabled": false,
|
1263
|
+
"document": "项目id",
|
1264
|
+
"example": "0",
|
1265
|
+
"member": "int64",
|
1266
|
+
"name": "ProjectId",
|
1267
|
+
"required": true,
|
1268
|
+
"type": "int",
|
1269
|
+
"value_allowed_null": false
|
1270
|
+
},
|
1271
|
+
{
|
1272
|
+
"disabled": false,
|
1273
|
+
"document": "自动续费标识,0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费",
|
1274
|
+
"example": "1",
|
1275
|
+
"member": "int64",
|
1276
|
+
"name": "AutoRenewFlag",
|
1277
|
+
"required": true,
|
1278
|
+
"type": "int",
|
1279
|
+
"value_allowed_null": false
|
1280
|
+
},
|
1281
|
+
{
|
1282
|
+
"disabled": false,
|
1283
|
+
"document": "独享集群名称",
|
1284
|
+
"example": "测试实例1",
|
1285
|
+
"member": "string",
|
1286
|
+
"name": "ClusterName",
|
1287
|
+
"required": true,
|
1288
|
+
"type": "string",
|
1289
|
+
"value_allowed_null": false
|
1290
|
+
},
|
1291
|
+
{
|
1292
|
+
"disabled": false,
|
1293
|
+
"document": "实例创建时间",
|
1294
|
+
"example": "2022-05-06 20:01:23",
|
1295
|
+
"member": "string",
|
1296
|
+
"name": "StartTime",
|
1297
|
+
"required": true,
|
1298
|
+
"type": "string",
|
1299
|
+
"value_allowed_null": false
|
1300
|
+
},
|
1301
|
+
{
|
1302
|
+
"disabled": false,
|
1303
|
+
"document": "实例到期时间",
|
1304
|
+
"example": "2022-06-06 20:01:23",
|
1305
|
+
"member": "string",
|
1306
|
+
"name": "EndTime",
|
1307
|
+
"required": true,
|
1308
|
+
"type": "string",
|
1309
|
+
"value_allowed_null": false
|
1310
|
+
},
|
1311
|
+
{
|
1312
|
+
"disabled": false,
|
1313
|
+
"document": "集群状态:1-流程中,2-运行中,3-已隔离",
|
1314
|
+
"example": "2",
|
1315
|
+
"member": "int64",
|
1316
|
+
"name": "Status",
|
1317
|
+
"required": true,
|
1318
|
+
"type": "int",
|
1319
|
+
"value_allowed_null": false
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
"disabled": false,
|
1323
|
+
"document": "基础管控资源包",
|
1324
|
+
"example": "无",
|
1325
|
+
"member": "ResourceBundle",
|
1326
|
+
"name": "BaseBundles",
|
1327
|
+
"required": true,
|
1328
|
+
"type": "list",
|
1329
|
+
"value_allowed_null": false
|
1330
|
+
},
|
1331
|
+
{
|
1332
|
+
"disabled": false,
|
1333
|
+
"document": "资源包列表",
|
1334
|
+
"example": "无",
|
1335
|
+
"member": "ResourceBundle",
|
1336
|
+
"name": "ResourceBundles",
|
1337
|
+
"required": true,
|
1338
|
+
"type": "list",
|
1339
|
+
"value_allowed_null": false
|
1340
|
+
},
|
1341
|
+
{
|
1342
|
+
"disabled": false,
|
1343
|
+
"document": "所属本地专有集群id",
|
1344
|
+
"example": "cluster-0astoh6a",
|
1345
|
+
"member": "string",
|
1346
|
+
"name": "DedicatedClusterId",
|
1347
|
+
"required": true,
|
1348
|
+
"type": "string",
|
1349
|
+
"value_allowed_null": false
|
1350
|
+
}
|
1351
|
+
],
|
1352
|
+
"usage": "out"
|
1353
|
+
},
|
1194
1354
|
"ChangeInstanceRoleRequest": {
|
1195
1355
|
"document": "ChangeInstanceRole请求参数结构体",
|
1196
1356
|
"members": [
|
@@ -5102,6 +5262,172 @@
|
|
5102
5262
|
],
|
5103
5263
|
"type": "object"
|
5104
5264
|
},
|
5265
|
+
"DescribeRedisClusterOverviewRequest": {
|
5266
|
+
"document": "DescribeRedisClusterOverview请求参数结构体",
|
5267
|
+
"members": [
|
5268
|
+
{
|
5269
|
+
"disabled": false,
|
5270
|
+
"document": "本地专用集群id",
|
5271
|
+
"example": "cluster-0astoh6a",
|
5272
|
+
"member": "string",
|
5273
|
+
"name": "DedicatedClusterId",
|
5274
|
+
"required": false,
|
5275
|
+
"type": "string"
|
5276
|
+
}
|
5277
|
+
],
|
5278
|
+
"type": "object"
|
5279
|
+
},
|
5280
|
+
"DescribeRedisClusterOverviewResponse": {
|
5281
|
+
"document": "DescribeRedisClusterOverview返回参数结构体",
|
5282
|
+
"members": [
|
5283
|
+
{
|
5284
|
+
"disabled": false,
|
5285
|
+
"document": "资源包总数",
|
5286
|
+
"example": "4",
|
5287
|
+
"member": "int64",
|
5288
|
+
"name": "TotalBundle",
|
5289
|
+
"required": true,
|
5290
|
+
"type": "int",
|
5291
|
+
"value_allowed_null": false
|
5292
|
+
},
|
5293
|
+
{
|
5294
|
+
"disabled": false,
|
5295
|
+
"document": "资源包总内存大小,单位:GB",
|
5296
|
+
"example": "48",
|
5297
|
+
"member": "int64",
|
5298
|
+
"name": "TotalMemory",
|
5299
|
+
"required": true,
|
5300
|
+
"type": "int",
|
5301
|
+
"value_allowed_null": false
|
5302
|
+
},
|
5303
|
+
{
|
5304
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5305
|
+
"member": "string",
|
5306
|
+
"name": "RequestId",
|
5307
|
+
"type": "string"
|
5308
|
+
}
|
5309
|
+
],
|
5310
|
+
"type": "object"
|
5311
|
+
},
|
5312
|
+
"DescribeRedisClustersRequest": {
|
5313
|
+
"document": "DescribeRedisClusters请求参数结构体",
|
5314
|
+
"members": [
|
5315
|
+
{
|
5316
|
+
"disabled": false,
|
5317
|
+
"document": "Redis独享集群id",
|
5318
|
+
"example": "['crs-cdc-p8ktf94h']",
|
5319
|
+
"member": "string",
|
5320
|
+
"name": "RedisClusterIds",
|
5321
|
+
"required": false,
|
5322
|
+
"type": "list"
|
5323
|
+
},
|
5324
|
+
{
|
5325
|
+
"disabled": false,
|
5326
|
+
"document": "集群状态:1-流程中,2-运行中,3-已隔离",
|
5327
|
+
"example": "[1,2]",
|
5328
|
+
"member": "int64",
|
5329
|
+
"name": "Status",
|
5330
|
+
"required": false,
|
5331
|
+
"type": "list"
|
5332
|
+
},
|
5333
|
+
{
|
5334
|
+
"disabled": false,
|
5335
|
+
"document": "项目ID数组",
|
5336
|
+
"example": "[0]",
|
5337
|
+
"member": "int64",
|
5338
|
+
"name": "ProjectIds",
|
5339
|
+
"required": false,
|
5340
|
+
"type": "list"
|
5341
|
+
},
|
5342
|
+
{
|
5343
|
+
"disabled": false,
|
5344
|
+
"document": "续费模式:0 - 默认状态(手动续费);1 - 自动续费;2 - 明确不自动续费",
|
5345
|
+
"example": "[0,1,2]",
|
5346
|
+
"member": "int64",
|
5347
|
+
"name": "AutoRenewFlag",
|
5348
|
+
"required": false,
|
5349
|
+
"type": "list"
|
5350
|
+
},
|
5351
|
+
{
|
5352
|
+
"disabled": false,
|
5353
|
+
"document": "Redis独享集群名称",
|
5354
|
+
"example": "测试集群1",
|
5355
|
+
"member": "string",
|
5356
|
+
"name": "ClusterName",
|
5357
|
+
"required": false,
|
5358
|
+
"type": "string"
|
5359
|
+
},
|
5360
|
+
{
|
5361
|
+
"disabled": false,
|
5362
|
+
"document": "搜索关键词:支持集群Id、集群名称",
|
5363
|
+
"example": "crs-cdc-p8ktf94h",
|
5364
|
+
"member": "string",
|
5365
|
+
"name": "SearchKey",
|
5366
|
+
"required": false,
|
5367
|
+
"type": "string"
|
5368
|
+
},
|
5369
|
+
{
|
5370
|
+
"disabled": false,
|
5371
|
+
"document": "分页限制返回大小,不传则默认为20",
|
5372
|
+
"example": "10",
|
5373
|
+
"member": "int64",
|
5374
|
+
"name": "Limit",
|
5375
|
+
"required": false,
|
5376
|
+
"type": "int"
|
5377
|
+
},
|
5378
|
+
{
|
5379
|
+
"disabled": false,
|
5380
|
+
"document": "偏移量,取Limit整数倍",
|
5381
|
+
"example": "0",
|
5382
|
+
"member": "int64",
|
5383
|
+
"name": "Offset",
|
5384
|
+
"required": false,
|
5385
|
+
"type": "int"
|
5386
|
+
},
|
5387
|
+
{
|
5388
|
+
"disabled": false,
|
5389
|
+
"document": "本地专用集群id",
|
5390
|
+
"example": "cluster-0astoh6a",
|
5391
|
+
"member": "string",
|
5392
|
+
"name": "DedicatedClusterId",
|
5393
|
+
"required": false,
|
5394
|
+
"type": "string"
|
5395
|
+
}
|
5396
|
+
],
|
5397
|
+
"type": "object"
|
5398
|
+
},
|
5399
|
+
"DescribeRedisClustersResponse": {
|
5400
|
+
"document": "DescribeRedisClusters返回参数结构体",
|
5401
|
+
"members": [
|
5402
|
+
{
|
5403
|
+
"disabled": false,
|
5404
|
+
"document": "集群总数",
|
5405
|
+
"example": "10",
|
5406
|
+
"member": "int64",
|
5407
|
+
"name": "Total",
|
5408
|
+
"required": true,
|
5409
|
+
"type": "int",
|
5410
|
+
"value_allowed_null": false
|
5411
|
+
},
|
5412
|
+
{
|
5413
|
+
"disabled": false,
|
5414
|
+
"document": "CDC集群资源列表",
|
5415
|
+
"example": "无",
|
5416
|
+
"member": "CDCResource",
|
5417
|
+
"name": "Resources",
|
5418
|
+
"required": true,
|
5419
|
+
"type": "list",
|
5420
|
+
"value_allowed_null": false
|
5421
|
+
},
|
5422
|
+
{
|
5423
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5424
|
+
"member": "string",
|
5425
|
+
"name": "RequestId",
|
5426
|
+
"type": "string"
|
5427
|
+
}
|
5428
|
+
],
|
5429
|
+
"type": "object"
|
5430
|
+
},
|
5105
5431
|
"DescribeReplicationGroupInstanceRequest": {
|
5106
5432
|
"document": "DescribeReplicationGroupInstance请求参数结构体",
|
5107
5433
|
"members": [
|
@@ -7636,6 +7962,36 @@
|
|
7636
7962
|
"type": "string",
|
7637
7963
|
"value_allowed_null": true
|
7638
7964
|
},
|
7965
|
+
{
|
7966
|
+
"disabled": false,
|
7967
|
+
"document": "CDC Redis集群ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7968
|
+
"example": "无",
|
7969
|
+
"member": "string",
|
7970
|
+
"name": "RedisClusterId",
|
7971
|
+
"output_required": true,
|
7972
|
+
"type": "string",
|
7973
|
+
"value_allowed_null": true
|
7974
|
+
},
|
7975
|
+
{
|
7976
|
+
"disabled": false,
|
7977
|
+
"document": "CDC 集群ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7978
|
+
"example": "无",
|
7979
|
+
"member": "string",
|
7980
|
+
"name": "DedicatedClusterId",
|
7981
|
+
"output_required": true,
|
7982
|
+
"type": "string",
|
7983
|
+
"value_allowed_null": true
|
7984
|
+
},
|
7985
|
+
{
|
7986
|
+
"disabled": false,
|
7987
|
+
"document": "产品版本。<ul><li>local:本地盘。</li><li>cloud:云盘版。</li><li>cdc:CDC 集群版本。</li></ul>\n注意:此字段可能返回 null,表示取不到有效值。",
|
7988
|
+
"example": "cloud",
|
7989
|
+
"member": "string",
|
7990
|
+
"name": "ProductVersion",
|
7991
|
+
"output_required": true,
|
7992
|
+
"type": "string",
|
7993
|
+
"value_allowed_null": true
|
7994
|
+
},
|
7639
7995
|
{
|
7640
7996
|
"disabled": false,
|
7641
7997
|
"document": "实例当前Proxy版本。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -10548,6 +10904,42 @@
|
|
10548
10904
|
],
|
10549
10905
|
"type": "object"
|
10550
10906
|
},
|
10907
|
+
"ResourceBundle": {
|
10908
|
+
"document": "redis独享集群资源包",
|
10909
|
+
"members": [
|
10910
|
+
{
|
10911
|
+
"disabled": false,
|
10912
|
+
"document": "资源包名称",
|
10913
|
+
"example": "resource-bundle-small-1",
|
10914
|
+
"member": "string",
|
10915
|
+
"name": "ResourceBundleName",
|
10916
|
+
"required": true,
|
10917
|
+
"type": "string",
|
10918
|
+
"value_allowed_null": false
|
10919
|
+
},
|
10920
|
+
{
|
10921
|
+
"disabled": false,
|
10922
|
+
"document": "可售卖内存,单位:GB",
|
10923
|
+
"example": "48",
|
10924
|
+
"member": "int64",
|
10925
|
+
"name": "AvailableMemory",
|
10926
|
+
"required": true,
|
10927
|
+
"type": "int",
|
10928
|
+
"value_allowed_null": false
|
10929
|
+
},
|
10930
|
+
{
|
10931
|
+
"disabled": false,
|
10932
|
+
"document": "资源包个数",
|
10933
|
+
"example": "1",
|
10934
|
+
"member": "int64",
|
10935
|
+
"name": "Count",
|
10936
|
+
"required": true,
|
10937
|
+
"type": "int",
|
10938
|
+
"value_allowed_null": false
|
10939
|
+
}
|
10940
|
+
],
|
10941
|
+
"usage": "both"
|
10942
|
+
},
|
10551
10943
|
"ResourceTag": {
|
10552
10944
|
"document": "API购买实例绑定标签",
|
10553
10945
|
"members": [
|
@@ -386,7 +386,7 @@
|
|
386
386
|
{
|
387
387
|
"document": "查询Redis实例列表",
|
388
388
|
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{\n \"Limit\": 2,\n \"Offset\": 0,\n \"OrderBy\": \"createtime \"\n}",
|
389
|
-
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"Appid\": 251223628,\n \"AutoRenewFlag\": 0,\n \"BillingMode\": 1,\n \"ClientLimit\": 10000,\n \"ClientLimitMax\": 40000,\n \"ClientLimitMin\": 10000,\n \"CloseTime\": \"0000-00-00 00:00:00\",\n \"Createtime\": \"2023-04-17 11:32:18\",\n \"CurrentProxyVersion\": \"5.8.0\",\n \"CurrentRedisVersion\": \"6.0.0\",\n \"DeadlineTime\": \"2023-05-17 11:32:18\",\n \"DiskSize\": 0,\n \"DtsStatus\": 0,\n \"Engine\": \"Redis\",\n \"InstanceId\": \"crs-4nmzc0ul\",\n \"InstanceName\": \"Redis_automation_is_awesome\",\n \"InstanceNode\": [],\n \"InstanceTags\": [],\n \"InstanceTitle\": \"添加实例中\",\n \"MonitorVersion\": \"5s\",\n \"NetLimit\": 24,\n \"NoAuth\": false,\n \"NodeSet\": [\n {\n \"NodeId\": 336948,\n \"NodeType\": 0,\n \"ZoneId\": 100002,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336946,\n \"NodeType\": 1,\n \"ZoneId\": 100003,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336947,\n \"NodeType\": 1,\n \"ZoneId\": 100004,\n \"ZoneName\": \"\"\n }\n ],\n \"OfflineTime\": \"\",\n \"PasswordFree\": 0,\n \"PolarisServer\": \"\",\n \"Port\": 6379,\n \"PriceId\": 1000848,\n \"ProductType\": \"standalone\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"ReadOnly\": 0,\n \"RedisReplicasNum\": 2,\n \"RedisShardNum\": 1,\n \"RedisShardSize\": 4096,\n \"Region\": \"ap-guangzhou\",\n \"RegionId\": 1,\n \"RemainBandwidthDuration\": \"\",\n \"Size\": 4096,\n \"SizeUsed\": 0,\n \"SlaveReadWeight\": 0,\n \"Status\": 1,\n \"SubStatus\": 37,\n \"SubnetId\": 2282634,\n \"Tags\": [],\n \"Type\": 15,\n \"UniqSubnetId\": \"subnet-1ed4w7to\",\n \"UniqVpcId\": \"vpc-mjwornzj\",\n \"UpgradeProxyVersion\": \"\",\n \"UpgradeRedisVersion\": \"\",\n \"Vip6\": \"\",\n \"VpcId\": 11133673,\n \"WanAddress\": \"\",\n \"WanIp\": \"10.0.1.61\",\n \"ZoneId\": 100002\n },\n {\n \"Appid\": 251223628,\n \"AutoRenewFlag\": 0,\n \"BillingMode\": 1,\n \"ClientLimit\": 10000,\n \"ClientLimitMax\": 40000,\n \"ClientLimitMin\": 10000,\n \"CloseTime\": \"0000-00-00 00:00:00\",\n \"Createtime\": \"2023-04-17 11:47:02\",\n \"CurrentProxyVersion\": \"5.5.0\",\n \"CurrentRedisVersion\": \"92.0.0\",\n \"DeadlineTime\": \"2023-05-17 11:47:01\",\n \"DiskSize\": 0,\n \"DtsStatus\": 0,\n \"Engine\": \"Redis\",\n \"InstanceId\": \"crs-46njvft9\",\n \"InstanceName\": \"Redis_automation_is_awesome\",\n \"InstanceNode\": [],\n \"InstanceTags\": [],\n \"InstanceTitle\": \"运行中\",\n \"MonitorVersion\": \"5s\",\n \"NetLimit\": 24,\n \"NoAuth\": false,\n \"NodeSet\": [\n {\n \"NodeId\": 336951,\n \"NodeType\": 0,\n \"ZoneId\": 100002,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336949,\n \"NodeType\": 1,\n \"ZoneId\": 100003,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336950,\n \"NodeType\": 1,\n \"ZoneId\": 100004,\n \"ZoneName\": \"\"\n }\n ],\n \"OfflineTime\": \"\",\n \"PasswordFree\": 0,\n \"PolarisServer\": \"\",\n \"Port\": 6379,\n \"PriceId\": 1000848,\n \"ProductType\": \"standalone\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"ReadOnly\": 0,\n \"RedisReplicasNum\": 2,\n \"RedisShardNum\": 1,\n \"RedisShardSize\": 4096,\n \"Region\": \"ap-guangzhou\",\n \"RegionId\": 1,\n \"RemainBandwidthDuration\": \"\",\n \"Size\": 4096,\n \"SizeUsed\": 0,\n \"SlaveReadWeight\": 0,\n \"Status\": 2,\n \"SubStatus\": 19,\n \"SubnetId\": 2282634,\n \"Tags\": [],\n \"Type\": 6,\n \"UniqSubnetId\": \"subnet-1ed4w7to\",\n \"UniqVpcId\": \"vpc-mjwornzj\",\n \"UpgradeProxyVersion\": \"\",\n \"UpgradeRedisVersion\": \"\",\n \"Vip6\": \"\",\n \"VpcId\": 11133673,\n \"WanAddress\": \"\",\n \"WanIp\": \"10.0.1.71\",\n \"ZoneId\": 100002\n }\n ],\n \"RequestId\": \"3fb5a4d2-680c-45a2-aa88-0213b76d1489\",\n \"TotalCount\": 8\n }\n}",
|
389
|
+
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"Appid\": 251223628,\n \"AutoRenewFlag\": 0,\n \"BillingMode\": 1,\n \"ClientLimit\": 10000,\n \"ClientLimitMax\": 40000,\n \"ClientLimitMin\": 10000,\n \"CloseTime\": \"0000-00-00 00:00:00\",\n \"Createtime\": \"2023-04-17 11:32:18\",\n \"CurrentProxyVersion\": \"5.8.0\",\n \"CurrentRedisVersion\": \"6.0.0\",\n \"DeadlineTime\": \"2023-05-17 11:32:18\",\n \"DedicatedClusterId\": \"\",\n \"DiskSize\": 0,\n \"DtsStatus\": 0,\n \"Engine\": \"Redis\",\n \"InstanceId\": \"crs-4nmzc0ul\",\n \"InstanceName\": \"Redis_automation_is_awesome\",\n \"InstanceNode\": [],\n \"InstanceTags\": [],\n \"InstanceTitle\": \"添加实例中\",\n \"MonitorVersion\": \"5s\",\n \"NetLimit\": 24,\n \"NoAuth\": false,\n \"NodeSet\": [\n {\n \"NodeId\": 336948,\n \"NodeType\": 0,\n \"ZoneId\": 100002,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336946,\n \"NodeType\": 1,\n \"ZoneId\": 100003,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336947,\n \"NodeType\": 1,\n \"ZoneId\": 100004,\n \"ZoneName\": \"\"\n }\n ],\n \"OfflineTime\": \"\",\n \"PasswordFree\": 0,\n \"PolarisServer\": \"\",\n \"Port\": 6379,\n \"PriceId\": 1000848,\n \"ProductType\": \"standalone\",\n \"ProductVersion\": \"local\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"ReadOnly\": 0,\n \"RedisClusterId\": \"\",\n \"RedisReplicasNum\": 2,\n \"RedisShardNum\": 1,\n \"RedisShardSize\": 4096,\n \"Region\": \"ap-guangzhou\",\n \"RegionId\": 1,\n \"RemainBandwidthDuration\": \"\",\n \"Size\": 4096,\n \"SizeUsed\": 0,\n \"SlaveReadWeight\": 0,\n \"Status\": 1,\n \"SubStatus\": 37,\n \"SubnetId\": 2282634,\n \"Tags\": [],\n \"Type\": 15,\n \"UniqSubnetId\": \"subnet-1ed4w7to\",\n \"UniqVpcId\": \"vpc-mjwornzj\",\n \"UpgradeProxyVersion\": \"\",\n \"UpgradeRedisVersion\": \"\",\n \"Vip6\": \"\",\n \"VpcId\": 11133673,\n \"WanAddress\": \"\",\n \"WanIp\": \"10.0.1.61\",\n \"ZoneId\": 100002\n },\n {\n \"Appid\": 251223628,\n \"AutoRenewFlag\": 0,\n \"BillingMode\": 1,\n \"ClientLimit\": 10000,\n \"ClientLimitMax\": 40000,\n \"ClientLimitMin\": 10000,\n \"CloseTime\": \"0000-00-00 00:00:00\",\n \"Createtime\": \"2023-04-17 11:47:02\",\n \"CurrentProxyVersion\": \"5.5.0\",\n \"CurrentRedisVersion\": \"92.0.0\",\n \"DeadlineTime\": \"2023-05-17 11:47:01\",\n \"DedicatedClusterId\": \"\",\n \"DiskSize\": 0,\n \"DtsStatus\": 0,\n \"Engine\": \"Redis\",\n \"InstanceId\": \"crs-46njvft9\",\n \"InstanceName\": \"Redis_automation_is_awesome\",\n \"InstanceNode\": [],\n \"InstanceTags\": [],\n \"InstanceTitle\": \"运行中\",\n \"MonitorVersion\": \"5s\",\n \"NetLimit\": 24,\n \"NoAuth\": false,\n \"NodeSet\": [\n {\n \"NodeId\": 336951,\n \"NodeType\": 0,\n \"ZoneId\": 100002,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336949,\n \"NodeType\": 1,\n \"ZoneId\": 100003,\n \"ZoneName\": \"\"\n },\n {\n \"NodeId\": 336950,\n \"NodeType\": 1,\n \"ZoneId\": 100004,\n \"ZoneName\": \"\"\n }\n ],\n \"OfflineTime\": \"\",\n \"PasswordFree\": 0,\n \"PolarisServer\": \"\",\n \"Port\": 6379,\n \"PriceId\": 1000848,\n \"ProductType\": \"standalone\",\n \"ProductVersion\": \"local\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"ReadOnly\": 0,\n \"RedisClusterId\": \"\",\n \"RedisReplicasNum\": 2,\n \"RedisShardNum\": 1,\n \"RedisShardSize\": 4096,\n \"Region\": \"ap-guangzhou\",\n \"RegionId\": 1,\n \"RemainBandwidthDuration\": \"\",\n \"Size\": 4096,\n \"SizeUsed\": 0,\n \"SlaveReadWeight\": 0,\n \"Status\": 2,\n \"SubStatus\": 19,\n \"SubnetId\": 2282634,\n \"Tags\": [],\n \"Type\": 6,\n \"UniqSubnetId\": \"subnet-1ed4w7to\",\n \"UniqVpcId\": \"vpc-mjwornzj\",\n \"UpgradeProxyVersion\": \"\",\n \"UpgradeRedisVersion\": \"\",\n \"Vip6\": \"\",\n \"VpcId\": 11133673,\n \"WanAddress\": \"\",\n \"WanIp\": \"10.0.1.71\",\n \"ZoneId\": 100002\n }\n ],\n \"RequestId\": \"3fb5a4d2-680c-45a2-aa88-0213b76d1489\",\n \"TotalCount\": 8\n }\n}",
|
390
390
|
"title": "请求示例"
|
391
391
|
}
|
392
392
|
],
|
@@ -446,6 +446,22 @@
|
|
446
446
|
"title": "请求示例"
|
447
447
|
}
|
448
448
|
],
|
449
|
+
"DescribeRedisClusterOverview": [
|
450
|
+
{
|
451
|
+
"document": "",
|
452
|
+
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRedisClusterOverview\n<公共请求参数>\n\n{\n \"DedicatedClusterId\": \"cluster-0astoh6a\"\n}",
|
453
|
+
"output": "{\n \"Response\": {\n \"TotalBundle\": 8,\n \"TotalMemory\": 666,\n \"RequestId\": \"cd73f314-ee78-41f0-b69c-8d29c1b049a8\"\n }\n}",
|
454
|
+
"title": "示例1"
|
455
|
+
}
|
456
|
+
],
|
457
|
+
"DescribeRedisClusters": [
|
458
|
+
{
|
459
|
+
"document": "",
|
460
|
+
"input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRedisClusters\n<公共请求参数>\n\n{\n \"Limit\": \"100\",\n \"DedicatedClusterId\": \"cluster-0astoh6a\",\n \"Offset\": \"0\"\n}",
|
461
|
+
"output": "{\n \"Response\": {\n \"Total\": 4,\n \"Resources\": [\n {\n \"AppId\": 251200288,\n \"RegionId\": 1,\n \"ZoneId\": 100002,\n \"PayMode\": 1,\n \"ProjectId\": 0,\n \"AutoRenewFlag\": 0,\n \"ClusterName\": \"crs-cdc-9nyfki8h\",\n \"StartTime\": \"2022-06-10 14:40:33\",\n \"EndTime\": \"2022-07-10 14:40:33\",\n \"Status\": 1,\n \"RedisClusterId\": \"crs-cdc-9nyfki8h\",\n \"BaseBundles\": [\n {\n \"ResourceBundleName\": \"cc-standard\",\n \"AvailableMemory\": 0,\n \"Count\": 1\n }\n ],\n \"ResourceBundles\": [\n {\n \"ResourceBundleName\": \"resource-bundle-mini\",\n \"AvailableMemory\": 16,\n \"Count\": 1\n }\n ],\n \"DedicatedClusterId\": \"cluster-0astoh6a\"\n },\n {\n \"AppId\": 251200288,\n \"RegionId\": 1,\n \"ZoneId\": 100002,\n \"PayMode\": 1,\n \"ProjectId\": 0,\n \"AutoRenewFlag\": 0,\n \"ClusterName\": \"crs-cdc-3blwadqr\",\n \"StartTime\": \"2022-06-10 11:43:57\",\n \"EndTime\": \"2022-07-10 11:43:57\",\n \"Status\": 1,\n \"RedisClusterId\": \"crs-cdc-3blwadqr\",\n \"BaseBundles\": [\n {\n \"ResourceBundleName\": \"cc-standard\",\n \"AvailableMemory\": 0,\n \"Count\": 1\n }\n ],\n \"ResourceBundles\": [\n {\n \"ResourceBundleName\": \"resource-bundle-mini\",\n \"AvailableMemory\": 16,\n \"Count\": 1\n }\n ],\n \"DedicatedClusterId\": \"cluster-0astoh6a\"\n },\n {\n \"AppId\": 251200288,\n \"RegionId\": 1,\n \"ZoneId\": 100002,\n \"PayMode\": 1,\n \"ProjectId\": 0,\n \"AutoRenewFlag\": 0,\n \"ClusterName\": \"crs-cdc-etfesut3\",\n \"StartTime\": \"2022-06-10 11:00:25\",\n \"EndTime\": \"2022-07-10 11:00:25\",\n \"Status\": 1,\n \"RedisClusterId\": \"crs-cdc-etfesut3\",\n \"BaseBundles\": [\n {\n \"ResourceBundleName\": \"cc-standard\",\n \"AvailableMemory\": 0,\n \"Count\": 1\n }\n ],\n \"ResourceBundles\": [\n {\n \"ResourceBundleName\": \"resource-bundle-mini\",\n \"AvailableMemory\": 16,\n \"Count\": 1\n },\n {\n \"ResourceBundleName\": \"resource-bundle-large\",\n \"AvailableMemory\": 538,\n \"Count\": 1\n }\n ],\n \"DedicatedClusterId\": \"cluster-0astoh6a\"\n },\n {\n \"AppId\": 251200288,\n \"RegionId\": 1,\n \"ZoneId\": 100002,\n \"PayMode\": 1,\n \"ProjectId\": 0,\n \"AutoRenewFlag\": 0,\n \"ClusterName\": \"crs-cdc-4myknrdf\",\n \"StartTime\": \"2022-06-10 10:33:12\",\n \"EndTime\": \"2022-08-10 10:33:12\",\n \"Status\": 2,\n \"RedisClusterId\": \"crs-cdc-4myknrdf\",\n \"BaseBundles\": [\n {\n \"ResourceBundleName\": \"cc-standard\",\n \"AvailableMemory\": 0,\n \"Count\": 1\n }\n ],\n \"ResourceBundles\": [\n {\n \"ResourceBundleName\": \"resource-bundle-mini\",\n \"AvailableMemory\": 16,\n \"Count\": 1\n },\n {\n \"ResourceBundleName\": \"resource-bundle-small-1\",\n \"AvailableMemory\": 48,\n \"Count\": 2\n }\n ],\n \"DedicatedClusterId\": \"cluster-0astoh6a\"\n }\n ],\n \"RequestId\": \"1504cdf3-0095-4694-86d2-5f2a6f8c99a4\"\n }\n}",
|
462
|
+
"title": "示例1"
|
463
|
+
}
|
464
|
+
],
|
449
465
|
"DescribeReplicationGroup": [
|
450
466
|
{
|
451
467
|
"document": "查询单个复制组信息",
|
@@ -1369,6 +1369,58 @@ def doDescribeDatabases(args, parsed_globals):
|
|
1369
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1370
|
|
1371
1371
|
|
1372
|
+
def doCutXEvents(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.CutXEventsRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.CutXEvents(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1372
1424
|
def doDescribeReadOnlyGroupList(args, parsed_globals):
|
1373
1425
|
g_param = parse_global_arg(parsed_globals)
|
1374
1426
|
|
@@ -7646,6 +7698,7 @@ ACTION_MAP = {
|
|
7646
7698
|
"DescribeRegularBackupPlan": doDescribeRegularBackupPlan,
|
7647
7699
|
"DescribePublishSubscribe": doDescribePublishSubscribe,
|
7648
7700
|
"DescribeDatabases": doDescribeDatabases,
|
7701
|
+
"CutXEvents": doCutXEvents,
|
7649
7702
|
"DescribeReadOnlyGroupList": doDescribeReadOnlyGroupList,
|
7650
7703
|
"CreateBusinessDBInstances": doCreateBusinessDBInstances,
|
7651
7704
|
"DescribeBackupCommand": doDescribeBackupCommand,
|
@@ -140,6 +140,13 @@
|
|
140
140
|
"output": "CreateReadOnlyDBInstancesResponse",
|
141
141
|
"status": "online"
|
142
142
|
},
|
143
|
+
"CutXEvents": {
|
144
|
+
"document": "本接口(CutXEvents)用于手动切割阻塞日志和死锁日志。",
|
145
|
+
"input": "CutXEventsRequest",
|
146
|
+
"name": "手动切割阻塞日志和死锁日志",
|
147
|
+
"output": "CutXEventsResponse",
|
148
|
+
"status": "online"
|
149
|
+
},
|
143
150
|
"DeleteAccount": {
|
144
151
|
"document": "本接口(DeleteAccount)用于删除实例账号。",
|
145
152
|
"input": "DeleteAccountRequest",
|
@@ -4186,6 +4193,33 @@
|
|
4186
4193
|
],
|
4187
4194
|
"usage": "out"
|
4188
4195
|
},
|
4196
|
+
"CutXEventsRequest": {
|
4197
|
+
"document": "CutXEvents请求参数结构体",
|
4198
|
+
"members": [
|
4199
|
+
{
|
4200
|
+
"disabled": false,
|
4201
|
+
"document": "实例ID",
|
4202
|
+
"example": "mssql-8ua7ah",
|
4203
|
+
"member": "string",
|
4204
|
+
"name": "InstanceId",
|
4205
|
+
"required": true,
|
4206
|
+
"type": "string"
|
4207
|
+
}
|
4208
|
+
],
|
4209
|
+
"type": "object"
|
4210
|
+
},
|
4211
|
+
"CutXEventsResponse": {
|
4212
|
+
"document": "CutXEvents返回参数结构体",
|
4213
|
+
"members": [
|
4214
|
+
{
|
4215
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4216
|
+
"member": "string",
|
4217
|
+
"name": "RequestId",
|
4218
|
+
"type": "string"
|
4219
|
+
}
|
4220
|
+
],
|
4221
|
+
"type": "object"
|
4222
|
+
},
|
4189
4223
|
"DBCreateInfo": {
|
4190
4224
|
"document": "数据库创建信息",
|
4191
4225
|
"members": [
|
@@ -160,6 +160,14 @@
|
|
160
160
|
"title": "创建只读实例"
|
161
161
|
}
|
162
162
|
],
|
163
|
+
"CutXEvents": [
|
164
|
+
{
|
165
|
+
"document": "",
|
166
|
+
"input": "POST / HTTP/1.1\nHost: sqlserver.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CutXEvents\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
168
|
+
"title": "手动生成阻塞日志"
|
169
|
+
}
|
170
|
+
],
|
163
171
|
"DeleteAccount": [
|
164
172
|
{
|
165
173
|
"document": "",
|
@@ -289,7 +289,7 @@
|
|
289
289
|
},
|
290
290
|
{
|
291
291
|
"disabled": false,
|
292
|
-
"document": "图片数据的Base64
|
292
|
+
"document": "图片数据的Base64字符串,经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片中包含文字需要少于6000字符。",
|
293
293
|
"example": "iVBORw0KGgoAAAANSUhEUgAAAdkAAABPCAYAAACnD7%252FoAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAJ......CCyAAAAwCQgsgAAAMAkILIAAADAJCCyAAAAwCQgsgAAAMAkILIAAADAFJblX8%252F8oMOWYN6nAAAAAElFTkSuQmCC",
|
294
294
|
"member": "string",
|
295
295
|
"name": "Data",
|
@@ -362,7 +362,7 @@
|
|
362
362
|
{
|
363
363
|
"disabled": false,
|
364
364
|
"document": "图片翻译结果,翻译结果按识别的文本每一行独立翻译,后续会推出按段落划分并翻译的版本",
|
365
|
-
"example": "
|
365
|
+
"example": "[{\"SourceText\":\"你好\",\"TargetText\":\"Hello\",\"X\":17,\"Y\":420,\"W\":301,\"H\":55}]",
|
366
366
|
"member": "ImageRecord",
|
367
367
|
"name": "ImageRecord",
|
368
368
|
"output_required": true,
|