tccli 3.0.1172.1__py2.py3-none-any.whl → 3.0.1173.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/dlc/v20210125/api.json +137 -19
- tccli/services/dlc/v20210125/examples.json +6 -6
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +138 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +11 -0
- tccli/services/goosefs/v20220519/api.json +56 -11
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iss/v20230517/api.json +58 -0
- tccli/services/iss/v20230517/examples.json +13 -7
- tccli/services/mna/mna_client.py +53 -0
- tccli/services/mna/v20210119/api.json +80 -0
- tccli/services/mna/v20210119/examples.json +8 -0
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/trtc/v20190722/api.json +22 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/RECORD +21 -21
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1172.1.dist-info → tccli-3.0.1173.1.dist-info}/license_files/LICENSE +0 -0
@@ -42,6 +42,13 @@
|
|
42
42
|
"output": "CreateBatchInitOrganizationUrlResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
|
+
"CreateBatchOrganizationAuthorizationUrl": {
|
46
|
+
"document": "此接口用于获取企业批量认证链接-单链接包含多条认证流。\n\n前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 和[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。\n\n异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。\n此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。",
|
47
|
+
"input": "CreateBatchOrganizationAuthorizationUrlRequest",
|
48
|
+
"name": "创建企业批量认证链接-单链接",
|
49
|
+
"output": "CreateBatchOrganizationAuthorizationUrlResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
45
52
|
"CreateBatchOrganizationRegistrationTasks": {
|
46
53
|
"document": "本接口(CreateBatchOrganizationRegistrationTasks)用于批量创建企业认证链接\n该接口为异步提交任务接口,需要跟查询企业批量认证链接(DescribeBatchOrganizationRegistrationUrls) 配合使用.\n\n批量创建链接有以下限制:\n\n1. 单次最多创建10个企业。\n2. 一天同一家企业最多创建8000家企业。\n3. 同一批创建的企业不能重复 其中包括 企业名称,企业统一信用代码\n4. 跳转到小程序的实现,参考微信官方文档(分为全屏、半屏两种方式),如何配置也可以请参考: 跳转电子签小程序配置\n\n注:\n\n1. **此接口需要购买单独的实名套餐包方可调用,如有需求请联系对接人员评估**\n \n2. 如果生成的链接是APP链接,跳转到小程序的实现,参考微信官方文档(分为<a href=\"https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html\">全屏</a>、<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html\">半屏</a>两种方式),如何配置也可以请参考: <a href=\"https://qian.tencent.com/developers/company/openwxminiprogram\">跳转电子签小程序配置</a>\n \n\n**腾讯电子签小程序的AppID 和 原始Id如下:**\n\n| 小程序 | AppID | 原始ID |\n| --- | --- | --- |\n| 腾讯电子签(正式版) | wxa023b292fd19d41d | gh_da88f6188665 |\n| 腾讯电子签Demo | wx371151823f6f3edf | gh_39a5d3de69fa |",
|
47
54
|
"input": "CreateBatchOrganizationRegistrationTasksRequest",
|
@@ -2230,6 +2237,126 @@
|
|
2230
2237
|
],
|
2231
2238
|
"type": "object"
|
2232
2239
|
},
|
2240
|
+
"CreateBatchOrganizationAuthorizationUrlRequest": {
|
2241
|
+
"document": "CreateBatchOrganizationAuthorizationUrl请求参数结构体",
|
2242
|
+
"members": [
|
2243
|
+
{
|
2244
|
+
"disabled": false,
|
2245
|
+
"document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`",
|
2246
|
+
"example": "无",
|
2247
|
+
"member": "UserInfo",
|
2248
|
+
"name": "Operator",
|
2249
|
+
"required": true,
|
2250
|
+
"type": "object"
|
2251
|
+
},
|
2252
|
+
{
|
2253
|
+
"disabled": false,
|
2254
|
+
"document": "组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。\n此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。",
|
2255
|
+
"example": "典子谦",
|
2256
|
+
"member": "string",
|
2257
|
+
"name": "AdminName",
|
2258
|
+
"required": true,
|
2259
|
+
"type": "string"
|
2260
|
+
},
|
2261
|
+
{
|
2262
|
+
"disabled": false,
|
2263
|
+
"document": "组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。",
|
2264
|
+
"example": "13200000000",
|
2265
|
+
"member": "string",
|
2266
|
+
"name": "AdminMobile",
|
2267
|
+
"required": true,
|
2268
|
+
"type": "string"
|
2269
|
+
},
|
2270
|
+
{
|
2271
|
+
"disabled": false,
|
2272
|
+
"document": "代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填",
|
2273
|
+
"example": "无",
|
2274
|
+
"member": "Agent",
|
2275
|
+
"name": "Agent",
|
2276
|
+
"required": false,
|
2277
|
+
"type": "object"
|
2278
|
+
},
|
2279
|
+
{
|
2280
|
+
"disabled": false,
|
2281
|
+
"document": "企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。",
|
2282
|
+
"example": "[\"yDRS4UUgygqdcj56UuO4zjExBQcOiB68\",\"yDRS4UUgygqdcj5pUuO4zjEu602GFIe6\"]",
|
2283
|
+
"member": "string",
|
2284
|
+
"name": "SubTaskIds",
|
2285
|
+
"required": false,
|
2286
|
+
"type": "list"
|
2287
|
+
},
|
2288
|
+
{
|
2289
|
+
"disabled": false,
|
2290
|
+
"document": "组织机构超管证件类型支持以下类型\n- ID_CARD : 居民身份证 (默认值)\n- HONGKONG_AND_MACAO : 港澳居民来往内地通行证\n- HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)\n此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。",
|
2291
|
+
"example": "ID_CARD",
|
2292
|
+
"member": "string",
|
2293
|
+
"name": "AdminIdCardType",
|
2294
|
+
"required": false,
|
2295
|
+
"type": "string"
|
2296
|
+
},
|
2297
|
+
{
|
2298
|
+
"disabled": false,
|
2299
|
+
"document": "组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建企业批量认证链接](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。",
|
2300
|
+
"example": "620000198802020000",
|
2301
|
+
"member": "string",
|
2302
|
+
"name": "AdminIdCardNumber",
|
2303
|
+
"required": false,
|
2304
|
+
"type": "string"
|
2305
|
+
},
|
2306
|
+
{
|
2307
|
+
"disabled": false,
|
2308
|
+
"document": "要跳转的链接类型<ul><li> **HTTP**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型 ,此时返回长链 (默认类型)</li><li>**HTTP_SHORT_URL**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型,此时返回短链</li><li>**APP**: 第三方APP或小程序跳转电子签小程序的path, APP或者小程序跳转适合此类型</li><li>**QR_CODE**: 跳转电子签小程序的http_url的二维码形式, 可以在页面展示适合此类型</li></ul>",
|
2309
|
+
"example": "无",
|
2310
|
+
"member": "string",
|
2311
|
+
"name": "Endpoint",
|
2312
|
+
"required": false,
|
2313
|
+
"type": "string"
|
2314
|
+
}
|
2315
|
+
],
|
2316
|
+
"type": "object"
|
2317
|
+
},
|
2318
|
+
"CreateBatchOrganizationAuthorizationUrlResponse": {
|
2319
|
+
"document": "CreateBatchOrganizationAuthorizationUrl返回参数结构体",
|
2320
|
+
"members": [
|
2321
|
+
{
|
2322
|
+
"disabled": false,
|
2323
|
+
"document": "批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天\n跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表\n<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody>\n <tr> <td>HTTP</td> <td>https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfBxSB2rj2Bfa</td> <td>7天</td> </tr> \n<tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> \n<tr> <td>APP</td> <td>pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde</td> <td>7天</td> </tr><tr> <td>QR_CODE</td> <td>https://dyn.test.ess.tencent.cn/imgs/qrcode_urls/authorization_enterprise_for_batch_submit/yDCHHUUckpbdauq9UEjnoFDCCumAMmv1.png</td> <td>7天</td> </tr> </tbody> </table>\n注: \n`1.创建的链接应避免被转义,如:&被转义为\\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`\n",
|
2324
|
+
"example": "pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde",
|
2325
|
+
"member": "string",
|
2326
|
+
"name": "AuthUrl",
|
2327
|
+
"output_required": false,
|
2328
|
+
"type": "string",
|
2329
|
+
"value_allowed_null": false
|
2330
|
+
},
|
2331
|
+
{
|
2332
|
+
"disabled": false,
|
2333
|
+
"document": "认证流认证失败信息",
|
2334
|
+
"example": "无",
|
2335
|
+
"member": "string",
|
2336
|
+
"name": "ErrorMessages",
|
2337
|
+
"output_required": false,
|
2338
|
+
"type": "list",
|
2339
|
+
"value_allowed_null": false
|
2340
|
+
},
|
2341
|
+
{
|
2342
|
+
"disabled": false,
|
2343
|
+
"document": "链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。",
|
2344
|
+
"example": "无",
|
2345
|
+
"member": "uint64",
|
2346
|
+
"name": "ExpireTime",
|
2347
|
+
"output_required": false,
|
2348
|
+
"type": "int",
|
2349
|
+
"value_allowed_null": false
|
2350
|
+
},
|
2351
|
+
{
|
2352
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2353
|
+
"member": "string",
|
2354
|
+
"name": "RequestId",
|
2355
|
+
"type": "string"
|
2356
|
+
}
|
2357
|
+
],
|
2358
|
+
"type": "object"
|
2359
|
+
},
|
2233
2360
|
"CreateBatchOrganizationRegistrationTasksRequest": {
|
2234
2361
|
"document": "CreateBatchOrganizationRegistrationTasks请求参数结构体",
|
2235
2362
|
"members": [
|
@@ -12601,6 +12728,17 @@
|
|
12601
12728
|
"required": false,
|
12602
12729
|
"type": "list",
|
12603
12730
|
"value_allowed_null": false
|
12731
|
+
},
|
12732
|
+
{
|
12733
|
+
"disabled": false,
|
12734
|
+
"document": "签署方是否可以转他人处理\n\n<ul><li> **false** : ( 默认)可以转他人处理</li>\n<li> **true** :不可以转他人处理</li></ul>",
|
12735
|
+
"example": "无",
|
12736
|
+
"member": "bool",
|
12737
|
+
"name": "NoTransfer",
|
12738
|
+
"output_required": false,
|
12739
|
+
"required": false,
|
12740
|
+
"type": "bool",
|
12741
|
+
"value_allowed_null": false
|
12604
12742
|
}
|
12605
12743
|
],
|
12606
12744
|
"usage": "both"
|
@@ -96,6 +96,14 @@
|
|
96
96
|
"title": "创建批量操作企业初始化链接"
|
97
97
|
}
|
98
98
|
],
|
99
|
+
"CreateBatchOrganizationAuthorizationUrl": [
|
100
|
+
{
|
101
|
+
"document": "根据批量注册企业子任务 Id 和超管的三要素生成批量认证链接。\n1. 批量注册企业子任务是由接口 [CreateBatchOrganizationRegistrationTasks创建企业批量认证链接任务接口](https://qian.tencent.com/developers/companyApis/organizations/CreateBatchOrganizationRegistrationTasks) 生成的。\n2. 调用[查询企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/companyApis/organizations/DescribeBatchOrganizationRegistrationUrls),获得子任务 TaskId。\n3. Endpoint 设置为短链,会生成一条短链。",
|
102
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchOrganizationAuthorizationUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDwf3UUckps8dvveUEfH3DjvMmg3ZkjQ\",\n \"ClientIp\": \"8.8.8.8\"\n },\n \"SubTaskIds\": [\n \"yDCHlUUckpaeefmfUxPr7deu6g5PvvJz\",\n \"yDCHlUUckpaeix9uU0ETNLSzHbAxJxLj\"\n ],\n \"AdminName\": \"典子谦\",\n \"AdminMobile\": \"13200000000\",\n \"AdminIdCardType\": \"ID_CARD\",\n \"AdminIdCardNumber\": \"620000198802020000\",\n \"Endpoint\": \"HTTP_SHORT_URL\"\n}",
|
103
|
+
"output": "{\n \"Response\": {\n \"AuthUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfCVEoeNYGCc6\",\n \"ErrorMessages\": [],\n \"ExpireTime\": 1724165376,\n \"RequestId\": \"s1723560576553977682\"\n }\n}",
|
104
|
+
"title": "根据批量注册企业子任务 Id 和超管的三要素生成批量认证链接"
|
105
|
+
}
|
106
|
+
],
|
99
107
|
"CreateBatchOrganizationRegistrationTasks": [
|
100
108
|
{
|
101
109
|
"document": "",
|
@@ -10852,6 +10852,17 @@
|
|
10852
10852
|
"required": false,
|
10853
10853
|
"type": "list",
|
10854
10854
|
"value_allowed_null": false
|
10855
|
+
},
|
10856
|
+
{
|
10857
|
+
"disabled": false,
|
10858
|
+
"document": "签署方是否可以转他人处理\n\n<ul><li> **false** : ( 默认)可以转他人处理</li>\n<li> **true** :不可以转他人处理</li></ul>",
|
10859
|
+
"example": "无",
|
10860
|
+
"member": "bool",
|
10861
|
+
"name": "NoTransfer",
|
10862
|
+
"output_required": false,
|
10863
|
+
"required": false,
|
10864
|
+
"type": "bool",
|
10865
|
+
"value_allowed_null": false
|
10855
10866
|
}
|
10856
10867
|
],
|
10857
10868
|
"usage": "both"
|
@@ -405,7 +405,7 @@
|
|
405
405
|
"example": "10.0.1.2",
|
406
406
|
"member": "string",
|
407
407
|
"name": "ClientNodeIp",
|
408
|
-
"
|
408
|
+
"output_required": true,
|
409
409
|
"type": "string",
|
410
410
|
"value_allowed_null": false
|
411
411
|
},
|
@@ -415,7 +415,7 @@
|
|
415
415
|
"example": "active",
|
416
416
|
"member": "string",
|
417
417
|
"name": "Status",
|
418
|
-
"
|
418
|
+
"output_required": true,
|
419
419
|
"type": "string",
|
420
420
|
"value_allowed_null": false
|
421
421
|
},
|
@@ -425,9 +425,49 @@
|
|
425
425
|
"example": "extend",
|
426
426
|
"member": "string",
|
427
427
|
"name": "ClientType",
|
428
|
-
"
|
428
|
+
"output_required": true,
|
429
|
+
"type": "string",
|
430
|
+
"value_allowed_null": false
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"disabled": false,
|
434
|
+
"document": "节点所属vpcid\t",
|
435
|
+
"example": "vpc-5ke3uoww",
|
436
|
+
"member": "string",
|
437
|
+
"name": "VpcId",
|
438
|
+
"output_required": true,
|
429
439
|
"type": "string",
|
430
440
|
"value_allowed_null": false
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"disabled": false,
|
444
|
+
"document": "节点所属子网id",
|
445
|
+
"example": "subnet-ihijdp5h",
|
446
|
+
"member": "string",
|
447
|
+
"name": "SubnetId",
|
448
|
+
"output_required": true,
|
449
|
+
"type": "string",
|
450
|
+
"value_allowed_null": false
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"disabled": false,
|
454
|
+
"document": "cvmId",
|
455
|
+
"example": "ins-m1r9uwdp\t",
|
456
|
+
"member": "string",
|
457
|
+
"name": "InstanceId",
|
458
|
+
"output_required": true,
|
459
|
+
"type": "string",
|
460
|
+
"value_allowed_null": false
|
461
|
+
},
|
462
|
+
{
|
463
|
+
"disabled": false,
|
464
|
+
"document": "自定义挂载点\n注意:此字段可能返回 null,表示取不到有效值。",
|
465
|
+
"example": "/test",
|
466
|
+
"member": "string",
|
467
|
+
"name": "MountPoint",
|
468
|
+
"output_required": false,
|
469
|
+
"type": "string",
|
470
|
+
"value_allowed_null": true
|
431
471
|
}
|
432
472
|
],
|
433
473
|
"usage": "out"
|
@@ -1417,8 +1457,7 @@
|
|
1417
1457
|
"member": "string",
|
1418
1458
|
"name": "InstanceId",
|
1419
1459
|
"required": false,
|
1420
|
-
"type": "string"
|
1421
|
-
"value_allowed_null": false
|
1460
|
+
"type": "string"
|
1422
1461
|
},
|
1423
1462
|
{
|
1424
1463
|
"disabled": false,
|
@@ -1427,8 +1466,7 @@
|
|
1427
1466
|
"member": "string",
|
1428
1467
|
"name": "VpcId",
|
1429
1468
|
"required": false,
|
1430
|
-
"type": "string"
|
1431
|
-
"value_allowed_null": true
|
1469
|
+
"type": "string"
|
1432
1470
|
},
|
1433
1471
|
{
|
1434
1472
|
"disabled": false,
|
@@ -1437,8 +1475,7 @@
|
|
1437
1475
|
"member": "string",
|
1438
1476
|
"name": "SubnetId",
|
1439
1477
|
"required": false,
|
1440
|
-
"type": "string"
|
1441
|
-
"value_allowed_null": true
|
1478
|
+
"type": "string"
|
1442
1479
|
},
|
1443
1480
|
{
|
1444
1481
|
"disabled": false,
|
@@ -1447,8 +1484,16 @@
|
|
1447
1484
|
"member": "string",
|
1448
1485
|
"name": "LinuxClientNodeIp",
|
1449
1486
|
"required": false,
|
1450
|
-
"type": "string"
|
1451
|
-
|
1487
|
+
"type": "string"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"disabled": false,
|
1491
|
+
"document": "自定义挂载点",
|
1492
|
+
"example": "/test",
|
1493
|
+
"member": "string",
|
1494
|
+
"name": "MountPoint",
|
1495
|
+
"required": false,
|
1496
|
+
"type": "string"
|
1452
1497
|
}
|
1453
1498
|
],
|
1454
1499
|
"usage": "in"
|
@@ -201,6 +201,15 @@
|
|
201
201
|
"name": "Citation",
|
202
202
|
"required": false,
|
203
203
|
"type": "bool"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"disabled": false,
|
207
|
+
"document": "是否开启极速版搜索,默认false,不开启;在开启且命中搜索时,会启用极速版搜索,流式输出首字返回更快。",
|
208
|
+
"example": "false",
|
209
|
+
"member": "bool",
|
210
|
+
"name": "EnableSpeedSearch",
|
211
|
+
"required": false,
|
212
|
+
"type": "bool"
|
204
213
|
}
|
205
214
|
],
|
206
215
|
"type": "object"
|
@@ -2248,6 +2248,24 @@
|
|
2248
2248
|
"name": "SNCode",
|
2249
2249
|
"required": false,
|
2250
2250
|
"type": "string"
|
2251
|
+
},
|
2252
|
+
{
|
2253
|
+
"disabled": false,
|
2254
|
+
"document": "RTMP推流地址自定义AppName(仅RTMP需要,支持英文、数字组合限制32个字符内)",
|
2255
|
+
"example": "live",
|
2256
|
+
"member": "string",
|
2257
|
+
"name": "AppName",
|
2258
|
+
"required": false,
|
2259
|
+
"type": "string"
|
2260
|
+
},
|
2261
|
+
{
|
2262
|
+
"disabled": false,
|
2263
|
+
"document": "RTMP推流地址自定义StreamName(仅RTMP需要,支持英文、数字组合限制32个字符内)",
|
2264
|
+
"example": "00cuDZBadN",
|
2265
|
+
"member": "string",
|
2266
|
+
"name": "StreamName",
|
2267
|
+
"required": false,
|
2268
|
+
"type": "string"
|
2251
2269
|
}
|
2252
2270
|
],
|
2253
2271
|
"type": "object"
|
@@ -3444,6 +3462,15 @@
|
|
3444
3462
|
"name": "ClusterId",
|
3445
3463
|
"required": true,
|
3446
3464
|
"type": "string"
|
3465
|
+
},
|
3466
|
+
{
|
3467
|
+
"disabled": false,
|
3468
|
+
"document": "域名类型,0:拉流域名 1:推流域名",
|
3469
|
+
"example": "1",
|
3470
|
+
"member": "int64",
|
3471
|
+
"name": "DomainType",
|
3472
|
+
"required": false,
|
3473
|
+
"type": "int"
|
3447
3474
|
}
|
3448
3475
|
],
|
3449
3476
|
"type": "object"
|
@@ -3895,6 +3922,26 @@
|
|
3895
3922
|
"output_required": false,
|
3896
3923
|
"type": "int",
|
3897
3924
|
"value_allowed_null": true
|
3925
|
+
},
|
3926
|
+
{
|
3927
|
+
"disabled": false,
|
3928
|
+
"document": "RTMP推流地址自定义appName\n注意:此字段可能返回 null,表示取不到有效值。",
|
3929
|
+
"example": "live",
|
3930
|
+
"member": "string",
|
3931
|
+
"name": "AppName",
|
3932
|
+
"output_required": false,
|
3933
|
+
"type": "string",
|
3934
|
+
"value_allowed_null": true
|
3935
|
+
},
|
3936
|
+
{
|
3937
|
+
"disabled": false,
|
3938
|
+
"document": "RTMP推流地址自定义streamName\n注意:此字段可能返回 null,表示取不到有效值。",
|
3939
|
+
"example": "00cuDZBadN",
|
3940
|
+
"member": "string",
|
3941
|
+
"name": "StreamName",
|
3942
|
+
"output_required": false,
|
3943
|
+
"type": "string",
|
3944
|
+
"value_allowed_null": true
|
3898
3945
|
}
|
3899
3946
|
],
|
3900
3947
|
"usage": "out"
|
@@ -4107,6 +4154,16 @@
|
|
4107
4154
|
"output_required": false,
|
4108
4155
|
"type": "string",
|
4109
4156
|
"value_allowed_null": true
|
4157
|
+
},
|
4158
|
+
{
|
4159
|
+
"disabled": false,
|
4160
|
+
"document": "域名类型 0:拉流域名 1:推流域名\n注意:此字段可能返回 null,表示取不到有效值。",
|
4161
|
+
"example": "0",
|
4162
|
+
"member": "int64",
|
4163
|
+
"name": "DomainType",
|
4164
|
+
"output_required": false,
|
4165
|
+
"type": "int",
|
4166
|
+
"value_allowed_null": true
|
4110
4167
|
}
|
4111
4168
|
],
|
4112
4169
|
"usage": "out"
|
@@ -4188,6 +4245,7 @@
|
|
4188
4245
|
"example": "无",
|
4189
4246
|
"member": "DescribeDomainData",
|
4190
4247
|
"name": "Data",
|
4248
|
+
"output_required": true,
|
4191
4249
|
"type": "list",
|
4192
4250
|
"value_allowed_null": false
|
4193
4251
|
},
|
@@ -85,13 +85,13 @@
|
|
85
85
|
"AddUserDevice": [
|
86
86
|
{
|
87
87
|
"document": " ",
|
88
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10087\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"192\",\n \"ClusterId\": \"4169d92e
|
88
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10087\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"192\",\n \"ClusterId\": \"4169d92e-****-****-****-************\"\n}",
|
89
89
|
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"AppId\": 1300000000,\n \"ClusterId\": \"4169d92e-****-4c16-****-d313****0790\",\n \"ClusterName\": \"上海一区\",\n \"Code\": \"0******Ofl\",\n \"Description\": \"\",\n \"GatewayId\": \"\",\n \"DeviceId\": \"********-53e4-****-a16e-*************\",\n \"Ip\": \"\",\n \"Name\": \"rtmp10087\",\n \"OrganizationId\": 1000192,\n \"Password\": \"\",\n \"Port\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\",\n \"ProtocolType\": 1,\n \"Status\": 1\n },\n \"RequestId\": \"6836e76d-8e7d-48d3-98c2-bc0df3bf23c2\"\n }\n}",
|
90
90
|
"title": "rtmp成功"
|
91
91
|
},
|
92
92
|
{
|
93
93
|
"document": " ",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"12345678
|
94
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"12345678-****-****-****-************\"\n}",
|
95
95
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue\",\n \"Message\": \"无效的参数\"\n },\n \"RequestId\": \"1647459e-2715-4adb-a074-0c3d4df7d6a4\"\n }\n}",
|
96
96
|
"title": "设备类型错误"
|
97
97
|
},
|
@@ -100,6 +100,12 @@
|
|
100
100
|
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"rtmp10086\",\n \"AccessProtocol\": 1,\n \"Type\": 2,\n \"OrganizationId\": \"10092\",\n \"ClusterId\": \"********-60ad-*****-ac7e-d******dd0790\"\n}",
|
101
101
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidDeviceType\",\n \"Message\": \"无效的设备类型\"\n },\n \"RequestId\": \"d4a82b07-08a2-47ba-8f22-04ce429a0dcd\"\n }\n}",
|
102
102
|
"title": "无效的设备类型"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"document": "成功",
|
106
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserDevice\n<公共请求参数>\n\n{\n \"Name\": \"testrtmp\",\n \"AccessProtocol\": 1,\n \"Type\": 1,\n \"OrganizationId\": \"189\",\n \"ClusterId\": \"4169d92e-****-****-****-************\",\n \"TransportProtocol\": 0,\n \"Password\": \"123\",\n \"ProtocolType\": 0,\n \"AppName\": \"testapp\",\n \"StreamName\": \"teststream\"\n}",
|
107
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"AppId\": 1300056079,\n \"ClusterId\": \"4169d92e-****-****-****-************\",\n \"ClusterName\": \"上海一区\",\n \"Code\": \"0HQq******\",\n \"Description\": \"\",\n \"DeviceId\": \"f1f9baae-****-****-****-************\",\n \"GatewayId\": \"\",\n \"Ip\": \"\",\n \"Name\": \"testrtmp\",\n \"OrganizationId\": 189,\n \"Password\": \"123\",\n \"Port\": 0,\n \"ProtocolType\": 0,\n \"Status\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\"\n },\n \"RequestId\": \"56d8591d-85cb-498d-a5b6-52133305e69c\"\n }\n}",
|
108
|
+
"title": "success"
|
103
109
|
}
|
104
110
|
],
|
105
111
|
"BatchOperateDevice": [
|
@@ -299,7 +305,7 @@
|
|
299
305
|
"DescribeCNAME": [
|
300
306
|
{
|
301
307
|
"document": " ",
|
302
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCNAME\n<公共请求参数>\n\n{\n \"ClusterId\": \"********-****-****-****-************\"\n}",
|
308
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCNAME\n<公共请求参数>\n\n{\n \"ClusterId\": \"********-****-****-****-************\",\n \"DomainType\": 0\n}",
|
303
309
|
"output": "{\n \"Response\": {\n \"Data\": \"****************.play-ivc.ap-shanghai.tencentivc.cn\",\n \"RequestId\": \"91297e34-b7bc-4d90-9c14-20bcd08f0db4\"\n }\n}",
|
304
310
|
"title": "成功"
|
305
311
|
}
|
@@ -338,7 +344,7 @@
|
|
338
344
|
{
|
339
345
|
"document": " ",
|
340
346
|
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDomain\n<公共请求参数>\n\n{}",
|
341
|
-
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AppId\": 1300000000,\n \"ClusterId\": \"********-****-****-****-**********\",\n \"ClusterName\": \"上海一区\",\n \"HaveCert\": 0,\n \"Id\": \"********-****-****-****-**********\",\n \"InternalDomain\": \"******************************.play-ivc.tencentivc.cn\",\n \"PlayDomain\": \"******.com.cn\"\n }\n ],\n \"RequestId\": \"7c69cd07-ee8e-4682-ab63-64a2e94d24f9\"\n }\n}",
|
347
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"AppId\": 1300000000,\n \"ClusterId\": \"********-****-****-****-**********\",\n \"ClusterName\": \"上海一区\",\n \"HaveCert\": 0,\n \"Id\": \"********-****-****-****-**********\",\n \"InternalDomain\": \"******************************.play-ivc.tencentivc.cn\",\n \"PlayDomain\": \"******.com.cn\",\n \"DomainType\": 0\n }\n ],\n \"RequestId\": \"7c69cd07-ee8e-4682-ab63-64a2e94d24f9\"\n }\n}",
|
342
348
|
"title": "成功"
|
343
349
|
}
|
344
350
|
],
|
@@ -491,8 +497,8 @@
|
|
491
497
|
"DescribeUserDevice": [
|
492
498
|
{
|
493
499
|
"document": "ok",
|
494
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"da238a8c-****-4a5b
|
495
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"ClusterId\": \"
|
500
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"da238a8c-****-4a5b-****-************\"\n}",
|
501
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessProtocol\": 1,\n \"ClusterId\": \"********-****-****-****-************\",\n \"ClusterName\": \"\",\n \"Code\": \"2*****vkVe\",\n \"Description\": \"\",\n \"GatewayId\": \"\",\n \"GatewayName\": \"\",\n \"DeviceId\": \"da238a8c-****-4a5b-****-************\",\n \"Ip\": \"\",\n \"Manufacturer\": \"\",\n \"Name\": \"iss-qta-dont-delete\",\n \"OrganizationId\": \"22\",\n \"Password\": \"\",\n \"Port\": 0,\n \"ProtocolType\": 0,\n \"ProtocolTypeName\": \"\",\n \"PushStreamUrl\": \"rtmp://81.**.54.**/live/2*****4vkVe\",\n \"Region\": \"\",\n \"SipDomain\": \"\",\n \"SipId\": \"\",\n \"SipIp\": \"\",\n \"SipPort\": 0,\n \"Status\": 0,\n \"TransportProtocol\": 0,\n \"Type\": 1,\n \"Username\": \"\"\n },\n \"RequestId\": \"c3e6cbee-7a30-49b0-8415-af3cc46fe257\"\n }\n}",
|
496
502
|
"title": "rtmp"
|
497
503
|
},
|
498
504
|
{
|
@@ -503,7 +509,7 @@
|
|
503
509
|
},
|
504
510
|
{
|
505
511
|
"document": " ",
|
506
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"66666666
|
512
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDevice\n<公共请求参数>\n\n{\n \"DeviceId\": \"66666666-****-****-****-************\"\n}",
|
507
513
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidDeviceId\",\n \"Message\": \"无效的设备Id\"\n },\n \"RequestId\": \"c3c7c853-e5cf-4829-87f8-375b0623d750\"\n }\n}",
|
508
514
|
"title": "无效的设备Id错误"
|
509
515
|
}
|
tccli/services/mna/mna_client.py
CHANGED
@@ -1005,6 +1005,58 @@ def doUpdateDevice(args, parsed_globals):
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
1006
|
|
1007
1007
|
|
1008
|
+
def doOrderPerLicense(args, parsed_globals):
|
1009
|
+
g_param = parse_global_arg(parsed_globals)
|
1010
|
+
|
1011
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1012
|
+
cred = credential.CVMRoleCredential()
|
1013
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1014
|
+
cred = credential.STSAssumeRoleCredential(
|
1015
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1016
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1017
|
+
)
|
1018
|
+
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):
|
1019
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1020
|
+
else:
|
1021
|
+
cred = credential.Credential(
|
1022
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1023
|
+
)
|
1024
|
+
http_profile = HttpProfile(
|
1025
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1026
|
+
reqMethod="POST",
|
1027
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1028
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1029
|
+
)
|
1030
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1031
|
+
if g_param[OptionsDefine.Language]:
|
1032
|
+
profile.language = g_param[OptionsDefine.Language]
|
1033
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1034
|
+
client = mod.MnaClient(cred, g_param[OptionsDefine.Region], profile)
|
1035
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1036
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1037
|
+
model = models.OrderPerLicenseRequest()
|
1038
|
+
model.from_json_string(json.dumps(args))
|
1039
|
+
start_time = time.time()
|
1040
|
+
while True:
|
1041
|
+
rsp = client.OrderPerLicense(model)
|
1042
|
+
result = rsp.to_json_string()
|
1043
|
+
try:
|
1044
|
+
json_obj = json.loads(result)
|
1045
|
+
except TypeError as e:
|
1046
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1047
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1048
|
+
break
|
1049
|
+
cur_time = time.time()
|
1050
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1051
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1052
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1053
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1054
|
+
else:
|
1055
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1056
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1057
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
|
+
|
1059
|
+
|
1008
1060
|
def doGetNetMonitor(args, parsed_globals):
|
1009
1061
|
g_param = parse_global_arg(parsed_globals)
|
1010
1062
|
|
@@ -2127,6 +2179,7 @@ ACTION_MAP = {
|
|
2127
2179
|
"GetFlowStatisticByRegion": doGetFlowStatisticByRegion,
|
2128
2180
|
"DeleteDevice": doDeleteDevice,
|
2129
2181
|
"UpdateDevice": doUpdateDevice,
|
2182
|
+
"OrderPerLicense": doOrderPerLicense,
|
2130
2183
|
"GetNetMonitor": doGetNetMonitor,
|
2131
2184
|
"UpdateHardware": doUpdateHardware,
|
2132
2185
|
"GetGroupDetail": doGetGroupDetail,
|