tencentcloud-sdk-nodejs-teo 4.0.1053 → 4.0.1054
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-teo",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.0.1054",
|
|
4
|
+
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "tencentcloud/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "mocha -t 10000",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "tencentcloudapi",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
25
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
26
|
"tslib": "1.13.0"
|
|
27
27
|
},
|
|
28
28
|
"directories": {
|
|
@@ -35,14 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/form-data": "^2.5.0",
|
|
38
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
39
|
"@types/node": "^14.0.26",
|
|
39
40
|
"@types/node-fetch": "^2.5.7",
|
|
41
|
+
"@types/uuid": "^9.0.8",
|
|
40
42
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
43
|
"@typescript-eslint/parser": "^2.34.0",
|
|
44
|
+
"babel-eslint": "^10.0.2",
|
|
42
45
|
"chai": "^4.2.0",
|
|
43
46
|
"eslint": "^6.8.0",
|
|
47
|
+
"eslint-plugin-react": "^7.17.0",
|
|
44
48
|
"mocha": "^8.1.1",
|
|
49
|
+
"prettier": "^2.3.0",
|
|
45
50
|
"ts-node": "^8.10.2",
|
|
46
51
|
"typescript": "^3.9.7"
|
|
47
52
|
}
|
|
48
|
-
}
|
|
53
|
+
}
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
DescribeEnvironmentsRequest,
|
|
49
49
|
DescribeAliasDomainsRequest,
|
|
50
50
|
QUICParameters,
|
|
51
|
+
ManagedRuleGroupMeta,
|
|
51
52
|
RateLimitConfig,
|
|
52
53
|
CreateRealtimeLogDeliveryTaskRequest,
|
|
53
54
|
ModifyAccelerationDomainStatusesResponse,
|
|
@@ -107,6 +108,7 @@ import {
|
|
|
107
108
|
Rule,
|
|
108
109
|
DownloadL4LogsRequest,
|
|
109
110
|
StatusCodeCacheParam,
|
|
111
|
+
SecurityAction,
|
|
110
112
|
ModifyZoneSettingRequest,
|
|
111
113
|
DetectLengthLimitRule,
|
|
112
114
|
OriginGroupHealthStatus,
|
|
@@ -167,6 +169,7 @@ import {
|
|
|
167
169
|
SetContentIdentifierParameters,
|
|
168
170
|
RenewPlanRequest,
|
|
169
171
|
DescribePrefetchTasksResponse,
|
|
172
|
+
ManagedRuleDetail,
|
|
170
173
|
DescribeZoneSettingRequest,
|
|
171
174
|
ModifyL4ProxyStatusResponse,
|
|
172
175
|
FileVerification,
|
|
@@ -182,12 +185,14 @@ import {
|
|
|
182
185
|
CustomizedHeader,
|
|
183
186
|
DescribeFunctionsRequest,
|
|
184
187
|
ModifyDnsRecordsStatusRequest,
|
|
185
|
-
|
|
188
|
+
ModifyZoneRequest,
|
|
189
|
+
CustomRule,
|
|
186
190
|
BotExtendAction,
|
|
187
191
|
CreatePurgeTaskResponse,
|
|
188
192
|
DeleteApplicationProxyRuleResponse,
|
|
189
193
|
DeleteAccelerationDomainsResponse,
|
|
190
194
|
ExceptConfig,
|
|
195
|
+
RedirectActionParameters,
|
|
191
196
|
DeleteOriginGroupRequest,
|
|
192
197
|
AclCondition,
|
|
193
198
|
L7OfflineLog,
|
|
@@ -212,9 +217,11 @@ import {
|
|
|
212
217
|
Tag,
|
|
213
218
|
BindSharedCNAMEResponse,
|
|
214
219
|
DeleteSharedCNAMERequest,
|
|
220
|
+
CustomRules,
|
|
215
221
|
ModifyRealtimeLogDeliveryTaskRequest,
|
|
216
222
|
DescribeHostsSettingRequest,
|
|
217
223
|
DestroyPlanRequest,
|
|
224
|
+
BlockIPActionParameters,
|
|
218
225
|
CreatePlanRequest,
|
|
219
226
|
DetectLengthLimitConfig,
|
|
220
227
|
DescribeFunctionRuntimeEnvironmentRequest,
|
|
@@ -254,6 +261,7 @@ import {
|
|
|
254
261
|
DownloadL4LogsResponse,
|
|
255
262
|
BindSharedCNAMERequest,
|
|
256
263
|
IpTableConfig,
|
|
264
|
+
ModifyApplicationProxyStatusRequest,
|
|
257
265
|
DeleteOriginGroupResponse,
|
|
258
266
|
ModifyOriginParameters,
|
|
259
267
|
DescribeL4ProxyRequest,
|
|
@@ -299,6 +307,7 @@ import {
|
|
|
299
307
|
ModifyZoneStatusRequest,
|
|
300
308
|
UpstreamURLRewriteParameters,
|
|
301
309
|
DescribeL4ProxyResponse,
|
|
310
|
+
ModifyHostsCertificateRequest,
|
|
302
311
|
ModifyOriginGroupResponse,
|
|
303
312
|
DeleteAccelerationDomainsRequest,
|
|
304
313
|
RenewPlanResponse,
|
|
@@ -309,6 +318,7 @@ import {
|
|
|
309
318
|
DeleteZoneResponse,
|
|
310
319
|
CreateRuleResponse,
|
|
311
320
|
ModifyL7AccSettingResponse,
|
|
321
|
+
ReturnCustomPageActionParameters,
|
|
312
322
|
BindZoneToPlanResponse,
|
|
313
323
|
UpstreamHTTP2Parameters,
|
|
314
324
|
DescribeL7AccSettingResponse,
|
|
@@ -335,6 +345,7 @@ import {
|
|
|
335
345
|
CreateAliasDomainResponse,
|
|
336
346
|
ClientIpCountry,
|
|
337
347
|
DeleteApplicationProxyRuleRequest,
|
|
348
|
+
ManagedRuleAction,
|
|
338
349
|
ModifyL7AccRuleResponse,
|
|
339
350
|
FileAscriptionInfo,
|
|
340
351
|
CreateRealtimeLogDeliveryTaskResponse,
|
|
@@ -348,8 +359,9 @@ import {
|
|
|
348
359
|
DescribeTimingL7AnalysisDataRequest,
|
|
349
360
|
NoCache,
|
|
350
361
|
ModifyFunctionRequest,
|
|
351
|
-
|
|
362
|
+
ManagedRuleGroup,
|
|
352
363
|
CreateZoneRequest,
|
|
364
|
+
SecurityPolicy,
|
|
353
365
|
AscriptionInfo,
|
|
354
366
|
OriginGroupHealthStatusDetail,
|
|
355
367
|
FirstPartConfig,
|
|
@@ -437,7 +449,7 @@ import {
|
|
|
437
449
|
DescribeIdentificationsResponse,
|
|
438
450
|
DeleteL4ProxyResponse,
|
|
439
451
|
ModifyApplicationProxyRuleStatusResponse,
|
|
440
|
-
|
|
452
|
+
ManagedRuleAutoUpdate,
|
|
441
453
|
ClientIPCountryParameters,
|
|
442
454
|
IncreasePlanQuotaResponse,
|
|
443
455
|
DescribeIPRegionResponse,
|
|
@@ -516,6 +528,7 @@ import {
|
|
|
516
528
|
DescribeOriginGroupHealthStatusResponse,
|
|
517
529
|
DescribeContentIdentifiersResponse,
|
|
518
530
|
CacheConfigCustomTime,
|
|
531
|
+
ManagedRules,
|
|
519
532
|
SecurityTemplateBinding,
|
|
520
533
|
CacheTag,
|
|
521
534
|
DescribeDefaultCertificatesResponse,
|
|
@@ -770,6 +770,24 @@ export interface QUICParameters {
|
|
|
770
770
|
Switch?: string
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
+
/**
|
|
774
|
+
* 托管规则组信息
|
|
775
|
+
*/
|
|
776
|
+
export interface ManagedRuleGroupMeta {
|
|
777
|
+
/**
|
|
778
|
+
* 托管规则组描述,仅出参。
|
|
779
|
+
*/
|
|
780
|
+
GroupDetail?: string
|
|
781
|
+
/**
|
|
782
|
+
* 托管规则组名称,仅出参。
|
|
783
|
+
*/
|
|
784
|
+
GroupName?: string
|
|
785
|
+
/**
|
|
786
|
+
* 当前托管规则组下的所有子规则信息,仅出参。
|
|
787
|
+
*/
|
|
788
|
+
RuleDetails?: Array<ManagedRuleDetail>
|
|
789
|
+
}
|
|
790
|
+
|
|
773
791
|
/**
|
|
774
792
|
* 速率限制规则
|
|
775
793
|
*/
|
|
@@ -2288,6 +2306,29 @@ export interface StatusCodeCacheParam {
|
|
|
2288
2306
|
CacheTime?: number
|
|
2289
2307
|
}
|
|
2290
2308
|
|
|
2309
|
+
/**
|
|
2310
|
+
* 安全的执行动作
|
|
2311
|
+
*/
|
|
2312
|
+
export interface SecurityAction {
|
|
2313
|
+
/**
|
|
2314
|
+
* 安全执行的具体动作。取值有:
|
|
2315
|
+
<li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Disabled:未启用;</li><li>Allow:放行。</li>
|
|
2316
|
+
*/
|
|
2317
|
+
Name: string
|
|
2318
|
+
/**
|
|
2319
|
+
* 当 Name 为 BlockIP 时的附加参数。
|
|
2320
|
+
*/
|
|
2321
|
+
BlockIPActionParameters?: BlockIPActionParameters
|
|
2322
|
+
/**
|
|
2323
|
+
* 当 Name 为 ReturnCustomPage 时的附加参数。
|
|
2324
|
+
*/
|
|
2325
|
+
ReturnCustomPageActionParameters?: ReturnCustomPageActionParameters
|
|
2326
|
+
/**
|
|
2327
|
+
* 当 Name 为 Redirect 时的附加参数。
|
|
2328
|
+
*/
|
|
2329
|
+
RedirectActionParameters?: RedirectActionParameters
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2291
2332
|
/**
|
|
2292
2333
|
* ModifyZoneSetting请求参数结构体
|
|
2293
2334
|
*/
|
|
@@ -3646,6 +3687,32 @@ export interface DescribePrefetchTasksResponse {
|
|
|
3646
3687
|
RequestId?: string
|
|
3647
3688
|
}
|
|
3648
3689
|
|
|
3690
|
+
/**
|
|
3691
|
+
* 托管规则详情
|
|
3692
|
+
*/
|
|
3693
|
+
export interface ManagedRuleDetail {
|
|
3694
|
+
/**
|
|
3695
|
+
* 托管规则Id。
|
|
3696
|
+
*/
|
|
3697
|
+
RuleId?: string
|
|
3698
|
+
/**
|
|
3699
|
+
* 托管规则的防护级别。取值有:<li>low:低风险,此规则风险较低,适用于非常严格控制环境下的访问场景,该等级规则可能造成较多的误报;</li><li>medium:中风险,表示此条规则风险正常,适用较为严格的防护场景;</li><li>high:高风险,表示此条规则风险较高,大多数场景不会产生误报;</li><li>extreme:超高风险,表示此条规则风险极高,基本不会产生误报;</li>
|
|
3700
|
+
*/
|
|
3701
|
+
RiskLevel?: string
|
|
3702
|
+
/**
|
|
3703
|
+
* 规则描述。
|
|
3704
|
+
*/
|
|
3705
|
+
Description?: string
|
|
3706
|
+
/**
|
|
3707
|
+
* 规则标签。部分类型的规则不存在标签。
|
|
3708
|
+
*/
|
|
3709
|
+
Tags?: Array<string>
|
|
3710
|
+
/**
|
|
3711
|
+
* 规则所属版本。
|
|
3712
|
+
*/
|
|
3713
|
+
RuleVersion?: string
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3649
3716
|
/**
|
|
3650
3717
|
* DescribeZoneSetting请求参数结构体
|
|
3651
3718
|
*/
|
|
@@ -3685,25 +3752,27 @@ export interface FileVerification {
|
|
|
3685
3752
|
*/
|
|
3686
3753
|
export interface ModifySecurityPolicyRequest {
|
|
3687
3754
|
/**
|
|
3688
|
-
* 站点
|
|
3755
|
+
* 站点 ID。
|
|
3689
3756
|
*/
|
|
3690
3757
|
ZoneId: string
|
|
3691
3758
|
/**
|
|
3692
|
-
*
|
|
3759
|
+
* 安全策略配置。<li>当 SecurityPolicy 参数中的 CustomRule 被设置时,SecurityConfig 参数中的 AclConfg、 IpTableConfg 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略。</li><li>对于自定义规则以及托管规则策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
|
3693
3760
|
*/
|
|
3694
3761
|
SecurityConfig: SecurityConfig
|
|
3695
3762
|
/**
|
|
3696
|
-
*
|
|
3697
|
-
|
|
3698
|
-
|
|
3763
|
+
* 安全策略配置。对 Web 防护自定义策略和托管规则配置建议使用,支持表达式语法对安全策略进行配置。
|
|
3764
|
+
*/
|
|
3765
|
+
SecurityPolicy?: SecurityPolicy
|
|
3766
|
+
/**
|
|
3767
|
+
* 安全策略类型,可使用以下参数值: <li>ZoneDefaultPolicy:用于指定站点级策略;</li><li>Template:用于指定策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
|
3699
3768
|
*/
|
|
3700
3769
|
Entity?: string
|
|
3701
3770
|
/**
|
|
3702
|
-
*
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3771
|
+
* 指定域名。当 Entity 参数值为 Host 时,使用本参数指定的域名级策略,例如:使用 www.example.com ,配置该域名的域名级策略。
|
|
3772
|
+
*/
|
|
3773
|
+
Host?: string
|
|
3774
|
+
/**
|
|
3775
|
+
* 指定策略模板 ID。当 Entity 参数值为 Template 时,使用本参数指定策略模板的 ID。
|
|
3707
3776
|
*/
|
|
3708
3777
|
TemplateId?: string
|
|
3709
3778
|
}
|
|
@@ -4084,41 +4153,73 @@ export interface ModifyDnsRecordsStatusRequest {
|
|
|
4084
4153
|
}
|
|
4085
4154
|
|
|
4086
4155
|
/**
|
|
4087
|
-
*
|
|
4156
|
+
* ModifyZone请求参数结构体
|
|
4088
4157
|
*/
|
|
4089
|
-
export interface
|
|
4158
|
+
export interface ModifyZoneRequest {
|
|
4090
4159
|
/**
|
|
4091
4160
|
* 站点 ID。
|
|
4092
4161
|
*/
|
|
4093
4162
|
ZoneId: string
|
|
4094
4163
|
/**
|
|
4095
|
-
*
|
|
4164
|
+
* 站点接入方式,取值有:
|
|
4165
|
+
<li>full:NS 接入;</li>
|
|
4166
|
+
<li>partial:CNAME 接入,如果站点当前是无域名接入,仅支持切换到 CNAME 接入;</li>
|
|
4167
|
+
<li>dnsPodAccess:DNSPod 托管接入,该接入模式要求您的域名已托管在 DNSPod 内。</li>不填写保持原有配置。
|
|
4096
4168
|
*/
|
|
4097
|
-
|
|
4169
|
+
Type?: string
|
|
4098
4170
|
/**
|
|
4099
|
-
*
|
|
4100
|
-
<li>disable:不配置服务端证书;</li>
|
|
4101
|
-
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
4102
|
-
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
4103
|
-
不填写表示服务端证书保持原有配置。
|
|
4171
|
+
* 自定义站点信息,以替代系统默认分配的名称服务器。不填写保持原有配置。当站点是无域名接入方式时不允许传此参数。
|
|
4104
4172
|
*/
|
|
4105
|
-
|
|
4173
|
+
VanityNameServers?: VanityNameServers
|
|
4106
4174
|
/**
|
|
4107
|
-
*
|
|
4175
|
+
* 同名站点标识。限制输入数字、英文、"." 、"-" 和 "_",长度 200 个字符以内。
|
|
4108
4176
|
*/
|
|
4109
|
-
|
|
4177
|
+
AliasZoneName?: string
|
|
4110
4178
|
/**
|
|
4111
|
-
*
|
|
4112
|
-
<li>
|
|
4113
|
-
<li>
|
|
4114
|
-
|
|
4115
|
-
* @deprecated
|
|
4179
|
+
* 站点接入地域,取值有:
|
|
4180
|
+
<li> global:全球;</li>
|
|
4181
|
+
<li> mainland:中国大陆;</li>
|
|
4182
|
+
<li> overseas:境外区域。</li>当站点是无域名接入方式时,不允许传此参数。
|
|
4116
4183
|
*/
|
|
4117
|
-
|
|
4184
|
+
Area?: string
|
|
4118
4185
|
/**
|
|
4119
|
-
*
|
|
4186
|
+
* 站点名称。仅当站点由无域名接入方式切换到CNAME接入方式的场景下有效。
|
|
4120
4187
|
*/
|
|
4121
|
-
|
|
4188
|
+
ZoneName?: string
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
/**
|
|
4192
|
+
* Web安全的自定义规则
|
|
4193
|
+
*/
|
|
4194
|
+
export interface CustomRule {
|
|
4195
|
+
/**
|
|
4196
|
+
* 自定义规则的名称。
|
|
4197
|
+
*/
|
|
4198
|
+
Name: string
|
|
4199
|
+
/**
|
|
4200
|
+
* 自定义规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
4201
|
+
*/
|
|
4202
|
+
Condition: string
|
|
4203
|
+
/**
|
|
4204
|
+
* 自定义规则的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Allow:放行。</li>
|
|
4205
|
+
*/
|
|
4206
|
+
Action: SecurityAction
|
|
4207
|
+
/**
|
|
4208
|
+
* 自定义规则是否开启。取值有:<li>on:开启</li><li>off:关闭</li>
|
|
4209
|
+
*/
|
|
4210
|
+
Enabled: string
|
|
4211
|
+
/**
|
|
4212
|
+
* 自定义规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> - 增加新规则:ID 为空或不指定 ID 参数;<br> - 修改已有规则:指定需要更新/修改的规则 ID;<br> - 删除已有规则:CustomRules 参数中,Rules 列表中未包含的已有规则将被删除。
|
|
4213
|
+
*/
|
|
4214
|
+
Id?: string
|
|
4215
|
+
/**
|
|
4216
|
+
* 自定义规则的类型。取值有:<li>BasicAccessRule:基础访问管控;</li><li>PreciseMatchRule:精准匹配规则,默认;</li><li>ManagedAccessRule:专家定制规则,仅出参。</li><br/>默认为PreciseMatchRule。
|
|
4217
|
+
*/
|
|
4218
|
+
RuleType?: string
|
|
4219
|
+
/**
|
|
4220
|
+
* 自定义规则的优先级,范围是 0 ~ 100,默认为 0,仅支持精准匹配规则(PreciseMatchRule)。
|
|
4221
|
+
*/
|
|
4222
|
+
Priority?: number
|
|
4122
4223
|
}
|
|
4123
4224
|
|
|
4124
4225
|
/**
|
|
@@ -4199,6 +4300,16 @@ export interface ExceptConfig {
|
|
|
4199
4300
|
ExceptUserRules?: Array<ExceptUserRule>
|
|
4200
4301
|
}
|
|
4201
4302
|
|
|
4303
|
+
/**
|
|
4304
|
+
* Web安全重定向的附加参数
|
|
4305
|
+
*/
|
|
4306
|
+
export interface RedirectActionParameters {
|
|
4307
|
+
/**
|
|
4308
|
+
* 重定向的URL。
|
|
4309
|
+
*/
|
|
4310
|
+
URL: string
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4202
4313
|
/**
|
|
4203
4314
|
* DeleteOriginGroup请求参数结构体
|
|
4204
4315
|
*/
|
|
@@ -4877,6 +4988,16 @@ export interface DeleteSharedCNAMERequest {
|
|
|
4877
4988
|
SharedCNAME: string
|
|
4878
4989
|
}
|
|
4879
4990
|
|
|
4991
|
+
/**
|
|
4992
|
+
* Web安全的自定义规则结构
|
|
4993
|
+
*/
|
|
4994
|
+
export interface CustomRules {
|
|
4995
|
+
/**
|
|
4996
|
+
* 自定义规则的定义列表。<br>使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> - 若未指定 Rules 参数,或 Rules 参数长度为零:清空所有自定义规则配置。<br> - 若 SecurityPolicy 参数中,未指定 CustomRules 参数值:保持已有自定义规则配置,不做修改。
|
|
4997
|
+
*/
|
|
4998
|
+
Rules?: Array<CustomRule>
|
|
4999
|
+
}
|
|
5000
|
+
|
|
4880
5001
|
/**
|
|
4881
5002
|
* ModifyRealtimeLogDeliveryTask请求参数结构体
|
|
4882
5003
|
*/
|
|
@@ -4969,6 +5090,16 @@ export interface DestroyPlanRequest {
|
|
|
4969
5090
|
PlanId: string
|
|
4970
5091
|
}
|
|
4971
5092
|
|
|
5093
|
+
/**
|
|
5094
|
+
* Web安全IP封禁的附加参数
|
|
5095
|
+
*/
|
|
5096
|
+
export interface BlockIPActionParameters {
|
|
5097
|
+
/**
|
|
5098
|
+
* 封禁 IP 的惩罚时长。支持的单位有:<li>s:秒,取值范围1~120;</li><li>m:分,取值范围1~120;</li><li>h:小时,取值范围1~48。</li>
|
|
5099
|
+
*/
|
|
5100
|
+
Duration: string
|
|
5101
|
+
}
|
|
5102
|
+
|
|
4972
5103
|
/**
|
|
4973
5104
|
* CreatePlan请求参数结构体
|
|
4974
5105
|
*/
|
|
@@ -5909,6 +6040,26 @@ export interface IpTableConfig {
|
|
|
5909
6040
|
IpTableRules?: Array<IpTableRule>
|
|
5910
6041
|
}
|
|
5911
6042
|
|
|
6043
|
+
/**
|
|
6044
|
+
* ModifyApplicationProxyStatus请求参数结构体
|
|
6045
|
+
*/
|
|
6046
|
+
export interface ModifyApplicationProxyStatusRequest {
|
|
6047
|
+
/**
|
|
6048
|
+
* 站点ID。
|
|
6049
|
+
*/
|
|
6050
|
+
ZoneId: string
|
|
6051
|
+
/**
|
|
6052
|
+
* 代理ID。
|
|
6053
|
+
*/
|
|
6054
|
+
ProxyId: string
|
|
6055
|
+
/**
|
|
6056
|
+
* 状态,取值有:
|
|
6057
|
+
<li>offline: 停用;</li>
|
|
6058
|
+
<li>online: 启用。</li>
|
|
6059
|
+
*/
|
|
6060
|
+
Status: string
|
|
6061
|
+
}
|
|
6062
|
+
|
|
5912
6063
|
/**
|
|
5913
6064
|
* DeleteOriginGroup返回参数结构体
|
|
5914
6065
|
*/
|
|
@@ -6912,6 +7063,44 @@ export interface DescribeL4ProxyResponse {
|
|
|
6912
7063
|
RequestId?: string
|
|
6913
7064
|
}
|
|
6914
7065
|
|
|
7066
|
+
/**
|
|
7067
|
+
* ModifyHostsCertificate请求参数结构体
|
|
7068
|
+
*/
|
|
7069
|
+
export interface ModifyHostsCertificateRequest {
|
|
7070
|
+
/**
|
|
7071
|
+
* 站点 ID。
|
|
7072
|
+
*/
|
|
7073
|
+
ZoneId: string
|
|
7074
|
+
/**
|
|
7075
|
+
* 需要修改证书配置的加速域名。
|
|
7076
|
+
*/
|
|
7077
|
+
Hosts: Array<string>
|
|
7078
|
+
/**
|
|
7079
|
+
* 配置服务端证书的模式,取值有:
|
|
7080
|
+
<li>disable:不配置服务端证书;</li>
|
|
7081
|
+
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
7082
|
+
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
7083
|
+
不填写表示服务端证书保持原有配置。
|
|
7084
|
+
*/
|
|
7085
|
+
Mode?: string
|
|
7086
|
+
/**
|
|
7087
|
+
* SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
|
7088
|
+
*/
|
|
7089
|
+
ServerCertInfo?: Array<ServerCertInfo>
|
|
7090
|
+
/**
|
|
7091
|
+
* 托管类型,取值有:
|
|
7092
|
+
<li>none:不托管EO;</li>
|
|
7093
|
+
<li>apply:托管EO</li>
|
|
7094
|
+
不填,默认取值为none。
|
|
7095
|
+
* @deprecated
|
|
7096
|
+
*/
|
|
7097
|
+
ApplyType?: string
|
|
7098
|
+
/**
|
|
7099
|
+
* 在边缘双向认证场景下,该字段为客户端的 CA 证书,部署在 EO 节点内,用于客户端对 EO 节点进行认证。默认关闭,不填写表示保持原有配置。
|
|
7100
|
+
*/
|
|
7101
|
+
ClientCertInfo?: MutualTLS
|
|
7102
|
+
}
|
|
7103
|
+
|
|
6915
7104
|
/**
|
|
6916
7105
|
* ModifyOriginGroup返回参数结构体
|
|
6917
7106
|
*/
|
|
@@ -7089,6 +7278,20 @@ export interface ModifyL7AccSettingResponse {
|
|
|
7089
7278
|
RequestId?: string
|
|
7090
7279
|
}
|
|
7091
7280
|
|
|
7281
|
+
/**
|
|
7282
|
+
* Web安全自定义页面的附加参数
|
|
7283
|
+
*/
|
|
7284
|
+
export interface ReturnCustomPageActionParameters {
|
|
7285
|
+
/**
|
|
7286
|
+
* 响应状态码。
|
|
7287
|
+
*/
|
|
7288
|
+
ResponseCode: string
|
|
7289
|
+
/**
|
|
7290
|
+
* 响应的自定义页面ID。
|
|
7291
|
+
*/
|
|
7292
|
+
ErrorPageId: string
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7092
7295
|
/**
|
|
7093
7296
|
* BindZoneToPlan返回参数结构体
|
|
7094
7297
|
*/
|
|
@@ -7685,6 +7888,20 @@ export interface DeleteApplicationProxyRuleRequest {
|
|
|
7685
7888
|
RuleId: string
|
|
7686
7889
|
}
|
|
7687
7890
|
|
|
7891
|
+
/**
|
|
7892
|
+
* 托管规则的项配置
|
|
7893
|
+
*/
|
|
7894
|
+
export interface ManagedRuleAction {
|
|
7895
|
+
/**
|
|
7896
|
+
* 托管规则组下的具体项,用于改写此单条规则项配置的内容,具体参考产品文档。
|
|
7897
|
+
*/
|
|
7898
|
+
RuleId: string
|
|
7899
|
+
/**
|
|
7900
|
+
* RuleId 中指定托管规则项的处置动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
|
7901
|
+
*/
|
|
7902
|
+
Action: SecurityAction
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7688
7905
|
/**
|
|
7689
7906
|
* ModifyL7AccRule返回参数结构体
|
|
7690
7907
|
*/
|
|
@@ -7961,23 +8178,29 @@ export interface ModifyFunctionRequest {
|
|
|
7961
8178
|
}
|
|
7962
8179
|
|
|
7963
8180
|
/**
|
|
7964
|
-
*
|
|
8181
|
+
* 托管规则组配置。
|
|
7965
8182
|
*/
|
|
7966
|
-
export interface
|
|
8183
|
+
export interface ManagedRuleGroup {
|
|
7967
8184
|
/**
|
|
7968
|
-
*
|
|
8185
|
+
* 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。
|
|
7969
8186
|
*/
|
|
7970
|
-
|
|
8187
|
+
GroupId: string
|
|
7971
8188
|
/**
|
|
7972
|
-
*
|
|
8189
|
+
* 托管规则组的防护级别。取值有:<li>loose:宽松,只包含超高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>normal:正常,包含超高风险和高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>strict:严格,包含超高风险、高风险和中风险规则,此时需配置Action,且RuleActions配置无效;</li><li>extreme:超严格,包含超高风险、高风险、中风险和低风险规则,此时需配置Action,且RuleActions配置无效;</li><li>custom:自定义,精细化策略,按单条规则配置处置方式,此时Action字段无效,使用RuleActions配置单条规则的精细化策略。</li>
|
|
7973
8190
|
*/
|
|
7974
|
-
|
|
8191
|
+
SensitivityLevel: string
|
|
7975
8192
|
/**
|
|
7976
|
-
*
|
|
7977
|
-
<li>offline: 停用;</li>
|
|
7978
|
-
<li>online: 启用。</li>
|
|
8193
|
+
* 托管规则组的处置动作。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
|
7979
8194
|
*/
|
|
7980
|
-
|
|
8195
|
+
Action: SecurityAction
|
|
8196
|
+
/**
|
|
8197
|
+
* 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。
|
|
8198
|
+
*/
|
|
8199
|
+
RuleActions?: Array<ManagedRuleAction>
|
|
8200
|
+
/**
|
|
8201
|
+
* 托管规则组信息,仅出参。
|
|
8202
|
+
*/
|
|
8203
|
+
MetaData?: ManagedRuleGroupMeta
|
|
7981
8204
|
}
|
|
7982
8205
|
|
|
7983
8206
|
/**
|
|
@@ -8029,6 +8252,20 @@ export interface CreateZoneRequest {
|
|
|
8029
8252
|
JumpStart?: boolean
|
|
8030
8253
|
}
|
|
8031
8254
|
|
|
8255
|
+
/**
|
|
8256
|
+
* 安全策略配置
|
|
8257
|
+
*/
|
|
8258
|
+
export interface SecurityPolicy {
|
|
8259
|
+
/**
|
|
8260
|
+
* 自定义规则配置。
|
|
8261
|
+
*/
|
|
8262
|
+
CustomRules?: CustomRules
|
|
8263
|
+
/**
|
|
8264
|
+
* 托管规则配置。
|
|
8265
|
+
*/
|
|
8266
|
+
ManagedRules?: ManagedRules
|
|
8267
|
+
}
|
|
8268
|
+
|
|
8032
8269
|
/**
|
|
8033
8270
|
* 站点归属信息
|
|
8034
8271
|
*/
|
|
@@ -10305,39 +10542,17 @@ export interface ModifyApplicationProxyRuleStatusResponse {
|
|
|
10305
10542
|
}
|
|
10306
10543
|
|
|
10307
10544
|
/**
|
|
10308
|
-
*
|
|
10545
|
+
* 托管规则自动更新选项
|
|
10309
10546
|
*/
|
|
10310
|
-
export interface
|
|
10311
|
-
/**
|
|
10312
|
-
* 站点 ID。
|
|
10313
|
-
*/
|
|
10314
|
-
ZoneId: string
|
|
10315
|
-
/**
|
|
10316
|
-
* 站点接入方式,取值有:
|
|
10317
|
-
<li>full:NS 接入;</li>
|
|
10318
|
-
<li>partial:CNAME 接入,如果站点当前是无域名接入,仅支持切换到 CNAME 接入;</li>
|
|
10319
|
-
<li>dnsPodAccess:DNSPod 托管接入,该接入模式要求您的域名已托管在 DNSPod 内。</li>不填写保持原有配置。
|
|
10320
|
-
*/
|
|
10321
|
-
Type?: string
|
|
10547
|
+
export interface ManagedRuleAutoUpdate {
|
|
10322
10548
|
/**
|
|
10323
|
-
*
|
|
10549
|
+
* 是否开启自动更新至最新版本。取值有:<li>on:开启</li><li>off:关闭</li>
|
|
10324
10550
|
*/
|
|
10325
|
-
|
|
10551
|
+
AutoUpdateToLatestVersion: string
|
|
10326
10552
|
/**
|
|
10327
|
-
*
|
|
10553
|
+
* 当前使用的版本,格式符合ISO 8601标准,如2023-12-21T12:00:32Z,默认为空,仅出参。
|
|
10328
10554
|
*/
|
|
10329
|
-
|
|
10330
|
-
/**
|
|
10331
|
-
* 站点接入地域,取值有:
|
|
10332
|
-
<li> global:全球;</li>
|
|
10333
|
-
<li> mainland:中国大陆;</li>
|
|
10334
|
-
<li> overseas:境外区域。</li>当站点是无域名接入方式时,不允许传此参数。
|
|
10335
|
-
*/
|
|
10336
|
-
Area?: string
|
|
10337
|
-
/**
|
|
10338
|
-
* 站点名称。仅当站点由无域名接入方式切换到CNAME接入方式的场景下有效。
|
|
10339
|
-
*/
|
|
10340
|
-
ZoneName?: string
|
|
10555
|
+
RulesetVersion?: string
|
|
10341
10556
|
}
|
|
10342
10557
|
|
|
10343
10558
|
/**
|
|
@@ -12233,6 +12448,32 @@ export interface CacheConfigCustomTime {
|
|
|
12233
12448
|
CacheTime?: number
|
|
12234
12449
|
}
|
|
12235
12450
|
|
|
12451
|
+
/**
|
|
12452
|
+
* Web安全的托管规则
|
|
12453
|
+
*/
|
|
12454
|
+
export interface ManagedRules {
|
|
12455
|
+
/**
|
|
12456
|
+
* 托管规则是否开启。取值有:<li>on:开启,所有托管规则按配置生效;</li><li>off:关闭,所有托管规则不生效。</li>
|
|
12457
|
+
*/
|
|
12458
|
+
Enabled: string
|
|
12459
|
+
/**
|
|
12460
|
+
* 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,表示所有托管规则以观察模式生效;</li><li>off:关闭,表示所有托管规则以实际配置生效。</li>
|
|
12461
|
+
*/
|
|
12462
|
+
DetectionOnly: string
|
|
12463
|
+
/**
|
|
12464
|
+
* 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,对请求进行语义分析后进行处理;</li><li>off:关闭,对请求不进行语义分析,直接进行处理。</li> <br/>默认为 off。
|
|
12465
|
+
*/
|
|
12466
|
+
SemanticAnalysis?: string
|
|
12467
|
+
/**
|
|
12468
|
+
* 托管规则自动更新选项。
|
|
12469
|
+
*/
|
|
12470
|
+
AutoUpdate?: ManagedRuleAutoUpdate
|
|
12471
|
+
/**
|
|
12472
|
+
* 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
|
12473
|
+
*/
|
|
12474
|
+
ManagedRuleGroups?: Array<ManagedRuleGroup>
|
|
12475
|
+
}
|
|
12476
|
+
|
|
12236
12477
|
/**
|
|
12237
12478
|
* 安全策略模板的绑定关系。
|
|
12238
12479
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DeployConfigGroupVersionRequest, DescribeFunctionsResponse, DeleteL4ProxyRulesRequest, DescribeOriginGroupResponse, DescribeSecurityIPGroupInfoResponse, DescribeConfigGroupVersionDetailResponse, ModifyFunctionRulePriorityRequest, ModifyAccelerationDomainResponse, DescribeHostsSettingResponse, DescribeRulesResponse, CreateCLSIndexResponse, DescribeRealtimeLogDeliveryTasksRequest, DescribeOriginProtectionResponse, DescribeBillingDataRequest, DescribeEnvironmentsRequest, DescribeAliasDomainsRequest, CreateRealtimeLogDeliveryTaskRequest, ModifyAccelerationDomainStatusesResponse, ModifyAccelerationDomainRequest, ModifyContentIdentifierResponse, CreateAliasDomainRequest, CreatePrefetchTaskRequest, DescribeApplicationProxiesResponse, DescribeTopL7AnalysisDataRequest, DescribeAccelerationDomainsResponse, IdentifyZoneResponse, ModifyLoadBalancerResponse, ModifyL4ProxyResponse, CreateFunctionRuleRequest, DescribeAliasDomainsResponse, ModifyLoadBalancerRequest, DescribeTimingL7CacheDataRequest, CreateFunctionRequest, DescribeDDoSAttackEventResponse, DeleteL4ProxyRulesResponse, CreateL7AccRulesResponse, DescribeTimingL7AnalysisDataResponse, CreateL7AccRulesRequest, DeleteLoadBalancerRequest, ModifyCustomErrorPageResponse, VerifyOwnershipResponse, DownloadL4LogsRequest, ModifyZoneSettingRequest, ModifyDnsRecordsResponse, DeleteCustomErrorPageResponse, DescribeTimingL7CacheDataResponse, DescribeZonesResponse, DeleteCustomErrorPageRequest, DeleteZoneRequest, ModifyPlanRequest, ModifyL4ProxyRulesRequest, DescribeRulesSettingRequest, ModifyAliasDomainRequest, CreateFunctionRuleResponse, CreateSecurityIPGroupRequest, CreateOriginGroupRequest, CreateSecurityIPGroupResponse, CreateSharedCNAMEResponse, DescribeAvailablePlansResponse, ModifyRealtimeLogDeliveryTaskResponse, DescribeSecurityTemplateBindingsRequest, CreateL4ProxyRulesRequest, DescribeDDoSAttackTopDataResponse, DeleteRulesRequest, ModifyL7AccRuleRequest, DescribeCustomErrorPagesResponse, DeleteApplicationProxyResponse, DeleteSecurityIPGroupResponse, ModifyRuleRequest, RenewPlanRequest, DescribePrefetchTasksResponse, DescribeZoneSettingRequest, ModifyL4ProxyStatusResponse, ModifySecurityPolicyRequest, DeleteL7AccRulesRequest, CreateApplicationProxyResponse, DescribeL4ProxyRulesResponse, DescribeFunctionsRequest, ModifyDnsRecordsStatusRequest,
|
|
2
|
+
import { DeployConfigGroupVersionRequest, DescribeFunctionsResponse, DeleteL4ProxyRulesRequest, DescribeOriginGroupResponse, DescribeSecurityIPGroupInfoResponse, DescribeConfigGroupVersionDetailResponse, ModifyFunctionRulePriorityRequest, ModifyAccelerationDomainResponse, DescribeHostsSettingResponse, DescribeRulesResponse, CreateCLSIndexResponse, DescribeRealtimeLogDeliveryTasksRequest, DescribeOriginProtectionResponse, DescribeBillingDataRequest, DescribeEnvironmentsRequest, DescribeAliasDomainsRequest, CreateRealtimeLogDeliveryTaskRequest, ModifyAccelerationDomainStatusesResponse, ModifyAccelerationDomainRequest, ModifyContentIdentifierResponse, CreateAliasDomainRequest, CreatePrefetchTaskRequest, DescribeApplicationProxiesResponse, DescribeTopL7AnalysisDataRequest, DescribeAccelerationDomainsResponse, IdentifyZoneResponse, ModifyLoadBalancerResponse, ModifyL4ProxyResponse, CreateFunctionRuleRequest, DescribeAliasDomainsResponse, ModifyLoadBalancerRequest, DescribeTimingL7CacheDataRequest, CreateFunctionRequest, DescribeDDoSAttackEventResponse, DeleteL4ProxyRulesResponse, CreateL7AccRulesResponse, DescribeTimingL7AnalysisDataResponse, CreateL7AccRulesRequest, DeleteLoadBalancerRequest, ModifyCustomErrorPageResponse, VerifyOwnershipResponse, DownloadL4LogsRequest, ModifyZoneSettingRequest, ModifyDnsRecordsResponse, DeleteCustomErrorPageResponse, DescribeTimingL7CacheDataResponse, DescribeZonesResponse, DeleteCustomErrorPageRequest, DeleteZoneRequest, ModifyPlanRequest, ModifyL4ProxyRulesRequest, DescribeRulesSettingRequest, ModifyAliasDomainRequest, CreateFunctionRuleResponse, CreateSecurityIPGroupRequest, CreateOriginGroupRequest, CreateSecurityIPGroupResponse, CreateSharedCNAMEResponse, DescribeAvailablePlansResponse, ModifyRealtimeLogDeliveryTaskResponse, DescribeSecurityTemplateBindingsRequest, CreateL4ProxyRulesRequest, DescribeDDoSAttackTopDataResponse, DeleteRulesRequest, ModifyL7AccRuleRequest, DescribeCustomErrorPagesResponse, DeleteApplicationProxyResponse, DeleteSecurityIPGroupResponse, ModifyRuleRequest, RenewPlanRequest, DescribePrefetchTasksResponse, DescribeZoneSettingRequest, ModifyL4ProxyStatusResponse, ModifySecurityPolicyRequest, DeleteL7AccRulesRequest, CreateApplicationProxyResponse, DescribeL4ProxyRulesResponse, DescribeFunctionsRequest, ModifyDnsRecordsStatusRequest, ModifyZoneRequest, CreatePurgeTaskResponse, DeleteApplicationProxyRuleResponse, DeleteAccelerationDomainsResponse, DeleteOriginGroupRequest, ModifyRuleResponse, DescribeRulesSettingResponse, BindSecurityTemplateToEntityResponse, ModifyL4ProxyRulesResponse, DescribeConfigGroupVersionDetailRequest, ModifyPlanResponse, CreateDnsRecordResponse, DescribeZonesRequest, DescribeZoneConfigImportResultResponse, BindSharedCNAMEResponse, DeleteSharedCNAMERequest, ModifyRealtimeLogDeliveryTaskRequest, DescribeHostsSettingRequest, DestroyPlanRequest, CreatePlanRequest, DescribeFunctionRuntimeEnvironmentRequest, DescribeDnsRecordsRequest, CreatePrefetchTaskResponse, DescribeDefaultCertificatesRequest, ModifyApplicationProxyRuleResponse, CreateConfigGroupVersionResponse, DownloadL7LogsRequest, DescribeRealtimeLogDeliveryTasksResponse, DescribeConfigGroupVersionsResponse, DeleteRealtimeLogDeliveryTaskResponse, DescribeOverviewL7DataResponse, DescribeEnvironmentsResponse, CreatePlanForZoneRequest, CreateL4ProxyRulesResponse, ModifyCustomErrorPageRequest, ModifyFunctionRuleResponse, DescribeL7AccRulesRequest, DescribeFunctionRulesResponse, DownloadL4LogsResponse, BindSharedCNAMERequest, ModifyApplicationProxyStatusRequest, DeleteOriginGroupResponse, DescribeL4ProxyRequest, DescribeIdentificationsRequest, ModifyHostsCertificateResponse, CreateAccelerationDomainRequest, DescribeZoneSettingResponse, DescribePurgeTasksRequest, ModifyDnsRecordsRequest, IdentifyZoneRequest, DescribeL7AccSettingRequest, UpgradePlanResponse, CreateLoadBalancerResponse, CreateConfigGroupVersionRequest, DescribeLoadBalancerListRequest, DescribeDDoSAttackEventRequest, ModifyFunctionResponse, DescribeOriginGroupRequest, DescribeIPRegionRequest, CreatePlanForZoneResponse, ModifyL4ProxyRulesStatusResponse, CheckCnameStatusResponse, ImportZoneConfigResponse, VerifyOwnershipRequest, DeleteL4ProxyRequest, DeleteApplicationProxyRequest, ModifyZoneStatusRequest, DescribeL4ProxyResponse, ModifyHostsCertificateRequest, ModifyOriginGroupResponse, DeleteAccelerationDomainsRequest, RenewPlanResponse, DescribeDeployHistoryRequest, ModifyOriginGroupRequest, DeleteZoneResponse, CreateRuleResponse, ModifyL7AccSettingResponse, BindZoneToPlanResponse, DescribeL7AccSettingResponse, CreateDnsRecordRequest, ModifyApplicationProxyRequest, ModifyAliasDomainStatusRequest, DeleteFunctionRequest, DeleteRealtimeLogDeliveryTaskRequest, ModifyApplicationProxyRuleRequest, CreateFunctionResponse, DescribeLoadBalancerListResponse, DescribeL7AccRulesResponse, DeleteSecurityIPGroupRequest, CreateAliasDomainResponse, DeleteApplicationProxyRuleRequest, ModifyL7AccRuleResponse, CreateRealtimeLogDeliveryTaskResponse, DescribeTopL7CacheDataResponse, DescribeFunctionRuntimeEnvironmentResponse, DescribeSecurityTemplateBindingsResponse, ModifyAliasDomainStatusResponse, DeleteFunctionRulesRequest, DescribeTimingL7AnalysisDataRequest, ModifyFunctionRequest, CreateZoneRequest, CreateApplicationProxyRuleRequest, DescribeDnsRecordsResponse, DescribeDDoSAttackDataRequest, CreateL4ProxyRequest, CreatePlanResponse, DescribeApplicationProxiesRequest, DescribeContentQuotaRequest, CreateRuleRequest, ModifyL4ProxyStatusRequest, CreateApplicationProxyRuleResponse, CreateApplicationProxyRequest, HandleFunctionRuntimeEnvironmentRequest, ModifyL4ProxyRulesStatusRequest, DescribeCustomErrorPagesRequest, ModifyApplicationProxyResponse, ModifySecurityIPGroupResponse, ModifyL4ProxyRequest, DescribeSecurityIPGroupInfoRequest, DescribeZoneConfigImportResultRequest, ModifyApplicationProxyRuleStatusRequest, DestroyPlanResponse, ModifyAliasDomainResponse, DeleteDnsRecordsRequest, DeleteAliasDomainRequest, DeleteFunctionRulesResponse, DescribeTopL7AnalysisDataResponse, ModifyContentIdentifierRequest, DescribeOriginProtectionRequest, DeleteContentIdentifierResponse, HandleFunctionRuntimeEnvironmentResponse, DeleteRulesResponse, ModifySecurityIPGroupRequest, CreateSharedCNAMERequest, DeleteAliasDomainResponse, ModifyZoneResponse, DescribeTopL7CacheDataRequest, CreateLoadBalancerRequest, DescribeOriginGroupHealthStatusRequest, DescribeContentIdentifiersRequest, ExportZoneConfigRequest, DescribeDDoSAttackDataResponse, DescribeIdentificationsResponse, DeleteL4ProxyResponse, ModifyApplicationProxyRuleStatusResponse, IncreasePlanQuotaResponse, DescribeIPRegionResponse, DescribeAvailablePlansRequest, ModifyZoneStatusResponse, DeleteContentIdentifierRequest, CreateContentIdentifierRequest, ModifyDnsRecordsStatusResponse, ImportZoneConfigRequest, ModifyFunctionRuleRequest, IncreasePlanQuotaRequest, DescribeDDoSAttackTopDataRequest, CreateCLSIndexRequest, DescribeRulesRequest, ModifyZoneSettingResponse, DownloadL7LogsResponse, CreateCustomizeErrorPageResponse, DescribeOverviewL7DataRequest, DeleteSharedCNAMEResponse, DescribePrefetchTasksRequest, BindZoneToPlanRequest, DeleteFunctionResponse, ModifyL7AccSettingRequest, ModifyFunctionRulePriorityResponse, CreateCustomizeErrorPageRequest, DescribeSecurityIPGroupRequest, ModifyApplicationProxyStatusResponse, BindSecurityTemplateToEntityRequest, ExportZoneConfigResponse, DescribeBillingDataResponse, CreateAccelerationDomainResponse, ModifyAccelerationDomainStatusesRequest, CreateZoneResponse, CreateL4ProxyResponse, ModifySecurityPolicyResponse, DeleteLoadBalancerResponse, DeleteL7AccRulesResponse, DescribeOriginGroupHealthStatusResponse, DescribeContentIdentifiersResponse, DescribeDefaultCertificatesResponse, CreateOriginGroupResponse, CreateContentIdentifierResponse, DescribeConfigGroupVersionsRequest, DescribeL4ProxyRulesRequest, CheckCnameStatusRequest, DescribeContentQuotaResponse, DescribeSecurityIPGroupResponse, UpgradePlanRequest, CreatePurgeTaskRequest, DeleteDnsRecordsResponse, DescribePurgeTasksResponse, DescribeFunctionRulesRequest, DeployConfigGroupVersionResponse, DescribeDeployHistoryResponse, DescribeAccelerationDomainsRequest, DescribeTimingL4DataRequest, DescribeTimingL4DataResponse } from "./teo_models";
|
|
3
3
|
/**
|
|
4
4
|
* teo client
|
|
5
5
|
* @class
|
|
@@ -722,6 +722,23 @@ export interface QUICParameters {
|
|
|
722
722
|
*/
|
|
723
723
|
Switch?: string;
|
|
724
724
|
}
|
|
725
|
+
/**
|
|
726
|
+
* 托管规则组信息
|
|
727
|
+
*/
|
|
728
|
+
export interface ManagedRuleGroupMeta {
|
|
729
|
+
/**
|
|
730
|
+
* 托管规则组描述,仅出参。
|
|
731
|
+
*/
|
|
732
|
+
GroupDetail?: string;
|
|
733
|
+
/**
|
|
734
|
+
* 托管规则组名称,仅出参。
|
|
735
|
+
*/
|
|
736
|
+
GroupName?: string;
|
|
737
|
+
/**
|
|
738
|
+
* 当前托管规则组下的所有子规则信息,仅出参。
|
|
739
|
+
*/
|
|
740
|
+
RuleDetails?: Array<ManagedRuleDetail>;
|
|
741
|
+
}
|
|
725
742
|
/**
|
|
726
743
|
* 速率限制规则
|
|
727
744
|
*/
|
|
@@ -2181,6 +2198,28 @@ export interface StatusCodeCacheParam {
|
|
|
2181
2198
|
*/
|
|
2182
2199
|
CacheTime?: number;
|
|
2183
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* 安全的执行动作
|
|
2203
|
+
*/
|
|
2204
|
+
export interface SecurityAction {
|
|
2205
|
+
/**
|
|
2206
|
+
* 安全执行的具体动作。取值有:
|
|
2207
|
+
<li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Disabled:未启用;</li><li>Allow:放行。</li>
|
|
2208
|
+
*/
|
|
2209
|
+
Name: string;
|
|
2210
|
+
/**
|
|
2211
|
+
* 当 Name 为 BlockIP 时的附加参数。
|
|
2212
|
+
*/
|
|
2213
|
+
BlockIPActionParameters?: BlockIPActionParameters;
|
|
2214
|
+
/**
|
|
2215
|
+
* 当 Name 为 ReturnCustomPage 时的附加参数。
|
|
2216
|
+
*/
|
|
2217
|
+
ReturnCustomPageActionParameters?: ReturnCustomPageActionParameters;
|
|
2218
|
+
/**
|
|
2219
|
+
* 当 Name 为 Redirect 时的附加参数。
|
|
2220
|
+
*/
|
|
2221
|
+
RedirectActionParameters?: RedirectActionParameters;
|
|
2222
|
+
}
|
|
2184
2223
|
/**
|
|
2185
2224
|
* ModifyZoneSetting请求参数结构体
|
|
2186
2225
|
*/
|
|
@@ -3479,6 +3518,31 @@ export interface DescribePrefetchTasksResponse {
|
|
|
3479
3518
|
*/
|
|
3480
3519
|
RequestId?: string;
|
|
3481
3520
|
}
|
|
3521
|
+
/**
|
|
3522
|
+
* 托管规则详情
|
|
3523
|
+
*/
|
|
3524
|
+
export interface ManagedRuleDetail {
|
|
3525
|
+
/**
|
|
3526
|
+
* 托管规则Id。
|
|
3527
|
+
*/
|
|
3528
|
+
RuleId?: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* 托管规则的防护级别。取值有:<li>low:低风险,此规则风险较低,适用于非常严格控制环境下的访问场景,该等级规则可能造成较多的误报;</li><li>medium:中风险,表示此条规则风险正常,适用较为严格的防护场景;</li><li>high:高风险,表示此条规则风险较高,大多数场景不会产生误报;</li><li>extreme:超高风险,表示此条规则风险极高,基本不会产生误报;</li>
|
|
3531
|
+
*/
|
|
3532
|
+
RiskLevel?: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* 规则描述。
|
|
3535
|
+
*/
|
|
3536
|
+
Description?: string;
|
|
3537
|
+
/**
|
|
3538
|
+
* 规则标签。部分类型的规则不存在标签。
|
|
3539
|
+
*/
|
|
3540
|
+
Tags?: Array<string>;
|
|
3541
|
+
/**
|
|
3542
|
+
* 规则所属版本。
|
|
3543
|
+
*/
|
|
3544
|
+
RuleVersion?: string;
|
|
3545
|
+
}
|
|
3482
3546
|
/**
|
|
3483
3547
|
* DescribeZoneSetting请求参数结构体
|
|
3484
3548
|
*/
|
|
@@ -3515,25 +3579,27 @@ export interface FileVerification {
|
|
|
3515
3579
|
*/
|
|
3516
3580
|
export interface ModifySecurityPolicyRequest {
|
|
3517
3581
|
/**
|
|
3518
|
-
* 站点
|
|
3582
|
+
* 站点 ID。
|
|
3519
3583
|
*/
|
|
3520
3584
|
ZoneId: string;
|
|
3521
3585
|
/**
|
|
3522
|
-
*
|
|
3586
|
+
* 安全策略配置。<li>当 SecurityPolicy 参数中的 CustomRule 被设置时,SecurityConfig 参数中的 AclConfg、 IpTableConfg 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略。</li><li>对于自定义规则以及托管规则策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
|
3523
3587
|
*/
|
|
3524
3588
|
SecurityConfig: SecurityConfig;
|
|
3525
3589
|
/**
|
|
3526
|
-
*
|
|
3527
|
-
|
|
3528
|
-
|
|
3590
|
+
* 安全策略配置。对 Web 防护自定义策略和托管规则配置建议使用,支持表达式语法对安全策略进行配置。
|
|
3591
|
+
*/
|
|
3592
|
+
SecurityPolicy?: SecurityPolicy;
|
|
3593
|
+
/**
|
|
3594
|
+
* 安全策略类型,可使用以下参数值: <li>ZoneDefaultPolicy:用于指定站点级策略;</li><li>Template:用于指定策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
|
3529
3595
|
*/
|
|
3530
3596
|
Entity?: string;
|
|
3531
3597
|
/**
|
|
3532
|
-
*
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3598
|
+
* 指定域名。当 Entity 参数值为 Host 时,使用本参数指定的域名级策略,例如:使用 www.example.com ,配置该域名的域名级策略。
|
|
3599
|
+
*/
|
|
3600
|
+
Host?: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* 指定策略模板 ID。当 Entity 参数值为 Template 时,使用本参数指定策略模板的 ID。
|
|
3537
3603
|
*/
|
|
3538
3604
|
TemplateId?: string;
|
|
3539
3605
|
}
|
|
@@ -3902,41 +3968,72 @@ export interface ModifyDnsRecordsStatusRequest {
|
|
|
3902
3968
|
RecordsToDisable?: Array<string>;
|
|
3903
3969
|
}
|
|
3904
3970
|
/**
|
|
3905
|
-
*
|
|
3971
|
+
* ModifyZone请求参数结构体
|
|
3906
3972
|
*/
|
|
3907
|
-
export interface
|
|
3973
|
+
export interface ModifyZoneRequest {
|
|
3908
3974
|
/**
|
|
3909
3975
|
* 站点 ID。
|
|
3910
3976
|
*/
|
|
3911
3977
|
ZoneId: string;
|
|
3912
3978
|
/**
|
|
3913
|
-
*
|
|
3979
|
+
* 站点接入方式,取值有:
|
|
3980
|
+
<li>full:NS 接入;</li>
|
|
3981
|
+
<li>partial:CNAME 接入,如果站点当前是无域名接入,仅支持切换到 CNAME 接入;</li>
|
|
3982
|
+
<li>dnsPodAccess:DNSPod 托管接入,该接入模式要求您的域名已托管在 DNSPod 内。</li>不填写保持原有配置。
|
|
3914
3983
|
*/
|
|
3915
|
-
|
|
3984
|
+
Type?: string;
|
|
3916
3985
|
/**
|
|
3917
|
-
*
|
|
3918
|
-
<li>disable:不配置服务端证书;</li>
|
|
3919
|
-
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
3920
|
-
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
3921
|
-
不填写表示服务端证书保持原有配置。
|
|
3986
|
+
* 自定义站点信息,以替代系统默认分配的名称服务器。不填写保持原有配置。当站点是无域名接入方式时不允许传此参数。
|
|
3922
3987
|
*/
|
|
3923
|
-
|
|
3988
|
+
VanityNameServers?: VanityNameServers;
|
|
3924
3989
|
/**
|
|
3925
|
-
*
|
|
3990
|
+
* 同名站点标识。限制输入数字、英文、"." 、"-" 和 "_",长度 200 个字符以内。
|
|
3926
3991
|
*/
|
|
3927
|
-
|
|
3992
|
+
AliasZoneName?: string;
|
|
3928
3993
|
/**
|
|
3929
|
-
*
|
|
3930
|
-
<li>
|
|
3931
|
-
<li>
|
|
3932
|
-
|
|
3933
|
-
* @deprecated
|
|
3994
|
+
* 站点接入地域,取值有:
|
|
3995
|
+
<li> global:全球;</li>
|
|
3996
|
+
<li> mainland:中国大陆;</li>
|
|
3997
|
+
<li> overseas:境外区域。</li>当站点是无域名接入方式时,不允许传此参数。
|
|
3934
3998
|
*/
|
|
3935
|
-
|
|
3999
|
+
Area?: string;
|
|
3936
4000
|
/**
|
|
3937
|
-
*
|
|
4001
|
+
* 站点名称。仅当站点由无域名接入方式切换到CNAME接入方式的场景下有效。
|
|
3938
4002
|
*/
|
|
3939
|
-
|
|
4003
|
+
ZoneName?: string;
|
|
4004
|
+
}
|
|
4005
|
+
/**
|
|
4006
|
+
* Web安全的自定义规则
|
|
4007
|
+
*/
|
|
4008
|
+
export interface CustomRule {
|
|
4009
|
+
/**
|
|
4010
|
+
* 自定义规则的名称。
|
|
4011
|
+
*/
|
|
4012
|
+
Name: string;
|
|
4013
|
+
/**
|
|
4014
|
+
* 自定义规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
4015
|
+
*/
|
|
4016
|
+
Condition: string;
|
|
4017
|
+
/**
|
|
4018
|
+
* 自定义规则的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>ReturnCustomPage:使用指定页面拦截;</li><li>Redirect:重定向至 URL;</li><li>BlockIP:IP 封禁;</li><li>JSChallenge:JavaScript 挑战;</li><li>ManagedChallenge:托管挑战;</li><li>Allow:放行。</li>
|
|
4019
|
+
*/
|
|
4020
|
+
Action: SecurityAction;
|
|
4021
|
+
/**
|
|
4022
|
+
* 自定义规则是否开启。取值有:<li>on:开启</li><li>off:关闭</li>
|
|
4023
|
+
*/
|
|
4024
|
+
Enabled: string;
|
|
4025
|
+
/**
|
|
4026
|
+
* 自定义规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> - 增加新规则:ID 为空或不指定 ID 参数;<br> - 修改已有规则:指定需要更新/修改的规则 ID;<br> - 删除已有规则:CustomRules 参数中,Rules 列表中未包含的已有规则将被删除。
|
|
4027
|
+
*/
|
|
4028
|
+
Id?: string;
|
|
4029
|
+
/**
|
|
4030
|
+
* 自定义规则的类型。取值有:<li>BasicAccessRule:基础访问管控;</li><li>PreciseMatchRule:精准匹配规则,默认;</li><li>ManagedAccessRule:专家定制规则,仅出参。</li><br/>默认为PreciseMatchRule。
|
|
4031
|
+
*/
|
|
4032
|
+
RuleType?: string;
|
|
4033
|
+
/**
|
|
4034
|
+
* 自定义规则的优先级,范围是 0 ~ 100,默认为 0,仅支持精准匹配规则(PreciseMatchRule)。
|
|
4035
|
+
*/
|
|
4036
|
+
Priority?: number;
|
|
3940
4037
|
}
|
|
3941
4038
|
/**
|
|
3942
4039
|
* Bot扩展处置方式,多处置动作组合。
|
|
@@ -4011,6 +4108,15 @@ export interface ExceptConfig {
|
|
|
4011
4108
|
*/
|
|
4012
4109
|
ExceptUserRules?: Array<ExceptUserRule>;
|
|
4013
4110
|
}
|
|
4111
|
+
/**
|
|
4112
|
+
* Web安全重定向的附加参数
|
|
4113
|
+
*/
|
|
4114
|
+
export interface RedirectActionParameters {
|
|
4115
|
+
/**
|
|
4116
|
+
* 重定向的URL。
|
|
4117
|
+
*/
|
|
4118
|
+
URL: string;
|
|
4119
|
+
}
|
|
4014
4120
|
/**
|
|
4015
4121
|
* DeleteOriginGroup请求参数结构体
|
|
4016
4122
|
*/
|
|
@@ -4665,6 +4771,15 @@ export interface DeleteSharedCNAMERequest {
|
|
|
4665
4771
|
*/
|
|
4666
4772
|
SharedCNAME: string;
|
|
4667
4773
|
}
|
|
4774
|
+
/**
|
|
4775
|
+
* Web安全的自定义规则结构
|
|
4776
|
+
*/
|
|
4777
|
+
export interface CustomRules {
|
|
4778
|
+
/**
|
|
4779
|
+
* 自定义规则的定义列表。<br>使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> - 若未指定 Rules 参数,或 Rules 参数长度为零:清空所有自定义规则配置。<br> - 若 SecurityPolicy 参数中,未指定 CustomRules 参数值:保持已有自定义规则配置,不做修改。
|
|
4780
|
+
*/
|
|
4781
|
+
Rules?: Array<CustomRule>;
|
|
4782
|
+
}
|
|
4668
4783
|
/**
|
|
4669
4784
|
* ModifyRealtimeLogDeliveryTask请求参数结构体
|
|
4670
4785
|
*/
|
|
@@ -4754,6 +4869,15 @@ export interface DestroyPlanRequest {
|
|
|
4754
4869
|
*/
|
|
4755
4870
|
PlanId: string;
|
|
4756
4871
|
}
|
|
4872
|
+
/**
|
|
4873
|
+
* Web安全IP封禁的附加参数
|
|
4874
|
+
*/
|
|
4875
|
+
export interface BlockIPActionParameters {
|
|
4876
|
+
/**
|
|
4877
|
+
* 封禁 IP 的惩罚时长。支持的单位有:<li>s:秒,取值范围1~120;</li><li>m:分,取值范围1~120;</li><li>h:小时,取值范围1~48。</li>
|
|
4878
|
+
*/
|
|
4879
|
+
Duration: string;
|
|
4880
|
+
}
|
|
4757
4881
|
/**
|
|
4758
4882
|
* CreatePlan请求参数结构体
|
|
4759
4883
|
*/
|
|
@@ -5655,6 +5779,25 @@ export interface IpTableConfig {
|
|
|
5655
5779
|
*/
|
|
5656
5780
|
IpTableRules?: Array<IpTableRule>;
|
|
5657
5781
|
}
|
|
5782
|
+
/**
|
|
5783
|
+
* ModifyApplicationProxyStatus请求参数结构体
|
|
5784
|
+
*/
|
|
5785
|
+
export interface ModifyApplicationProxyStatusRequest {
|
|
5786
|
+
/**
|
|
5787
|
+
* 站点ID。
|
|
5788
|
+
*/
|
|
5789
|
+
ZoneId: string;
|
|
5790
|
+
/**
|
|
5791
|
+
* 代理ID。
|
|
5792
|
+
*/
|
|
5793
|
+
ProxyId: string;
|
|
5794
|
+
/**
|
|
5795
|
+
* 状态,取值有:
|
|
5796
|
+
<li>offline: 停用;</li>
|
|
5797
|
+
<li>online: 启用。</li>
|
|
5798
|
+
*/
|
|
5799
|
+
Status: string;
|
|
5800
|
+
}
|
|
5658
5801
|
/**
|
|
5659
5802
|
* DeleteOriginGroup返回参数结构体
|
|
5660
5803
|
*/
|
|
@@ -6613,6 +6756,43 @@ export interface DescribeL4ProxyResponse {
|
|
|
6613
6756
|
*/
|
|
6614
6757
|
RequestId?: string;
|
|
6615
6758
|
}
|
|
6759
|
+
/**
|
|
6760
|
+
* ModifyHostsCertificate请求参数结构体
|
|
6761
|
+
*/
|
|
6762
|
+
export interface ModifyHostsCertificateRequest {
|
|
6763
|
+
/**
|
|
6764
|
+
* 站点 ID。
|
|
6765
|
+
*/
|
|
6766
|
+
ZoneId: string;
|
|
6767
|
+
/**
|
|
6768
|
+
* 需要修改证书配置的加速域名。
|
|
6769
|
+
*/
|
|
6770
|
+
Hosts: Array<string>;
|
|
6771
|
+
/**
|
|
6772
|
+
* 配置服务端证书的模式,取值有:
|
|
6773
|
+
<li>disable:不配置服务端证书;</li>
|
|
6774
|
+
<li>eofreecert:配置 EdgeOne 免费服务端证书;</li>
|
|
6775
|
+
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
|
6776
|
+
不填写表示服务端证书保持原有配置。
|
|
6777
|
+
*/
|
|
6778
|
+
Mode?: string;
|
|
6779
|
+
/**
|
|
6780
|
+
* SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
|
6781
|
+
*/
|
|
6782
|
+
ServerCertInfo?: Array<ServerCertInfo>;
|
|
6783
|
+
/**
|
|
6784
|
+
* 托管类型,取值有:
|
|
6785
|
+
<li>none:不托管EO;</li>
|
|
6786
|
+
<li>apply:托管EO</li>
|
|
6787
|
+
不填,默认取值为none。
|
|
6788
|
+
* @deprecated
|
|
6789
|
+
*/
|
|
6790
|
+
ApplyType?: string;
|
|
6791
|
+
/**
|
|
6792
|
+
* 在边缘双向认证场景下,该字段为客户端的 CA 证书,部署在 EO 节点内,用于客户端对 EO 节点进行认证。默认关闭,不填写表示保持原有配置。
|
|
6793
|
+
*/
|
|
6794
|
+
ClientCertInfo?: MutualTLS;
|
|
6795
|
+
}
|
|
6616
6796
|
/**
|
|
6617
6797
|
* ModifyOriginGroup返回参数结构体
|
|
6618
6798
|
*/
|
|
@@ -6780,6 +6960,19 @@ export interface ModifyL7AccSettingResponse {
|
|
|
6780
6960
|
*/
|
|
6781
6961
|
RequestId?: string;
|
|
6782
6962
|
}
|
|
6963
|
+
/**
|
|
6964
|
+
* Web安全自定义页面的附加参数
|
|
6965
|
+
*/
|
|
6966
|
+
export interface ReturnCustomPageActionParameters {
|
|
6967
|
+
/**
|
|
6968
|
+
* 响应状态码。
|
|
6969
|
+
*/
|
|
6970
|
+
ResponseCode: string;
|
|
6971
|
+
/**
|
|
6972
|
+
* 响应的自定义页面ID。
|
|
6973
|
+
*/
|
|
6974
|
+
ErrorPageId: string;
|
|
6975
|
+
}
|
|
6783
6976
|
/**
|
|
6784
6977
|
* BindZoneToPlan返回参数结构体
|
|
6785
6978
|
*/
|
|
@@ -7350,6 +7543,19 @@ export interface DeleteApplicationProxyRuleRequest {
|
|
|
7350
7543
|
*/
|
|
7351
7544
|
RuleId: string;
|
|
7352
7545
|
}
|
|
7546
|
+
/**
|
|
7547
|
+
* 托管规则的项配置
|
|
7548
|
+
*/
|
|
7549
|
+
export interface ManagedRuleAction {
|
|
7550
|
+
/**
|
|
7551
|
+
* 托管规则组下的具体项,用于改写此单条规则项配置的内容,具体参考产品文档。
|
|
7552
|
+
*/
|
|
7553
|
+
RuleId: string;
|
|
7554
|
+
/**
|
|
7555
|
+
* RuleId 中指定托管规则项的处置动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
|
7556
|
+
*/
|
|
7557
|
+
Action: SecurityAction;
|
|
7558
|
+
}
|
|
7353
7559
|
/**
|
|
7354
7560
|
* ModifyL7AccRule返回参数结构体
|
|
7355
7561
|
*/
|
|
@@ -7613,23 +7819,29 @@ export interface ModifyFunctionRequest {
|
|
|
7613
7819
|
Content?: string;
|
|
7614
7820
|
}
|
|
7615
7821
|
/**
|
|
7616
|
-
*
|
|
7822
|
+
* 托管规则组配置。
|
|
7617
7823
|
*/
|
|
7618
|
-
export interface
|
|
7824
|
+
export interface ManagedRuleGroup {
|
|
7619
7825
|
/**
|
|
7620
|
-
*
|
|
7826
|
+
* 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。
|
|
7621
7827
|
*/
|
|
7622
|
-
|
|
7828
|
+
GroupId: string;
|
|
7623
7829
|
/**
|
|
7624
|
-
*
|
|
7830
|
+
* 托管规则组的防护级别。取值有:<li>loose:宽松,只包含超高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>normal:正常,包含超高风险和高风险规则,此时需配置Action,且RuleActions配置无效;</li><li>strict:严格,包含超高风险、高风险和中风险规则,此时需配置Action,且RuleActions配置无效;</li><li>extreme:超严格,包含超高风险、高风险、中风险和低风险规则,此时需配置Action,且RuleActions配置无效;</li><li>custom:自定义,精细化策略,按单条规则配置处置方式,此时Action字段无效,使用RuleActions配置单条规则的精细化策略。</li>
|
|
7625
7831
|
*/
|
|
7626
|
-
|
|
7832
|
+
SensitivityLevel: string;
|
|
7627
7833
|
/**
|
|
7628
|
-
*
|
|
7629
|
-
<li>offline: 停用;</li>
|
|
7630
|
-
<li>online: 启用。</li>
|
|
7834
|
+
* 托管规则组的处置动作。SecurityAction 的 Name 取值支持:<li>Deny:拦截,响应拦截页面;</li><li>Monitor:观察,不处理请求记录安全事件到日志中;</li><li>Disabled:未启用,不扫描请求跳过该规则。</li>
|
|
7631
7835
|
*/
|
|
7632
|
-
|
|
7836
|
+
Action: SecurityAction;
|
|
7837
|
+
/**
|
|
7838
|
+
* 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。
|
|
7839
|
+
*/
|
|
7840
|
+
RuleActions?: Array<ManagedRuleAction>;
|
|
7841
|
+
/**
|
|
7842
|
+
* 托管规则组信息,仅出参。
|
|
7843
|
+
*/
|
|
7844
|
+
MetaData?: ManagedRuleGroupMeta;
|
|
7633
7845
|
}
|
|
7634
7846
|
/**
|
|
7635
7847
|
* CreateZone请求参数结构体
|
|
@@ -7679,6 +7891,19 @@ export interface CreateZoneRequest {
|
|
|
7679
7891
|
*/
|
|
7680
7892
|
JumpStart?: boolean;
|
|
7681
7893
|
}
|
|
7894
|
+
/**
|
|
7895
|
+
* 安全策略配置
|
|
7896
|
+
*/
|
|
7897
|
+
export interface SecurityPolicy {
|
|
7898
|
+
/**
|
|
7899
|
+
* 自定义规则配置。
|
|
7900
|
+
*/
|
|
7901
|
+
CustomRules?: CustomRules;
|
|
7902
|
+
/**
|
|
7903
|
+
* 托管规则配置。
|
|
7904
|
+
*/
|
|
7905
|
+
ManagedRules?: ManagedRules;
|
|
7906
|
+
}
|
|
7682
7907
|
/**
|
|
7683
7908
|
* 站点归属信息
|
|
7684
7909
|
*/
|
|
@@ -9868,39 +10093,17 @@ export interface ModifyApplicationProxyRuleStatusResponse {
|
|
|
9868
10093
|
RequestId?: string;
|
|
9869
10094
|
}
|
|
9870
10095
|
/**
|
|
9871
|
-
*
|
|
10096
|
+
* 托管规则自动更新选项
|
|
9872
10097
|
*/
|
|
9873
|
-
export interface
|
|
10098
|
+
export interface ManagedRuleAutoUpdate {
|
|
9874
10099
|
/**
|
|
9875
|
-
*
|
|
10100
|
+
* 是否开启自动更新至最新版本。取值有:<li>on:开启</li><li>off:关闭</li>
|
|
9876
10101
|
*/
|
|
9877
|
-
|
|
10102
|
+
AutoUpdateToLatestVersion: string;
|
|
9878
10103
|
/**
|
|
9879
|
-
*
|
|
9880
|
-
<li>full:NS 接入;</li>
|
|
9881
|
-
<li>partial:CNAME 接入,如果站点当前是无域名接入,仅支持切换到 CNAME 接入;</li>
|
|
9882
|
-
<li>dnsPodAccess:DNSPod 托管接入,该接入模式要求您的域名已托管在 DNSPod 内。</li>不填写保持原有配置。
|
|
10104
|
+
* 当前使用的版本,格式符合ISO 8601标准,如2023-12-21T12:00:32Z,默认为空,仅出参。
|
|
9883
10105
|
*/
|
|
9884
|
-
|
|
9885
|
-
/**
|
|
9886
|
-
* 自定义站点信息,以替代系统默认分配的名称服务器。不填写保持原有配置。当站点是无域名接入方式时不允许传此参数。
|
|
9887
|
-
*/
|
|
9888
|
-
VanityNameServers?: VanityNameServers;
|
|
9889
|
-
/**
|
|
9890
|
-
* 同名站点标识。限制输入数字、英文、"." 、"-" 和 "_",长度 200 个字符以内。
|
|
9891
|
-
*/
|
|
9892
|
-
AliasZoneName?: string;
|
|
9893
|
-
/**
|
|
9894
|
-
* 站点接入地域,取值有:
|
|
9895
|
-
<li> global:全球;</li>
|
|
9896
|
-
<li> mainland:中国大陆;</li>
|
|
9897
|
-
<li> overseas:境外区域。</li>当站点是无域名接入方式时,不允许传此参数。
|
|
9898
|
-
*/
|
|
9899
|
-
Area?: string;
|
|
9900
|
-
/**
|
|
9901
|
-
* 站点名称。仅当站点由无域名接入方式切换到CNAME接入方式的场景下有效。
|
|
9902
|
-
*/
|
|
9903
|
-
ZoneName?: string;
|
|
10106
|
+
RulesetVersion?: string;
|
|
9904
10107
|
}
|
|
9905
10108
|
/**
|
|
9906
10109
|
* 回源时携带客户端 IP 所属地域信息,值的格式为 ISO-3166-1 两位字母代码。
|
|
@@ -11717,6 +11920,31 @@ export interface CacheConfigCustomTime {
|
|
|
11717
11920
|
*/
|
|
11718
11921
|
CacheTime?: number;
|
|
11719
11922
|
}
|
|
11923
|
+
/**
|
|
11924
|
+
* Web安全的托管规则
|
|
11925
|
+
*/
|
|
11926
|
+
export interface ManagedRules {
|
|
11927
|
+
/**
|
|
11928
|
+
* 托管规则是否开启。取值有:<li>on:开启,所有托管规则按配置生效;</li><li>off:关闭,所有托管规则不生效。</li>
|
|
11929
|
+
*/
|
|
11930
|
+
Enabled: string;
|
|
11931
|
+
/**
|
|
11932
|
+
* 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,表示所有托管规则以观察模式生效;</li><li>off:关闭,表示所有托管规则以实际配置生效。</li>
|
|
11933
|
+
*/
|
|
11934
|
+
DetectionOnly: string;
|
|
11935
|
+
/**
|
|
11936
|
+
* 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:<li>on:开启,对请求进行语义分析后进行处理;</li><li>off:关闭,对请求不进行语义分析,直接进行处理。</li> <br/>默认为 off。
|
|
11937
|
+
*/
|
|
11938
|
+
SemanticAnalysis?: string;
|
|
11939
|
+
/**
|
|
11940
|
+
* 托管规则自动更新选项。
|
|
11941
|
+
*/
|
|
11942
|
+
AutoUpdate?: ManagedRuleAutoUpdate;
|
|
11943
|
+
/**
|
|
11944
|
+
* 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
|
11945
|
+
*/
|
|
11946
|
+
ManagedRuleGroups?: Array<ManagedRuleGroup>;
|
|
11947
|
+
}
|
|
11720
11948
|
/**
|
|
11721
11949
|
* 安全策略模板的绑定关系。
|
|
11722
11950
|
*/
|