tccli 3.0.1195.1__py2.py3-none-any.whl → 3.0.1196.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/asr/asr_client.py +74 -21
- tccli/services/asr/v20190614/api.json +118 -0
- tccli/services/asr/v20190614/examples.json +8 -0
- tccli/services/autoscaling/v20180419/api.json +14 -0
- tccli/services/cfg/v20210820/api.json +9 -0
- tccli/services/cwp/v20180228/api.json +192 -30
- tccli/services/cwp/v20180228/examples.json +4 -10
- tccli/services/dlc/v20210125/api.json +9 -0
- tccli/services/dsgc/v20190723/api.json +1 -1
- tccli/services/ims/v20201229/api.json +4 -4
- tccli/services/lke/lke_client.py +725 -301
- tccli/services/lke/v20231130/api.json +848 -0
- tccli/services/lke/v20231130/examples.json +64 -0
- tccli/services/mps/v20190612/api.json +13 -4
- tccli/services/mqtt/mqtt_client.py +903 -2
- tccli/services/mqtt/v20240516/api.json +1920 -353
- tccli/services/mqtt/v20240516/examples.json +136 -0
- tccli/services/mrs/v20200910/api.json +85 -85
- tccli/services/sms/v20210111/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +2 -2
- tccli/services/tke/tke_client.py +106 -0
- tccli/services/tke/v20180525/api.json +177 -15
- tccli/services/tke/v20180525/examples.json +16 -0
- tccli/services/vdb/v20230616/api.json +10 -0
- tccli/services/vod/v20180717/api.json +57 -2
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +27 -7
- {tccli-3.0.1195.1.dist-info → tccli-3.0.1196.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1195.1.dist-info → tccli-3.0.1196.1.dist-info}/RECORD +33 -33
- {tccli-3.0.1195.1.dist-info → tccli-3.0.1196.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1195.1.dist-info → tccli-3.0.1196.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1195.1.dist-info → tccli-3.0.1196.1.dist-info}/license_files/LICENSE +0 -0
@@ -115,8 +115,8 @@
|
|
115
115
|
"ReportConversion": [
|
116
116
|
{
|
117
117
|
"document": "",
|
118
|
-
"input": "POST / HTTP/1.1\nHost: sms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReportConversion\n<公共请求参数>\n\n{\n \"SmsSdkAppId\": \"1400000001\",\n \"SerialNo\": \"
|
119
|
-
"output": "{\n \"Response\": {\n \"ReportConversionStatus\": {\n \"Code\": \"
|
118
|
+
"input": "POST / HTTP/1.1\nHost: sms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReportConversion\n<公共请求参数>\n\n{\n \"SmsSdkAppId\": \"1400000001\",\n \"SerialNo\": \"a12gb4e2-sd11-5dx6-aav9-8f3d97xa2xu7\",\n \"ConversionTime\": 1658310430\n}",
|
119
|
+
"output": "{\n \"Response\": {\n \"ReportConversionStatus\": {\n \"Code\": \"OK\",\n \"Message\": \"success\"\n },\n \"RequestId\": \"a0aabda6-cf91-4f3e-a81f-9198114a2279\"\n }\n}",
|
120
120
|
"title": "请求示例"
|
121
121
|
}
|
122
122
|
],
|
@@ -442,11 +442,11 @@
|
|
442
442
|
"status": "online"
|
443
443
|
},
|
444
444
|
"DeleteCompliancePolicyItemFromWhitelist": {
|
445
|
-
"document": "从白名单中删除将指定的检测项。",
|
445
|
+
"document": "产品重构优化,这几个接口已经没有调用了\n\n从白名单中删除将指定的检测项。",
|
446
446
|
"input": "DeleteCompliancePolicyItemFromWhitelistRequest",
|
447
447
|
"name": "安全合规取消忽略检测项列表",
|
448
448
|
"output": "DeleteCompliancePolicyItemFromWhitelistResponse",
|
449
|
-
"status": "
|
449
|
+
"status": "deprecated"
|
450
450
|
},
|
451
451
|
"DeleteEscapeWhiteList": {
|
452
452
|
"document": "删除逃逸白名单",
|
tccli/services/tke/tke_client.py
CHANGED
@@ -3035,6 +3035,58 @@ def doDescribeClusterAuthenticationOptions(args, parsed_globals):
|
|
3035
3035
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3036
3036
|
|
3037
3037
|
|
3038
|
+
def doDescribeLogConfigs(args, parsed_globals):
|
3039
|
+
g_param = parse_global_arg(parsed_globals)
|
3040
|
+
|
3041
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3042
|
+
cred = credential.CVMRoleCredential()
|
3043
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3044
|
+
cred = credential.STSAssumeRoleCredential(
|
3045
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3046
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3047
|
+
)
|
3048
|
+
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):
|
3049
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3050
|
+
else:
|
3051
|
+
cred = credential.Credential(
|
3052
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3053
|
+
)
|
3054
|
+
http_profile = HttpProfile(
|
3055
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3056
|
+
reqMethod="POST",
|
3057
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3058
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3059
|
+
)
|
3060
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3061
|
+
if g_param[OptionsDefine.Language]:
|
3062
|
+
profile.language = g_param[OptionsDefine.Language]
|
3063
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3064
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3065
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3066
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3067
|
+
model = models.DescribeLogConfigsRequest()
|
3068
|
+
model.from_json_string(json.dumps(args))
|
3069
|
+
start_time = time.time()
|
3070
|
+
while True:
|
3071
|
+
rsp = client.DescribeLogConfigs(model)
|
3072
|
+
result = rsp.to_json_string()
|
3073
|
+
try:
|
3074
|
+
json_obj = json.loads(result)
|
3075
|
+
except TypeError as e:
|
3076
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3077
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3078
|
+
break
|
3079
|
+
cur_time = time.time()
|
3080
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3081
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3082
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3083
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3084
|
+
else:
|
3085
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3086
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3087
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3088
|
+
|
3089
|
+
|
3038
3090
|
def doInstallAddon(args, parsed_globals):
|
3039
3091
|
g_param = parse_global_arg(parsed_globals)
|
3040
3092
|
|
@@ -10159,6 +10211,58 @@ def doDescribeEdgeClusterUpgradeInfo(args, parsed_globals):
|
|
10159
10211
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10160
10212
|
|
10161
10213
|
|
10214
|
+
def doDeleteLogConfigs(args, parsed_globals):
|
10215
|
+
g_param = parse_global_arg(parsed_globals)
|
10216
|
+
|
10217
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
10218
|
+
cred = credential.CVMRoleCredential()
|
10219
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
10220
|
+
cred = credential.STSAssumeRoleCredential(
|
10221
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
10222
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
10223
|
+
)
|
10224
|
+
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):
|
10225
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
10226
|
+
else:
|
10227
|
+
cred = credential.Credential(
|
10228
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
10229
|
+
)
|
10230
|
+
http_profile = HttpProfile(
|
10231
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
10232
|
+
reqMethod="POST",
|
10233
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
10234
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
10235
|
+
)
|
10236
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
10237
|
+
if g_param[OptionsDefine.Language]:
|
10238
|
+
profile.language = g_param[OptionsDefine.Language]
|
10239
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
10240
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
10241
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
10242
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10243
|
+
model = models.DeleteLogConfigsRequest()
|
10244
|
+
model.from_json_string(json.dumps(args))
|
10245
|
+
start_time = time.time()
|
10246
|
+
while True:
|
10247
|
+
rsp = client.DeleteLogConfigs(model)
|
10248
|
+
result = rsp.to_json_string()
|
10249
|
+
try:
|
10250
|
+
json_obj = json.loads(result)
|
10251
|
+
except TypeError as e:
|
10252
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
10253
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
10254
|
+
break
|
10255
|
+
cur_time = time.time()
|
10256
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
10257
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
10258
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
10259
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
10260
|
+
else:
|
10261
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
10262
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
10263
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10264
|
+
|
10265
|
+
|
10162
10266
|
def doDescribePrometheusConfig(args, parsed_globals):
|
10163
10267
|
g_param = parse_global_arg(parsed_globals)
|
10164
10268
|
|
@@ -12258,6 +12362,7 @@ ACTION_MAP = {
|
|
12258
12362
|
"ModifyPrometheusAlertPolicy": doModifyPrometheusAlertPolicy,
|
12259
12363
|
"UpdateAddon": doUpdateAddon,
|
12260
12364
|
"DescribeClusterAuthenticationOptions": doDescribeClusterAuthenticationOptions,
|
12365
|
+
"DescribeLogConfigs": doDescribeLogConfigs,
|
12261
12366
|
"InstallAddon": doInstallAddon,
|
12262
12367
|
"ForwardApplicationRequestV3": doForwardApplicationRequestV3,
|
12263
12368
|
"DescribeClusterNodePoolDetail": doDescribeClusterNodePoolDetail,
|
@@ -12395,6 +12500,7 @@ ACTION_MAP = {
|
|
12395
12500
|
"RemoveNodeFromNodePool": doRemoveNodeFromNodePool,
|
12396
12501
|
"DescribeClusterKubeconfig": doDescribeClusterKubeconfig,
|
12397
12502
|
"DescribeEdgeClusterUpgradeInfo": doDescribeEdgeClusterUpgradeInfo,
|
12503
|
+
"DeleteLogConfigs": doDeleteLogConfigs,
|
12398
12504
|
"DescribePrometheusConfig": doDescribePrometheusConfig,
|
12399
12505
|
"CancelClusterRelease": doCancelClusterRelease,
|
12400
12506
|
"DescribeEdgeClusterInstances": doDescribeEdgeClusterInstances,
|
@@ -392,6 +392,13 @@
|
|
392
392
|
"output": "DeleteImageCachesResponse",
|
393
393
|
"status": "online"
|
394
394
|
},
|
395
|
+
"DeleteLogConfigs": {
|
396
|
+
"document": "删除集群内采集规则",
|
397
|
+
"input": "DeleteLogConfigsRequest",
|
398
|
+
"name": "删除日志采集规则",
|
399
|
+
"output": "DeleteLogConfigsResponse",
|
400
|
+
"status": "online"
|
401
|
+
},
|
395
402
|
"DeletePrometheusAlertPolicy": {
|
396
403
|
"document": "删除2.0实例告警策略",
|
397
404
|
"input": "DeletePrometheusAlertPolicyRequest",
|
@@ -840,6 +847,13 @@
|
|
840
847
|
"output": "DescribeImagesResponse",
|
841
848
|
"status": "online"
|
842
849
|
},
|
850
|
+
"DescribeLogConfigs": {
|
851
|
+
"document": "查询日志采集规则",
|
852
|
+
"input": "DescribeLogConfigsRequest",
|
853
|
+
"name": "查询日志采集规则",
|
854
|
+
"output": "DescribeLogConfigsResponse",
|
855
|
+
"status": "online"
|
856
|
+
},
|
843
857
|
"DescribeLogSwitches": {
|
844
858
|
"document": "查询集群日志(审计、事件、普通日志)开关列表",
|
845
859
|
"input": "DescribeLogSwitchesRequest",
|
@@ -7754,6 +7768,61 @@
|
|
7754
7768
|
],
|
7755
7769
|
"type": "object"
|
7756
7770
|
},
|
7771
|
+
"DeleteLogConfigsRequest": {
|
7772
|
+
"document": "DeleteLogConfigs请求参数结构体",
|
7773
|
+
"members": [
|
7774
|
+
{
|
7775
|
+
"disabled": false,
|
7776
|
+
"document": "集群ID",
|
7777
|
+
"example": "cls-bz7ge4w1",
|
7778
|
+
"member": "string",
|
7779
|
+
"name": "ClusterId",
|
7780
|
+
"required": true,
|
7781
|
+
"type": "string"
|
7782
|
+
},
|
7783
|
+
{
|
7784
|
+
"disabled": false,
|
7785
|
+
"document": "待删除采集规则名称,多个采集规则使用\",\"分隔",
|
7786
|
+
"example": "config1,config2",
|
7787
|
+
"member": "string",
|
7788
|
+
"name": "LogConfigNames",
|
7789
|
+
"required": true,
|
7790
|
+
"type": "string"
|
7791
|
+
},
|
7792
|
+
{
|
7793
|
+
"disabled": false,
|
7794
|
+
"document": "集群集群类型, tke/eks 默认为 tke 集群",
|
7795
|
+
"example": "tke",
|
7796
|
+
"member": "string",
|
7797
|
+
"name": "ClusterType",
|
7798
|
+
"required": false,
|
7799
|
+
"type": "string"
|
7800
|
+
}
|
7801
|
+
],
|
7802
|
+
"type": "object"
|
7803
|
+
},
|
7804
|
+
"DeleteLogConfigsResponse": {
|
7805
|
+
"document": "DeleteLogConfigs返回参数结构体",
|
7806
|
+
"members": [
|
7807
|
+
{
|
7808
|
+
"disabled": false,
|
7809
|
+
"document": "删除采集规则遇到错误时返回错误原因\n注意:此字段可能返回 null,表示取不到有效值。",
|
7810
|
+
"example": "failed to delete logconfigs:test1 err:logconfigs.cls.cloud.tencent.com \\\"test1\\\" not found",
|
7811
|
+
"member": "string",
|
7812
|
+
"name": "Message",
|
7813
|
+
"output_required": false,
|
7814
|
+
"type": "string",
|
7815
|
+
"value_allowed_null": true
|
7816
|
+
},
|
7817
|
+
{
|
7818
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7819
|
+
"member": "string",
|
7820
|
+
"name": "RequestId",
|
7821
|
+
"type": "string"
|
7822
|
+
}
|
7823
|
+
],
|
7824
|
+
"type": "object"
|
7825
|
+
},
|
7757
7826
|
"DeletePrometheusAlertPolicyRequest": {
|
7758
7827
|
"document": "DeletePrometheusAlertPolicy请求参数结构体",
|
7759
7828
|
"members": [
|
@@ -11643,6 +11712,99 @@
|
|
11643
11712
|
],
|
11644
11713
|
"type": "object"
|
11645
11714
|
},
|
11715
|
+
"DescribeLogConfigsRequest": {
|
11716
|
+
"document": "DescribeLogConfigs请求参数结构体",
|
11717
|
+
"members": [
|
11718
|
+
{
|
11719
|
+
"disabled": false,
|
11720
|
+
"document": "集群ID",
|
11721
|
+
"example": "cls-kaftesta",
|
11722
|
+
"member": "string",
|
11723
|
+
"name": "ClusterId",
|
11724
|
+
"required": true,
|
11725
|
+
"type": "string"
|
11726
|
+
},
|
11727
|
+
{
|
11728
|
+
"disabled": false,
|
11729
|
+
"document": "当前集群类型支持tke、eks。默认为tke",
|
11730
|
+
"example": "tke",
|
11731
|
+
"member": "string",
|
11732
|
+
"name": "ClusterType",
|
11733
|
+
"required": false,
|
11734
|
+
"type": "string"
|
11735
|
+
},
|
11736
|
+
{
|
11737
|
+
"disabled": false,
|
11738
|
+
"document": "按照采集规则名称查找,多个采集规则使用 \",\" 分隔。",
|
11739
|
+
"example": "configtest1,configtest2",
|
11740
|
+
"member": "string",
|
11741
|
+
"name": "LogConfigNames",
|
11742
|
+
"required": false,
|
11743
|
+
"type": "string"
|
11744
|
+
},
|
11745
|
+
{
|
11746
|
+
"disabled": false,
|
11747
|
+
"document": "偏移量,默认0",
|
11748
|
+
"example": "无",
|
11749
|
+
"member": "int64",
|
11750
|
+
"name": "Offset",
|
11751
|
+
"required": false,
|
11752
|
+
"type": "int"
|
11753
|
+
},
|
11754
|
+
{
|
11755
|
+
"disabled": false,
|
11756
|
+
"document": "最大输出条数,默认20,最大为100",
|
11757
|
+
"example": "无",
|
11758
|
+
"member": "int64",
|
11759
|
+
"name": "Limit",
|
11760
|
+
"required": false,
|
11761
|
+
"type": "int"
|
11762
|
+
}
|
11763
|
+
],
|
11764
|
+
"type": "object"
|
11765
|
+
},
|
11766
|
+
"DescribeLogConfigsResponse": {
|
11767
|
+
"document": "DescribeLogConfigs返回参数结构体",
|
11768
|
+
"members": [
|
11769
|
+
{
|
11770
|
+
"disabled": false,
|
11771
|
+
"document": "分页查找时返回采集规则总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
11772
|
+
"example": "10",
|
11773
|
+
"member": "int64",
|
11774
|
+
"name": "Total",
|
11775
|
+
"output_required": false,
|
11776
|
+
"type": "int",
|
11777
|
+
"value_allowed_null": true
|
11778
|
+
},
|
11779
|
+
{
|
11780
|
+
"disabled": false,
|
11781
|
+
"document": "指定采集规则名称查找,部分失败时返回失败采集规则名称及最后一个失败原因\n注意:此字段可能返回 null,表示取不到有效值。",
|
11782
|
+
"example": "无",
|
11783
|
+
"member": "string",
|
11784
|
+
"name": "Message",
|
11785
|
+
"output_required": false,
|
11786
|
+
"type": "string",
|
11787
|
+
"value_allowed_null": true
|
11788
|
+
},
|
11789
|
+
{
|
11790
|
+
"disabled": false,
|
11791
|
+
"document": "采集规则查询结果\n注意:此字段可能返回 null,表示取不到有效值。",
|
11792
|
+
"example": "{\"ItemCount\":1,\"Items\":[{\"apiVersion\":\"cls.cloud.tencent.com/v1\",\"kind\":\"LogConfig\",\"metadata\":{\"name\":\"test1\"},\"spec\":{\"clsDetail\":{\"extractRule\":{\"backtracking\":\"0\",\"isGBK\":\"false\",\"jsonStandard\":\"false\",\"unMatchUpload\":\"false\"},\"indexs\":[{\"indexName\":\"namespace\"},{\"indexName\":\"pod_name\"},{\"indexName\":\"container_name\"}],\"logFormat\":\"default\",\"logType\":\"minimalist_log\",\"maxSplitPartitions\":0,\"period\":30,\"region\":\"ap-chengdu\",\"storageType\":\"\",\"topicId\":\"2912eb16-a56c-4b9b-adb0-9828db1ad342\"},\"inputDetail\":{\"containerStdout\":{\"containerOperator\":\"in\",\"includeLabels\":{\"app\":\"test1\"},\"metadataContainer\":[\"namespace\",\"pod_name\",\"pod_ip\",\"pod_uid\",\"container_id\",\"container_name\",\"image_name\",\"cluster_id\"],\"namespace\":\"default\",\"nsLabelSelector\":\"\"},\"type\":\"container_stdout\"},\"kafkaDetail\":{\"brokers\":\"\",\"instanceId\":\"\",\"kafkaType\":\"\",\"logType\":\"\",\"messageKey\":{\"value\":\"\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"\"}}},\"metadata\":{},\"timestampFormat\":\"\",\"timestampKey\":\"\",\"topic\":\"\"}},\"status\":{\"code\":\"success\",\"reason\":\"success\",\"status\":\"Synced\"}}]}",
|
11793
|
+
"member": "string",
|
11794
|
+
"name": "LogConfigs",
|
11795
|
+
"output_required": false,
|
11796
|
+
"type": "string",
|
11797
|
+
"value_allowed_null": true
|
11798
|
+
},
|
11799
|
+
{
|
11800
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11801
|
+
"member": "string",
|
11802
|
+
"name": "RequestId",
|
11803
|
+
"type": "string"
|
11804
|
+
}
|
11805
|
+
],
|
11806
|
+
"type": "object"
|
11807
|
+
},
|
11646
11808
|
"DescribeLogSwitchesRequest": {
|
11647
11809
|
"document": "DescribeLogSwitches请求参数结构体",
|
11648
11810
|
"members": [
|
@@ -20162,70 +20324,70 @@
|
|
20162
20324
|
{
|
20163
20325
|
"disabled": false,
|
20164
20326
|
"document": "应用状态详情\n注意:此字段可能返回 null,表示取不到有效值。",
|
20165
|
-
"example": "",
|
20327
|
+
"example": "无",
|
20166
20328
|
"member": "string",
|
20167
20329
|
"name": "Condition",
|
20168
|
-
"
|
20330
|
+
"output_required": true,
|
20169
20331
|
"type": "string",
|
20170
20332
|
"value_allowed_null": true
|
20171
20333
|
},
|
20172
20334
|
{
|
20173
20335
|
"disabled": false,
|
20174
20336
|
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
20175
|
-
"example": "",
|
20337
|
+
"example": "无",
|
20176
20338
|
"member": "datetime_iso",
|
20177
20339
|
"name": "CreatedTime",
|
20178
|
-
"
|
20340
|
+
"output_required": true,
|
20179
20341
|
"type": "string",
|
20180
20342
|
"value_allowed_null": true
|
20181
20343
|
},
|
20182
20344
|
{
|
20183
20345
|
"disabled": false,
|
20184
20346
|
"document": "应用ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
20185
|
-
"example": "",
|
20347
|
+
"example": "无",
|
20186
20348
|
"member": "string",
|
20187
20349
|
"name": "ID",
|
20188
|
-
"
|
20350
|
+
"output_required": true,
|
20189
20351
|
"type": "string",
|
20190
20352
|
"value_allowed_null": true
|
20191
20353
|
},
|
20192
20354
|
{
|
20193
20355
|
"disabled": false,
|
20194
20356
|
"document": "应用名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
20195
|
-
"example": "",
|
20357
|
+
"example": "无",
|
20196
20358
|
"member": "string",
|
20197
20359
|
"name": "Name",
|
20198
|
-
"
|
20360
|
+
"output_required": true,
|
20199
20361
|
"type": "string",
|
20200
20362
|
"value_allowed_null": true
|
20201
20363
|
},
|
20202
20364
|
{
|
20203
20365
|
"disabled": false,
|
20204
20366
|
"document": "应用命名空间\n注意:此字段可能返回 null,表示取不到有效值。",
|
20205
|
-
"example": "",
|
20367
|
+
"example": "无",
|
20206
20368
|
"member": "string",
|
20207
20369
|
"name": "Namespace",
|
20208
|
-
"
|
20370
|
+
"output_required": true,
|
20209
20371
|
"type": "string",
|
20210
20372
|
"value_allowed_null": true
|
20211
20373
|
},
|
20212
20374
|
{
|
20213
20375
|
"disabled": false,
|
20214
|
-
"document": "
|
20215
|
-
"example": "",
|
20376
|
+
"document": "应用状态(参考helm的发布状态: unknown, deployed, uninstalled, superseded, failed, uninstalling, pending-install, pending-upgrade 或 pending-rollback)\n注意:此字段可能返回 null,表示取不到有效值。",
|
20377
|
+
"example": "无",
|
20216
20378
|
"member": "string",
|
20217
20379
|
"name": "Status",
|
20218
|
-
"
|
20380
|
+
"output_required": true,
|
20219
20381
|
"type": "string",
|
20220
20382
|
"value_allowed_null": true
|
20221
20383
|
},
|
20222
20384
|
{
|
20223
20385
|
"disabled": false,
|
20224
20386
|
"document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
20225
|
-
"example": "",
|
20387
|
+
"example": "无",
|
20226
20388
|
"member": "string",
|
20227
20389
|
"name": "UpdatedTime",
|
20228
|
-
"
|
20390
|
+
"output_required": true,
|
20229
20391
|
"type": "string",
|
20230
20392
|
"value_allowed_null": true
|
20231
20393
|
}
|
@@ -472,6 +472,14 @@
|
|
472
472
|
"title": "删除镜像缓存"
|
473
473
|
}
|
474
474
|
],
|
475
|
+
"DeleteLogConfigs": [
|
476
|
+
{
|
477
|
+
"document": "删除采集规则时调用",
|
478
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLogConfigs\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-bz7ge4wl\",\n \"LogConfigNames\": \"test6,test7\"\n}",
|
479
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
480
|
+
"title": "删除采集规则"
|
481
|
+
}
|
482
|
+
],
|
475
483
|
"DeletePrometheusAlertPolicy": [
|
476
484
|
{
|
477
485
|
"document": "",
|
@@ -996,6 +1004,14 @@
|
|
996
1004
|
"title": "获取镜像信息"
|
997
1005
|
}
|
998
1006
|
],
|
1007
|
+
"DescribeLogConfigs": [
|
1008
|
+
{
|
1009
|
+
"document": "查询采集规则",
|
1010
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLogConfigs\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-bz7ge4wl\"\n}",
|
1011
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"583e6c4b-ff24-42f8-87f1-37e4c00d81b7\",\n \"Total\": 1,\n \"LogConfigs\": \"{\\\"ItemCount\\\":1,\\\"Items\\\":[{\\\"apiVersion\\\":\\\"cls.cloud.tencent.com/v1\\\",\\\"kind\\\":\\\"LogConfig\\\",\\\"metadata\\\":{\\\"name\\\":\\\"test1\\\"},\\\"spec\\\":{\\\"clsDetail\\\":{\\\"extractRule\\\":{\\\"backtracking\\\":\\\"0\\\",\\\"isGBK\\\":\\\"false\\\",\\\"jsonStandard\\\":\\\"false\\\",\\\"unMatchUpload\\\":\\\"false\\\"},\\\"indexs\\\":[{\\\"indexName\\\":\\\"namespace\\\"},{\\\"indexName\\\":\\\"pod_name\\\"},{\\\"indexName\\\":\\\"container_name\\\"}],\\\"logFormat\\\":\\\"default\\\",\\\"logType\\\":\\\"minimalist_log\\\",\\\"maxSplitPartitions\\\":0,\\\"period\\\":30,\\\"region\\\":\\\"ap-chengdu\\\",\\\"storageType\\\":\\\"\\\",\\\"topicId\\\":\\\"2912eb16-a56c-4b9b-adb0-9828db1ad342\\\"},\\\"inputDetail\\\":{\\\"containerStdout\\\":{\\\"containerOperator\\\":\\\"in\\\",\\\"includeLabels\\\":{\\\"app\\\":\\\"test1\\\"},\\\"metadataContainer\\\":[\\\"namespace\\\",\\\"pod_name\\\",\\\"pod_ip\\\",\\\"pod_uid\\\",\\\"container_id\\\",\\\"container_name\\\",\\\"image_name\\\",\\\"cluster_id\\\"],\\\"namespace\\\":\\\"default\\\",\\\"nsLabelSelector\\\":\\\"\\\"},\\\"type\\\":\\\"container_stdout\\\"},\\\"kafkaDetail\\\":{\\\"brokers\\\":\\\"\\\",\\\"instanceId\\\":\\\"\\\",\\\"kafkaType\\\":\\\"\\\",\\\"logType\\\":\\\"\\\",\\\"messageKey\\\":{\\\"value\\\":\\\"\\\",\\\"valueFrom\\\":{\\\"fieldRef\\\":{\\\"fieldPath\\\":\\\"\\\"}}},\\\"metadata\\\":{},\\\"timestampFormat\\\":\\\"\\\",\\\"timestampKey\\\":\\\"\\\",\\\"topic\\\":\\\"\\\"}},\\\"status\\\":{\\\"code\\\":\\\"success\\\",\\\"reason\\\":\\\"success\\\",\\\"status\\\":\\\"Synced\\\"}}]}\"\n }\n}",
|
1012
|
+
"title": "查询采集规则"
|
1013
|
+
}
|
1014
|
+
],
|
999
1015
|
"DescribeLogSwitches": [
|
1000
1016
|
{
|
1001
1017
|
"document": "获取容器日志组件开关信息",
|
@@ -677,6 +677,16 @@
|
|
677
677
|
"type": "string",
|
678
678
|
"value_allowed_null": true
|
679
679
|
},
|
680
|
+
{
|
681
|
+
"disabled": false,
|
682
|
+
"document": "api版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
683
|
+
"example": "无",
|
684
|
+
"member": "string",
|
685
|
+
"name": "ApiVersion",
|
686
|
+
"output_required": false,
|
687
|
+
"type": "string",
|
688
|
+
"value_allowed_null": true
|
689
|
+
},
|
680
690
|
{
|
681
691
|
"disabled": false,
|
682
692
|
"document": "计费模式。\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -106,7 +106,7 @@
|
|
106
106
|
"status": "online"
|
107
107
|
},
|
108
108
|
"CreateHeadTailTemplate": {
|
109
|
-
"document": "创建片头片尾模板。\n-
|
109
|
+
"document": "创建片头片尾模板。\n- 最大支持模板数量为 100 个。",
|
110
110
|
"input": "CreateHeadTailTemplateRequest",
|
111
111
|
"name": "创建片头片尾模板",
|
112
112
|
"output": "CreateHeadTailTemplateResponse",
|
@@ -14039,6 +14039,16 @@
|
|
14039
14039
|
"type": "string",
|
14040
14040
|
"value_allowed_null": false
|
14041
14041
|
},
|
14042
|
+
{
|
14043
|
+
"disabled": false,
|
14044
|
+
"document": "是否接收剪辑固化完成事件通知,\"OFF\" 为忽略该事件通知,\"ON\" 为接收事件通知。",
|
14045
|
+
"example": "ON",
|
14046
|
+
"member": "string",
|
14047
|
+
"name": "PersistenceCompleteEventSwitch",
|
14048
|
+
"output_required": true,
|
14049
|
+
"type": "string",
|
14050
|
+
"value_allowed_null": false
|
14051
|
+
},
|
14042
14052
|
{
|
14043
14053
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14044
14054
|
"member": "string",
|
@@ -18018,7 +18028,7 @@
|
|
18018
18028
|
},
|
18019
18029
|
{
|
18020
18030
|
"disabled": false,
|
18021
|
-
"document": "<b>支持事件类型:</b>\n<li>NewFileUpload:视频上传完成;</li>\n<li>ProcedureStateChanged:任务流状态变更;</li>\n<li>FileDeleted:视频删除完成;</li>\n<li>RestoreMediaComplete:视频取回完成;</li>\n<li>PullComplete:视频转拉完成;</li>\n<li>EditMediaComplete:视频编辑完成;</li>\n<li>SplitMediaComplete:视频拆分完成;</li>\n<li>ComposeMediaComplete:制作媒体文件完成;</li>\n<li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li>\n<li>RemoveWatermark:智能去除水印完成。</li>\n<li>RebuildMediaComplete:音画质重生完成事件(不推荐使用)。</li>\n<li>ReviewAudioVideoComplete:音视频审核完成;</li>\n<li>ExtractTraceWatermarkComplete:提取溯源水印完成;</li>\n<li>ExtractCopyRightWatermarkComplete:提取版权水印完成;</li>\n<li>DescribeFileAttributesComplete:获取文件属性完成;</li>\n<li>QualityInspectComplete:音画质检测完成;</li>\n<li>QualityEnhanceComplete
|
18031
|
+
"document": "<b>支持事件类型:</b>\n<li>NewFileUpload:视频上传完成;</li>\n<li>ProcedureStateChanged:任务流状态变更;</li>\n<li>FileDeleted:视频删除完成;</li>\n<li>RestoreMediaComplete:视频取回完成;</li>\n<li>PullComplete:视频转拉完成;</li>\n<li>EditMediaComplete:视频编辑完成;</li>\n<li>SplitMediaComplete:视频拆分完成;</li>\n<li>ComposeMediaComplete:制作媒体文件完成;</li>\n<li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li>\n<li>RemoveWatermark:智能去除水印完成。</li>\n<li>RebuildMediaComplete:音画质重生完成事件(不推荐使用)。</li>\n<li>ReviewAudioVideoComplete:音视频审核完成;</li>\n<li>ExtractTraceWatermarkComplete:提取溯源水印完成;</li>\n<li>ExtractCopyRightWatermarkComplete:提取版权水印完成;</li>\n<li>DescribeFileAttributesComplete:获取文件属性完成;</li>\n<li>QualityInspectComplete:音画质检测完成;</li>\n<li>QualityEnhanceComplete:音画质重生任务完成;</li>\n<li>PersistenceComplete:剪辑固化完成。</li>\n<b>兼容 2017 版的事件类型:</b>\n<li>TranscodeComplete:视频转码完成;</li>\n<li>ConcatComplete:视频拼接完成;</li>\n<li>ClipComplete:视频剪辑完成;</li>\n<li>CreateImageSpriteComplete:视频截取雪碧图完成;</li>\n<li>CreateSnapshotByTimeOffsetComplete:视频按时间点截图完成。</li>",
|
18022
18032
|
"example": "null",
|
18023
18033
|
"member": "string",
|
18024
18034
|
"name": "EventType",
|
@@ -18275,6 +18285,16 @@
|
|
18275
18285
|
"output_required": false,
|
18276
18286
|
"type": "object",
|
18277
18287
|
"value_allowed_null": true
|
18288
|
+
},
|
18289
|
+
{
|
18290
|
+
"disabled": false,
|
18291
|
+
"document": "剪辑固化完成事件,当事件类型为 PersistenceComplete 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18292
|
+
"example": "null",
|
18293
|
+
"member": "PersistenceCompleteTask",
|
18294
|
+
"name": "PersistenceCompleteEvent",
|
18295
|
+
"output_required": true,
|
18296
|
+
"type": "object",
|
18297
|
+
"value_allowed_null": true
|
18278
18298
|
}
|
18279
18299
|
],
|
18280
18300
|
"usage": "out"
|
@@ -24888,6 +24908,15 @@
|
|
24888
24908
|
"required": false,
|
24889
24909
|
"type": "string"
|
24890
24910
|
},
|
24911
|
+
{
|
24912
|
+
"disabled": false,
|
24913
|
+
"document": "是否接收剪辑固化完成事件通知, 默认 \"OFF\" 为忽略该事件通知,\"ON\" 为接收事件通知。",
|
24914
|
+
"example": "OFF",
|
24915
|
+
"member": "string",
|
24916
|
+
"name": "PersistenceCompleteEventSwitch",
|
24917
|
+
"required": false,
|
24918
|
+
"type": "string"
|
24919
|
+
},
|
24891
24920
|
{
|
24892
24921
|
"disabled": false,
|
24893
24922
|
"document": "<b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>",
|
@@ -27178,6 +27207,32 @@
|
|
27178
27207
|
],
|
27179
27208
|
"type": "object"
|
27180
27209
|
},
|
27210
|
+
"PersistenceCompleteTask": {
|
27211
|
+
"document": "剪辑固化任务信息。",
|
27212
|
+
"members": [
|
27213
|
+
{
|
27214
|
+
"disabled": false,
|
27215
|
+
"document": "固化生成的媒体 ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
27216
|
+
"example": "4424135347900333234",
|
27217
|
+
"member": "string",
|
27218
|
+
"name": "FileId",
|
27219
|
+
"output_required": false,
|
27220
|
+
"type": "string",
|
27221
|
+
"value_allowed_null": true
|
27222
|
+
},
|
27223
|
+
{
|
27224
|
+
"disabled": false,
|
27225
|
+
"document": "剪辑固化的来源,有以下三种。\n<li>SimpleHlsClip:来自简单 HLS 剪辑;</li>\n<li>FastEditMedia:来自快速媒体编辑;</li>\n<li>LiveRealTimeClip:来自直播即时剪辑。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
|
27226
|
+
"example": "SimpleHlsClip",
|
27227
|
+
"member": "string",
|
27228
|
+
"name": "PersistenceSource",
|
27229
|
+
"output_required": false,
|
27230
|
+
"type": "string",
|
27231
|
+
"value_allowed_null": true
|
27232
|
+
}
|
27233
|
+
],
|
27234
|
+
"usage": "out"
|
27235
|
+
},
|
27181
27236
|
"PlayStatFileInfo": {
|
27182
27237
|
"document": "播放统计文件信息",
|
27183
27238
|
"members": [
|
@@ -790,7 +790,7 @@
|
|
790
790
|
{
|
791
791
|
"document": "",
|
792
792
|
"input": "https://vod.tencentcloudapi.com/?Action=DescribeEventConfig\n&<公共请求参数>",
|
793
|
-
"output": "{\n \"Response\": {\n \"Mode\": \"PUSH\",\n \"NotificationUrl\": \"http://mydemo.com/receiveevent\",\n \"UploadMediaCompleteEventSwitch\": \"ON\",\n \"DeleteMediaCompleteEventSwitch\": \"OFF\",\n \"RequestId\": \"27217d38-95c0-4335-8532-e5154ffb03aa\"\n }\n}",
|
793
|
+
"output": "{\n \"Response\": {\n \"Mode\": \"PUSH\",\n \"NotificationUrl\": \"http://mydemo.com/receiveevent\",\n \"UploadMediaCompleteEventSwitch\": \"ON\",\n \"DeleteMediaCompleteEventSwitch\": \"OFF\",\n \"PersistenceCompleteEventSwitch\": \"OFF\",\n \"RequestId\": \"27217d38-95c0-4335-8532-e5154ffb03aa\"\n }\n}",
|
794
794
|
"title": "查询事件通知配置"
|
795
795
|
}
|
796
796
|
],
|