tencentcloud-sdk-nodejs 4.0.947 → 4.0.948

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.
@@ -48,6 +48,23 @@ export interface Compression {
48
48
  */
49
49
  Algorithms?: Array<string>;
50
50
  }
51
+ /**
52
+ * DescribeFunctions返回参数结构体
53
+ */
54
+ export interface DescribeFunctionsResponse {
55
+ /**
56
+ * 符合查询条件的函数总数。
57
+ */
58
+ TotalCount?: number;
59
+ /**
60
+ * 符合查询条件的所有函数信息。
61
+ */
62
+ Functions?: Array<Function>;
63
+ /**
64
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
65
+ */
66
+ RequestId?: string;
67
+ }
51
68
  /**
52
69
  * DeleteL4ProxyRules请求参数结构体
53
70
  */
@@ -214,22 +231,101 @@ export interface OriginDetail {
214
231
  VodeoBucketId?: string;
215
232
  }
216
233
  /**
217
- * 预付费套餐计费参数
234
+ * 实时日志投递任务。
218
235
  */
219
- export interface PrepaidPlanParam {
236
+ export interface RealtimeLogDeliveryTask {
220
237
  /**
221
- * 订阅预付费套餐的周期,单位:月,取值有:1,2,3,4,5,6,7,8,9,10,11,12,24,36
222
-
223
- 不填写使用默认值 1。
238
+ * 实时日志投递任务 ID
224
239
  */
225
- Period?: number;
240
+ TaskId?: string;
226
241
  /**
227
- * 预付费套餐的自动续费标志,取值有:
228
- <li> on:开启自动续费;</li>
229
- <li> off:不开启自动续费。</li>
230
- 不填写使用默认值 off,自动续费时,默认续费1个月。
242
+ * 实时日志投递任务的名称。
231
243
  */
232
- RenewFlag?: string;
244
+ TaskName?: string;
245
+ /**
246
+ * 实时日志投递任务的状态,取值有: <li>enabled: 已启用;</li> <li>disabled: 已停用;</li><li>deleted: 异常删除状态,请检查目的地腾讯云 CLS 日志集/日志主题是否已被删除。</li>
247
+ */
248
+ DeliveryStatus?: string;
249
+ /**
250
+ * 实时日志投递任务类型,取值有: <li>cls: 推送到腾讯云 CLS;</li> <li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li> <li>s3:推送到 AWS S3 兼容存储桶地址。</li>
251
+ */
252
+ TaskType?: string;
253
+ /**
254
+ * 实时日志投递任务对应的实体(七层域名或者四层代理实例)列表。取值示例如下: <li>七层域名:domain.example.com;</li> <li>四层代理实例:sid-2s69eb5wcms7。</li>
255
+ */
256
+ EntityList?: Array<string>;
257
+ /**
258
+ * 数据投递类型,取值有: <li>domain:站点加速日志;</li> <li>application:四层代理日志;</li> <li>web-rateLiming:速率限制和 CC 攻击防护日志;</li> <li>web-attack:托管规则日志;</li> <li>web-rule:自定义规则日志;</li> <li>web-bot:Bot管理日志。</li>
259
+ */
260
+ LogType?: string;
261
+ /**
262
+ * 数据投递区域,取值有: <li>mainland:中国大陆境内;</li> <li>overseas:全球(不含中国大陆)。</li>
263
+ */
264
+ Area?: string;
265
+ /**
266
+ * 投递的预设字段列表。
267
+ */
268
+ Fields?: Array<string>;
269
+ /**
270
+ * 投递的自定义字段列表。
271
+ */
272
+ CustomFields?: Array<CustomField>;
273
+ /**
274
+ * 日志投递的过滤条件。
275
+ */
276
+ DeliveryConditions?: Array<DeliveryCondition>;
277
+ /**
278
+ * 采样比例,采用千分制,取值范围为1-1000,例如:605 表示采样比例为 60.5%。
279
+ */
280
+ Sample?: number;
281
+ /**
282
+ * 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
283
+ <li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
284
+ <li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines。</li>
285
+ 注意:此字段可能返回 null,表示取不到有效值。
286
+ */
287
+ LogFormat?: LogFormat;
288
+ /**
289
+ * CLS 的配置信息。
290
+ 注意:此字段可能返回 null,表示取不到有效值。
291
+ */
292
+ CLS?: CLSTopic;
293
+ /**
294
+ * 自定义 HTTP 服务的配置信息。
295
+ 注意:此字段可能返回 null,表示取不到有效值。
296
+ */
297
+ CustomEndpoint?: CustomEndpoint;
298
+ /**
299
+ * AWS S3 兼容存储桶的配置信息。
300
+ 注意:此字段可能返回 null,表示取不到有效值。
301
+ */
302
+ S3?: S3;
303
+ /**
304
+ * 创建时间。
305
+ */
306
+ CreateTime?: string;
307
+ /**
308
+ * 更新时间。
309
+ */
310
+ UpdateTime?: string;
311
+ }
312
+ /**
313
+ * ModifyApplicationProxy返回参数结构体
314
+ */
315
+ export interface ModifyApplicationProxyResponse {
316
+ /**
317
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
318
+ */
319
+ RequestId?: string;
320
+ }
321
+ /**
322
+ * BindSharedCNAME返回参数结构体
323
+ */
324
+ export interface BindSharedCNAMEResponse {
325
+ /**
326
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
327
+ */
328
+ RequestId?: string;
233
329
  }
234
330
  /**
235
331
  * ModifyAccelerationDomain返回参数结构体
@@ -847,6 +943,21 @@ export interface DescribeApplicationProxiesResponse {
847
943
  */
848
944
  RequestId?: string;
849
945
  }
946
+ /**
947
+ * 自定义 nameservers
948
+ */
949
+ export interface VanityNameServers {
950
+ /**
951
+ * 自定义 ns 开关,取值有:
952
+ <li> on:开启;</li>
953
+ <li> off:关闭。</li>
954
+ */
955
+ Switch: string;
956
+ /**
957
+ * 自定义 ns 列表。
958
+ */
959
+ Servers?: Array<string>;
960
+ }
850
961
  /**
851
962
  * DescribeTopL7AnalysisData请求参数结构体
852
963
  */
@@ -983,6 +1094,27 @@ export interface ModifyL4ProxyResponse {
983
1094
  */
984
1095
  RequestId?: string;
985
1096
  }
1097
+ /**
1098
+ * CreateFunctionRule请求参数结构体
1099
+ */
1100
+ export interface CreateFunctionRuleRequest {
1101
+ /**
1102
+ * 站点 ID。
1103
+ */
1104
+ ZoneId: string;
1105
+ /**
1106
+ * 规则条件列表,相同触发规则的不同条件匹配项之间为或关系。
1107
+ */
1108
+ FunctionRuleConditions: Array<FunctionRuleCondition>;
1109
+ /**
1110
+ * 函数 ID,命中触发规则条件后执行的函数。
1111
+ */
1112
+ FunctionId: string;
1113
+ /**
1114
+ * 规则描述,最大支持 60 个字符。
1115
+ */
1116
+ Remark?: string;
1117
+ }
986
1118
  /**
987
1119
  * DescribeAliasDomains返回参数结构体
988
1120
  */
@@ -1150,6 +1282,27 @@ export interface DescribeTimingL7CacheDataRequest {
1150
1282
  */
1151
1283
  Area?: string;
1152
1284
  }
1285
+ /**
1286
+ * CreateFunction请求参数结构体
1287
+ */
1288
+ export interface CreateFunctionRequest {
1289
+ /**
1290
+ * 站点 ID。
1291
+ */
1292
+ ZoneId: string;
1293
+ /**
1294
+ * 函数名称,只能包含小写字母、数字、连字符,以数字或字母开头,以数字或字母结尾,最大支持 30 个字符。
1295
+ */
1296
+ Name: string;
1297
+ /**
1298
+ * 函数内容,当前仅支持 JavaScript 代码,最大支持 5MB 大小。
1299
+ */
1300
+ Content: string;
1301
+ /**
1302
+ * 函数描述,最大支持 60 个字符。
1303
+ */
1304
+ Remark?: string;
1305
+ }
1153
1306
  /**
1154
1307
  * 实时日志投递到 AWS S3 兼容存储桶的配置信息。
1155
1308
  */
@@ -1424,6 +1577,15 @@ export interface OriginGroupReference {
1424
1577
  */
1425
1578
  InstanceName?: string;
1426
1579
  }
1580
+ /**
1581
+ * ModifyFunctionRulePriority返回参数结构体
1582
+ */
1583
+ export interface ModifyFunctionRulePriorityResponse {
1584
+ /**
1585
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1586
+ */
1587
+ RequestId?: string;
1588
+ }
1427
1589
  /**
1428
1590
  * 例外规则的配置,包含生效的条件,生效的范围。
1429
1591
  */
@@ -1467,15 +1629,17 @@ export interface ExceptUserRule {
1467
1629
  RulePriority?: number;
1468
1630
  }
1469
1631
  /**
1470
- * 加速类型
1632
+ * 安全数据Entry返回值
1471
1633
  */
1472
- export interface AccelerateType {
1634
+ export interface SecEntry {
1473
1635
  /**
1474
- * 加速开关。取值范围:
1475
- <li> on:打开;</li>
1476
- <li>off:关闭。</li>
1636
+ * 查询维度值。
1477
1637
  */
1478
- Switch: string;
1638
+ Key: string;
1639
+ /**
1640
+ * 查询维度下详细数据。
1641
+ */
1642
+ Value: Array<SecEntryValue>;
1479
1643
  }
1480
1644
  /**
1481
1645
  * ModifyCustomErrorPage返回参数结构体
@@ -1860,6 +2024,17 @@ export interface DeleteZoneRequest {
1860
2024
  */
1861
2025
  ZoneId: string;
1862
2026
  }
2027
+ /**
2028
+ * 安全类型配置项。
2029
+ */
2030
+ export interface SecurityType {
2031
+ /**
2032
+ * 安全类型开关,取值为:
2033
+ <li> on:开启;</li>
2034
+ <li> off:关闭。</li>
2035
+ */
2036
+ Switch: string;
2037
+ }
1863
2038
  /**
1864
2039
  * Bot 规则,下列规则ID可参考接口 DescribeBotManagedRules返回的ID信息
1865
2040
  */
@@ -2010,37 +2185,35 @@ export interface ModifyPlanRequest {
2010
2185
  RenewFlag?: RenewFlag;
2011
2186
  }
2012
2187
  /**
2013
- * 自定义错误码页面结构体。
2188
+ * 例外规则的生效范围。
2014
2189
  */
2015
- export interface CustomErrorPage {
2016
- /**
2017
- * 自定义错误页面 ID。
2018
- */
2019
- PageId?: string;
2020
- /**
2021
- * 站点 ID。
2022
- */
2023
- ZoneId?: string;
2024
- /**
2025
- * 自定义错误页面名称。
2026
- */
2027
- Name?: string;
2190
+ export interface ExceptUserRuleScope {
2028
2191
  /**
2029
- * 自定义错误页面类型。
2192
+ * 例外规则类型。其中complete模式代表全量数据进行例外,partial模式代表可选择指定模块指定字段进行例外,该字段取值有:
2193
+ <li>complete:完全跳过模式;</li>
2194
+ <li>partial:部分跳过模式。</li>
2030
2195
  */
2031
- ContentType?: string;
2196
+ Type?: string;
2032
2197
  /**
2033
- * 自定义错误页面描述。
2198
+ * 生效的模块,该字段取值有:
2199
+ <li>waf:托管规则;</li>
2200
+ <li>rate:速率限制;</li>
2201
+ <li>acl:自定义规则;</li>
2202
+ <li>cc:cc攻击防护;</li>
2203
+ <li>bot:Bot防护。</li>
2204
+ 注意:此字段可能返回 null,表示取不到有效值。
2034
2205
  */
2035
- Description?: string;
2206
+ Modules?: Array<string>;
2036
2207
  /**
2037
- * 自定义错误页面内容。
2208
+ * 跳过部分规则ID的例外规则详情。如果为null,默认使用历史配置。
2209
+ 注意:此字段可能返回 null,表示取不到有效值。
2038
2210
  */
2039
- Content?: string;
2211
+ PartialModules?: Array<PartialModule>;
2040
2212
  /**
2041
- * 自定义错误页面引用。
2213
+ * 跳过具体字段不去扫描的例外规则详情。如果为null,默认使用历史配置。
2214
+ 注意:此字段可能返回 null,表示取不到有效值。
2042
2215
  */
2043
- References?: Array<ErrorPageReference>;
2216
+ SkipConditions?: Array<SkipCondition>;
2044
2217
  }
2045
2218
  /**
2046
2219
  * 浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
@@ -2126,6 +2299,19 @@ export interface ModifyAliasDomainRequest {
2126
2299
  */
2127
2300
  CertId?: Array<string>;
2128
2301
  }
2302
+ /**
2303
+ * CreateFunctionRule返回参数结构体
2304
+ */
2305
+ export interface CreateFunctionRuleResponse {
2306
+ /**
2307
+ * 规则 ID。
2308
+ */
2309
+ RuleId?: string;
2310
+ /**
2311
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2312
+ */
2313
+ RequestId?: string;
2314
+ }
2129
2315
  /**
2130
2316
  * 规则引擎条件常规动作参数
2131
2317
  */
@@ -2912,6 +3098,33 @@ export interface DescribeL4ProxyRulesResponse {
2912
3098
  */
2913
3099
  RequestId?: string;
2914
3100
  }
3101
+ /**
3102
+ * DescribeFunctions请求参数结构体
3103
+ */
3104
+ export interface DescribeFunctionsRequest {
3105
+ /**
3106
+ * 站点 ID。
3107
+ */
3108
+ ZoneId: string;
3109
+ /**
3110
+ * 按照函数 ID 列表过滤。
3111
+ */
3112
+ FunctionIds?: Array<string>;
3113
+ /**
3114
+ * 过滤条件列表,多个条件为且关系,Filters.Values 的上限为 20。详细的过滤条件如下:
3115
+ <li>name:按照【函数名称】进行模糊匹配。</li>
3116
+ <li>remark:按照【函数描述】进行模糊匹配。</li>
3117
+ */
3118
+ Filters?: Array<Filter>;
3119
+ /**
3120
+ * 分页查询偏移量。默认值:0。
3121
+ */
3122
+ Offset?: number;
3123
+ /**
3124
+ * 分页查询限制数目。默认值:20,最大值:200。
3125
+ */
3126
+ Limit?: number;
3127
+ }
2915
3128
  /**
2916
3129
  * DeleteAliasDomain请求参数结构体
2917
3130
  */
@@ -2969,6 +3182,15 @@ export interface DeleteApplicationProxyRuleResponse {
2969
3182
  */
2970
3183
  RequestId?: string;
2971
3184
  }
3185
+ /**
3186
+ * DeleteAccelerationDomains返回参数结构体
3187
+ */
3188
+ export interface DeleteAccelerationDomainsResponse {
3189
+ /**
3190
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3191
+ */
3192
+ RequestId?: string;
3193
+ }
2972
3194
  /**
2973
3195
  * 例外规则,用于配置需要跳过特定场景的规则
2974
3196
  */
@@ -3579,13 +3801,17 @@ export interface Tag {
3579
3801
  TagValue: string;
3580
3802
  }
3581
3803
  /**
3582
- * BindSharedCNAME返回参数结构体
3804
+ * ModifyFunctionRulePriority请求参数结构体
3583
3805
  */
3584
- export interface BindSharedCNAMEResponse {
3806
+ export interface ModifyFunctionRulePriorityRequest {
3585
3807
  /**
3586
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
3808
+ * 站点 ID。
3587
3809
  */
3588
- RequestId?: string;
3810
+ ZoneId: string;
3811
+ /**
3812
+ * 规则 ID 列表,必须填入调整优先级后的所有规则 ID,多条规则执行顺序依次从上往下,不填写保持原优先级顺序。
3813
+ */
3814
+ RuleIds: Array<string>;
3589
3815
  }
3590
3816
  /**
3591
3817
  * DeleteSharedCNAME请求参数结构体
@@ -3659,19 +3885,26 @@ export interface ModifyRealtimeLogDeliveryTaskRequest {
3659
3885
  S3?: S3;
3660
3886
  }
3661
3887
  /**
3662
- * 自定义 nameservers
3888
+ * DescribeHostsSetting请求参数结构体
3663
3889
  */
3664
- export interface VanityNameServers {
3890
+ export interface DescribeHostsSettingRequest {
3665
3891
  /**
3666
- * 自定义 ns 开关,取值有:
3667
- <li> on:开启;</li>
3668
- <li> off:关闭。</li>
3892
+ * 站点ID。
3669
3893
  */
3670
- Switch: string;
3894
+ ZoneId: string;
3671
3895
  /**
3672
- * 自定义 ns 列表。
3896
+ * 分页查询偏移量。默认值: 0,最小值:0。
3673
3897
  */
3674
- Servers?: Array<string>;
3898
+ Offset?: number;
3899
+ /**
3900
+ * 分页查询限制数目。默认值: 100,最大值:1000。
3901
+ */
3902
+ Limit?: number;
3903
+ /**
3904
+ * 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
3905
+ <li>host:按照域名进行过滤。</li>
3906
+ */
3907
+ Filters?: Array<Filter>;
3675
3908
  }
3676
3909
  /**
3677
3910
  * DestroyPlan请求参数结构体
@@ -3703,6 +3936,19 @@ export interface CreatePlanRequest {
3703
3936
  */
3704
3937
  PrepaidPlanParam?: PrepaidPlanParam;
3705
3938
  }
3939
+ /**
3940
+ * DescribeFunctionRuntimeEnvironment请求参数结构体
3941
+ */
3942
+ export interface DescribeFunctionRuntimeEnvironmentRequest {
3943
+ /**
3944
+ * 站点 ID。
3945
+ */
3946
+ ZoneId: string;
3947
+ /**
3948
+ * 函数 ID。
3949
+ */
3950
+ FunctionId: string;
3951
+ }
3706
3952
  /**
3707
3953
  * IP 网段组
3708
3954
  */
@@ -4049,6 +4295,25 @@ export interface DescribeConfigGroupVersionsResponse {
4049
4295
  */
4050
4296
  RequestId?: string;
4051
4297
  }
4298
+ /**
4299
+ * 边缘函数环境变量
4300
+ */
4301
+ export interface FunctionEnvironmentVariable {
4302
+ /**
4303
+ * 变量的名称,限制只能包含大小写字母、数字,特殊字符仅支持 @ . - _ ,最大 64 个字节,不支持重复。
4304
+ */
4305
+ Key: string;
4306
+ /**
4307
+ * 变量的值,限制最大 5000 字节,默认值为空。
4308
+ */
4309
+ Value?: string;
4310
+ /**
4311
+ * 变量的类型,取值有:
4312
+ <li>string:字符串类型;</li>
4313
+ <li>json:json 对象类型。</li>默认值为:string。
4314
+ */
4315
+ Type?: string;
4316
+ }
4052
4317
  /**
4053
4318
  * DeleteRealtimeLogDeliveryTask返回参数结构体
4054
4319
  */
@@ -4303,6 +4568,28 @@ export interface ModifyCustomErrorPageRequest {
4303
4568
  */
4304
4569
  Content?: string;
4305
4570
  }
4571
+ /**
4572
+ * ModifyFunctionRule返回参数结构体
4573
+ */
4574
+ export interface ModifyFunctionRuleResponse {
4575
+ /**
4576
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4577
+ */
4578
+ RequestId?: string;
4579
+ }
4580
+ /**
4581
+ * DescribeFunctionRules返回参数结构体
4582
+ */
4583
+ export interface DescribeFunctionRulesResponse {
4584
+ /**
4585
+ * 规则详情列表。
4586
+ */
4587
+ FunctionRules?: Array<FunctionRule>;
4588
+ /**
4589
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4590
+ */
4591
+ RequestId?: string;
4592
+ }
4306
4593
  /**
4307
4594
  * 缓存键配置。
4308
4595
  */
@@ -4603,6 +4890,26 @@ export interface UpgradePlanResponse {
4603
4890
  */
4604
4891
  RequestId?: string;
4605
4892
  }
4893
+ /**
4894
+ * ACL配置
4895
+ */
4896
+ export interface AclConfig {
4897
+ /**
4898
+ * 开关,取值有:
4899
+ <li> on:开启;</li>
4900
+ <li> off:关闭。</li>
4901
+ */
4902
+ Switch: string;
4903
+ /**
4904
+ * 用户自定义规则。
4905
+ */
4906
+ AclUserRules: Array<AclUserRule>;
4907
+ /**
4908
+ * 托管定制规则
4909
+ 注意:此字段可能返回 null,表示取不到有效值。
4910
+ */
4911
+ Customizes?: Array<AclUserRule>;
4912
+ }
4606
4913
  /**
4607
4914
  * CreateL4ProxyRules请求参数结构体
4608
4915
  */
@@ -4768,13 +5075,18 @@ export interface DescribeDDoSAttackEventRequest {
4768
5075
  OrderType?: string;
4769
5076
  }
4770
5077
  /**
4771
- * CreateL4Proxy返回参数结构体
5078
+ * 边缘函数触发规则条件。
4772
5079
  */
4773
- export interface CreateL4ProxyResponse {
5080
+ export interface FunctionRuleCondition {
4774
5081
  /**
4775
- * 四层实例 ID。
5082
+ * 边缘函数触发规则条件,该列表内所有项全部满足即判断该条件满足。
4776
5083
  */
4777
- ProxyId?: string;
5084
+ RuleConditions: Array<RuleCondition>;
5085
+ }
5086
+ /**
5087
+ * ModifyFunction返回参数结构体
5088
+ */
5089
+ export interface ModifyFunctionResponse {
4778
5090
  /**
4779
5091
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4780
5092
  */
@@ -5029,83 +5341,37 @@ export interface RenewPlanResponse {
5029
5341
  RequestId?: string;
5030
5342
  }
5031
5343
  /**
5032
- * 实时日志投递任务。
5344
+ * 自定义错误码页面结构体。
5033
5345
  */
5034
- export interface RealtimeLogDeliveryTask {
5035
- /**
5036
- * 实时日志投递任务 ID。
5037
- */
5038
- TaskId?: string;
5039
- /**
5040
- * 实时日志投递任务的名称。
5041
- */
5042
- TaskName?: string;
5043
- /**
5044
- * 实时日志投递任务的状态,取值有: <li>enabled: 已启用;</li> <li>disabled: 已停用;</li><li>deleted: 异常删除状态,请检查目的地腾讯云 CLS 日志集/日志主题是否已被删除。</li>
5045
- */
5046
- DeliveryStatus?: string;
5047
- /**
5048
- * 实时日志投递任务类型,取值有: <li>cls: 推送到腾讯云 CLS;</li> <li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li> <li>s3:推送到 AWS S3 兼容存储桶地址。</li>
5049
- */
5050
- TaskType?: string;
5051
- /**
5052
- * 实时日志投递任务对应的实体(七层域名或者四层代理实例)列表。取值示例如下: <li>七层域名:domain.example.com;</li> <li>四层代理实例:sid-2s69eb5wcms7。</li>
5053
- */
5054
- EntityList?: Array<string>;
5055
- /**
5056
- * 数据投递类型,取值有: <li>domain:站点加速日志;</li> <li>application:四层代理日志;</li> <li>web-rateLiming:速率限制和 CC 攻击防护日志;</li> <li>web-attack:托管规则日志;</li> <li>web-rule:自定义规则日志;</li> <li>web-bot:Bot管理日志。</li>
5057
- */
5058
- LogType?: string;
5059
- /**
5060
- * 数据投递区域,取值有: <li>mainland:中国大陆境内;</li> <li>overseas:全球(不含中国大陆)。</li>
5061
- */
5062
- Area?: string;
5063
- /**
5064
- * 投递的预设字段列表。
5065
- */
5066
- Fields?: Array<string>;
5067
- /**
5068
- * 投递的自定义字段列表。
5069
- */
5070
- CustomFields?: Array<CustomField>;
5071
- /**
5072
- * 日志投递的过滤条件。
5073
- */
5074
- DeliveryConditions?: Array<DeliveryCondition>;
5346
+ export interface CustomErrorPage {
5075
5347
  /**
5076
- * 采样比例,采用千分制,取值范围为1-1000,例如:605 表示采样比例为 60.5%。
5348
+ * 自定义错误页面 ID。
5077
5349
  */
5078
- Sample?: number;
5350
+ PageId?: string;
5079
5351
  /**
5080
- * 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
5081
- <li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
5082
- <li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines。</li>
5083
- 注意:此字段可能返回 null,表示取不到有效值。
5352
+ * 站点 ID。
5084
5353
  */
5085
- LogFormat?: LogFormat;
5354
+ ZoneId?: string;
5086
5355
  /**
5087
- * CLS 的配置信息。
5088
- 注意:此字段可能返回 null,表示取不到有效值。
5356
+ * 自定义错误页面名称。
5089
5357
  */
5090
- CLS?: CLSTopic;
5358
+ Name?: string;
5091
5359
  /**
5092
- * 自定义 HTTP 服务的配置信息。
5093
- 注意:此字段可能返回 null,表示取不到有效值。
5360
+ * 自定义错误页面类型。
5094
5361
  */
5095
- CustomEndpoint?: CustomEndpoint;
5362
+ ContentType?: string;
5096
5363
  /**
5097
- * AWS S3 兼容存储桶的配置信息。
5098
- 注意:此字段可能返回 null,表示取不到有效值。
5364
+ * 自定义错误页面描述。
5099
5365
  */
5100
- S3?: S3;
5366
+ Description?: string;
5101
5367
  /**
5102
- * 创建时间。
5368
+ * 自定义错误页面内容。
5103
5369
  */
5104
- CreateTime?: string;
5370
+ Content?: string;
5105
5371
  /**
5106
- * 更新时间。
5372
+ * 自定义错误页面引用。
5107
5373
  */
5108
- UpdateTime?: string;
5374
+ References?: Array<ErrorPageReference>;
5109
5375
  }
5110
5376
  /**
5111
5377
  * DescribeDeployHistory请求参数结构体
@@ -5243,6 +5509,19 @@ export interface ModifyAliasDomainStatusRequest {
5243
5509
  */
5244
5510
  AliasNames?: Array<string>;
5245
5511
  }
5512
+ /**
5513
+ * DeleteFunction请求参数结构体
5514
+ */
5515
+ export interface DeleteFunctionRequest {
5516
+ /**
5517
+ * 站点 ID。
5518
+ */
5519
+ ZoneId: string;
5520
+ /**
5521
+ * 函数 ID。
5522
+ */
5523
+ FunctionId: string;
5524
+ }
5246
5525
  /**
5247
5526
  * 共享 CNAME 和接入域名的绑定关系
5248
5527
  */
@@ -5408,24 +5687,17 @@ export interface ModifyApplicationProxyRuleRequest {
5408
5687
  RuleTag?: string;
5409
5688
  }
5410
5689
  /**
5411
- * ACL配置
5690
+ * CreateFunction返回参数结构体
5412
5691
  */
5413
- export interface AclConfig {
5414
- /**
5415
- * 开关,取值有:
5416
- <li> on:开启;</li>
5417
- <li> off:关闭。</li>
5418
- */
5419
- Switch: string;
5692
+ export interface CreateFunctionResponse {
5420
5693
  /**
5421
- * 用户自定义规则。
5694
+ * 函数 ID。
5422
5695
  */
5423
- AclUserRules: Array<AclUserRule>;
5696
+ FunctionId?: string;
5424
5697
  /**
5425
- * 托管定制规则
5426
- 注意:此字段可能返回 null,表示取不到有效值。
5698
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5427
5699
  */
5428
- Customizes?: Array<AclUserRule>;
5700
+ RequestId?: string;
5429
5701
  }
5430
5702
  /**
5431
5703
  * Bot主动特征识别客户端行为校验。
@@ -5582,6 +5854,19 @@ export interface DescribeTopL7CacheDataResponse {
5582
5854
  */
5583
5855
  RequestId?: string;
5584
5856
  }
5857
+ /**
5858
+ * DescribeFunctionRuntimeEnvironment返回参数结构体
5859
+ */
5860
+ export interface DescribeFunctionRuntimeEnvironmentResponse {
5861
+ /**
5862
+ * 环境变量列表。
5863
+ */
5864
+ EnvironmentVariables?: Array<FunctionEnvironmentVariable>;
5865
+ /**
5866
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5867
+ */
5868
+ RequestId?: string;
5869
+ }
5585
5870
  /**
5586
5871
  * 规则引擎可应用于匹配请求的设置详细信息,可选参数配置项
5587
5872
  */
@@ -5655,6 +5940,19 @@ export interface ModifyAliasDomainStatusResponse {
5655
5940
  */
5656
5941
  RequestId?: string;
5657
5942
  }
5943
+ /**
5944
+ * DeleteFunctionRules请求参数结构体
5945
+ */
5946
+ export interface DeleteFunctionRulesRequest {
5947
+ /**
5948
+ * 站点 ID。
5949
+ */
5950
+ ZoneId: string;
5951
+ /**
5952
+ * 规则 ID 列表。
5953
+ */
5954
+ RuleIds: Array<string>;
5955
+ }
5658
5956
  /**
5659
5957
  * DescribeTimingL7AnalysisData请求参数结构体
5660
5958
  */
@@ -5730,6 +6028,27 @@ export interface NoCache {
5730
6028
  */
5731
6029
  Switch: string;
5732
6030
  }
6031
+ /**
6032
+ * ModifyFunction请求参数结构体
6033
+ */
6034
+ export interface ModifyFunctionRequest {
6035
+ /**
6036
+ * 站点 ID。
6037
+ */
6038
+ ZoneId: string;
6039
+ /**
6040
+ * 函数 ID。
6041
+ */
6042
+ FunctionId: string;
6043
+ /**
6044
+ * 函数描述,最大支持 60 个字符,不填写保持原有配置。
6045
+ */
6046
+ Remark?: string;
6047
+ /**
6048
+ * 函数内容,当前仅支持 JavaScript 代码,最大支持 5MB 大小,不填写保持原有配置。
6049
+ */
6050
+ Content?: string;
6051
+ }
5733
6052
  /**
5734
6053
  * ModifyApplicationProxyStatus请求参数结构体
5735
6054
  */
@@ -6299,6 +6618,31 @@ export interface CC {
6299
6618
  */
6300
6619
  PolicyId?: number;
6301
6620
  }
6621
+ /**
6622
+ * HandleFunctionRuntimeEnvironment请求参数结构体
6623
+ */
6624
+ export interface HandleFunctionRuntimeEnvironmentRequest {
6625
+ /**
6626
+ * 站点 ID。
6627
+ */
6628
+ ZoneId: string;
6629
+ /**
6630
+ * 函数 ID。
6631
+ */
6632
+ FunctionId: string;
6633
+ /**
6634
+ * 操作类型,取值有:
6635
+ <li>setEnvironmentVariable:设置环境变量,当环境变量存在时为修改行为,否则为添加行为;</li>
6636
+ <li>deleteEnvironmentVariable:删除环境变量变量;</li>
6637
+ <li>clearEnvironmentVariable:清空环境变量变量;</li>
6638
+ <li>resetEnvironmentVariable:重置环境变量变量。</li>
6639
+ */
6640
+ Operation: string;
6641
+ /**
6642
+ * 环境变量列表,函数运行环境最多支持 64 个变量。当 Operation 取值为 setEnvironmentVariable、deleteEnvironmentVariable、resetEnvironmentVariable 时必填。
6643
+ */
6644
+ EnvironmentVariables?: Array<FunctionEnvironmentVariable>;
6645
+ }
6302
6646
  /**
6303
6647
  * ModifyL4ProxyRulesStatus请求参数结构体
6304
6648
  */
@@ -6516,13 +6860,22 @@ export interface ApplicationProxy {
6516
6860
  AccelerateMainland?: AccelerateMainland;
6517
6861
  }
6518
6862
  /**
6519
- * ModifyApplicationProxy返回参数结构体
6863
+ * 预付费套餐计费参数
6520
6864
  */
6521
- export interface ModifyApplicationProxyResponse {
6865
+ export interface PrepaidPlanParam {
6522
6866
  /**
6523
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
6867
+ * 订阅预付费套餐的周期,单位:月,取值有:1,2,3,4,5,6,7,8,9,10,11,12,24,36
6868
+
6869
+ 不填写使用默认值 1。
6524
6870
  */
6525
- RequestId?: string;
6871
+ Period?: number;
6872
+ /**
6873
+ * 预付费套餐的自动续费标志,取值有:
6874
+ <li> on:开启自动续费;</li>
6875
+ <li> off:不开启自动续费。</li>
6876
+ 不填写使用默认值 off,自动续费时,默认续费1个月。
6877
+ */
6878
+ RenewFlag?: string;
6526
6879
  }
6527
6880
  /**
6528
6881
  * ModifySecurityIPGroup返回参数结构体
@@ -6726,37 +7079,6 @@ export interface DescribeSecurityIPGroupInfoRequest {
6726
7079
  */
6727
7080
  Offset?: number;
6728
7081
  }
6729
- /**
6730
- * 例外规则的生效范围。
6731
- */
6732
- export interface ExceptUserRuleScope {
6733
- /**
6734
- * 例外规则类型。其中complete模式代表全量数据进行例外,partial模式代表可选择指定模块指定字段进行例外,该字段取值有:
6735
- <li>complete:完全跳过模式;</li>
6736
- <li>partial:部分跳过模式。</li>
6737
- */
6738
- Type?: string;
6739
- /**
6740
- * 生效的模块,该字段取值有:
6741
- <li>waf:托管规则;</li>
6742
- <li>rate:速率限制;</li>
6743
- <li>acl:自定义规则;</li>
6744
- <li>cc:cc攻击防护;</li>
6745
- <li>bot:Bot防护。</li>
6746
- 注意:此字段可能返回 null,表示取不到有效值。
6747
- */
6748
- Modules?: Array<string>;
6749
- /**
6750
- * 跳过部分规则ID的例外规则详情。如果为null,默认使用历史配置。
6751
- 注意:此字段可能返回 null,表示取不到有效值。
6752
- */
6753
- PartialModules?: Array<PartialModule>;
6754
- /**
6755
- * 跳过具体字段不去扫描的例外规则详情。如果为null,默认使用历史配置。
6756
- 注意:此字段可能返回 null,表示取不到有效值。
6757
- */
6758
- SkipConditions?: Array<SkipCondition>;
6759
- }
6760
7082
  /**
6761
7083
  * 例外规则的详细模块配置。
6762
7084
  */
@@ -6796,17 +7118,15 @@ export interface ModifyApplicationProxyRuleStatusRequest {
6796
7118
  Status: string;
6797
7119
  }
6798
7120
  /**
6799
- * 安全数据Entry返回值
7121
+ * 加速类型
6800
7122
  */
6801
- export interface SecEntry {
6802
- /**
6803
- * 查询维度值。
6804
- */
6805
- Key: string;
7123
+ export interface AccelerateType {
6806
7124
  /**
6807
- * 查询维度下详细数据。
7125
+ * 加速开关。取值范围:
7126
+ <li> on:打开;</li>
7127
+ <li>off:关闭。</li>
6808
7128
  */
6809
- Value: Array<SecEntryValue>;
7129
+ Switch: string;
6810
7130
  }
6811
7131
  /**
6812
7132
  * 实时日志投递条件,用于定义投递日志范围。DeliveryCondition 数组内多个项的关系为“或”,内层 Conditions 数组内多个项的关系为“且”。
@@ -6964,9 +7284,9 @@ export interface ModifyHostsCertificateRequest {
6964
7284
  ClientCertInfo?: MutualTLS;
6965
7285
  }
6966
7286
  /**
6967
- * DeleteAccelerationDomains返回参数结构体
7287
+ * DeleteFunctionRules返回参数结构体
6968
7288
  */
6969
- export interface DeleteAccelerationDomainsResponse {
7289
+ export interface DeleteFunctionRulesResponse {
6970
7290
  /**
6971
7291
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6972
7292
  */
@@ -7104,26 +7424,13 @@ export interface DescribeOriginProtectionRequest {
7104
7424
  Limit?: number;
7105
7425
  }
7106
7426
  /**
7107
- * DescribeHostsSetting请求参数结构体
7427
+ * HandleFunctionRuntimeEnvironment返回参数结构体
7108
7428
  */
7109
- export interface DescribeHostsSettingRequest {
7110
- /**
7111
- * 站点ID。
7112
- */
7113
- ZoneId: string;
7114
- /**
7115
- * 分页查询偏移量。默认值: 0,最小值:0。
7116
- */
7117
- Offset?: number;
7118
- /**
7119
- * 分页查询限制数目。默认值: 100,最大值:1000。
7120
- */
7121
- Limit?: number;
7429
+ export interface HandleFunctionRuntimeEnvironmentResponse {
7122
7430
  /**
7123
- * 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
7124
- <li>host:按照域名进行过滤。</li>
7431
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7125
7432
  */
7126
- Filters?: Array<Filter>;
7433
+ RequestId?: string;
7127
7434
  }
7128
7435
  /**
7129
7436
  * DeleteRules返回参数结构体
@@ -8062,6 +8369,31 @@ export interface IpTableRule {
8062
8369
  */
8063
8370
  MatchContent?: string;
8064
8371
  }
8372
+ /**
8373
+ * ModifyFunctionRule请求参数结构体
8374
+ */
8375
+ export interface ModifyFunctionRuleRequest {
8376
+ /**
8377
+ * 站点 ID。
8378
+ */
8379
+ ZoneId: string;
8380
+ /**
8381
+ * 规则 ID。
8382
+ */
8383
+ RuleId: string;
8384
+ /**
8385
+ * 规则条件列表,相同触发规则的不同条件匹配项之间为或关系,不填写保持原有配置。
8386
+ */
8387
+ FunctionRuleConditions?: Array<FunctionRuleCondition>;
8388
+ /**
8389
+ * 函数 ID,命中触发规则条件后执行的函数,不填写保持原有配置。
8390
+ */
8391
+ FunctionId?: string;
8392
+ /**
8393
+ * 规则描述,最大支持 60 个字符,不填写保持原有配置。
8394
+ */
8395
+ Remark?: string;
8396
+ }
8065
8397
  /**
8066
8398
  * IncreasePlanQuota请求参数结构体
8067
8399
  */
@@ -8079,6 +8411,43 @@ export interface IncreasePlanQuotaRequest {
8079
8411
  */
8080
8412
  QuotaNumber: number;
8081
8413
  }
8414
+ /**
8415
+ * 边缘函数触发规则。
8416
+ */
8417
+ export interface FunctionRule {
8418
+ /**
8419
+ * 规则ID。
8420
+ */
8421
+ RuleId?: string;
8422
+ /**
8423
+ * 规则条件列表,列表项之间为或关系。
8424
+ */
8425
+ FunctionRuleConditions?: Array<FunctionRuleCondition>;
8426
+ /**
8427
+ * 函数 ID,命中触发规则条件后执行的函数。
8428
+ */
8429
+ FunctionId?: string;
8430
+ /**
8431
+ * 规则描述。
8432
+ */
8433
+ Remark?: string;
8434
+ /**
8435
+ * 函数名称。
8436
+ */
8437
+ FunctionName?: string;
8438
+ /**
8439
+ * 函数触发规则优先级,数值越大,优先级越高。
8440
+ */
8441
+ Priority?: number;
8442
+ /**
8443
+ * 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
8444
+ */
8445
+ CreateTime?: string;
8446
+ /**
8447
+ * 更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
8448
+ */
8449
+ UpdateTime?: string;
8450
+ }
8082
8451
  /**
8083
8452
  * DescribeDDoSAttackTopData请求参数结构体
8084
8453
  */
@@ -8455,15 +8824,13 @@ export interface BindZoneToPlanRequest {
8455
8824
  PlanId: string;
8456
8825
  }
8457
8826
  /**
8458
- * 安全类型配置项。
8827
+ * DeleteFunction返回参数结构体
8459
8828
  */
8460
- export interface SecurityType {
8829
+ export interface DeleteFunctionResponse {
8461
8830
  /**
8462
- * 安全类型开关,取值为:
8463
- <li> on:开启;</li>
8464
- <li> off:关闭。</li>
8831
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8465
8832
  */
8466
- Switch: string;
8833
+ RequestId?: string;
8467
8834
  }
8468
8835
  /**
8469
8836
  * 源站防护IP白名单
@@ -8793,6 +9160,19 @@ export interface CreateZoneResponse {
8793
9160
  */
8794
9161
  RequestId?: string;
8795
9162
  }
9163
+ /**
9164
+ * CreateL4Proxy返回参数结构体
9165
+ */
9166
+ export interface CreateL4ProxyResponse {
9167
+ /**
9168
+ * 四层实例 ID。
9169
+ */
9170
+ ProxyId?: string;
9171
+ /**
9172
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9173
+ */
9174
+ RequestId?: string;
9175
+ }
8796
9176
  /**
8797
9177
  * ModifySecurityPolicy返回参数结构体
8798
9178
  */
@@ -8959,6 +9339,43 @@ export interface AiRule {
8959
9339
  */
8960
9340
  Mode: string;
8961
9341
  }
9342
+ /**
9343
+ * 边缘函数详情
9344
+ */
9345
+ export interface Function {
9346
+ /**
9347
+ * 函数 ID。
9348
+ */
9349
+ FunctionId?: string;
9350
+ /**
9351
+ * 站点 ID。
9352
+ */
9353
+ ZoneId?: string;
9354
+ /**
9355
+ * 函数名字。
9356
+ */
9357
+ Name?: string;
9358
+ /**
9359
+ * 函数描述。
9360
+ */
9361
+ Remark?: string;
9362
+ /**
9363
+ * 函数内容。
9364
+ */
9365
+ Content?: string;
9366
+ /**
9367
+ * 函数默认域名。
9368
+ */
9369
+ Domain?: string;
9370
+ /**
9371
+ * 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
9372
+ */
9373
+ CreateTime?: string;
9374
+ /**
9375
+ * 修改时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
9376
+ */
9377
+ UpdateTime?: string;
9378
+ }
8962
9379
  /**
8963
9380
  * 刷新/预热 可用量及配额
8964
9381
  */
@@ -9090,6 +9507,22 @@ export interface DescribePurgeTasksResponse {
9090
9507
  */
9091
9508
  RequestId?: string;
9092
9509
  }
9510
+ /**
9511
+ * DescribeFunctionRules请求参数结构体
9512
+ */
9513
+ export interface DescribeFunctionRulesRequest {
9514
+ /**
9515
+ * 站点 ID。
9516
+ */
9517
+ ZoneId: string;
9518
+ /**
9519
+ * 过滤条件列表,多个条件为且关系,Filters.Values 的上限为 20。详细的过滤条件如下:
9520
+ <li>rule-id:按照【规则 ID】进行精确匹配。</li>
9521
+ <li>function-id:按照【函数 ID】进行精确匹配。</li>
9522
+ <li>remark:按照【规则描述】进行模糊匹配。</li>
9523
+ */
9524
+ Filters?: Array<Filter>;
9525
+ }
9093
9526
  /**
9094
9527
  * DeployConfigGroupVersion返回参数结构体
9095
9528
  */