tencentcloud-sdk-nodejs-waf 4.1.33 → 4.1.35
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
|
@@ -177,7 +177,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
177
177
|
/**
|
|
178
178
|
* 修改实例攻击日志投递开关,企业版及以上版本可以开通,否则返回错误
|
|
179
179
|
*/
|
|
180
|
-
ModifyInstanceAttackLogPost(req
|
|
180
|
+
ModifyInstanceAttackLogPost(req: ModifyInstanceAttackLogPostRequest, cb?: (error: string, rep: ModifyInstanceAttackLogPostResponse) => void): Promise<ModifyInstanceAttackLogPostResponse>;
|
|
181
181
|
/**
|
|
182
182
|
* 获取各个模块具体的规格限制
|
|
183
183
|
*/
|
|
@@ -1145,7 +1145,7 @@ export interface ModifyAreaBanStatusRequest {
|
|
|
1145
1145
|
*/
|
|
1146
1146
|
export interface SpartaProtectionPort {
|
|
1147
1147
|
/**
|
|
1148
|
-
* 分配的服务器id
|
|
1148
|
+
* 分配的服务器id。首次接入的域名和端口该参数填0,已接入的域名和端口分配的id可以通过DescribeDomainDetailsSaas或DescribeDomains接口获取。
|
|
1149
1149
|
*/
|
|
1150
1150
|
NginxServerId: number;
|
|
1151
1151
|
/**
|
|
@@ -2168,6 +2168,10 @@ export interface DescribeBotSceneUCBRuleRequest {
|
|
|
2168
2168
|
* 0-全部 1-生效中 2-已过期
|
|
2169
2169
|
*/
|
|
2170
2170
|
ValidStatus?: number;
|
|
2171
|
+
/**
|
|
2172
|
+
* 规则id
|
|
2173
|
+
*/
|
|
2174
|
+
RuleId?: string;
|
|
2171
2175
|
}
|
|
2172
2176
|
/**
|
|
2173
2177
|
* DescribeDomainCountInfo请求参数结构体
|
|
@@ -2632,10 +2636,6 @@ export interface LoadBalancer {
|
|
|
2632
2636
|
* 负载均衡监听器的名称
|
|
2633
2637
|
*/
|
|
2634
2638
|
ListenerName: string;
|
|
2635
|
-
/**
|
|
2636
|
-
* 负载均衡实例的IP
|
|
2637
|
-
*/
|
|
2638
|
-
Vip: string;
|
|
2639
2639
|
/**
|
|
2640
2640
|
* 负载均衡实例的端口
|
|
2641
2641
|
*/
|
|
@@ -2652,6 +2652,10 @@ export interface LoadBalancer {
|
|
|
2652
2652
|
* 负载均衡监听器所在的zone
|
|
2653
2653
|
*/
|
|
2654
2654
|
Zone: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* 负载均衡实例的IP。域名化CLB VIP可填空。
|
|
2657
|
+
*/
|
|
2658
|
+
Vip?: string;
|
|
2655
2659
|
/**
|
|
2656
2660
|
* 负载均衡的VPCID,公网为-1,内网按实际填写
|
|
2657
2661
|
*/
|
|
@@ -3672,7 +3676,7 @@ export interface ModifyHostFlowModeRequest {
|
|
|
3672
3676
|
*/
|
|
3673
3677
|
export interface CreateHostRequest {
|
|
3674
3678
|
/**
|
|
3675
|
-
*
|
|
3679
|
+
* 防护域名配置信息。内网负载均衡器必须携带对应的NumericalVpcId。
|
|
3676
3680
|
*/
|
|
3677
3681
|
Host: HostRecord;
|
|
3678
3682
|
/**
|
|
@@ -3683,7 +3687,16 @@ export interface CreateHostRequest {
|
|
|
3683
3687
|
/**
|
|
3684
3688
|
* ModifyInstanceAttackLogPost请求参数结构体
|
|
3685
3689
|
*/
|
|
3686
|
-
export
|
|
3690
|
+
export interface ModifyInstanceAttackLogPostRequest {
|
|
3691
|
+
/**
|
|
3692
|
+
* 实例ID
|
|
3693
|
+
*/
|
|
3694
|
+
InstanceId: string;
|
|
3695
|
+
/**
|
|
3696
|
+
* 攻击日志投递开关
|
|
3697
|
+
*/
|
|
3698
|
+
AttackLogPost: number;
|
|
3699
|
+
}
|
|
3687
3700
|
/**
|
|
3688
3701
|
* GetInstanceQpsLimit返回参数结构体
|
|
3689
3702
|
*/
|
|
@@ -4176,7 +4189,6 @@ export interface UserWhiteRuleItem {
|
|
|
4176
4189
|
export interface DescribeBotSceneUCBRuleResponse {
|
|
4177
4190
|
/**
|
|
4178
4191
|
* 返回数据包
|
|
4179
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
4180
4192
|
*/
|
|
4181
4193
|
Data?: DescribeBotUCBRuleRsp;
|
|
4182
4194
|
/**
|
|
@@ -4469,6 +4481,14 @@ export interface ClbObject {
|
|
|
4469
4481
|
* 数值形式的私有网络 ID
|
|
4470
4482
|
*/
|
|
4471
4483
|
NumericalVpcId?: number;
|
|
4484
|
+
/**
|
|
4485
|
+
* 修改时间
|
|
4486
|
+
*/
|
|
4487
|
+
ModifyTime?: string;
|
|
4488
|
+
/**
|
|
4489
|
+
* 创建时间
|
|
4490
|
+
*/
|
|
4491
|
+
AddTime?: string;
|
|
4472
4492
|
}
|
|
4473
4493
|
/**
|
|
4474
4494
|
* api列表
|
|
@@ -5562,6 +5582,10 @@ export interface ModifyBotSceneUCBRuleResponse {
|
|
|
5562
5582
|
* 正常情况下为null
|
|
5563
5583
|
*/
|
|
5564
5584
|
Data?: string;
|
|
5585
|
+
/**
|
|
5586
|
+
* ["1231"]
|
|
5587
|
+
*/
|
|
5588
|
+
RuleIdList?: Array<string>;
|
|
5565
5589
|
/**
|
|
5566
5590
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5567
5591
|
*/
|
|
@@ -5602,7 +5626,7 @@ export interface DescribeCertificateVerifyResultRequest {
|
|
|
5602
5626
|
*/
|
|
5603
5627
|
Domain: string;
|
|
5604
5628
|
/**
|
|
5605
|
-
*
|
|
5629
|
+
* 证书类型,此参数和GmCertType不可同时为0。 0:不检测国际标准证书 1:证书来源为自有证书 2:证书来源为托管证书
|
|
5606
5630
|
*/
|
|
5607
5631
|
CertType?: number;
|
|
5608
5632
|
/**
|
|
@@ -5618,7 +5642,7 @@ export interface DescribeCertificateVerifyResultRequest {
|
|
|
5618
5642
|
*/
|
|
5619
5643
|
PrivateKey?: string;
|
|
5620
5644
|
/**
|
|
5621
|
-
*
|
|
5645
|
+
* 国密证书类型,此参数和CertType不可同时为0。0:不检测国密证书 1:证书来源为自有国密证书 2:证书来源为托管国密证书
|
|
5622
5646
|
*/
|
|
5623
5647
|
GmCertType?: number;
|
|
5624
5648
|
/**
|
|
@@ -5646,6 +5670,19 @@ export interface DescribeCertificateVerifyResultRequest {
|
|
|
5646
5670
|
* DescribeUserCdcClbWafRegions请求参数结构体
|
|
5647
5671
|
*/
|
|
5648
5672
|
export declare type DescribeUserCdcClbWafRegionsRequest = null;
|
|
5673
|
+
/**
|
|
5674
|
+
* bot-自定义规则请求参数比对结构体
|
|
5675
|
+
*/
|
|
5676
|
+
export interface ParamCompareList {
|
|
5677
|
+
/**
|
|
5678
|
+
* 请求参数比对的匹配参数
|
|
5679
|
+
*/
|
|
5680
|
+
Key?: string;
|
|
5681
|
+
/**
|
|
5682
|
+
* 请求参数比对的匹配值
|
|
5683
|
+
*/
|
|
5684
|
+
Value?: string;
|
|
5685
|
+
}
|
|
5649
5686
|
/**
|
|
5650
5687
|
* DeleteAttackDownloadRecord返回参数结构体
|
|
5651
5688
|
*/
|
|
@@ -5937,6 +5974,10 @@ export interface InOutputUCBRuleEntry {
|
|
|
5937
5974
|
* 语言环境
|
|
5938
5975
|
*/
|
|
5939
5976
|
Lang?: string;
|
|
5977
|
+
/**
|
|
5978
|
+
* 参数匹配
|
|
5979
|
+
*/
|
|
5980
|
+
ParamCompareList?: Array<ParamCompareList>;
|
|
5940
5981
|
}
|
|
5941
5982
|
/**
|
|
5942
5983
|
* DestroyPostCLSFlow返回参数结构体
|
|
@@ -8088,6 +8129,10 @@ export interface DescribeBotSceneListRequest {
|
|
|
8088
8129
|
* 是否仅显示生效场景
|
|
8089
8130
|
*/
|
|
8090
8131
|
IsValid?: boolean;
|
|
8132
|
+
/**
|
|
8133
|
+
* 要查询的场景id
|
|
8134
|
+
*/
|
|
8135
|
+
SceneId?: string;
|
|
8091
8136
|
}
|
|
8092
8137
|
/**
|
|
8093
8138
|
* 计费下单接口出入参Goods
|
|
@@ -8390,7 +8435,7 @@ export interface UpsertCCRuleRequest {
|
|
|
8390
8435
|
*/
|
|
8391
8436
|
ValidTime: number;
|
|
8392
8437
|
/**
|
|
8393
|
-
* CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
|
8438
|
+
* CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
|
8394
8439
|
*/
|
|
8395
8440
|
OptionsArr?: string;
|
|
8396
8441
|
/**
|
|
@@ -8421,6 +8466,10 @@ export interface UpsertCCRuleRequest {
|
|
|
8421
8466
|
* url长度
|
|
8422
8467
|
*/
|
|
8423
8468
|
Length?: number;
|
|
8469
|
+
/**
|
|
8470
|
+
* 限频方式
|
|
8471
|
+
*/
|
|
8472
|
+
LimitMethod?: string;
|
|
8424
8473
|
}
|
|
8425
8474
|
/**
|
|
8426
8475
|
* ModifyAreaBanRule返回参数结构体
|
|
@@ -9147,6 +9196,10 @@ export interface CCRuleItems {
|
|
|
9147
9196
|
* 创建时间
|
|
9148
9197
|
*/
|
|
9149
9198
|
CreateTime?: number;
|
|
9199
|
+
/**
|
|
9200
|
+
* 限频方式
|
|
9201
|
+
*/
|
|
9202
|
+
LimitMethod?: string;
|
|
9150
9203
|
}
|
|
9151
9204
|
/**
|
|
9152
9205
|
* ModifyDomainIpv6Status请求参数结构体
|
|
@@ -10183,6 +10236,10 @@ export interface InOutputBotUCBRule {
|
|
|
10183
10236
|
* 当Action=intercept时,此字段必填
|
|
10184
10237
|
*/
|
|
10185
10238
|
ActionList?: Array<UCBActionProportion>;
|
|
10239
|
+
/**
|
|
10240
|
+
* 惩罚时间
|
|
10241
|
+
*/
|
|
10242
|
+
DelayTime?: number;
|
|
10186
10243
|
}
|
|
10187
10244
|
/**
|
|
10188
10245
|
* 攻击日志详情
|
|
@@ -10916,7 +10973,6 @@ export interface DescribeBotSceneOverviewResponse {
|
|
|
10916
10973
|
ValidSceneCount?: number;
|
|
10917
10974
|
/**
|
|
10918
10975
|
* 当前开启的、匹配范围为全局、优先级最高的场景
|
|
10919
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
10920
10976
|
*/
|
|
10921
10977
|
CurrentGlobalScene?: GlobalSceneInfo;
|
|
10922
10978
|
/**
|
|
@@ -11461,6 +11517,14 @@ export interface DescribeObjectsRequest {
|
|
|
11461
11517
|
* 支持的过滤器: ObjectId: clb实例ID VIP: clb实例的公网IP InstanceId: waf实例ID Domain: 精准域名 Status: waf防护开关状态: 0关闭,1开启 ClsStatus: waf日志开关: 0关闭,1开启
|
|
11462
11518
|
*/
|
|
11463
11519
|
Filters?: Array<FiltersItemNew>;
|
|
11520
|
+
/**
|
|
11521
|
+
* 排序方式,支持asc或者desc
|
|
11522
|
+
*/
|
|
11523
|
+
Order?: string;
|
|
11524
|
+
/**
|
|
11525
|
+
* 根据哪个字段排序
|
|
11526
|
+
*/
|
|
11527
|
+
By?: string;
|
|
11464
11528
|
}
|
|
11465
11529
|
/**
|
|
11466
11530
|
* ModifyHostStatus请求参数结构体
|