tencentcloud-sdk-nodejs-waf 4.0.580 → 4.0.583

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.
@@ -236,25 +236,42 @@ export interface AccessLogItems {
236
236
  Data: Array<AccessLogItem>;
237
237
  }
238
238
  /**
239
- * DescribeWafAutoDenyRules返回参数结构体
239
+ * DescribePeakValue返回参数结构体
240
240
  */
241
- export interface DescribeWafAutoDenyRulesResponse {
241
+ export interface DescribePeakValueResponse {
242
242
  /**
243
- * 攻击次数阈值
243
+ * QPS峰值
244
244
  */
245
- AttackThreshold: number;
245
+ Access: number;
246
246
  /**
247
- * 攻击时间阈值
247
+ * 上行带宽峰值,单位B
248
248
  */
249
- TimeThreshold: number;
249
+ Up: number;
250
250
  /**
251
- * 自动封禁时间
251
+ * 下行带宽峰值,单位B
252
252
  */
253
- DenyTimeThreshold: number;
253
+ Down: number;
254
254
  /**
255
- * 自动封禁状态
255
+ * Web攻击总数
256
256
  */
257
- DefenseStatus: number;
257
+ Attack: number;
258
+ /**
259
+ * CC攻击总数
260
+ */
261
+ Cc: number;
262
+ /**
263
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
264
+ */
265
+ RequestId?: string;
266
+ }
267
+ /**
268
+ * AddDomainWhiteRule返回参数结构体
269
+ */
270
+ export interface AddDomainWhiteRuleResponse {
271
+ /**
272
+ * 规则id
273
+ */
274
+ Id?: number;
258
275
  /**
259
276
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
260
277
  */
@@ -395,6 +412,48 @@ export interface AccessRuleTagInfo {
395
412
  */
396
413
  KeyValues: Array<AccessKeyValueInfo>;
397
414
  }
415
+ /**
416
+ * DescribePeakPoints请求参数结构体
417
+ */
418
+ export interface DescribePeakPointsRequest {
419
+ /**
420
+ * 查询起始时间
421
+ */
422
+ FromTime: string;
423
+ /**
424
+ * 查询终止时间
425
+ */
426
+ ToTime: string;
427
+ /**
428
+ * 查询的域名,如果查询所有域名数据,该参数不填写
429
+ */
430
+ Domain?: string;
431
+ /**
432
+ * 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
433
+ */
434
+ Edition?: string;
435
+ /**
436
+ * WAF实例ID,不传则不过滤
437
+ */
438
+ InstanceID?: string;
439
+ /**
440
+ * 十三个值可选:
441
+ access-峰值qps趋势图
442
+ botAccess- bot峰值qps趋势图
443
+ down-下行峰值带宽趋势图
444
+ up-上行峰值带宽趋势图
445
+ attack-Web攻击总数趋势图
446
+ cc-CC攻击总数趋势图
447
+ StatusServerError-WAF返回给客户端状态码次数趋势图
448
+ StatusClientError-WAF返回给客户端状态码次数趋势图
449
+ StatusRedirect-WAF返回给客户端状态码次数趋势图
450
+ StatusOk-WAF返回给客户端状态码次数趋势图
451
+ UpstreamServerError-源站返回给WAF状态码次数趋势图
452
+ UpstreamClientError-源站返回给WAF状态码次数趋势图
453
+ UpstreamRedirect-源站返回给WAF状态码次数趋势图
454
+ */
455
+ MetricName?: string;
456
+ }
398
457
  /**
399
458
  * DescribeAccessIndex请求参数结构体
400
459
  */
@@ -1002,6 +1061,26 @@ export interface DomainsPartInfo {
1002
1061
  注意:此字段可能返回 null,表示取不到有效值。
1003
1062
  */
1004
1063
  ProxySendTimeout: number;
1064
+ /**
1065
+ * 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
1066
+ 注意:此字段可能返回 null,表示取不到有效值。
1067
+ */
1068
+ SniType: number;
1069
+ /**
1070
+ * SniType=3时,需要填此参数,表示自定义的host;
1071
+ 注意:此字段可能返回 null,表示取不到有效值。
1072
+ */
1073
+ SniHost: string;
1074
+ /**
1075
+ * 无
1076
+ 注意:此字段可能返回 null,表示取不到有效值。
1077
+ */
1078
+ Weights?: Array<string>;
1079
+ /**
1080
+ * IsCdn=3时,表示自定义header
1081
+ 注意:此字段可能返回 null,表示取不到有效值。
1082
+ */
1083
+ IpHeaders: Array<string>;
1005
1084
  }
1006
1085
  /**
1007
1086
  * DescribeAutoDenyIP请求参数结构体
@@ -1180,6 +1259,16 @@ export interface HostRecord {
1180
1259
  注意:此字段可能返回 null,表示取不到有效值。
1181
1260
  */
1182
1261
  AlbType?: string;
1262
+ /**
1263
+ * IsCdn=3时,需要填此参数,表示自定义header
1264
+ 注意:此字段可能返回 null,表示取不到有效值。
1265
+ */
1266
+ IpHeaders?: Array<string>;
1267
+ /**
1268
+ * 规则引擎类型, 1: menshen, 2:tiga
1269
+ 注意:此字段可能返回 null,表示取不到有效值。
1270
+ */
1271
+ EngineType?: number;
1183
1272
  }
1184
1273
  /**
1185
1274
  * CreateHost请求参数结构体
@@ -1288,7 +1377,7 @@ export interface AddSpartaProtectionRequest {
1288
1377
  */
1289
1378
  Ports?: Array<PortItem>;
1290
1379
  /**
1291
- * 版本:sparta-wafclb-wafcdn-waf
1380
+ * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF,cdn-waf表示CDN上的Web防护能力
1292
1381
  */
1293
1382
  Edition?: string;
1294
1383
  /**
@@ -1331,6 +1420,86 @@ export interface AddSpartaProtectionRequest {
1331
1420
  * 300s
1332
1421
  */
1333
1422
  ProxySendTimeout?: number;
1423
+ /**
1424
+ * 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
1425
+ */
1426
+ SniType?: number;
1427
+ /**
1428
+ * SniType=3时,需要填此参数,表示自定义的host;
1429
+ */
1430
+ SniHost?: string;
1431
+ /**
1432
+ * is_cdn=3时,需要填此参数,表示自定义header
1433
+ */
1434
+ IpHeaders?: Array<string>;
1435
+ }
1436
+ /**
1437
+ * PeakPoints数组项
1438
+ */
1439
+ export interface PeakPointsItem {
1440
+ /**
1441
+ * 秒级别时间戳
1442
+ */
1443
+ Time: number;
1444
+ /**
1445
+ * QPS
1446
+ */
1447
+ Access: number;
1448
+ /**
1449
+ * 上行带宽峰值,单位B
1450
+ */
1451
+ Up: number;
1452
+ /**
1453
+ * 下行带宽峰值,单位B
1454
+ */
1455
+ Down: number;
1456
+ /**
1457
+ * Web攻击次数
1458
+ */
1459
+ Attack: number;
1460
+ /**
1461
+ * CC攻击次数
1462
+ */
1463
+ Cc: number;
1464
+ /**
1465
+ * Bot qps
1466
+ */
1467
+ BotAccess: number;
1468
+ /**
1469
+ * WAF返回给客户端状态码次数
1470
+ 注意:此字段可能返回 null,表示取不到有效值。
1471
+ */
1472
+ StatusServerError: number;
1473
+ /**
1474
+ * WAF返回给客户端状态码次数
1475
+ 注意:此字段可能返回 null,表示取不到有效值。
1476
+ */
1477
+ StatusClientError: number;
1478
+ /**
1479
+ * WAF返回给客户端状态码次数
1480
+ 注意:此字段可能返回 null,表示取不到有效值。
1481
+ */
1482
+ StatusRedirect: number;
1483
+ /**
1484
+ * WAF返回给客户端状态码次数
1485
+ 注意:此字段可能返回 null,表示取不到有效值。
1486
+ */
1487
+ StatusOk: number;
1488
+ /**
1489
+ * 源站返回给WAF状态码次数
1490
+ 注意:此字段可能返回 null,表示取不到有效值。
1491
+ */
1492
+ UpstreamServerError: number;
1493
+ /**
1494
+ * 源站返回给WAF状态码次数
1495
+ 注意:此字段可能返回 null,表示取不到有效值。
1496
+ */
1497
+ UpstreamClientError: number;
1498
+ /**
1499
+ * 源站返回给WAF状态码次数
1500
+ 注意:此字段可能返回 null,表示取不到有效值。
1501
+ */
1502
+ UpstreamRedirect: number;
1334
1503
  }
1335
1504
  /**
1336
1505
  * PostAttackDownloadTask请求参数结构体
@@ -1740,19 +1909,6 @@ export interface DescribeDomainWhiteRulesRequest {
1740
1909
  */
1741
1910
  RuleId?: string;
1742
1911
  }
1743
- /**
1744
- * AddDomainWhiteRule返回参数结构体
1745
- */
1746
- export interface AddDomainWhiteRuleResponse {
1747
- /**
1748
- * 规则id
1749
- */
1750
- Id?: number;
1751
- /**
1752
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1753
- */
1754
- RequestId?: string;
1755
- }
1756
1912
  /**
1757
1913
  * ModifyCustomRuleStatus请求参数结构体
1758
1914
  */
@@ -1774,6 +1930,19 @@ export interface ModifyCustomRuleStatusRequest {
1774
1930
  */
1775
1931
  Edition?: string;
1776
1932
  }
1933
+ /**
1934
+ * DescribePeakPoints返回参数结构体
1935
+ */
1936
+ export interface DescribePeakPointsResponse {
1937
+ /**
1938
+ * 数据点
1939
+ */
1940
+ Points: Array<PeakPointsItem>;
1941
+ /**
1942
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1943
+ */
1944
+ RequestId?: string;
1945
+ }
1777
1946
  /**
1778
1947
  * DeleteDownloadRecord返回参数结构体
1779
1948
  */
@@ -1825,6 +1994,40 @@ export interface DescribeAttackOverviewRequest {
1825
1994
  */
1826
1995
  InstanceID?: string;
1827
1996
  }
1997
+ /**
1998
+ * DescribePeakValue请求参数结构体
1999
+ */
2000
+ export interface DescribePeakValueRequest {
2001
+ /**
2002
+ * 查询起始时间
2003
+ */
2004
+ FromTime: string;
2005
+ /**
2006
+ * 查询结束时间
2007
+ */
2008
+ ToTime: string;
2009
+ /**
2010
+ * 需要查询的域名,当前用户所有域名可以不传
2011
+ */
2012
+ Domain?: string;
2013
+ /**
2014
+ * 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
2015
+ */
2016
+ Edition?: string;
2017
+ /**
2018
+ * WAF实例ID,不传则不过滤
2019
+ */
2020
+ InstanceID?: string;
2021
+ /**
2022
+ * 五个值可选:
2023
+ access-峰值qps
2024
+ down-下行峰值带宽
2025
+ up-上行峰值带宽
2026
+ attack-Web攻击总数
2027
+ cc-CC攻击总数趋势图
2028
+ */
2029
+ MetricName?: string;
2030
+ }
1828
2031
  /**
1829
2032
  * bot的qps详情
1830
2033
  */
@@ -2143,9 +2346,30 @@ export interface InstanceInfo {
2143
2346
  MaxBandwidth?: number;
2144
2347
  }
2145
2348
  /**
2146
- * 防护域名端口配置信息
2349
+ * 服务端口配置
2147
2350
  */
2148
- export declare type PortInfo = null;
2351
+ export interface PortInfo {
2352
+ /**
2353
+ * Nginx的服务器id
2354
+ */
2355
+ NginxServerId: number;
2356
+ /**
2357
+ * 监听端口配置
2358
+ */
2359
+ Port: string;
2360
+ /**
2361
+ * 与端口对应的协议
2362
+ */
2363
+ Protocol: string;
2364
+ /**
2365
+ * 回源端口
2366
+ */
2367
+ UpstreamPort: string;
2368
+ /**
2369
+ * 回源协议
2370
+ */
2371
+ UpstreamProtocol: string;
2372
+ }
2149
2373
  /**
2150
2374
  * DescribeDomainDetailsSaas返回参数结构体
2151
2375
  */
@@ -2153,7 +2377,7 @@ export interface DescribeDomainDetailsSaasResponse {
2153
2377
  /**
2154
2378
  * 域名详情
2155
2379
  */
2156
- DomainsPartInfo: DomainsPartInfo;
2380
+ DomainsPartInfo?: DomainsPartInfo;
2157
2381
  /**
2158
2382
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2159
2383
  */
@@ -2219,6 +2443,31 @@ export interface AddCustomRuleRequest {
2219
2443
  */
2220
2444
  EventId?: string;
2221
2445
  }
2446
+ /**
2447
+ * DescribeWafAutoDenyRules返回参数结构体
2448
+ */
2449
+ export interface DescribeWafAutoDenyRulesResponse {
2450
+ /**
2451
+ * 攻击次数阈值
2452
+ */
2453
+ AttackThreshold: number;
2454
+ /**
2455
+ * 攻击时间阈值
2456
+ */
2457
+ TimeThreshold: number;
2458
+ /**
2459
+ * 自动封禁时间
2460
+ */
2461
+ DenyTimeThreshold: number;
2462
+ /**
2463
+ * 自动封禁状态
2464
+ */
2465
+ DefenseStatus: number;
2466
+ /**
2467
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2468
+ */
2469
+ RequestId?: string;
2470
+ }
2222
2471
  /**
2223
2472
  * 业务安全资源信息
2224
2473
  */