tccli 3.0.1275.1__py2.py3-none-any.whl → 3.0.1277.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/ams/v20201229/api.json +134 -22
- tccli/services/batch/v20170312/api.json +24 -24
- tccli/services/cfw/v20190904/api.json +6 -6
- tccli/services/cvm/v20170312/api.json +57 -37
- tccli/services/cynosdb/v20190107/api.json +14 -4
- tccli/services/emr/v20190103/api.json +29 -29
- tccli/services/ess/ess_client.py +110 -4
- tccli/services/ess/v20201111/api.json +540 -328
- tccli/services/ess/v20201111/examples.json +22 -0
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +432 -238
- tccli/services/essbasic/v20210526/examples.json +22 -0
- tccli/services/ims/v20201229/api.json +82 -0
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/lighthouse/v20200324/api.json +6 -6
- tccli/services/live/v20180801/api.json +224 -217
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +72 -2
- tccli/services/lke/v20231130/examples.json +8 -0
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/rce/v20201103/api.json +13 -13
- tccli/services/taf/v20200210/api.json +9 -9
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +2 -2
- tccli/services/tke/v20180525/api.json +176 -176
- tccli/services/trtc/v20190722/api.json +9 -0
- tccli/services/tse/v20201207/api.json +84 -4
- tccli/services/vm/v20201229/api.json +428 -78
- tccli/services/vm/v20210922/api.json +482 -82
- tccli/services/wedata/v20210820/api.json +29 -18
- tccli/services/wedata/v20210820/examples.json +12 -18
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/RECORD +38 -38
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1275.1.dist-info → tccli-3.0.1277.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/lke/lke_client.py
CHANGED
@@ -1473,6 +1473,58 @@ def doCheckAttributeLabelExist(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
+
def doRenameDoc(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.RenameDocRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.RenameDoc(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1476
1528
|
def doDescribeDoc(args, parsed_globals):
|
1477
1529
|
g_param = parse_global_arg(parsed_globals)
|
1478
1530
|
|
@@ -5152,6 +5204,7 @@ ACTION_MAP = {
|
|
5152
5204
|
"VerifyQA": doVerifyQA,
|
5153
5205
|
"CreateDocCate": doCreateDocCate,
|
5154
5206
|
"CheckAttributeLabelExist": doCheckAttributeLabelExist,
|
5207
|
+
"RenameDoc": doRenameDoc,
|
5155
5208
|
"DescribeDoc": doDescribeDoc,
|
5156
5209
|
"ListUsageCallDetail": doListUsageCallDetail,
|
5157
5210
|
"DescribeStorageCredential": doDescribeStorageCredential,
|
@@ -623,6 +623,13 @@
|
|
623
623
|
"output": "ReconstructDocumentResponse",
|
624
624
|
"status": "online"
|
625
625
|
},
|
626
|
+
"RenameDoc": {
|
627
|
+
"document": "文档重命名",
|
628
|
+
"input": "RenameDocRequest",
|
629
|
+
"name": "文档重命名",
|
630
|
+
"output": "RenameDocResponse",
|
631
|
+
"status": "online"
|
632
|
+
},
|
626
633
|
"ResetSession": {
|
627
634
|
"document": "重置会话",
|
628
635
|
"input": "ResetSessionRequest",
|
@@ -7084,7 +7091,7 @@
|
|
7084
7091
|
"members": [
|
7085
7092
|
{
|
7086
7093
|
"disabled": false,
|
7087
|
-
"document": "
|
7094
|
+
"document": "接入类型,当前请填写5",
|
7088
7095
|
"example": "1: 坐席 2: 访客 3: 体验 5: API 访客",
|
7089
7096
|
"member": "int64",
|
7090
7097
|
"name": "Type",
|
@@ -7093,7 +7100,7 @@
|
|
7093
7100
|
},
|
7094
7101
|
{
|
7095
7102
|
"disabled": false,
|
7096
|
-
"document": "
|
7103
|
+
"document": "当Type=5时,必填;应用AppKey(应用发布后在应用页面[发布管理]-[调用信息]-[API管理]处获取)",
|
7097
7104
|
"example": "无",
|
7098
7105
|
"member": "string",
|
7099
7106
|
"name": "BotAppKey",
|
@@ -13232,6 +13239,69 @@
|
|
13232
13239
|
],
|
13233
13240
|
"usage": "out"
|
13234
13241
|
},
|
13242
|
+
"RenameDocRequest": {
|
13243
|
+
"document": "RenameDoc请求参数结构体",
|
13244
|
+
"members": [
|
13245
|
+
{
|
13246
|
+
"disabled": false,
|
13247
|
+
"document": "登录用户主账号(集成商模式必填)\t",
|
13248
|
+
"example": "6000005624511",
|
13249
|
+
"member": "string",
|
13250
|
+
"name": "LoginUin",
|
13251
|
+
"required": false,
|
13252
|
+
"type": "string"
|
13253
|
+
},
|
13254
|
+
{
|
13255
|
+
"disabled": false,
|
13256
|
+
"document": "登录用户子账号(集成商模式必填)\t",
|
13257
|
+
"example": "6000005624511",
|
13258
|
+
"member": "string",
|
13259
|
+
"name": "LoginSubAccountUin",
|
13260
|
+
"required": false,
|
13261
|
+
"type": "string"
|
13262
|
+
},
|
13263
|
+
{
|
13264
|
+
"disabled": false,
|
13265
|
+
"document": "应用ID",
|
13266
|
+
"example": "无",
|
13267
|
+
"member": "string",
|
13268
|
+
"name": "BotBizId",
|
13269
|
+
"required": false,
|
13270
|
+
"type": "string"
|
13271
|
+
},
|
13272
|
+
{
|
13273
|
+
"disabled": false,
|
13274
|
+
"document": "文档ID",
|
13275
|
+
"example": "无",
|
13276
|
+
"member": "string",
|
13277
|
+
"name": "DocBizId",
|
13278
|
+
"required": false,
|
13279
|
+
"type": "string"
|
13280
|
+
},
|
13281
|
+
{
|
13282
|
+
"disabled": false,
|
13283
|
+
"document": "新文档名,需要带上后缀",
|
13284
|
+
"example": "新文档名.docx",
|
13285
|
+
"member": "string",
|
13286
|
+
"name": "NewName",
|
13287
|
+
"required": false,
|
13288
|
+
"type": "string"
|
13289
|
+
}
|
13290
|
+
],
|
13291
|
+
"type": "object"
|
13292
|
+
},
|
13293
|
+
"RenameDocResponse": {
|
13294
|
+
"document": "RenameDoc返回参数结构体",
|
13295
|
+
"members": [
|
13296
|
+
{
|
13297
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13298
|
+
"member": "string",
|
13299
|
+
"name": "RequestId",
|
13300
|
+
"type": "string"
|
13301
|
+
}
|
13302
|
+
],
|
13303
|
+
"type": "object"
|
13304
|
+
},
|
13235
13305
|
"ResetSessionRequest": {
|
13236
13306
|
"document": "ResetSession请求参数结构体",
|
13237
13307
|
"members": [
|
@@ -724,6 +724,14 @@
|
|
724
724
|
"title": "接口调用成功示例"
|
725
725
|
}
|
726
726
|
],
|
727
|
+
"RenameDoc": [
|
728
|
+
{
|
729
|
+
"document": "重命名文档-提交成功",
|
730
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenameDoc\n<公共请求参数>\n\n{\n \"BotBizId\": \"181XXXXXXXXX54112\",\n \"DocBizId\": \"181XXXXXXXXXXXXXXX\",\n \"NewName\": \"新文档名.docx\"\n}",
|
731
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9580fed9-441a-4825-8343-8d5ed700ebe8\"\n }\n}",
|
732
|
+
"title": "重命名文档-提交成功"
|
733
|
+
}
|
734
|
+
],
|
727
735
|
"ResetSession": [
|
728
736
|
{
|
729
737
|
"document": "",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"ChatCompletions": {
|
4
|
-
"document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为5。\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云大模型知识引擎](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n
|
4
|
+
"document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为5。\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云大模型知识引擎](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
|
5
5
|
"input": "ChatCompletionsRequest",
|
6
6
|
"name": "DeepSeek API 接口",
|
7
7
|
"output": "ChatCompletionsResponse",
|
@@ -178,7 +178,7 @@
|
|
178
178
|
},
|
179
179
|
{
|
180
180
|
"disabled": false,
|
181
|
-
"document": "
|
181
|
+
"document": "数据受托方、提供方:腾讯云主体名称。固定填:腾讯云计算(北京)有限责任公司",
|
182
182
|
"example": "腾讯云计算(北京)有限责任公司",
|
183
183
|
"member": "string",
|
184
184
|
"name": "DataRecipientName",
|
@@ -187,7 +187,7 @@
|
|
187
187
|
},
|
188
188
|
{
|
189
189
|
"disabled": false,
|
190
|
-
"document": "客户请求RCE所提供的用户数据类型,支持多选。实际以接口请求传参为准。\
|
190
|
+
"document": "客户请求RCE所提供的用户数据类型,支持多选。实际以接口请求传参为准。\n1-手机号;\n2-微信开放账号;\n3-QQ开放账号;\n4-IP地址;\n999-其它;",
|
191
191
|
"example": "[1, 4]",
|
192
192
|
"member": "uint64",
|
193
193
|
"name": "UserDataType",
|
@@ -214,7 +214,7 @@
|
|
214
214
|
},
|
215
215
|
{
|
216
216
|
"disabled": false,
|
217
|
-
"document": "
|
217
|
+
"document": "客户获得的用户授权期限时间戳(单位秒)。不填默认无固定期限。",
|
218
218
|
"example": "1719805604",
|
219
219
|
"member": "uint64",
|
220
220
|
"name": "AuthorizationTerm",
|
@@ -223,7 +223,7 @@
|
|
223
223
|
},
|
224
224
|
{
|
225
225
|
"disabled": false,
|
226
|
-
"document": "
|
226
|
+
"document": "客户获得用户授权所依赖的协议地址。",
|
227
227
|
"example": "https://www.*****.com/*",
|
228
228
|
"member": "string",
|
229
229
|
"name": "PrivacyPolicyLink",
|
@@ -232,7 +232,7 @@
|
|
232
232
|
},
|
233
233
|
{
|
234
234
|
"disabled": false,
|
235
|
-
"document": "
|
235
|
+
"document": "是否是用户个人敏感数据(不推荐使用)。固定填:1。",
|
236
236
|
"example": "1",
|
237
237
|
"member": "uint64",
|
238
238
|
"name": "IsPersonalData",
|
@@ -598,7 +598,7 @@
|
|
598
598
|
"members": [
|
599
599
|
{
|
600
600
|
"disabled": false,
|
601
|
-
"document": "是否授权:1已授权,否则未授权。\n
|
601
|
+
"document": "是否授权:1已授权,否则未授权。\n 调用全栈式风控引擎接口服务时,客户需先明确授权。",
|
602
602
|
"example": "1",
|
603
603
|
"member": "string",
|
604
604
|
"name": "IsAuthorized",
|
@@ -607,7 +607,7 @@
|
|
607
607
|
},
|
608
608
|
{
|
609
609
|
"disabled": false,
|
610
|
-
"document": "加密类型:1AES
|
610
|
+
"document": "加密类型:1AES加密",
|
611
611
|
"example": "1",
|
612
612
|
"member": "string",
|
613
613
|
"name": "CryptoType",
|
@@ -1033,7 +1033,7 @@
|
|
1033
1033
|
},
|
1034
1034
|
{
|
1035
1035
|
"disabled": false,
|
1036
|
-
"document": "1:Android\n2:iOS\n3:H5\n4
|
1036
|
+
"document": "1:Android\n2:iOS\n3:H5\n4:小程序",
|
1037
1037
|
"example": "1",
|
1038
1038
|
"member": "string",
|
1039
1039
|
"name": "Platform",
|
@@ -1593,7 +1593,7 @@
|
|
1593
1593
|
{
|
1594
1594
|
"disabled": false,
|
1595
1595
|
"document": "名单数据创建时间",
|
1596
|
-
"example": "
|
1596
|
+
"example": "2024-05-05 12:10:15",
|
1597
1597
|
"member": "string",
|
1598
1598
|
"name": "CreateTime",
|
1599
1599
|
"output_required": true,
|
@@ -1922,7 +1922,7 @@
|
|
1922
1922
|
"members": [
|
1923
1923
|
{
|
1924
1924
|
"disabled": false,
|
1925
|
-
"document": "错误码,0 表示成功,非0表示失败错误码。 0:成功 1002:参数错误 4300:未开通服务 6000
|
1925
|
+
"document": "错误码,0 表示成功,非0表示失败错误码。 0:成功 1002:参数错误 4300:未开通服务 6000:系统内部错误。",
|
1926
1926
|
"example": "0",
|
1927
1927
|
"member": "int64",
|
1928
1928
|
"name": "Code",
|
@@ -1932,7 +1932,7 @@
|
|
1932
1932
|
},
|
1933
1933
|
{
|
1934
1934
|
"disabled": false,
|
1935
|
-
"document": "
|
1935
|
+
"document": "错误信息。",
|
1936
1936
|
"example": "OK",
|
1937
1937
|
"member": "string",
|
1938
1938
|
"name": "Message",
|
@@ -1942,7 +1942,7 @@
|
|
1942
1942
|
},
|
1943
1943
|
{
|
1944
1944
|
"disabled": false,
|
1945
|
-
"document": "
|
1945
|
+
"document": "黑白名单列表信息。",
|
1946
1946
|
"example": "无",
|
1947
1947
|
"member": "OutputDescribeNameListInfo",
|
1948
1948
|
"name": "Value",
|
@@ -2372,7 +2372,7 @@
|
|
2372
2372
|
},
|
2373
2373
|
{
|
2374
2374
|
"disabled": false,
|
2375
|
-
"document": "
|
2375
|
+
"document": "用户设备号(已不推荐使用)。",
|
2376
2376
|
"example": "095006********************dddc39",
|
2377
2377
|
"member": "string",
|
2378
2378
|
"name": "DeviceId",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
{
|
31
31
|
"disabled": false,
|
32
32
|
"document": "用户公网ip(仅支持IPv4)",
|
33
|
-
"example": "203
|
33
|
+
"example": "203.***.***.118",
|
34
34
|
"member": "string",
|
35
35
|
"name": "UserIp",
|
36
36
|
"required": true,
|
@@ -39,7 +39,7 @@
|
|
39
39
|
{
|
40
40
|
"disabled": false,
|
41
41
|
"document": "渠道号",
|
42
|
-
"example": "
|
42
|
+
"example": "1",
|
43
43
|
"member": "int64",
|
44
44
|
"name": "Channel",
|
45
45
|
"required": true,
|
@@ -54,7 +54,7 @@
|
|
54
54
|
{
|
55
55
|
"disabled": false,
|
56
56
|
"document": "返回码(0,成功,其他失败)",
|
57
|
-
"example": "
|
57
|
+
"example": "0",
|
58
58
|
"member": "int64",
|
59
59
|
"name": "Code",
|
60
60
|
"output_required": true,
|
@@ -63,18 +63,18 @@
|
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"disabled": false,
|
66
|
-
"document": "
|
67
|
-
"example": "
|
66
|
+
"document": "返回码对应的信息",
|
67
|
+
"example": "OK",
|
68
68
|
"member": "string",
|
69
69
|
"name": "Message",
|
70
70
|
"output_required": false,
|
71
71
|
"type": "string",
|
72
|
-
"value_allowed_null":
|
72
|
+
"value_allowed_null": false
|
73
73
|
},
|
74
74
|
{
|
75
75
|
"disabled": false,
|
76
76
|
"document": "结果\n注意:此字段可能返回 null,表示取不到有效值。",
|
77
|
-
"example": "
|
77
|
+
"example": "{\"Level\":0,\"UserIp\":\"150.***.***.175\"}",
|
78
78
|
"member": "ManagePortraitRiskValueOutput",
|
79
79
|
"name": "Value",
|
80
80
|
"output_required": false,
|
@@ -127,7 +127,7 @@
|
|
127
127
|
{
|
128
128
|
"disabled": false,
|
129
129
|
"document": "对应的IP",
|
130
|
-
"example": "
|
130
|
+
"example": "150.***.***.175",
|
131
131
|
"member": "string",
|
132
132
|
"name": "UserIp",
|
133
133
|
"output_required": true,
|
@@ -137,7 +137,7 @@
|
|
137
137
|
{
|
138
138
|
"disabled": false,
|
139
139
|
"document": "返回风险等级, 0 - 4,0代表无风险,数值越大,风险越高",
|
140
|
-
"example": "
|
140
|
+
"example": "0",
|
141
141
|
"member": "int64",
|
142
142
|
"name": "Level",
|
143
143
|
"output_required": true,
|
@@ -7820,7 +7820,7 @@
|
|
7820
7820
|
},
|
7821
7821
|
{
|
7822
7822
|
"disabled": false,
|
7823
|
-
"document": "指标列表,取值有:\n<li>acc_flux: 内容加速流量,单位为 Byte;</li>\n<li>smt_flux: 智能加速流量,单位为 Byte;</li>\n<li>l4_flux: 四层加速流量,单位为 Byte;</li>\n<li>sec_flux: 独立防护流量,单位为 Byte;</li>\n<li>zxctg_flux: 中国大陆网络优化流量,单位为 Byte;</li>\n<li>acc_bandwidth: 内容加速带宽,单位为 bps;</li>\n<li>smt_bandwidth: 智能加速带宽,单位为 bps;</li>\n<li>l4_bandwidth: 四层加速带宽,单位为 bps;</li>\n<li>sec_bandwidth: 独立防护带宽,单位为 bps;</li>\n<li>zxctg_bandwidth: 中国大陆网络优化带宽,单位为 bps;</li>\n<li>sec_request_clean: HTTP/HTTPS 请求,单位为次;</li>\n<li>smt_request_clean: 智能加速请求,单位为次;</li>\n<li>quic_request: QUIC 请求,单位为次;</li>\n<li>bot_request_clean: Bot 请求,单位为次;</li>\n<li>cls_count: 实时日志推送条数,单位为条;</li>\n<li>ddos_bandwidth: 弹性 DDoS 防护带宽,单位为 bps
|
7823
|
+
"document": "指标列表,取值有:\n<li>acc_flux: 内容加速流量,单位为 Byte;</li>\n<li>smt_flux: 智能加速流量,单位为 Byte;</li>\n<li>l4_flux: 四层加速流量,单位为 Byte;</li>\n<li>sec_flux: 独立防护流量,单位为 Byte;</li>\n<li>zxctg_flux: 中国大陆网络优化流量,单位为 Byte;</li>\n<li>acc_bandwidth: 内容加速带宽,单位为 bps;</li>\n<li>smt_bandwidth: 智能加速带宽,单位为 bps;</li>\n<li>l4_bandwidth: 四层加速带宽,单位为 bps;</li>\n<li>sec_bandwidth: 独立防护带宽,单位为 bps;</li>\n<li>zxctg_bandwidth: 中国大陆网络优化带宽,单位为 bps;</li>\n<li>sec_request_clean: HTTP/HTTPS 请求,单位为次;</li>\n<li>smt_request_clean: 智能加速请求,单位为次;</li>\n<li>quic_request: QUIC 请求,单位为次;</li>\n<li>bot_request_clean: Bot 请求,单位为次;</li>\n<li>cls_count: 实时日志推送条数,单位为条;</li>\n<li>ddos_bandwidth: 弹性 DDoS 防护带宽,单位为 bps;</li>\n<li>total_transcode:所有规格音频,视频即时转码,转封装时长,单位为秒;</li>\n<li>remux:转封装时长,单位为秒;</li>\n<li>transcode_audio:音频转码时长,单位为秒;</li>\n<li>transcode_H264_SD:H.264 编码方式的标清视频(短边 <= 480 px)时长,单位为秒;</li>\n<li>transcode_H264_HD:H.264 编码方式的高清视频(短边 <= 720 px)时长,单位为秒;</li>\n<li>transcode_H264_FHD:H.264 编码方式的全高清视频(短边 <= 1080 px)时长,单位为秒;</li>\n<li>transcode_H264_2K:H.264 编码方式的 2K 视频(短边 <= 1440 px)时长,单位为秒。</li>",
|
7824
7824
|
"example": "acc_flux",
|
7825
7825
|
"member": "string",
|
7826
7826
|
"name": "MetricName",
|
@@ -11020,7 +11020,7 @@
|
|
11020
11020
|
},
|
11021
11021
|
{
|
11022
11022
|
"disabled": false,
|
11023
|
-
"document": "过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下有权限的所有站点信息。详细的过滤条件如下:\n<li>zone-name:按照站点名称进行过滤;</li><li>zone-id:按照站点 ID进行过滤。站点 ID 形如:zone-2noz78a8ev6k;</li><li>status:按照站点状态进行过滤;</li><li>tag-key:按照标签键进行过滤;</li><li>tag-value: 按照标签值进行过滤。</li
|
11023
|
+
"document": "过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下有权限的所有站点信息。详细的过滤条件如下:\n<li>zone-name:按照站点名称进行过滤;</li><li>zone-id:按照站点 ID进行过滤。站点 ID 形如:zone-2noz78a8ev6k;</li><li>status:按照站点状态进行过滤;</li><li>tag-key:按照标签键进行过滤;</li><li>tag-value: 按照标签值进行过滤。</li><li>alias-zone-name: 按照同名站点标识进行过滤。</li>模糊查询时支持过滤字段名为 zone-name 或 alias-zone-name。",
|
11024
11024
|
"example": "无",
|
11025
11025
|
"member": "AdvancedFilter",
|
11026
11026
|
"name": "Filters",
|
@@ -938,7 +938,7 @@
|
|
938
938
|
{
|
939
939
|
"document": "查询特定 HTTP 协议版本(HTTP/1.0、HTTP/1.1)下的 Top URL Path 流量数据。",
|
940
940
|
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopL7AnalysisData\n<公共请求参数>\n\n{\n \"Area\": \"mainland\",\n \"Interval\": \"day\",\n \"Limit\": \"1\",\n \"StartTime\": \"2022-07-31T00:00:00+08:00\",\n \"EndTime\": \"2022-08-29T19:17:59+08:00\",\n \"MetricName\": \"l7Flow_outFlux_url\",\n \"Filters\": [\n {\n \"Key\": \"protocol\",\n \"Operator\": \"equals\",\n \"Value\": [\n \"HTTP/1.0\",\n \"HTTP/1.1\"\n ]\n }\n ],\n \"ZoneIds\": [\n \"zone-2mzegj4vln5f\"\n ]\n}",
|
941
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"7c499897-8ad9-4a2d-884e-6154f283d723\",\n \"Data\": [\n {\n \"DetailData\": [\n {\n \"Key\": \"
|
941
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7c499897-8ad9-4a2d-884e-6154f283d723\",\n \"Data\": [\n {\n \"DetailData\": [\n {\n \"Key\": \"path\",\n \"Value\": 1210001\n }\n ],\n \"TypeKey\": \"251227260\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
942
942
|
"title": "查询特定 HTTP 协议版本下的 Top URL Path 流量数据"
|
943
943
|
}
|
944
944
|
],
|
@@ -134,11 +134,11 @@
|
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
136
|
"DescribeInferTemplates": {
|
137
|
-
"document": "查询推理镜像模板",
|
137
|
+
"document": "已废弃,收敛到统一接口\n\n查询推理镜像模板",
|
138
138
|
"input": "DescribeInferTemplatesRequest",
|
139
139
|
"name": "查询推理镜像模板",
|
140
140
|
"output": "DescribeInferTemplatesResponse",
|
141
|
-
"status": "
|
141
|
+
"status": "deprecated"
|
142
142
|
},
|
143
143
|
"DescribeModelAccelerateTask": {
|
144
144
|
"document": "查询模型优化任务详情",
|