tencentcloud-sdk-nodejs-waf 4.0.843 → 4.0.849
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 +1 -1
- package/products.md +48 -48
- package/src/services/waf/v20180125/waf_client.ts +54 -5
- package/src/services/waf/v20180125/waf_models.ts +262 -60
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +17 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +24 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +253 -60
|
@@ -100,6 +100,48 @@ export interface AddAntiFakeUrlRequest {
|
|
|
100
100
|
*/
|
|
101
101
|
Uri: string;
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* ModifyIpAccessControl请求参数结构体
|
|
105
|
+
*/
|
|
106
|
+
export interface ModifyIpAccessControlRequest {
|
|
107
|
+
/**
|
|
108
|
+
* 具体域名如:test.qcloudwaf.com
|
|
109
|
+
全局域名为:global
|
|
110
|
+
*/
|
|
111
|
+
Domain: string;
|
|
112
|
+
/**
|
|
113
|
+
* ip参数列表
|
|
114
|
+
*/
|
|
115
|
+
IpList: Array<string>;
|
|
116
|
+
/**
|
|
117
|
+
* 42为黑名单,40为白名单
|
|
118
|
+
*/
|
|
119
|
+
ActionType: number;
|
|
120
|
+
/**
|
|
121
|
+
* valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
122
|
+
*/
|
|
123
|
+
ValidTS: number;
|
|
124
|
+
/**
|
|
125
|
+
* 规则ID
|
|
126
|
+
*/
|
|
127
|
+
RuleId: number;
|
|
128
|
+
/**
|
|
129
|
+
* 实例Id
|
|
130
|
+
*/
|
|
131
|
+
InstanceId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
|
134
|
+
*/
|
|
135
|
+
Edition?: string;
|
|
136
|
+
/**
|
|
137
|
+
* 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
138
|
+
*/
|
|
139
|
+
SourceType?: string;
|
|
140
|
+
/**
|
|
141
|
+
* 备注
|
|
142
|
+
*/
|
|
143
|
+
Note?: string;
|
|
144
|
+
}
|
|
103
145
|
/**
|
|
104
146
|
* DescribePeakValue返回参数结构体
|
|
105
147
|
*/
|
|
@@ -645,26 +687,17 @@ export interface PiechartItem {
|
|
|
645
687
|
Count: number;
|
|
646
688
|
}
|
|
647
689
|
/**
|
|
648
|
-
*
|
|
690
|
+
* DeleteHost返回参数结构体
|
|
649
691
|
*/
|
|
650
|
-
export interface
|
|
651
|
-
/**
|
|
652
|
-
* 域名
|
|
653
|
-
*/
|
|
654
|
-
Domain?: string;
|
|
655
|
-
/**
|
|
656
|
-
* 规则列表
|
|
657
|
-
*/
|
|
658
|
-
Ids?: Array<number | bigint>;
|
|
692
|
+
export interface DeleteHostResponse {
|
|
659
693
|
/**
|
|
660
|
-
*
|
|
694
|
+
* 域名删除结果。Code表示状态码,Message表示详细信息。
|
|
661
695
|
*/
|
|
662
|
-
|
|
696
|
+
Success?: ResponseCode;
|
|
663
697
|
/**
|
|
664
|
-
*
|
|
665
|
-
1表示业务自身原因观察,2表示系统规则误报上报,3表示核心业务灰度观察,4表示其他
|
|
698
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
666
699
|
*/
|
|
667
|
-
|
|
700
|
+
RequestId?: string;
|
|
668
701
|
}
|
|
669
702
|
/**
|
|
670
703
|
* ModifyApiAnalyzeStatus返回参数结构体
|
|
@@ -1286,6 +1319,19 @@ export interface DescribeCustomRuleListRequest {
|
|
|
1286
1319
|
*/
|
|
1287
1320
|
By?: string;
|
|
1288
1321
|
}
|
|
1322
|
+
/**
|
|
1323
|
+
* DeleteIpAccessControlV2返回参数结构体
|
|
1324
|
+
*/
|
|
1325
|
+
export interface DeleteIpAccessControlV2Response {
|
|
1326
|
+
/**
|
|
1327
|
+
* 在批量删除的时候表示删除失败的条数
|
|
1328
|
+
*/
|
|
1329
|
+
FailedCount?: number;
|
|
1330
|
+
/**
|
|
1331
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1332
|
+
*/
|
|
1333
|
+
RequestId?: string;
|
|
1334
|
+
}
|
|
1289
1335
|
/**
|
|
1290
1336
|
* PostAttackDownloadTask返回参数结构体
|
|
1291
1337
|
*/
|
|
@@ -2082,6 +2128,28 @@ export interface DescribeVipInfoRequest {
|
|
|
2082
2128
|
*/
|
|
2083
2129
|
InstanceIds: Array<string>;
|
|
2084
2130
|
}
|
|
2131
|
+
/**
|
|
2132
|
+
* ImportIpAccessControl请求参数结构体
|
|
2133
|
+
*/
|
|
2134
|
+
export interface ImportIpAccessControlRequest {
|
|
2135
|
+
/**
|
|
2136
|
+
* 导入的IP黑白名单列表
|
|
2137
|
+
*/
|
|
2138
|
+
Data: Array<IpAccessControlParam>;
|
|
2139
|
+
/**
|
|
2140
|
+
* 具体域名如:test.qcloudwaf.com
|
|
2141
|
+
全局域名为:global
|
|
2142
|
+
*/
|
|
2143
|
+
Domain: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
2146
|
+
*/
|
|
2147
|
+
SourceType: string;
|
|
2148
|
+
/**
|
|
2149
|
+
* 实例Id
|
|
2150
|
+
*/
|
|
2151
|
+
InstanceId?: string;
|
|
2152
|
+
}
|
|
2085
2153
|
/**
|
|
2086
2154
|
* DescribeFindDomainList返回参数结构体
|
|
2087
2155
|
*/
|
|
@@ -2869,24 +2937,33 @@ export interface ModifyAntiFakeUrlStatusRequest {
|
|
|
2869
2937
|
Ids: Array<number | bigint>;
|
|
2870
2938
|
}
|
|
2871
2939
|
/**
|
|
2872
|
-
*
|
|
2940
|
+
* DescribeCCRuleList请求参数结构体
|
|
2873
2941
|
*/
|
|
2874
|
-
export interface
|
|
2942
|
+
export interface DescribeCCRuleListRequest {
|
|
2875
2943
|
/**
|
|
2876
|
-
*
|
|
2877
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2944
|
+
* 需要查询的API所属的域名
|
|
2878
2945
|
*/
|
|
2879
|
-
|
|
2946
|
+
Domain: string;
|
|
2880
2947
|
/**
|
|
2881
|
-
*
|
|
2882
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2948
|
+
* 偏移
|
|
2883
2949
|
*/
|
|
2884
|
-
|
|
2950
|
+
Offset: number;
|
|
2885
2951
|
/**
|
|
2886
|
-
*
|
|
2887
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2952
|
+
* 容量
|
|
2888
2953
|
*/
|
|
2889
|
-
|
|
2954
|
+
Limit: number;
|
|
2955
|
+
/**
|
|
2956
|
+
* 目前支持根据ts_version排序
|
|
2957
|
+
*/
|
|
2958
|
+
By: string;
|
|
2959
|
+
/**
|
|
2960
|
+
* 过滤数组,name可以是如下的值: RuleID,ParamName,Url,Action,Method,Source,Status
|
|
2961
|
+
*/
|
|
2962
|
+
Filters?: Array<FiltersItemNew>;
|
|
2963
|
+
/**
|
|
2964
|
+
* asc或者desc
|
|
2965
|
+
*/
|
|
2966
|
+
Order?: string;
|
|
2890
2967
|
}
|
|
2891
2968
|
/**
|
|
2892
2969
|
* 响应体的返回码
|
|
@@ -4558,6 +4635,44 @@ export interface DeleteAttackDownloadRecordResponse {
|
|
|
4558
4635
|
*/
|
|
4559
4636
|
RequestId?: string;
|
|
4560
4637
|
}
|
|
4638
|
+
/**
|
|
4639
|
+
* CreateIpAccessControl请求参数结构体
|
|
4640
|
+
*/
|
|
4641
|
+
export interface CreateIpAccessControlRequest {
|
|
4642
|
+
/**
|
|
4643
|
+
* 具体域名如:test.qcloudwaf.com
|
|
4644
|
+
全局域名为:global
|
|
4645
|
+
*/
|
|
4646
|
+
Domain: string;
|
|
4647
|
+
/**
|
|
4648
|
+
* ip参数列表
|
|
4649
|
+
*/
|
|
4650
|
+
IpList: Array<string>;
|
|
4651
|
+
/**
|
|
4652
|
+
* 42为黑名单,40为白名单
|
|
4653
|
+
*/
|
|
4654
|
+
ActionType: number;
|
|
4655
|
+
/**
|
|
4656
|
+
* valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
4657
|
+
*/
|
|
4658
|
+
ValidTS: number;
|
|
4659
|
+
/**
|
|
4660
|
+
* 实例Id
|
|
4661
|
+
*/
|
|
4662
|
+
InstanceId?: string;
|
|
4663
|
+
/**
|
|
4664
|
+
* WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
|
4665
|
+
*/
|
|
4666
|
+
Edition?: string;
|
|
4667
|
+
/**
|
|
4668
|
+
* 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
|
4669
|
+
*/
|
|
4670
|
+
SourceType?: string;
|
|
4671
|
+
/**
|
|
4672
|
+
* 备注
|
|
4673
|
+
*/
|
|
4674
|
+
Note?: string;
|
|
4675
|
+
}
|
|
4561
4676
|
/**
|
|
4562
4677
|
* DescribeFlowTrend请求参数结构体
|
|
4563
4678
|
*/
|
|
@@ -4840,17 +4955,26 @@ export interface AccessLogItem {
|
|
|
4840
4955
|
Value: string;
|
|
4841
4956
|
}
|
|
4842
4957
|
/**
|
|
4843
|
-
*
|
|
4958
|
+
* SwitchDomainRules请求参数结构体
|
|
4844
4959
|
*/
|
|
4845
|
-
export interface
|
|
4960
|
+
export interface SwitchDomainRulesRequest {
|
|
4846
4961
|
/**
|
|
4847
|
-
*
|
|
4962
|
+
* 域名
|
|
4848
4963
|
*/
|
|
4849
|
-
|
|
4964
|
+
Domain?: string;
|
|
4850
4965
|
/**
|
|
4851
|
-
*
|
|
4966
|
+
* 规则列表
|
|
4852
4967
|
*/
|
|
4853
|
-
|
|
4968
|
+
Ids?: Array<number | bigint>;
|
|
4969
|
+
/**
|
|
4970
|
+
* 开关状态,0表示关闭,1表示开启,2表示只观察
|
|
4971
|
+
*/
|
|
4972
|
+
Status?: number;
|
|
4973
|
+
/**
|
|
4974
|
+
* 设置为观察模式原因,
|
|
4975
|
+
1表示业务自身原因观察,2表示系统规则误报上报,3表示核心业务灰度观察,4表示其他
|
|
4976
|
+
*/
|
|
4977
|
+
Reason?: number;
|
|
4854
4978
|
}
|
|
4855
4979
|
/**
|
|
4856
4980
|
* DeleteSession请求参数结构体
|
|
@@ -4937,6 +5061,20 @@ export interface DescribeFlowTrendResponse {
|
|
|
4937
5061
|
*/
|
|
4938
5062
|
RequestId?: string;
|
|
4939
5063
|
}
|
|
5064
|
+
/**
|
|
5065
|
+
* CreateIpAccessControl返回参数结构体
|
|
5066
|
+
*/
|
|
5067
|
+
export interface CreateIpAccessControlResponse {
|
|
5068
|
+
/**
|
|
5069
|
+
* 新增的规则对应的ID
|
|
5070
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5071
|
+
*/
|
|
5072
|
+
RuleId?: number;
|
|
5073
|
+
/**
|
|
5074
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5075
|
+
*/
|
|
5076
|
+
RequestId?: string;
|
|
5077
|
+
}
|
|
4940
5078
|
/**
|
|
4941
5079
|
* UpsertIpAccessControl请求参数结构体
|
|
4942
5080
|
*/
|
|
@@ -5113,6 +5251,27 @@ export interface DescribeUserLevelResponse {
|
|
|
5113
5251
|
*/
|
|
5114
5252
|
RequestId?: string;
|
|
5115
5253
|
}
|
|
5254
|
+
/**
|
|
5255
|
+
* IP黑白名单参数结构体,主要用于IP黑白名单的导入。
|
|
5256
|
+
*/
|
|
5257
|
+
export interface IpAccessControlParam {
|
|
5258
|
+
/**
|
|
5259
|
+
* IP列表
|
|
5260
|
+
*/
|
|
5261
|
+
IpList: Array<string>;
|
|
5262
|
+
/**
|
|
5263
|
+
* valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
|
5264
|
+
*/
|
|
5265
|
+
ValidTs: number;
|
|
5266
|
+
/**
|
|
5267
|
+
* 42为黑名单,40为白名单
|
|
5268
|
+
*/
|
|
5269
|
+
ActionType: number;
|
|
5270
|
+
/**
|
|
5271
|
+
* 备注
|
|
5272
|
+
*/
|
|
5273
|
+
Note?: string;
|
|
5274
|
+
}
|
|
5116
5275
|
/**
|
|
5117
5276
|
* DescribeCustomRuleList返回参数结构体
|
|
5118
5277
|
*/
|
|
@@ -6040,6 +6199,31 @@ export interface ModifyAreaBanStatusResponse {
|
|
|
6040
6199
|
*/
|
|
6041
6200
|
RequestId?: string;
|
|
6042
6201
|
}
|
|
6202
|
+
/**
|
|
6203
|
+
* DeleteIpAccessControlV2请求参数结构体
|
|
6204
|
+
*/
|
|
6205
|
+
export interface DeleteIpAccessControlV2Request {
|
|
6206
|
+
/**
|
|
6207
|
+
* 域名
|
|
6208
|
+
*/
|
|
6209
|
+
Domain: string;
|
|
6210
|
+
/**
|
|
6211
|
+
* 规则ID列表,支持批量删除
|
|
6212
|
+
*/
|
|
6213
|
+
RuleIds: Array<number | bigint>;
|
|
6214
|
+
/**
|
|
6215
|
+
* 是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单
|
|
6216
|
+
*/
|
|
6217
|
+
DeleteAll?: boolean;
|
|
6218
|
+
/**
|
|
6219
|
+
* batch表示为批量防护的IP黑白名单
|
|
6220
|
+
*/
|
|
6221
|
+
SourceType?: string;
|
|
6222
|
+
/**
|
|
6223
|
+
* IP黑白名单类型,40为IP白名单,42为IP黑名单
|
|
6224
|
+
*/
|
|
6225
|
+
ActionType?: number;
|
|
6226
|
+
}
|
|
6043
6227
|
/**
|
|
6044
6228
|
* ModifyWafAutoDenyRules请求参数结构体
|
|
6045
6229
|
*/
|
|
@@ -7412,17 +7596,13 @@ export interface AddAttackWhiteRuleResponse {
|
|
|
7412
7596
|
RequestId?: string;
|
|
7413
7597
|
}
|
|
7414
7598
|
/**
|
|
7415
|
-
*
|
|
7599
|
+
* ImportIpAccessControl返回参数结构体
|
|
7416
7600
|
*/
|
|
7417
|
-
export interface
|
|
7601
|
+
export interface ImportIpAccessControlResponse {
|
|
7418
7602
|
/**
|
|
7419
|
-
*
|
|
7420
|
-
*/
|
|
7421
|
-
Domains: Array<DomainURI>;
|
|
7422
|
-
/**
|
|
7423
|
-
* 修改域名的访问日志开关为Status
|
|
7603
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7424
7604
|
*/
|
|
7425
|
-
|
|
7605
|
+
RequestId?: string;
|
|
7426
7606
|
}
|
|
7427
7607
|
/**
|
|
7428
7608
|
* DescribeWafThreatenIntelligence返回参数结构体
|
|
@@ -8324,33 +8504,24 @@ export interface CreateDealsResponse {
|
|
|
8324
8504
|
RequestId?: string;
|
|
8325
8505
|
}
|
|
8326
8506
|
/**
|
|
8327
|
-
*
|
|
8507
|
+
* TLS 加密套件
|
|
8328
8508
|
*/
|
|
8329
|
-
export interface
|
|
8330
|
-
/**
|
|
8331
|
-
* 需要查询的API所属的域名
|
|
8332
|
-
*/
|
|
8333
|
-
Domain: string;
|
|
8334
|
-
/**
|
|
8335
|
-
* 偏移
|
|
8336
|
-
*/
|
|
8337
|
-
Offset: number;
|
|
8338
|
-
/**
|
|
8339
|
-
* 容量
|
|
8340
|
-
*/
|
|
8341
|
-
Limit: number;
|
|
8509
|
+
export interface TLSCiphers {
|
|
8342
8510
|
/**
|
|
8343
|
-
*
|
|
8511
|
+
* TLS版本ID
|
|
8512
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8344
8513
|
*/
|
|
8345
|
-
|
|
8514
|
+
VersionId: number;
|
|
8346
8515
|
/**
|
|
8347
|
-
*
|
|
8516
|
+
* 加密套件ID
|
|
8517
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8348
8518
|
*/
|
|
8349
|
-
|
|
8519
|
+
CipherId: number;
|
|
8350
8520
|
/**
|
|
8351
|
-
*
|
|
8521
|
+
* 加密套件
|
|
8522
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8352
8523
|
*/
|
|
8353
|
-
|
|
8524
|
+
CipherName: string;
|
|
8354
8525
|
}
|
|
8355
8526
|
/**
|
|
8356
8527
|
* DescribeDomainVerifyResult返回参数结构体
|
|
@@ -8676,6 +8847,15 @@ export interface DescribeVipInfoResponse {
|
|
|
8676
8847
|
*/
|
|
8677
8848
|
RequestId?: string;
|
|
8678
8849
|
}
|
|
8850
|
+
/**
|
|
8851
|
+
* ModifyIpAccessControl返回参数结构体
|
|
8852
|
+
*/
|
|
8853
|
+
export interface ModifyIpAccessControlResponse {
|
|
8854
|
+
/**
|
|
8855
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8856
|
+
*/
|
|
8857
|
+
RequestId?: string;
|
|
8858
|
+
}
|
|
8679
8859
|
/**
|
|
8680
8860
|
* DescribeRuleLimit请求参数结构体
|
|
8681
8861
|
*/
|
|
@@ -8698,6 +8878,19 @@ export interface ModifyDomainPostActionResponse {
|
|
|
8698
8878
|
*/
|
|
8699
8879
|
RequestId?: string;
|
|
8700
8880
|
}
|
|
8881
|
+
/**
|
|
8882
|
+
* ModifyDomainsCLSStatus请求参数结构体
|
|
8883
|
+
*/
|
|
8884
|
+
export interface ModifyDomainsCLSStatusRequest {
|
|
8885
|
+
/**
|
|
8886
|
+
* 需要修改的域名列表
|
|
8887
|
+
*/
|
|
8888
|
+
Domains: Array<DomainURI>;
|
|
8889
|
+
/**
|
|
8890
|
+
* 修改域名的访问日志开关为Status
|
|
8891
|
+
*/
|
|
8892
|
+
Status: number;
|
|
8893
|
+
}
|
|
8701
8894
|
/**
|
|
8702
8895
|
* DeleteAccessExport请求参数结构体
|
|
8703
8896
|
*/
|