tccli 3.0.1301.1__py2.py3-none-any.whl → 3.0.1303.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/billing/v20180709/api.json +2 -2
- tccli/services/billing/v20180709/examples.json +2 -2
- tccli/services/cam/v20190116/api.json +2 -2
- tccli/services/cat/v20180409/api.json +154 -0
- tccli/services/cat/v20180409/examples.json +3 -3
- tccli/services/ccc/v20200210/api.json +11 -1
- tccli/services/cdc/cdc_client.py +173 -67
- tccli/services/cdc/v20201214/api.json +96 -0
- tccli/services/cdc/v20201214/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +11 -0
- tccli/services/cdwpg/v20201230/api.json +1 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cvm/v20170312/api.json +18 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +62 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +71 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/es/v20180416/api.json +3 -3
- tccli/services/es/v20180416/examples.json +3 -3
- tccli/services/gs/gs_client.py +110 -4
- tccli/services/gs/v20191118/api.json +128 -0
- tccli/services/gs/v20191118/examples.json +16 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +4 -4
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/monitor/v20180724/api.json +5 -5
- tccli/services/monitor/v20180724/examples.json +1 -1
- tccli/services/mps/v20190612/api.json +94 -29
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +82 -82
- tccli/services/tdmq/v20200217/examples.json +28 -28
- tccli/services/tds/tds_client.py +53 -0
- tccli/services/tds/v20220801/api.json +265 -0
- tccli/services/tds/v20220801/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +664 -575
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +385 -4
- tccli/services/trtc/v20190722/api.json +12 -12
- tccli/services/trtc/v20190722/examples.json +5 -5
- tccli/services/tse/v20201207/api.json +39 -6
- tccli/services/vod/v20180717/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +4 -3
- tccli/services/waf/v20180125/api.json +116 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/RECORD +57 -57
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/license_files/LICENSE +0 -0
@@ -219,7 +219,7 @@
|
|
219
219
|
"DescribeServerlessInstances": [
|
220
220
|
{
|
221
221
|
"document": "Serverless获取索引列表",
|
222
|
-
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessInstances\n<公共请求参数>\n\n{\n \"IndexNames\": [\n \"
|
222
|
+
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessInstances\n<公共请求参数>\n\n{\n \"IndexNames\": [\n \"indexName\"\n ],\n \"InstanceIds\": [\n \"index-abcdefgh\"\n ],\n \"Limit\": 0,\n \"Offset\": 10\n}",
|
223
223
|
"output": "{\n \"Response\": {\n \"IndexMetaFields\": [\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2v3kt0yr\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"curl-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:55\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2v3kt0yr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2v3kt0yr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-2s8pkoa7\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-tke-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:34:20\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-2s8pkoa7.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-2s8pkoa7.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-7th48x7l\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"beats-cvm-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:33:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-7th48x7l.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-7th48x7l.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-brjddwvb\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"tke-data-link-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:30:26\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-brjddwvb.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-brjddwvb.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-k75a66tp\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"ychenjiang-test2-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:29:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-k75a66tp.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-k75a66tp.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-o8otig09\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-datalink-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 14:23:02\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-o8otig09.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-o8otig09.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-gh5rrdhr\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"faegagag-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 0,\n \"IndexCreateTime\": \"2023-11-23 12:04:48\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-gh5rrdhr.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-gh5rrdhr.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-65q7dsff\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test3334-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 6422689,\n \"IndexCreateTime\": \"2023-11-23 11:53:04\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-65q7dsff.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-65q7dsff.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-irah4s23\",\n \"SpaceId\": \"space-mdo5a8bf\",\n \"SpaceName\": \"tom-test\",\n \"IndexName\": \"cvm-source-mdo5a8bf\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 204964,\n \"IndexCreateTime\": \"2023-11-23 11:39:28\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-444yjczv\",\n \"SubnetUid\": \"subnet-mrezecu2\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-irah4s23.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-irah4s23.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n },\n {\n \"AppId\": 1257780094,\n \"InstanceId\": \"index-8s7iinrd\",\n \"SpaceId\": \"space-0gyg87rx\",\n \"SpaceName\": \"price-test\",\n \"IndexName\": \"haoa-test44-0gyg87rx\",\n \"IndexMetaJson\": \"\",\n \"IndexStorage\": 6072662,\n \"IndexCreateTime\": \"2023-11-23 11:15:47\",\n \"IndexDocs\": 0,\n \"Status\": 1,\n \"IndexSettingsField\": {\n \"NumberOfShards\": \"\",\n \"RefreshInterval\": \"30s\"\n },\n \"IndexOptionsField\": {\n \"ExpireMaxAge\": \"30d\",\n \"TimestampField\": \"@timestamp\"\n },\n \"IndexNetworkField\": {\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-7\",\n \"VpcUid\": \"vpc-ld5dkwwx\",\n \"SubnetUid\": \"subnet-267c2gvq\",\n \"Username\": \"\",\n \"Password\": \"\"\n },\n \"KibanaUrl\": \"https://index-8s7iinrd.kibana.myserverlessindex.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"IndexAccessUrl\": \"index-8s7iinrd.ap-guangzhou.myserverlessindex.com\",\n \"StorageType\": 0,\n \"TagList\": []\n }\n ],\n \"TotalCount\": 20,\n \"RequestId\": \"a75f987c-5f03-4fec-bbb8-be132b57666b\"\n }\n}",
|
224
224
|
"title": "Serverless获取索引列表"
|
225
225
|
}
|
@@ -244,7 +244,7 @@
|
|
244
244
|
{
|
245
245
|
"document": "获取Serverless索引空间列表",
|
246
246
|
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessSpaces\n<公共请求参数>\n\n{}",
|
247
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"ServerlessSpaces\": [\n {\n \"SpaceId\": \"
|
247
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"ServerlessSpaces\": [\n {\n \"SpaceId\": \"space-eafhiefi\",\n \"SpaceName\": \"spaceName\",\n \"Status\": 1,\n \"CreateTime\": \"2024-12-11 17:50:05\",\n \"IndexCount\": 1\n }\n ],\n \"RequestId\": \"40f4f780-9969-42f9-8bd9-ccf0d1f2591a\"\n }\n}",
|
248
248
|
"title": "获取Serverless索引空间列表"
|
249
249
|
}
|
250
250
|
],
|
@@ -363,7 +363,7 @@
|
|
363
363
|
"SaveAndDeployLogstashPipeline": [
|
364
364
|
{
|
365
365
|
"document": "",
|
366
|
-
"input": "https://es.tencentcloudapi.com/?Action=SaveAndDeployLogstashPipeline\n&InstanceId=ls-xxxxxxxx\n&Pipeline.PipelineId= pipe_xxx\n&Pipeline.PipelineDesc
|
366
|
+
"input": "https://es.tencentcloudapi.com/?Action=SaveAndDeployLogstashPipeline\n&InstanceId=ls-xxxxxxxx\n&Pipeline.PipelineId= pipe_xxx\n&Pipeline.PipelineDesc=管道描述\n&Pipeline.Config=\"aW5wdXR7CiAgICAjxxx\"\n&Pipeline.QueueCheckPointWrites=1000\n&Pipeline.QueueType=\"persisted\"\n&Pipeline.QueueMaxBytes=1GB\n&Pipeline.BatchDelay=50\n&Pipeline.BatchSize=1000\n&Pipeline.Workers=10\n&<公共请求参数>",
|
367
367
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6eb5c3b2-0bba-4f73-bafb-bd21esxxxxxx\"\n }\n}",
|
368
368
|
"title": "保存并部署管道"
|
369
369
|
}
|
tccli/services/gs/gs_client.py
CHANGED
@@ -537,7 +537,7 @@ def doCreateAndroidInstanceImage(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
-
def
|
540
|
+
def doModifyAndroidInstancesInformation(args, parsed_globals):
|
541
541
|
g_param = parse_global_arg(parsed_globals)
|
542
542
|
|
543
543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -566,11 +566,11 @@ def doDescribeInstancesCount(args, parsed_globals):
|
|
566
566
|
client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
|
567
567
|
client._sdkVersion += ("_CLI_" + __version__)
|
568
568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
-
model = models.
|
569
|
+
model = models.ModifyAndroidInstancesInformationRequest()
|
570
570
|
model.from_json_string(json.dumps(args))
|
571
571
|
start_time = time.time()
|
572
572
|
while True:
|
573
|
-
rsp = client.
|
573
|
+
rsp = client.ModifyAndroidInstancesInformation(model)
|
574
574
|
result = rsp.to_json_string()
|
575
575
|
try:
|
576
576
|
json_obj = json.loads(result)
|
@@ -2201,6 +2201,58 @@ def doDescribeAndroidApps(args, parsed_globals):
|
|
2201
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2202
|
|
2203
2203
|
|
2204
|
+
def doDescribeInstancesCount(args, parsed_globals):
|
2205
|
+
g_param = parse_global_arg(parsed_globals)
|
2206
|
+
|
2207
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2208
|
+
cred = credential.CVMRoleCredential()
|
2209
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2210
|
+
cred = credential.STSAssumeRoleCredential(
|
2211
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2212
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2213
|
+
)
|
2214
|
+
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):
|
2215
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2216
|
+
else:
|
2217
|
+
cred = credential.Credential(
|
2218
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2219
|
+
)
|
2220
|
+
http_profile = HttpProfile(
|
2221
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2222
|
+
reqMethod="POST",
|
2223
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2224
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2225
|
+
)
|
2226
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2227
|
+
if g_param[OptionsDefine.Language]:
|
2228
|
+
profile.language = g_param[OptionsDefine.Language]
|
2229
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2230
|
+
client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2232
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
+
model = models.DescribeInstancesCountRequest()
|
2234
|
+
model.from_json_string(json.dumps(args))
|
2235
|
+
start_time = time.time()
|
2236
|
+
while True:
|
2237
|
+
rsp = client.DescribeInstancesCount(model)
|
2238
|
+
result = rsp.to_json_string()
|
2239
|
+
try:
|
2240
|
+
json_obj = json.loads(result)
|
2241
|
+
except TypeError as e:
|
2242
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2243
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2244
|
+
break
|
2245
|
+
cur_time = time.time()
|
2246
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2247
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2248
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2249
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2250
|
+
else:
|
2251
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2252
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2253
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
|
+
|
2255
|
+
|
2204
2256
|
def doCopyAndroidInstance(args, parsed_globals):
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
2206
2258
|
|
@@ -2461,6 +2513,58 @@ def doModifyAndroidInstancesUserId(args, parsed_globals):
|
|
2461
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2514
|
|
2463
2515
|
|
2516
|
+
def doFetchAndroidInstancesLogs(args, parsed_globals):
|
2517
|
+
g_param = parse_global_arg(parsed_globals)
|
2518
|
+
|
2519
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2520
|
+
cred = credential.CVMRoleCredential()
|
2521
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2522
|
+
cred = credential.STSAssumeRoleCredential(
|
2523
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2524
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2525
|
+
)
|
2526
|
+
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):
|
2527
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2528
|
+
else:
|
2529
|
+
cred = credential.Credential(
|
2530
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2531
|
+
)
|
2532
|
+
http_profile = HttpProfile(
|
2533
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2534
|
+
reqMethod="POST",
|
2535
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2536
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2537
|
+
)
|
2538
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2539
|
+
if g_param[OptionsDefine.Language]:
|
2540
|
+
profile.language = g_param[OptionsDefine.Language]
|
2541
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2542
|
+
client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2544
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
+
model = models.FetchAndroidInstancesLogsRequest()
|
2546
|
+
model.from_json_string(json.dumps(args))
|
2547
|
+
start_time = time.time()
|
2548
|
+
while True:
|
2549
|
+
rsp = client.FetchAndroidInstancesLogs(model)
|
2550
|
+
result = rsp.to_json_string()
|
2551
|
+
try:
|
2552
|
+
json_obj = json.loads(result)
|
2553
|
+
except TypeError as e:
|
2554
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2555
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2556
|
+
break
|
2557
|
+
cur_time = time.time()
|
2558
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2559
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2560
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2561
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2562
|
+
else:
|
2563
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2564
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2565
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
|
+
|
2567
|
+
|
2464
2568
|
def doExecuteCommandOnAndroidInstances(args, parsed_globals):
|
2465
2569
|
g_param = parse_global_arg(parsed_globals)
|
2466
2570
|
|
@@ -2794,7 +2898,7 @@ ACTION_MAP = {
|
|
2794
2898
|
"CreateAndroidInstancesScreenshot": doCreateAndroidInstancesScreenshot,
|
2795
2899
|
"UninstallAndroidInstancesApp": doUninstallAndroidInstancesApp,
|
2796
2900
|
"CreateAndroidInstanceImage": doCreateAndroidInstanceImage,
|
2797
|
-
"
|
2901
|
+
"ModifyAndroidInstancesInformation": doModifyAndroidInstancesInformation,
|
2798
2902
|
"DeleteAndroidInstanceImages": doDeleteAndroidInstanceImages,
|
2799
2903
|
"DescribeAndroidInstanceTasksStatus": doDescribeAndroidInstanceTasksStatus,
|
2800
2904
|
"TrylockWorker": doTrylockWorker,
|
@@ -2826,11 +2930,13 @@ ACTION_MAP = {
|
|
2826
2930
|
"DescribeAndroidInstanceLabels": doDescribeAndroidInstanceLabels,
|
2827
2931
|
"InstallAndroidInstancesApp": doInstallAndroidInstancesApp,
|
2828
2932
|
"DescribeAndroidApps": doDescribeAndroidApps,
|
2933
|
+
"DescribeInstancesCount": doDescribeInstancesCount,
|
2829
2934
|
"CopyAndroidInstance": doCopyAndroidInstance,
|
2830
2935
|
"DescribeAndroidInstanceApps": doDescribeAndroidInstanceApps,
|
2831
2936
|
"CreateAndroidAppVersion": doCreateAndroidAppVersion,
|
2832
2937
|
"DestroyAndroidInstances": doDestroyAndroidInstances,
|
2833
2938
|
"ModifyAndroidInstancesUserId": doModifyAndroidInstancesUserId,
|
2939
|
+
"FetchAndroidInstancesLogs": doFetchAndroidInstancesLogs,
|
2834
2940
|
"ExecuteCommandOnAndroidInstances": doExecuteCommandOnAndroidInstances,
|
2835
2941
|
"StartPublishStreamToCSS": doStartPublishStreamToCSS,
|
2836
2942
|
"StopAndroidInstances": doStopAndroidInstances,
|
@@ -182,6 +182,13 @@
|
|
182
182
|
"output": "ExecuteCommandOnAndroidInstancesResponse",
|
183
183
|
"status": "online"
|
184
184
|
},
|
185
|
+
"FetchAndroidInstancesLogs": {
|
186
|
+
"document": "批量获取安卓实例日志",
|
187
|
+
"input": "FetchAndroidInstancesLogsRequest",
|
188
|
+
"name": "批量获取安卓实例日志",
|
189
|
+
"output": "FetchAndroidInstancesLogsResponse",
|
190
|
+
"status": "online"
|
191
|
+
},
|
185
192
|
"InstallAndroidInstancesApp": {
|
186
193
|
"document": "安装安卓实例应用",
|
187
194
|
"input": "InstallAndroidInstancesAppRequest",
|
@@ -217,6 +224,13 @@
|
|
217
224
|
"output": "ModifyAndroidInstanceResolutionResponse",
|
218
225
|
"status": "online"
|
219
226
|
},
|
227
|
+
"ModifyAndroidInstancesInformation": {
|
228
|
+
"document": "批量修改安卓实例信息",
|
229
|
+
"input": "ModifyAndroidInstancesInformationRequest",
|
230
|
+
"name": "批量修改安卓实例信息",
|
231
|
+
"output": "ModifyAndroidInstancesInformationResponse",
|
232
|
+
"status": "online"
|
233
|
+
},
|
220
234
|
"ModifyAndroidInstancesLabels": {
|
221
235
|
"document": "修改安卓实例分辨率。需要注意的是该接口可能导致正在运行的应用出现闪退,所以建议在实例维护时期才进行调用。",
|
222
236
|
"input": "ModifyAndroidInstancesLabelsRequest",
|
@@ -803,6 +817,30 @@
|
|
803
817
|
],
|
804
818
|
"usage": "out"
|
805
819
|
},
|
820
|
+
"AndroidInstanceInformation": {
|
821
|
+
"document": "安卓实例信息",
|
822
|
+
"members": [
|
823
|
+
{
|
824
|
+
"disabled": false,
|
825
|
+
"document": "安卓实例 ID",
|
826
|
+
"example": "cai-abcd1234",
|
827
|
+
"member": "string",
|
828
|
+
"name": "AndroidInstanceId",
|
829
|
+
"required": true,
|
830
|
+
"type": "string"
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"disabled": false,
|
834
|
+
"document": "实例名称",
|
835
|
+
"example": "test_name",
|
836
|
+
"member": "string",
|
837
|
+
"name": "Name",
|
838
|
+
"required": true,
|
839
|
+
"type": "string"
|
840
|
+
}
|
841
|
+
],
|
842
|
+
"usage": "in"
|
843
|
+
},
|
806
844
|
"AndroidInstanceLabel": {
|
807
845
|
"document": "安卓实例标签",
|
808
846
|
"members": [
|
@@ -2650,6 +2688,69 @@
|
|
2650
2688
|
],
|
2651
2689
|
"type": "object"
|
2652
2690
|
},
|
2691
|
+
"FetchAndroidInstancesLogsRequest": {
|
2692
|
+
"document": "FetchAndroidInstancesLogs请求参数结构体",
|
2693
|
+
"members": [
|
2694
|
+
{
|
2695
|
+
"disabled": false,
|
2696
|
+
"document": "安卓实例 ID 列表",
|
2697
|
+
"example": "[\"cai_xxx\"]",
|
2698
|
+
"member": "string",
|
2699
|
+
"name": "AndroidInstanceIds",
|
2700
|
+
"required": true,
|
2701
|
+
"type": "list"
|
2702
|
+
},
|
2703
|
+
{
|
2704
|
+
"disabled": false,
|
2705
|
+
"document": "cos 桶名称",
|
2706
|
+
"example": "test-appid",
|
2707
|
+
"member": "string",
|
2708
|
+
"name": "BucketName",
|
2709
|
+
"required": true,
|
2710
|
+
"type": "string"
|
2711
|
+
},
|
2712
|
+
{
|
2713
|
+
"disabled": false,
|
2714
|
+
"document": "cos 桶区域",
|
2715
|
+
"example": "ap-guangzhou",
|
2716
|
+
"member": "string",
|
2717
|
+
"name": "BucketRegion",
|
2718
|
+
"required": true,
|
2719
|
+
"type": "string"
|
2720
|
+
},
|
2721
|
+
{
|
2722
|
+
"disabled": false,
|
2723
|
+
"document": "cos 桶目录,默认为 /log/",
|
2724
|
+
"example": "/log/",
|
2725
|
+
"member": "string",
|
2726
|
+
"name": "BucketDirectory",
|
2727
|
+
"required": false,
|
2728
|
+
"type": "string"
|
2729
|
+
},
|
2730
|
+
{
|
2731
|
+
"disabled": false,
|
2732
|
+
"document": "下载最近几天的日志,默认值为 1",
|
2733
|
+
"example": "1",
|
2734
|
+
"member": "uint64",
|
2735
|
+
"name": "RecentDays",
|
2736
|
+
"required": false,
|
2737
|
+
"type": "int"
|
2738
|
+
}
|
2739
|
+
],
|
2740
|
+
"type": "object"
|
2741
|
+
},
|
2742
|
+
"FetchAndroidInstancesLogsResponse": {
|
2743
|
+
"document": "FetchAndroidInstancesLogs返回参数结构体",
|
2744
|
+
"members": [
|
2745
|
+
{
|
2746
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2747
|
+
"member": "string",
|
2748
|
+
"name": "RequestId",
|
2749
|
+
"type": "string"
|
2750
|
+
}
|
2751
|
+
],
|
2752
|
+
"type": "object"
|
2753
|
+
},
|
2653
2754
|
"Filter": {
|
2654
2755
|
"document": "过滤",
|
2655
2756
|
"members": [
|
@@ -2975,6 +3076,33 @@
|
|
2975
3076
|
],
|
2976
3077
|
"type": "object"
|
2977
3078
|
},
|
3079
|
+
"ModifyAndroidInstancesInformationRequest": {
|
3080
|
+
"document": "ModifyAndroidInstancesInformation请求参数结构体",
|
3081
|
+
"members": [
|
3082
|
+
{
|
3083
|
+
"disabled": false,
|
3084
|
+
"document": "安卓实例信息数据",
|
3085
|
+
"example": "无",
|
3086
|
+
"member": "AndroidInstanceInformation",
|
3087
|
+
"name": "AndroidInstanceInformations",
|
3088
|
+
"required": true,
|
3089
|
+
"type": "list"
|
3090
|
+
}
|
3091
|
+
],
|
3092
|
+
"type": "object"
|
3093
|
+
},
|
3094
|
+
"ModifyAndroidInstancesInformationResponse": {
|
3095
|
+
"document": "ModifyAndroidInstancesInformation返回参数结构体",
|
3096
|
+
"members": [
|
3097
|
+
{
|
3098
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3099
|
+
"member": "string",
|
3100
|
+
"name": "RequestId",
|
3101
|
+
"type": "string"
|
3102
|
+
}
|
3103
|
+
],
|
3104
|
+
"type": "object"
|
3105
|
+
},
|
2978
3106
|
"ModifyAndroidInstancesLabelsRequest": {
|
2979
3107
|
"document": "ModifyAndroidInstancesLabels请求参数结构体",
|
2980
3108
|
"members": [
|
@@ -214,6 +214,14 @@
|
|
214
214
|
"title": "ExecuteCommandOnAndroidInstances 示例"
|
215
215
|
}
|
216
216
|
],
|
217
|
+
"FetchAndroidInstancesLogs": [
|
218
|
+
{
|
219
|
+
"document": "示例",
|
220
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: FetchAndroidInstancesLogs\n<公共请求参数>\n\n{\n \"AndroidInstanceIds\": [\n \"cai-251006279-ea99UI657kj\"\n ],\n \"BucketName\": \"cai-251006279\",\n \"BucketRegion\": \"ap-guangzhou\",\n \"RecentDays\": 2\n}",
|
221
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"62469d42-afe4-4461-baae-f32929c9ffd5\"\n }\n}",
|
222
|
+
"title": "示例"
|
223
|
+
}
|
224
|
+
],
|
217
225
|
"InstallAndroidInstancesApp": [
|
218
226
|
{
|
219
227
|
"document": "安装安卓实例应用",
|
@@ -254,6 +262,14 @@
|
|
254
262
|
"title": "ModifyAndroidInstanceResolution 示例"
|
255
263
|
}
|
256
264
|
],
|
265
|
+
"ModifyAndroidInstancesInformation": [
|
266
|
+
{
|
267
|
+
"document": "",
|
268
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAndroidInstancesInformation\n<公共请求参数>\n\n{\n \"AndroidInstanceInformations\": [\n {\n \"AndroidInstanceId\": \"cai-251006279-ea99cM7rbg6\",\n \"Name\": \"test_name\"\n }\n ]\n}",
|
269
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9207f7b7-06a0-44fc-932a-6a95baf7164e\"\n }\n}",
|
270
|
+
"title": "批量修改安卓实例信息"
|
271
|
+
}
|
272
|
+
],
|
257
273
|
"ModifyAndroidInstancesLabels": [
|
258
274
|
{
|
259
275
|
"document": "示例",
|
@@ -16070,7 +16070,7 @@
|
|
16070
16070
|
},
|
16071
16071
|
{
|
16072
16072
|
"disabled": false,
|
16073
|
-
"document": "结束时间,注意:\n1. 结束时间必须大于开始时间;\n2. 结束时间和开始时间必须大于当前时间;\n3. 结束时间 和 开始时间
|
16073
|
+
"document": "结束时间,注意:\n1. 结束时间必须大于开始时间;\n2. 结束时间和开始时间必须大于当前时间;\n3. 结束时间 和 开始时间 间隔必须小于30天。\n使用UTC格式时间,\n例如:2019-01-08T10:00:00Z。\n注意:北京时间值为 UTC 时间值 + 8 小时,格式按照 ISO 8601 标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/267/38543#I)。",
|
16074
16074
|
"example": "2020-04-17T12:02:00Z",
|
16075
16075
|
"member": "string",
|
16076
16076
|
"name": "EndTime",
|
@@ -7338,8 +7338,8 @@
|
|
7338
7338
|
"members": [
|
7339
7339
|
{
|
7340
7340
|
"disabled": false,
|
7341
|
-
"document": "
|
7342
|
-
"example": "
|
7341
|
+
"document": "接入类型, 5-API 访客",
|
7342
|
+
"example": "5",
|
7343
7343
|
"member": "int64",
|
7344
7344
|
"name": "Type",
|
7345
7345
|
"required": true,
|
@@ -7347,8 +7347,8 @@
|
|
7347
7347
|
},
|
7348
7348
|
{
|
7349
7349
|
"disabled": false,
|
7350
|
-
"document": "
|
7351
|
-
"example": "
|
7350
|
+
"document": " 应用AppKey </br> 获取方式:</br> 1、应用发布后在应用页面[发布管理]-[调用信息]-[API管理]处获取</br> 2、参考 https://cloud.tencent.com/document/product/1759/109469 第二项",
|
7351
|
+
"example": "YourAppKey",
|
7352
7352
|
"member": "string",
|
7353
7353
|
"name": "BotAppKey",
|
7354
7354
|
"required": false,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"ChatCompletions": {
|
4
|
-
"document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为100。\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-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持
|
4
|
+
"document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为100。\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-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大输出16k。\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 - DeepSeek-V3-0324 模型 | 输入: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",
|
@@ -1016,7 +1016,7 @@
|
|
1016
1016
|
"status": "online"
|
1017
1017
|
},
|
1018
1018
|
"UpdateAlertRule": {
|
1019
|
-
"document": "更新 Prometheus 的告警规则。\n\n请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description
|
1019
|
+
"document": "更新 Prometheus 的告警规则。\n\n请注意,**告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description**,请参考 [Prometheus Rule更多配置请参考](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)。",
|
1020
1020
|
"input": "UpdateAlertRuleRequest",
|
1021
1021
|
"name": "更新告警规则",
|
1022
1022
|
"output": "UpdateAlertRuleResponse",
|
@@ -21372,7 +21372,7 @@
|
|
21372
21372
|
"members": [
|
21373
21373
|
{
|
21374
21374
|
"disabled": false,
|
21375
|
-
"document": "Prometheus
|
21375
|
+
"document": "Prometheus 告警规则 ID",
|
21376
21376
|
"example": "arule-omq28fcm",
|
21377
21377
|
"member": "string",
|
21378
21378
|
"name": "RuleId",
|
@@ -21435,7 +21435,7 @@
|
|
21435
21435
|
},
|
21436
21436
|
{
|
21437
21437
|
"disabled": false,
|
21438
|
-
"document": "
|
21438
|
+
"document": "告警规则标签列表",
|
21439
21439
|
"example": "[{Key: \"ip\" Value: \"1.1.1.1\"}]",
|
21440
21440
|
"member": "PrometheusRuleKV",
|
21441
21441
|
"name": "Labels",
|
@@ -21444,7 +21444,7 @@
|
|
21444
21444
|
},
|
21445
21445
|
{
|
21446
21446
|
"disabled": false,
|
21447
|
-
"document": "
|
21447
|
+
"document": "告警规则注释列表。\n\n告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。",
|
21448
21448
|
"example": "[{Key: \"summary\" Value: \"规则名称\"}]",
|
21449
21449
|
"member": "PrometheusRuleKV",
|
21450
21450
|
"name": "Annotations",
|
@@ -21453,7 +21453,7 @@
|
|
21453
21453
|
},
|
21454
21454
|
{
|
21455
21455
|
"disabled": false,
|
21456
|
-
"document": "
|
21456
|
+
"document": "告警策略模板分类(自定义,可不填)",
|
21457
21457
|
"example": "TargetDown",
|
21458
21458
|
"member": "string",
|
21459
21459
|
"name": "Type",
|
@@ -1351,7 +1351,7 @@
|
|
1351
1351
|
"document": "",
|
1352
1352
|
"input": "https://monitor.tencentcloudapi.com/?Action=UpdateAlertRule\n&InstanceId=my-prom-gg\n&RuleId=arule-omq28fcm\n&RuleState=2\n&RuleName=exampleName\n&Expr=job:request_latency_seconds:mean5m{job=\\\"myjob\\\"}>0.5\n&Duration=1m\n&Receivers.0=33432\n&<公共请求参数>",
|
1353
1353
|
"output": "{\n \"Response\": {\n \"RequestId\": \"qyh38g1ium4-41o5k994o7hcxuq96zab\",\n \"RuleId\": \"arule-omq28fcm\"\n }\n}",
|
1354
|
-
"title": "
|
1354
|
+
"title": "更新告警规则"
|
1355
1355
|
}
|
1356
1356
|
],
|
1357
1357
|
"UpdateAlertRuleState": [
|