tencentcloud-sdk-nodejs-waf 4.0.695 → 4.0.697

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.
@@ -817,20 +817,18 @@ export interface DescribePeakPointsRequest {
817
817
  */
818
818
  InstanceID?: string
819
819
  /**
820
- * 十三个值可选:
820
+ * 十一个值可选:
821
821
  access-峰值qps趋势图
822
822
  botAccess- bot峰值qps趋势图
823
823
  down-下行峰值带宽趋势图
824
824
  up-上行峰值带宽趋势图
825
825
  attack-Web攻击总数趋势图
826
826
  cc-CC攻击总数趋势图
827
- StatusServerError-WAF返回给客户端状态码次数趋势图
828
- StatusClientError-WAF返回给客户端状态码次数趋势图
829
- StatusRedirect-WAF返回给客户端状态码次数趋势图
830
- StatusOk-WAF返回给客户端状态码次数趋势图
831
- UpstreamServerError-源站返回给WAF状态码次数趋势图
832
- UpstreamClientError-源站返回给WAF状态码次数趋势图
833
- UpstreamRedirect-源站返回给WAF状态码次数趋势图
827
+ bw-黑IP攻击总数趋势图
828
+ tamper-防篡改攻击总数趋势图
829
+ leak-防泄露攻击总数趋势图
830
+ acl-访问控制攻击总数趋势图
831
+ http_status-状态码各次数趋势图
834
832
  */
835
833
  MetricName?: string
836
834
  }
@@ -1089,6 +1087,10 @@ export interface DeleteSessionRequest {
1089
1087
  * clb-waf 或者 sprta-waf
1090
1088
  */
1091
1089
  Edition?: string
1090
+ /**
1091
+ * 要删除的SessionID
1092
+ */
1093
+ SessionID?: number
1092
1094
  }
1093
1095
 
1094
1096
  /**
@@ -1099,6 +1101,10 @@ export interface DescribeWafAutoDenyRulesRequest {
1099
1101
  * 域名
1100
1102
  */
1101
1103
  Domain: string
1104
+ /**
1105
+ * 实例Id
1106
+ */
1107
+ InstanceId?: string
1102
1108
  }
1103
1109
 
1104
1110
  /**
@@ -1113,6 +1119,10 @@ export interface UpsertIpAccessControlRequest {
1113
1119
  * ip 参数列表,json数组由ip,source,note,action,valid_ts组成。ip对应配置的ip地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
1114
1120
  */
1115
1121
  Items: Array<string>
1122
+ /**
1123
+ * 实例Id
1124
+ */
1125
+ InstanceId?: string
1116
1126
  /**
1117
1127
  * WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
1118
1128
  */
@@ -1156,6 +1166,10 @@ export interface AddAntiFakeUrlResponse {
1156
1166
  * 结果
1157
1167
  */
1158
1168
  Result?: string
1169
+ /**
1170
+ * 规则ID
1171
+ */
1172
+ Id?: string
1159
1173
  /**
1160
1174
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1161
1175
  */
@@ -1326,6 +1340,62 @@ export interface SessionItem {
1326
1340
  TsVersion: string
1327
1341
  }
1328
1342
 
1343
+ /**
1344
+ * 重保防护资源信息
1345
+ */
1346
+ export interface MajorEventsPkg {
1347
+ /**
1348
+ * 资源id
1349
+ 注意:此字段可能返回 null,表示取不到有效值。
1350
+ */
1351
+ ResourceIds?: string
1352
+ /**
1353
+ * 状态
1354
+ 注意:此字段可能返回 null,表示取不到有效值。
1355
+ */
1356
+ Status?: number
1357
+ /**
1358
+ * 地域
1359
+ 注意:此字段可能返回 null,表示取不到有效值。
1360
+ */
1361
+ Region?: number
1362
+ /**
1363
+ * 开始时间
1364
+ 注意:此字段可能返回 null,表示取不到有效值。
1365
+ */
1366
+ BeginTime?: string
1367
+ /**
1368
+ * 结束时间
1369
+ 注意:此字段可能返回 null,表示取不到有效值。
1370
+ */
1371
+ EndTime?: string
1372
+ /**
1373
+ * 申请数量
1374
+ 注意:此字段可能返回 null,表示取不到有效值。
1375
+ */
1376
+ InquireNum?: number
1377
+ /**
1378
+ * 使用数量
1379
+ 注意:此字段可能返回 null,表示取不到有效值。
1380
+ */
1381
+ UsedNum?: number
1382
+ /**
1383
+ * 续费标志
1384
+ 注意:此字段可能返回 null,表示取不到有效值。
1385
+ */
1386
+ RenewFlag?: number
1387
+ /**
1388
+ * 计费项
1389
+ 注意:此字段可能返回 null,表示取不到有效值。
1390
+ */
1391
+ BillingItem?: string
1392
+ /**
1393
+ * 护网包状态
1394
+ 注意:此字段可能返回 null,表示取不到有效值。
1395
+ */
1396
+ HWState?: number
1397
+ }
1398
+
1329
1399
  /**
1330
1400
  * ModifySpartaProtection返回参数结构体
1331
1401
  */
@@ -1366,7 +1436,11 @@ export interface UpsertCCRuleResponse {
1366
1436
  * 一般为null
1367
1437
  注意:此字段可能返回 null,表示取不到有效值。
1368
1438
  */
1369
- Data: string
1439
+ Data?: string
1440
+ /**
1441
+ * 操作的RuleId
1442
+ */
1443
+ RuleId?: number
1370
1444
  /**
1371
1445
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1372
1446
  */
@@ -1553,6 +1627,10 @@ export interface SearchItem {
1553
1627
  * AddAntiInfoLeakRules返回参数结构体
1554
1628
  */
1555
1629
  export interface AddAntiInfoLeakRulesResponse {
1630
+ /**
1631
+ * 规则ID
1632
+ */
1633
+ RuleId?: number
1556
1634
  /**
1557
1635
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1558
1636
  */
@@ -2004,31 +2082,41 @@ export interface CreateHostResponse {
2004
2082
  * ip黑白名单
2005
2083
  */
2006
2084
  export interface IpAccessControlItem {
2085
+ /**
2086
+ * mongo表自增Id
2087
+ 注意:此字段可能返回 null,表示取不到有效值。
2088
+ */
2089
+ Id?: string
2007
2090
  /**
2008
2091
  * 动作
2009
2092
  */
2010
- ActionType: number
2093
+ ActionType?: number
2011
2094
  /**
2012
2095
  * ip
2013
2096
  */
2014
- Ip: string
2097
+ Ip?: string
2015
2098
  /**
2016
2099
  * 备注
2017
2100
  */
2018
- Note: string
2101
+ Note?: string
2019
2102
  /**
2020
2103
  * 来源
2021
2104
  */
2022
- Source: string
2105
+ Source?: string
2023
2106
  /**
2024
2107
  * 更新时间戳
2025
2108
  注意:此字段可能返回 null,表示取不到有效值。
2026
2109
  */
2027
- TsVersion: number
2110
+ TsVersion?: number
2028
2111
  /**
2029
2112
  * 有效截止时间戳
2030
2113
  */
2031
- ValidTs: number
2114
+ ValidTs?: number
2115
+ /**
2116
+ * 生效状态
2117
+ 注意:此字段可能返回 null,表示取不到有效值。
2118
+ */
2119
+ ValidStatus?: number
2032
2120
  }
2033
2121
 
2034
2122
  /**
@@ -2310,11 +2398,11 @@ export interface AddAntiInfoLeakRulesRequest {
2310
2398
  */
2311
2399
  Domain: string
2312
2400
  /**
2313
- * 名称
2401
+ * 规则名称
2314
2402
  */
2315
2403
  Name: string
2316
2404
  /**
2317
- * 动作
2405
+ * 动作,0(告警)、1(替换)、2(仅显示前四位)、3(仅显示后四位)、4(阻断)
2318
2406
  */
2319
2407
  ActionType: number
2320
2408
  /**
@@ -2762,66 +2850,86 @@ export interface PeakPointsItem {
2762
2850
  /**
2763
2851
  * 秒级别时间戳
2764
2852
  */
2765
- Time: number
2853
+ Time?: number
2766
2854
  /**
2767
2855
  * QPS
2768
2856
  */
2769
- Access: number
2857
+ Access?: number
2770
2858
  /**
2771
2859
  * 上行带宽峰值,单位B
2772
2860
  */
2773
- Up: number
2861
+ Up?: number
2774
2862
  /**
2775
2863
  * 下行带宽峰值,单位B
2776
2864
  */
2777
- Down: number
2865
+ Down?: number
2778
2866
  /**
2779
2867
  * Web攻击次数
2780
2868
  */
2781
- Attack: number
2869
+ Attack?: number
2782
2870
  /**
2783
2871
  * CC攻击次数
2784
2872
  */
2785
- Cc: number
2873
+ Cc?: number
2786
2874
  /**
2787
2875
  * Bot qps
2788
2876
  */
2789
- BotAccess: number
2877
+ BotAccess?: number
2878
+ /**
2879
+ * WAF返回给客户端状态码5xx次数
2880
+ 注意:此字段可能返回 null,表示取不到有效值。
2881
+ */
2882
+ StatusServerError?: number
2790
2883
  /**
2791
- * WAF返回给客户端状态码次数
2884
+ * WAF返回给客户端状态码4xx次数
2792
2885
  注意:此字段可能返回 null,表示取不到有效值。
2793
2886
  */
2794
- StatusServerError: number
2887
+ StatusClientError?: number
2795
2888
  /**
2796
- * WAF返回给客户端状态码次数
2889
+ * WAF返回给客户端状态码302次数
2797
2890
  注意:此字段可能返回 null,表示取不到有效值。
2798
2891
  */
2799
- StatusClientError: number
2892
+ StatusRedirect?: number
2800
2893
  /**
2801
- * WAF返回给客户端状态码次数
2894
+ * WAF返回给客户端状态码202次数
2802
2895
  注意:此字段可能返回 null,表示取不到有效值。
2803
2896
  */
2804
- StatusRedirect: number
2897
+ StatusOk?: number
2805
2898
  /**
2806
- * WAF返回给客户端状态码次数
2899
+ * 源站返回给WAF状态码5xx次数
2807
2900
  注意:此字段可能返回 null,表示取不到有效值。
2808
2901
  */
2809
- StatusOk: number
2902
+ UpstreamServerError?: number
2810
2903
  /**
2811
- * 源站返回给WAF状态码次数
2904
+ * 源站返回给WAF状态码4xx次数
2812
2905
  注意:此字段可能返回 null,表示取不到有效值。
2813
2906
  */
2814
- UpstreamServerError: number
2907
+ UpstreamClientError?: number
2815
2908
  /**
2816
- * 源站返回给WAF状态码次数
2909
+ * 源站返回给WAF状态码302次数
2817
2910
  注意:此字段可能返回 null,表示取不到有效值。
2818
2911
  */
2819
- UpstreamClientError: number
2912
+ UpstreamRedirect?: number
2820
2913
  /**
2821
- * 源站返回给WAF状态码次数
2914
+ * 黑名单次数
2822
2915
  注意:此字段可能返回 null,表示取不到有效值。
2823
2916
  */
2824
- UpstreamRedirect: number
2917
+ BlackIP?: number
2918
+ /**
2919
+ * 防篡改次数
2920
+ 注意:此字段可能返回 null,表示取不到有效值。
2921
+ */
2922
+ Tamper?: number
2923
+ /**
2924
+ * 信息防泄露次数
2925
+ 注意:此字段可能返回 null,表示取不到有效值。
2926
+ */
2927
+ Leak?: number
2928
+ /**
2929
+ * 访问控制
2930
+ 注意:此字段可能返回 null,表示取不到有效值。
2931
+ */
2932
+ ACL?: number
2825
2933
  }
2826
2934
 
2827
2935
  /**
@@ -3036,6 +3144,14 @@ export interface DescribeAccessFastAnalysisRequest {
3036
3144
  * 需要分析统计的字段名
3037
3145
  */
3038
3146
  FieldName: string
3147
+ /**
3148
+ * 排序字段,升序asc,降序desc,默认降序desc
3149
+ */
3150
+ Sort?: string
3151
+ /**
3152
+ * 返回的top数,默认返回top5
3153
+ */
3154
+ Count?: number
3039
3155
  }
3040
3156
 
3041
3157
  /**
@@ -3050,6 +3166,10 @@ export interface DeleteIpAccessControlRequest {
3050
3166
  * 删除的ip数组
3051
3167
  */
3052
3168
  Items: Array<string>
3169
+ /**
3170
+ * 若IsId字段为True,则Items列表元素需为Id,否则为IP
3171
+ */
3172
+ IsId?: boolean
3053
3173
  /**
3054
3174
  * 是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单
3055
3175
  */
@@ -3174,6 +3294,21 @@ export interface DescribeAttackOverviewResponse {
3174
3294
  注意:此字段可能返回 null,表示取不到有效值。
3175
3295
  */
3176
3296
  ApiRiskEventCount?: number
3297
+ /**
3298
+ * 黑名单总数
3299
+ 注意:此字段可能返回 null,表示取不到有效值。
3300
+ */
3301
+ IPBlackCount?: number
3302
+ /**
3303
+ * 防篡改总数
3304
+ 注意:此字段可能返回 null,表示取不到有效值。
3305
+ */
3306
+ TamperCount?: number
3307
+ /**
3308
+ * 信息泄露总数
3309
+ 注意:此字段可能返回 null,表示取不到有效值。
3310
+ */
3311
+ LeakCount?: number
3177
3312
  /**
3178
3313
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3179
3314
  */
@@ -3611,6 +3746,52 @@ export interface AddSpartaProtectionResponse {
3611
3746
  */
3612
3747
  export type DescribeUserDomainInfoRequest = null
3613
3748
 
3749
+ /**
3750
+ * 混合云节点资源信息
3751
+ */
3752
+ export interface HybridPkg {
3753
+ /**
3754
+ * 资源id
3755
+ 注意:此字段可能返回 null,表示取不到有效值。
3756
+ */
3757
+ ResourceIds?: string
3758
+ /**
3759
+ * 状态
3760
+ 注意:此字段可能返回 null,表示取不到有效值。
3761
+ */
3762
+ Status?: number
3763
+ /**
3764
+ * 地域
3765
+ 注意:此字段可能返回 null,表示取不到有效值。
3766
+ */
3767
+ Region?: number
3768
+ /**
3769
+ * 开始时间
3770
+ 注意:此字段可能返回 null,表示取不到有效值。
3771
+ */
3772
+ BeginTime?: string
3773
+ /**
3774
+ * 结束时间
3775
+ 注意:此字段可能返回 null,表示取不到有效值。
3776
+ */
3777
+ EndTime?: string
3778
+ /**
3779
+ * 申请数量
3780
+ 注意:此字段可能返回 null,表示取不到有效值。
3781
+ */
3782
+ InquireNum?: number
3783
+ /**
3784
+ * 使用数量
3785
+ 注意:此字段可能返回 null,表示取不到有效值。
3786
+ */
3787
+ UsedNum?: number
3788
+ /**
3789
+ * 续费标志
3790
+ 注意:此字段可能返回 null,表示取不到有效值。
3791
+ */
3792
+ RenewFlag?: number
3793
+ }
3794
+
3614
3795
  /**
3615
3796
  * 数据封装
3616
3797
  */
@@ -3850,7 +4031,7 @@ export interface DescribePeakPointsResponse {
3850
4031
  /**
3851
4032
  * 数据点
3852
4033
  */
3853
- Points: Array<PeakPointsItem>
4034
+ Points?: Array<PeakPointsItem>
3854
4035
  /**
3855
4036
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3856
4037
  */
@@ -4483,34 +4664,39 @@ export interface AccessLogInfo {
4483
4664
  * 多域名黑白名单列表Ip
4484
4665
  */
4485
4666
  export interface BatchIpAccessControlItem {
4667
+ /**
4668
+ * mongo表自增Id
4669
+ 注意:此字段可能返回 null,表示取不到有效值。
4670
+ */
4671
+ Id?: string
4486
4672
  /**
4487
4673
  * 黑名单42或白名单40
4488
4674
  */
4489
- ActionType: number
4675
+ ActionType?: number
4490
4676
  /**
4491
4677
  * 黑白名单的IP
4492
4678
  */
4493
- Ip: string
4679
+ Ip?: string
4494
4680
  /**
4495
4681
  * 备注
4496
4682
  */
4497
- Note: string
4683
+ Note?: string
4498
4684
  /**
4499
4685
  * 添加路径
4500
4686
  */
4501
- Source: string
4687
+ Source?: string
4502
4688
  /**
4503
4689
  * 修改时间
4504
4690
  */
4505
- TsVersion: number
4691
+ TsVersion?: number
4506
4692
  /**
4507
4693
  * 超时时间
4508
4694
  */
4509
- ValidTs: number
4695
+ ValidTs?: number
4510
4696
  /**
4511
4697
  * 域名列表
4512
4698
  */
4513
- Hosts: Array<string>
4699
+ Hosts?: Array<string>
4514
4700
  }
4515
4701
 
4516
4702
  /**
@@ -4652,6 +4838,16 @@ export interface InstanceInfo {
4652
4838
  注意:此字段可能返回 null,表示取不到有效值。
4653
4839
  */
4654
4840
  IsAPISecurityTrial?: number
4841
+ /**
4842
+ * 重保包
4843
+ 注意:此字段可能返回 null,表示取不到有效值。
4844
+ */
4845
+ MajorEventsPkg?: MajorEventsPkg
4846
+ /**
4847
+ * 混合云子节点包
4848
+ 注意:此字段可能返回 null,表示取不到有效值。
4849
+ */
4850
+ HybridPkg?: HybridPkg
4655
4851
  }
4656
4852
 
4657
4853
  /**
@@ -4809,19 +5005,23 @@ export interface DescribeWafAutoDenyRulesResponse {
4809
5005
  /**
4810
5006
  * 攻击次数阈值
4811
5007
  */
4812
- AttackThreshold: number
5008
+ AttackThreshold?: number
4813
5009
  /**
4814
5010
  * 攻击时间阈值
4815
5011
  */
4816
- TimeThreshold: number
5012
+ TimeThreshold?: number
4817
5013
  /**
4818
5014
  * 自动封禁时间
4819
5015
  */
4820
- DenyTimeThreshold: number
5016
+ DenyTimeThreshold?: number
4821
5017
  /**
4822
5018
  * 自动封禁状态
4823
5019
  */
4824
- DefenseStatus: number
5020
+ DefenseStatus?: number
5021
+ /**
5022
+ * 重保护网域名状态
5023
+ */
5024
+ HWState?: number
4825
5025
  /**
4826
5026
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4827
5027
  */
@@ -4890,6 +5090,10 @@ export interface DeleteCCRuleRequest {
4890
5090
  * clb-waf或者sparta-waf
4891
5091
  */
4892
5092
  Edition?: string
5093
+ /**
5094
+ * 规则Id
5095
+ */
5096
+ RuleId?: number
4893
5097
  }
4894
5098
 
4895
5099
  /**
@@ -5282,6 +5486,14 @@ export interface UpsertCCRuleRequest {
5282
5486
  * 添加规则的来源事件id
5283
5487
  */
5284
5488
  EventId?: string
5489
+ /**
5490
+ * 规则需要启用的SessionID
5491
+ */
5492
+ SessionApplied?: Array<number | bigint>
5493
+ /**
5494
+ * 规则ID,新增时填0
5495
+ */
5496
+ RuleId?: number
5285
5497
  }
5286
5498
 
5287
5499
  /**
@@ -5671,6 +5883,10 @@ export interface DescribeRuleLimitRequest {
5671
5883
  * 域名
5672
5884
  */
5673
5885
  Domain: string
5886
+ /**
5887
+ * 实例Id
5888
+ */
5889
+ InstanceId?: string
5674
5890
  }
5675
5891
 
5676
5892
  /**
@@ -5965,6 +6181,10 @@ export interface DescribeIpAccessControlRequest {
5965
6181
  * ip
5966
6182
  */
5967
6183
  Ip?: string
6184
+ /**
6185
+ * 生效状态
6186
+ */
6187
+ ValidStatus?: number
5968
6188
  }
5969
6189
 
5970
6190
  /**
@@ -6251,7 +6471,7 @@ export interface DeleteSessionResponse {
6251
6471
  * 结果
6252
6472
  注意:此字段可能返回 null,表示取不到有效值。
6253
6473
  */
6254
- Data: string
6474
+ Data?: string
6255
6475
  /**
6256
6476
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6257
6477
  */
@@ -6294,6 +6514,14 @@ export interface UpsertSessionRequest {
6294
6514
  * 版本
6295
6515
  */
6296
6516
  Edition?: string
6517
+ /**
6518
+ * Session名
6519
+ */
6520
+ SessionName?: string
6521
+ /**
6522
+ * Session对应ID
6523
+ */
6524
+ SessionID?: number
6297
6525
  }
6298
6526
 
6299
6527
  /**
@@ -6353,7 +6581,7 @@ export interface DescribeRuleLimitResponse {
6353
6581
  /**
6354
6582
  * waf模块的规格
6355
6583
  */
6356
- Res: WafRuleLimit
6584
+ Res?: WafRuleLimit
6357
6585
  /**
6358
6586
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6359
6587
  */
@@ -6552,6 +6780,10 @@ export interface DeleteCCRuleResponse {
6552
6780
  注意:此字段可能返回 null,表示取不到有效值。
6553
6781
  */
6554
6782
  Data?: string
6783
+ /**
6784
+ * 操作的规则Id
6785
+ */
6786
+ RuleId?: number
6555
6787
  /**
6556
6788
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6557
6789
  */
@@ -6749,6 +6981,16 @@ export interface BotPkg {
6749
6981
  注意:此字段可能返回 null,表示取不到有效值。
6750
6982
  */
6751
6983
  RenewFlag?: number
6984
+ /**
6985
+ * 购买页bot6折
6986
+ 注意:此字段可能返回 null,表示取不到有效值。
6987
+ */
6988
+ BotCPWaf?: number
6989
+ /**
6990
+ * 控制台买bot5折
6991
+ 注意:此字段可能返回 null,表示取不到有效值。
6992
+ */
6993
+ BotNPWaf?: number
6752
6994
  }
6753
6995
 
6754
6996
  /**