tencentcloud-sdk-nodejs-teo 4.0.355 → 4.0.358

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.
@@ -24,6 +24,71 @@ export interface HostCertSetting {
24
24
  */
25
25
  CertInfo: Array<ServerCertInfo>;
26
26
  }
27
+ /**
28
+ * ACL用户规则
29
+ */
30
+ export interface ACLUserRule {
31
+ /**
32
+ * 规则名
33
+ */
34
+ RuleName: string;
35
+ /**
36
+ * 动作
37
+ */
38
+ Action: string;
39
+ /**
40
+ * 状态
41
+ */
42
+ RuleStatus: string;
43
+ /**
44
+ * ACL规则
45
+ */
46
+ Conditions: Array<ACLCondition>;
47
+ /**
48
+ * 规则优先级
49
+ */
50
+ RulePriority: number;
51
+ /**
52
+ * 规则id
53
+ 注意:此字段可能返回 null,表示取不到有效值。
54
+ */
55
+ RuleID?: number;
56
+ /**
57
+ * 更新时间
58
+ 注意:此字段可能返回 null,表示取不到有效值。
59
+ */
60
+ UpdateTime?: string;
61
+ /**
62
+ * ip封禁的惩罚时间
63
+ 注意:此字段可能返回 null,表示取不到有效值。
64
+ */
65
+ PunishTime?: number;
66
+ /**
67
+ * ip封禁的惩罚时间单位
68
+ 注意:此字段可能返回 null,表示取不到有效值。
69
+ */
70
+ PunishTimeUnit?: string;
71
+ /**
72
+ * 自定义返回页面的名称
73
+ 注意:此字段可能返回 null,表示取不到有效值。
74
+ */
75
+ Name?: string;
76
+ /**
77
+ * 自定义返回页面的实例id
78
+ 注意:此字段可能返回 null,表示取不到有效值。
79
+ */
80
+ PageId?: number;
81
+ /**
82
+ * 重定向时候的地址,必须为本用户接入的站点子域名
83
+ 注意:此字段可能返回 null,表示取不到有效值。
84
+ */
85
+ RedirectUrl?: string;
86
+ /**
87
+ * 重定向时候的返回码
88
+ 注意:此字段可能返回 null,表示取不到有效值。
89
+ */
90
+ ResponseCode?: number;
91
+ }
27
92
  /**
28
93
  * ModifyDefaultCertificate请求参数结构体
29
94
  */
@@ -120,6 +185,23 @@ export interface DescribeZoneDetailsResponse {
120
185
  */
121
186
  RequestId?: string;
122
187
  }
188
+ /**
189
+ * DescribeOriginGroup返回参数结构体
190
+ */
191
+ export interface DescribeOriginGroupResponse {
192
+ /**
193
+ * 源站组信息
194
+ */
195
+ Data: Array<OriginGroup>;
196
+ /**
197
+ * 记录总数
198
+ */
199
+ TotalCount: number;
200
+ /**
201
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
202
+ */
203
+ RequestId?: string;
204
+ }
123
205
  /**
124
206
  * DeleteApplicationProxy返回参数结构体
125
207
  */
@@ -164,42 +246,117 @@ export interface Https {
164
246
  Hsts?: Hsts;
165
247
  }
166
248
  /**
167
- * ScanDnsRecords返回参数结构体
249
+ * 源站组查询过滤参数
168
250
  */
169
- export interface ScanDnsRecordsResponse {
251
+ export interface OriginFilter {
170
252
  /**
171
- * 扫描状态
172
- - doing 扫描中
173
- - done 扫描完成
174
- */
175
- Status: string;
253
+ * 要过滤的字段,支持:name
254
+ */
255
+ Name: string;
176
256
  /**
177
- * 扫描后添加的记录数
257
+ * 要过滤的值
178
258
  */
179
- RecordsAdded: number;
259
+ Value: string;
260
+ }
261
+ /**
262
+ * DescribeOriginGroupDetail请求参数结构体
263
+ */
264
+ export interface DescribeOriginGroupDetailRequest {
180
265
  /**
181
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
266
+ * 源站组ID
182
267
  */
183
- RequestId?: string;
268
+ OriginId: string;
269
+ /**
270
+ * 站点ID
271
+ */
272
+ ZoneId: string;
184
273
  }
185
274
  /**
186
- * 站点查询过滤条件
275
+ * DDoS防护分区
187
276
  */
188
- export interface ZoneFilter {
277
+ export interface ShieldArea {
189
278
  /**
190
- * 过滤字段名,支持的列表如下:
191
- - name: 站点名。
192
- - status: 站点状态
193
- */
194
- Name: string;
279
+ * 一级域名id
280
+ */
281
+ ZoneId: string;
195
282
  /**
196
- * 过滤字段值
283
+ * 策略id
197
284
  */
198
- Values: Array<string>;
285
+ PolicyId: number;
199
286
  /**
200
- * 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1
287
+ * 防护类型 domain/application
201
288
  */
202
- Fuzzy?: boolean;
289
+ Type: string;
290
+ /**
291
+ * 四层应用名
292
+ 注意:此字段可能返回 null,表示取不到有效值。
293
+ */
294
+ EntityName?: string;
295
+ /**
296
+ * 7层域名参数
297
+ 注意:此字段可能返回 null,表示取不到有效值。
298
+ */
299
+ Application?: Array<DDoSApplication>;
300
+ /**
301
+ * 四层tcp转发规则数
302
+ 注意:此字段可能返回 null,表示取不到有效值。
303
+ */
304
+ TcpNum?: number;
305
+ /**
306
+ * 四层udp转发规则数
307
+ 注意:此字段可能返回 null,表示取不到有效值。
308
+ */
309
+ UdpNum?: number;
310
+ /**
311
+ * 实例名称
312
+ 注意:此字段可能返回 null,表示取不到有效值。
313
+ */
314
+ Entity?: string;
315
+ /**
316
+ * 是否为共享资源客户,注意共享资源用户不可以切换代理模式,true-是;false-否
317
+ 注意:此字段可能返回 null,表示取不到有效值。
318
+ */
319
+ Share?: boolean;
320
+ }
321
+ /**
322
+ * Ddos防护配置
323
+ */
324
+ export interface DdosRule {
325
+ /**
326
+ * DDoS防护等级
327
+ 注意:此字段可能返回 null,表示取不到有效值。
328
+ */
329
+ DdosStatusInfo?: DDoSStatusInfo;
330
+ /**
331
+ * DDoS地域封禁
332
+ 注意:此字段可能返回 null,表示取不到有效值。
333
+ */
334
+ DdosGeoIp?: DDoSGeoIp;
335
+ /**
336
+ * DDoS黑白名单
337
+ 注意:此字段可能返回 null,表示取不到有效值。
338
+ */
339
+ DdosAllowBlock?: DdosAllowBlock;
340
+ /**
341
+ * DDoS 协议封禁+连接防护
342
+ 注意:此字段可能返回 null,表示取不到有效值。
343
+ */
344
+ DdosAntiPly?: DDoSAntiPly;
345
+ /**
346
+ * DDoS特征过滤
347
+ 注意:此字段可能返回 null,表示取不到有效值。
348
+ */
349
+ DdosPacketFilter?: DdosPacketFilter;
350
+ /**
351
+ * DDoS端口过滤
352
+ 注意:此字段可能返回 null,表示取不到有效值。
353
+ */
354
+ DdosAcl?: DdosAcls;
355
+ /**
356
+ * DDoS开关 on-开启;off-关闭
357
+ 注意:此字段可能返回 null,表示取不到有效值。
358
+ */
359
+ Switch?: string;
203
360
  }
204
361
  /**
205
362
  * ModifyLoadBalancingStatus返回参数结构体
@@ -244,6 +401,32 @@ export interface DeleteApplicationProxyRequest {
244
401
  */
245
402
  ProxyId: string;
246
403
  }
404
+ /**
405
+ * CreateCustomErrorPage返回参数结构体
406
+ */
407
+ export interface CreateCustomErrorPageResponse {
408
+ /**
409
+ * 自定义页面上传后的唯一id
410
+ */
411
+ PageId: number;
412
+ /**
413
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
414
+ */
415
+ RequestId?: string;
416
+ }
417
+ /**
418
+ * ReclaimZone返回参数结构体
419
+ */
420
+ export interface ReclaimZoneResponse {
421
+ /**
422
+ * 站点名称
423
+ */
424
+ Name: string;
425
+ /**
426
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
427
+ */
428
+ RequestId?: string;
429
+ }
247
430
  /**
248
431
  * DescribeZoneSetting请求参数结构体
249
432
  */
@@ -305,6 +488,56 @@ export interface ModifyDnsRecordRequest {
305
488
  */
306
489
  Mode?: string;
307
490
  }
491
+ /**
492
+ * DDoS配置端口过滤
493
+ */
494
+ export interface DDoSAcl {
495
+ /**
496
+ * 目的端口end
497
+ */
498
+ DportEnd?: number;
499
+ /**
500
+ * 目的端口start
501
+ */
502
+ DportStart?: number;
503
+ /**
504
+ * 源端口end
505
+ */
506
+ SportEnd?: number;
507
+ /**
508
+ * 源端口start
509
+ */
510
+ SportStart?: number;
511
+ /**
512
+ * 协议 'tcp', 'udp', 'all'
513
+ */
514
+ Protocol?: string;
515
+ /**
516
+ * 动作 drop-丢弃,;transmit-放行; forward-继续防护
517
+ */
518
+ Action?: string;
519
+ /**
520
+ * 是否为系统配置 0-人工配置;1-系统配置
521
+ */
522
+ Default?: number;
523
+ }
524
+ /**
525
+ * ModifySecurityPolicy请求参数结构体
526
+ */
527
+ export interface ModifySecurityPolicyRequest {
528
+ /**
529
+ * 一级域名
530
+ */
531
+ ZoneId: string;
532
+ /**
533
+ * 二级域名/应用名
534
+ */
535
+ Entity: string;
536
+ /**
537
+ * 安全配置
538
+ */
539
+ Config: SecurityConfig;
540
+ }
308
541
  /**
309
542
  * CreateApplicationProxyRules请求参数结构体
310
543
  */
@@ -451,17 +684,17 @@ export interface ModifyZoneSettingRequest {
451
684
  ClientIpHeader?: ClientIp;
452
685
  }
453
686
  /**
454
- * DescribeApplicationProxyDetail请求参数结构体
687
+ * ddos特征过滤
455
688
  */
456
- export interface DescribeApplicationProxyDetailRequest {
689
+ export interface DdosPacketFilter {
457
690
  /**
458
- * 站点ID
691
+ * 特征过滤清空标识,off清空处理
459
692
  */
460
- ZoneId: string;
693
+ Switch?: string;
461
694
  /**
462
- * 实例ID
695
+ * 特征过滤数组
463
696
  */
464
- ProxyId: string;
697
+ PacketFilter?: Array<DDoSFeaturesFilter>;
465
698
  }
466
699
  /**
467
700
  * CreateApplicationProxy返回参数结构体
@@ -502,17 +735,17 @@ export interface CacheConfigNoCache {
502
735
  Switch: string;
503
736
  }
504
737
  /**
505
- * 源站配置。
738
+ * ModifyOriginGroup返回参数结构体
506
739
  */
507
- export interface Origin {
740
+ export interface ModifyOriginGroupResponse {
508
741
  /**
509
- * 回源协议配置
510
- http:强制 http 回源
511
- follow:协议跟随回源
512
- https:强制 https 回源,https 回源时仅支持源站 443 端口
513
- 注意:此字段可能返回 null,表示取不到有效值。
514
- */
515
- OriginPullProtocol?: string;
742
+ * 源站组ID
743
+ */
744
+ OriginId: string;
745
+ /**
746
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
747
+ */
748
+ RequestId?: string;
516
749
  }
517
750
  /**
518
751
  * 内容管理任务结果
@@ -544,57 +777,169 @@ export interface Task {
544
777
  UpdateTime: string;
545
778
  }
546
779
  /**
547
- * 查询结果排序条件。
780
+ * 源站配置。
548
781
  */
549
- export interface CertSort {
782
+ export interface Origin {
550
783
  /**
551
- * 排序字段,当前支持:
552
- createTime,域名创建时间
553
- certExpireTime,证书过期时间
554
- certDeployTime, 证书部署时间
784
+ * 回源协议配置
785
+ http:强制 http 回源
786
+ follow:协议跟随回源
787
+ https:强制 https 回源,https 回源时仅支持源站 443 端口
788
+ 注意:此字段可能返回 null,表示取不到有效值。
555
789
  */
556
- Key: string;
557
- /**
558
- * asc/desc,默认desc。
559
- */
560
- Sequence?: string;
790
+ OriginPullProtocol?: string;
561
791
  }
562
792
  /**
563
- * DescribeHostsSetting返回参数结构体
793
+ * ModifyZoneStatus返回参数结构体
564
794
  */
565
- export interface DescribeHostsSettingResponse {
795
+ export interface ModifyZoneStatusResponse {
566
796
  /**
567
- * 域名列表
797
+ * 站点 ID
568
798
  */
569
- Hosts: Array<DetailHost>;
799
+ Id: string;
570
800
  /**
571
- * 域名数量
801
+ * 站点名称
572
802
  */
573
- TotalNumber: number;
803
+ Name: string;
804
+ /**
805
+ * 站点状态
806
+ - false 开启站点
807
+ - true 关闭站点
808
+ */
809
+ Paused: boolean;
810
+ /**
811
+ * 更新时间
812
+ */
813
+ ModifiedOn: string;
574
814
  /**
575
815
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
576
816
  */
577
817
  RequestId?: string;
578
818
  }
579
819
  /**
580
- * ModifyZone返回参数结构体
820
+ * DescribeSecurityPolicyManagedRules请求参数结构体
581
821
  */
582
- export interface ModifyZoneResponse {
822
+ export interface DescribeSecurityPolicyManagedRulesRequest {
583
823
  /**
584
- * 站点 ID
824
+ * 一级域名
585
825
  */
586
- Id: string;
826
+ ZoneId: string;
587
827
  /**
588
- * 站点名称
828
+ * 子域名/应用名
589
829
  */
590
- Name: string;
830
+ Entity: string;
591
831
  /**
592
- * 站点当前使用的 NS
832
+ * 页数
593
833
  */
594
- OriginalNameServers: Array<string>;
834
+ Page: number;
595
835
  /**
596
- * 站点状态
597
- - pending 未接入 NS
836
+ * 每页数量
837
+ */
838
+ PerPage: number;
839
+ }
840
+ /**
841
+ * 查询结果排序条件。
842
+ */
843
+ export interface CertSort {
844
+ /**
845
+ * 排序字段,当前支持:
846
+ createTime,域名创建时间
847
+ certExpireTime,证书过期时间
848
+ certDeployTime, 证书部署时间
849
+ */
850
+ Key: string;
851
+ /**
852
+ * asc/desc,默认desc。
853
+ */
854
+ Sequence?: string;
855
+ }
856
+ /**
857
+ * ModifySecurityPolicy返回参数结构体
858
+ */
859
+ export interface ModifySecurityPolicyResponse {
860
+ /**
861
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
862
+ */
863
+ RequestId?: string;
864
+ }
865
+ /**
866
+ * ModifyDDoSPolicyHost请求参数结构体
867
+ */
868
+ export interface ModifyDDoSPolicyHostRequest {
869
+ /**
870
+ * 站点id
871
+ */
872
+ ZoneId: string;
873
+ /**
874
+ * 二级域名
875
+ */
876
+ Host: string;
877
+ /**
878
+ * 加速开关 on-开启加速;off-关闭加速(AccelerateType:on,SecurityType:on,安全加速,未开防护增强;AccelerateType:off,SecurityType:on,安全加速,开启防护增强;AccelerateType:on,SecurityType:off,内容加速,未开防护增强)
879
+ */
880
+ AccelerateType: string;
881
+ /**
882
+ * 策略id
883
+ */
884
+ PolicyId: number;
885
+ /**
886
+ * 安全开关 on-开启安全;off-关闭安全(AccelerateType:on,SecurityType:on,安全加速,未开防护增强;AccelerateType:off,SecurityType:on,安全加速,开启防护增强;AccelerateType:on,SecurityType:off,内容加速,未开防护增强)
887
+ */
888
+ SecurityType?: string;
889
+ }
890
+ /**
891
+ * DescribeHostsSetting返回参数结构体
892
+ */
893
+ export interface DescribeHostsSettingResponse {
894
+ /**
895
+ * 域名列表
896
+ */
897
+ Hosts: Array<DetailHost>;
898
+ /**
899
+ * 域名数量
900
+ */
901
+ TotalNumber: number;
902
+ /**
903
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
904
+ */
905
+ RequestId?: string;
906
+ }
907
+ /**
908
+ * DescribeSecurityPolicyRegions返回参数结构体
909
+ */
910
+ export interface DescribeSecurityPolicyRegionsResponse {
911
+ /**
912
+ * 总数
913
+ */
914
+ Count: number;
915
+ /**
916
+ * 地域信息
917
+ */
918
+ GeoIp: Array<GeoIp>;
919
+ /**
920
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
921
+ */
922
+ RequestId?: string;
923
+ }
924
+ /**
925
+ * ModifyZone返回参数结构体
926
+ */
927
+ export interface ModifyZoneResponse {
928
+ /**
929
+ * 站点 ID
930
+ */
931
+ Id: string;
932
+ /**
933
+ * 站点名称
934
+ */
935
+ Name: string;
936
+ /**
937
+ * 站点当前使用的 NS
938
+ */
939
+ OriginalNameServers: Array<string>;
940
+ /**
941
+ * 站点状态
942
+ - pending 未接入 NS
598
943
  - active 已接入 NS
599
944
  - moved NS 已切走
600
945
  */
@@ -662,17 +1007,45 @@ export interface DeleteZoneResponse {
662
1007
  RequestId?: string;
663
1008
  }
664
1009
  /**
665
- * ReclaimZone返回参数结构体
1010
+ * ModifyHostsCertificate请求参数结构体
666
1011
  */
667
- export interface ReclaimZoneResponse {
1012
+ export interface ModifyHostsCertificateRequest {
668
1013
  /**
669
- * 站点名称
1014
+ * Zone ID
670
1015
  */
671
- Name: string;
1016
+ ZoneId: string;
672
1017
  /**
673
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1018
+ * 本次变更的域名
674
1019
  */
675
- RequestId?: string;
1020
+ Hosts: Array<string>;
1021
+ /**
1022
+ * 证书信息, 只需要传入 CertId 即可, 如果为空, 则使用默认证书
1023
+ */
1024
+ CertInfo?: Array<ServerCertInfo>;
1025
+ }
1026
+ /**
1027
+ * Hsts配置
1028
+ */
1029
+ export interface Hsts {
1030
+ /**
1031
+ * 是否开启,on或off。
1032
+ */
1033
+ Switch: string;
1034
+ /**
1035
+ * MaxAge数值。
1036
+ 注意:此字段可能返回 null,表示取不到有效值。
1037
+ */
1038
+ MaxAge?: number;
1039
+ /**
1040
+ * 是否包含子域名,on或off。
1041
+ 注意:此字段可能返回 null,表示取不到有效值。
1042
+ */
1043
+ IncludeSubDomains?: string;
1044
+ /**
1045
+ * 是否预加载,on或off。
1046
+ 注意:此字段可能返回 null,表示取不到有效值。
1047
+ */
1048
+ Preload?: string;
676
1049
  }
677
1050
  /**
678
1051
  * CreatePurgeTask返回参数结构体
@@ -706,13 +1079,39 @@ export interface DeleteApplicationProxyRuleResponse {
706
1079
  RequestId?: string;
707
1080
  }
708
1081
  /**
709
- * DescribeIdentification请求参数结构体
1082
+ * ddos端口过滤
710
1083
  */
711
- export interface DescribeIdentificationRequest {
1084
+ export interface DdosAcls {
712
1085
  /**
713
- * 站点名称
1086
+ * 开关 off清空规则标识
714
1087
  */
715
- Name: string;
1088
+ Switch?: string;
1089
+ /**
1090
+ * 端口过了详细参数
1091
+ */
1092
+ Acl?: Array<DDoSAcl>;
1093
+ }
1094
+ /**
1095
+ * DeleteOriginGroup请求参数结构体
1096
+ */
1097
+ export interface DeleteOriginGroupRequest {
1098
+ /**
1099
+ * 源站组ID
1100
+ */
1101
+ OriginId: string;
1102
+ /**
1103
+ * 站点ID
1104
+ */
1105
+ ZoneId: string;
1106
+ }
1107
+ /**
1108
+ * ModifyHostsCertificate返回参数结构体
1109
+ */
1110
+ export interface ModifyHostsCertificateResponse {
1111
+ /**
1112
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1113
+ */
1114
+ RequestId?: string;
716
1115
  }
717
1116
  /**
718
1117
  * CreateDnsRecord请求参数结构体
@@ -777,6 +1176,24 @@ export interface L7OfflineLog {
777
1176
  */
778
1177
  LogPacketName: string;
779
1178
  }
1179
+ /**
1180
+ * Waf规则
1181
+ */
1182
+ export interface WafRule {
1183
+ /**
1184
+ * 黑名单
1185
+ */
1186
+ BlockRuleIDs: Array<number>;
1187
+ /**
1188
+ * id的开关
1189
+ */
1190
+ Switch: string;
1191
+ /**
1192
+ * 观察模式
1193
+ 注意:此字段可能返回 null,表示取不到有效值。
1194
+ */
1195
+ ObserveRuleIDs?: Array<number>;
1196
+ }
780
1197
  /**
781
1198
  * 应用代理规则
782
1199
  */
@@ -921,6 +1338,15 @@ export interface Zone {
921
1338
  */
922
1339
  CnameStatus: string;
923
1340
  }
1341
+ /**
1342
+ * DescribeSecurityPolicyManagedRulesId请求参数结构体
1343
+ */
1344
+ export interface DescribeSecurityPolicyManagedRulesIdRequest {
1345
+ /**
1346
+ * 规则id集合
1347
+ */
1348
+ RuleId: Array<number>;
1349
+ }
924
1350
  /**
925
1351
  * ModifyApplicationProxyStatus请求参数结构体
926
1352
  */
@@ -987,6 +1413,15 @@ export interface CertFilter {
987
1413
  */
988
1414
  Fuzzy?: boolean;
989
1415
  }
1416
+ /**
1417
+ * DescribeIdentification请求参数结构体
1418
+ */
1419
+ export interface DescribeIdentificationRequest {
1420
+ /**
1421
+ * 站点名称
1422
+ */
1423
+ Name: string;
1424
+ }
990
1425
  /**
991
1426
  * ModifyLoadBalancingStatus请求参数结构体
992
1427
  */
@@ -1028,6 +1463,19 @@ export interface DescribeCnameStatusResponse {
1028
1463
  */
1029
1464
  RequestId?: string;
1030
1465
  }
1466
+ /**
1467
+ * DeleteDnsRecords返回参数结构体
1468
+ */
1469
+ export interface DeleteDnsRecordsResponse {
1470
+ /**
1471
+ * 记录 ID
1472
+ */
1473
+ Ids: Array<string>;
1474
+ /**
1475
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1476
+ */
1477
+ RequestId?: string;
1478
+ }
1031
1479
  /**
1032
1480
  * DescribeLoadBalancing请求参数结构体
1033
1481
  */
@@ -1111,6 +1559,23 @@ export interface ModifyApplicationProxyRuleRequest {
1111
1559
  */
1112
1560
  SessionPersist?: boolean;
1113
1561
  }
1562
+ /**
1563
+ * DDoS封禁等级
1564
+ */
1565
+ export interface DDoSStatusInfo {
1566
+ /**
1567
+ * 不支持,填off
1568
+ */
1569
+ AiStatus: string;
1570
+ /**
1571
+ * 用户appid
1572
+ */
1573
+ Appid: string;
1574
+ /**
1575
+ * 策略等级 low, middle, high
1576
+ */
1577
+ PlyLevel: string;
1578
+ }
1114
1579
  /**
1115
1580
  * CNAME 状态
1116
1581
  */
@@ -1146,63 +1611,92 @@ export interface ModifyZoneSettingResponse {
1146
1611
  RequestId?: string;
1147
1612
  }
1148
1613
  /**
1149
- * DownloadL7Logs返回参数结构体
1614
+ * DescribeZones返回参数结构体
1150
1615
  */
1151
- export interface DownloadL7LogsResponse {
1616
+ export interface DescribeZonesResponse {
1152
1617
  /**
1153
- * 七层离线日志data
1154
- 注意:此字段可能返回 null,表示取不到有效值。
1155
- */
1156
- Data: Array<L7OfflineLog>;
1618
+ * 符合条件的站点数
1619
+ */
1620
+ TotalCount: number;
1157
1621
  /**
1158
- * 页面大小
1622
+ * 站点详细信息列表
1159
1623
  注意:此字段可能返回 null,表示取不到有效值。
1160
1624
  */
1161
- PageSize: number;
1625
+ Zones: Array<Zone>;
1162
1626
  /**
1163
- * 页号
1164
- 注意:此字段可能返回 null,表示取不到有效值。
1165
- */
1166
- PageNo: number;
1627
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1628
+ */
1629
+ RequestId?: string;
1630
+ }
1631
+ /**
1632
+ * ScanDnsRecords返回参数结构体
1633
+ */
1634
+ export interface ScanDnsRecordsResponse {
1167
1635
  /**
1168
- * 总页数
1169
- 注意:此字段可能返回 null,表示取不到有效值。
1636
+ * 扫描状态
1637
+ - doing 扫描中
1638
+ - done 扫描完成
1170
1639
  */
1171
- Pages: number;
1640
+ Status: string;
1172
1641
  /**
1173
- * 总条数
1174
- 注意:此字段可能返回 null,表示取不到有效值。
1175
- */
1176
- TotalSize: number;
1642
+ * 扫描后添加的记录数
1643
+ */
1644
+ RecordsAdded: number;
1177
1645
  /**
1178
1646
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1179
1647
  */
1180
1648
  RequestId?: string;
1181
1649
  }
1182
1650
  /**
1183
- * CreateDnsRecord返回参数结构体
1651
+ * 门神配置
1184
1652
  */
1185
- export interface CreateDnsRecordResponse {
1653
+ export interface WafConfig {
1186
1654
  /**
1187
- * 记录 ID
1655
+ * 开关
1188
1656
  */
1189
- Id: string;
1657
+ Switch: string;
1190
1658
  /**
1191
- * 记录类型
1659
+ * 防护级别,loose/normal/strict/stricter/custom
1192
1660
  */
1193
- Type: string;
1661
+ Level: string;
1194
1662
  /**
1195
- * 记录名称
1663
+ * 模式 block-阻断;observe-观察模式;close-关闭
1196
1664
  */
1197
- Name: string;
1665
+ Mode: string;
1198
1666
  /**
1199
- * 记录内容
1667
+ * 门神黑白名单
1200
1668
  */
1201
- Content: string;
1669
+ WafRules: WafRule;
1202
1670
  /**
1203
- * 生存时间值
1204
- */
1205
- Ttl: number;
1671
+ * AI规则引擎防护
1672
+ 注意:此字段可能返回 null,表示取不到有效值。
1673
+ */
1674
+ AiRule?: AiRule;
1675
+ }
1676
+ /**
1677
+ * CreateDnsRecord返回参数结构体
1678
+ */
1679
+ export interface CreateDnsRecordResponse {
1680
+ /**
1681
+ * 记录 ID
1682
+ */
1683
+ Id: string;
1684
+ /**
1685
+ * 记录类型
1686
+ */
1687
+ Type: string;
1688
+ /**
1689
+ * 记录名称
1690
+ */
1691
+ Name: string;
1692
+ /**
1693
+ * 记录内容
1694
+ */
1695
+ Content: string;
1696
+ /**
1697
+ * 生存时间值
1698
+ */
1699
+ Ttl: number;
1206
1700
  /**
1207
1701
  * 优先级
1208
1702
  */
@@ -1287,6 +1781,15 @@ export interface ServerCertInfo {
1287
1781
  */
1288
1782
  Status?: string;
1289
1783
  }
1784
+ /**
1785
+ * DDoS配置
1786
+ */
1787
+ export interface DDoSConfig {
1788
+ /**
1789
+ * 开关
1790
+ */
1791
+ Switch: string;
1792
+ }
1290
1793
  /**
1291
1794
  * DescribeZones请求参数结构体
1292
1795
  */
@@ -1395,19 +1898,25 @@ export interface CacheConfigFollowOrigin {
1395
1898
  Switch: string;
1396
1899
  }
1397
1900
  /**
1398
- * 自定义 nameservers
1901
+ * 精准防护条件
1399
1902
  */
1400
- export interface VanityNameServers {
1903
+ export interface ACLCondition {
1401
1904
  /**
1402
- * 自定义 ns 开关
1403
- - on 开启
1404
- - off 关闭
1405
- */
1406
- Switch: string;
1905
+ * 匹配字段
1906
+ */
1907
+ MatchFrom: string;
1407
1908
  /**
1408
- * 自定义 ns 列表
1909
+ * 匹配字符串
1409
1910
  */
1410
- Servers?: Array<string>;
1911
+ MatchParam: string;
1912
+ /**
1913
+ * 匹配关系
1914
+ */
1915
+ Operator: string;
1916
+ /**
1917
+ * 匹配内容
1918
+ */
1919
+ MatchContent: string;
1411
1920
  }
1412
1921
  /**
1413
1922
  * DescribeApplicationProxy返回参数结构体
@@ -1446,6 +1955,15 @@ export interface CreateLoadBalancingResponse {
1446
1955
  */
1447
1956
  RequestId?: string;
1448
1957
  }
1958
+ /**
1959
+ * 功能总开关
1960
+ */
1961
+ export interface SwitchConfig {
1962
+ /**
1963
+ * Web类型的安全总开关:Web基础防护,自定义规则,速率限制
1964
+ */
1965
+ WebSwitch: string;
1966
+ }
1449
1967
  /**
1450
1968
  * IdentifyZone返回参数结构体
1451
1969
  */
@@ -1614,46 +2132,81 @@ export interface DescribeLoadBalancingDetailResponse {
1614
2132
  RequestId?: string;
1615
2133
  }
1616
2134
  /**
1617
- * DescribePrefetchTasks请求参数结构体
2135
+ * 安全配置
1618
2136
  */
1619
- export interface DescribePrefetchTasksRequest {
2137
+ export interface SecurityConfig {
1620
2138
  /**
1621
- * 任务ID
1622
- */
1623
- JobId?: string;
2139
+ * 门神配置
2140
+ 注意:此字段可能返回 null,表示取不到有效值。
2141
+ */
2142
+ WafConfig?: WafConfig;
1624
2143
  /**
1625
- * 查询起始时间
2144
+ * RateLimit配置
2145
+ 注意:此字段可能返回 null,表示取不到有效值。
2146
+ */
2147
+ RateLimitConfig?: RateLimitConfig;
2148
+ /**
2149
+ * DDoS配置
2150
+ 注意:此字段可能返回 null,表示取不到有效值。
2151
+ */
2152
+ DdosConfig?: DDoSConfig;
2153
+ /**
2154
+ * ACL配置
2155
+ 注意:此字段可能返回 null,表示取不到有效值。
2156
+ */
2157
+ AclConfig?: AclConfig;
2158
+ /**
2159
+ * Bot配置
2160
+ 注意:此字段可能返回 null,表示取不到有效值。
2161
+ */
2162
+ BotConfig?: BotConfig;
2163
+ /**
2164
+ * 总开关
2165
+ 注意:此字段可能返回 null,表示取不到有效值。
2166
+ */
2167
+ SwitchConfig?: SwitchConfig;
2168
+ }
2169
+ /**
2170
+ * bot托管规则详情
2171
+ */
2172
+ export interface BotManagedRuleDetail {
2173
+ /**
2174
+ * 规则ID
1626
2175
  */
1627
- StartTime?: string;
2176
+ RuleId: number;
1628
2177
  /**
1629
- * 查询结束时间
2178
+ * 规则描述
1630
2179
  */
1631
- EndTime?: string;
2180
+ Description: string;
1632
2181
  /**
1633
- * 查询起始偏移量
2182
+ * 规则分类
1634
2183
  */
1635
- Offset?: number;
2184
+ RuleTypeName: string;
1636
2185
  /**
1637
- * 查询最大返回的结果条数
2186
+ * 该规则开启/关闭
1638
2187
  */
1639
- Limit?: number;
2188
+ Status: string;
2189
+ }
2190
+ /**
2191
+ * DescribeBotManagedRules返回参数结构体
2192
+ */
2193
+ export interface DescribeBotManagedRulesResponse {
1640
2194
  /**
1641
- * 查询的状态
1642
- 允许的值为:processing、success、failed、timeout、invalid
1643
- */
1644
- Statuses?: Array<string>;
2195
+ * 本次返回的规则数
2196
+ */
2197
+ Count: number;
1645
2198
  /**
1646
- * zone id
2199
+ * Bot规则
1647
2200
  */
1648
- ZoneId?: string;
2201
+ Rules: Array<BotManagedRuleDetail>;
1649
2202
  /**
1650
- * 查询的域名列表
2203
+ * 总规则数
1651
2204
  */
1652
- Domains?: Array<string>;
2205
+ Total: number;
1653
2206
  /**
1654
- * 查询的资源
2207
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1655
2208
  */
1656
- Target?: string;
2209
+ RequestId?: string;
1657
2210
  }
1658
2211
  /**
1659
2212
  * DNS 记录
@@ -1728,6 +2281,76 @@ export interface DnsRecord {
1728
2281
  */
1729
2282
  DomainStatus: Array<string>;
1730
2283
  }
2284
+ /**
2285
+ * DDoS协议防护+连接防护
2286
+ */
2287
+ export interface DDoSAntiPly {
2288
+ /**
2289
+ * tcp协议封禁 on-开;off-关
2290
+ */
2291
+ DropTcp: string;
2292
+ /**
2293
+ * udp协议封禁 on-开;off-关
2294
+ */
2295
+ DropUdp: string;
2296
+ /**
2297
+ * icmp协议封禁 on-开;off-关
2298
+ */
2299
+ DropIcmp: string;
2300
+ /**
2301
+ * 其他协议封禁 on-开;off-关
2302
+ */
2303
+ DropOther: string;
2304
+ /**
2305
+ * 源每秒新建数限制 0-4294967295
2306
+ */
2307
+ SourceCreateLimit: number;
2308
+ /**
2309
+ * 源并发连接控制 0-4294967295
2310
+ */
2311
+ SourceConnectLimit: number;
2312
+ /**
2313
+ * 目的每秒新建数限制 0-4294967295
2314
+ */
2315
+ DestinationCreateLimit: number;
2316
+ /**
2317
+ * 目的端口的并发连接控制 0-4294967295
2318
+ */
2319
+ DestinationConnectLimit: number;
2320
+ /**
2321
+ * 异常连接数阈值 0-4294967295
2322
+ */
2323
+ AbnormalConnectNum: number;
2324
+ /**
2325
+ * syn占比异常阈值 0-100
2326
+ */
2327
+ AbnormalSynRatio: number;
2328
+ /**
2329
+ * syn个数异常阈值 0-65535
2330
+ */
2331
+ AbnormalSynNum: number;
2332
+ /**
2333
+ * 连接超时检测 0-65535
2334
+ */
2335
+ ConnectTimeout: number;
2336
+ /**
2337
+ * 空连接防护开启 0-1
2338
+ */
2339
+ EmptyConnectProtect: string;
2340
+ }
2341
+ /**
2342
+ * ModifyDDoSPolicy返回参数结构体
2343
+ */
2344
+ export interface ModifyDDoSPolicyResponse {
2345
+ /**
2346
+ * 策略组ID
2347
+ */
2348
+ PolicyId: number;
2349
+ /**
2350
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2351
+ */
2352
+ RequestId?: string;
2353
+ }
1731
2354
  /**
1732
2355
  * DescribeDnsRecords请求参数结构体
1733
2356
  */
@@ -1788,6 +2411,44 @@ export interface DescribeDefaultCertificatesRequest {
1788
2411
  */
1789
2412
  ZoneId: string;
1790
2413
  }
2414
+ /**
2415
+ * 地域信息
2416
+ */
2417
+ export interface GeoIp {
2418
+ /**
2419
+ * 地域ID
2420
+ */
2421
+ RegionId: number;
2422
+ /**
2423
+ * 国家名
2424
+ */
2425
+ Country?: string;
2426
+ /**
2427
+ * 洲
2428
+ */
2429
+ Continent?: string;
2430
+ /**
2431
+ * 国家英文名
2432
+ */
2433
+ CountryEn?: string;
2434
+ /**
2435
+ * 洲
2436
+ */
2437
+ ContinentEn?: string;
2438
+ }
2439
+ /**
2440
+ * DescribeSecurityPolicy请求参数结构体
2441
+ */
2442
+ export interface DescribeSecurityPolicyRequest {
2443
+ /**
2444
+ * 一级域名
2445
+ */
2446
+ ZoneId: string;
2447
+ /**
2448
+ * 二级域名
2449
+ */
2450
+ Entity: string;
2451
+ }
1791
2452
  /**
1792
2453
  * ModifyApplicationProxyRule返回参数结构体
1793
2454
  */
@@ -1801,6 +2462,23 @@ export interface ModifyApplicationProxyRuleResponse {
1801
2462
  */
1802
2463
  RequestId?: string;
1803
2464
  }
2465
+ /**
2466
+ * DescribeSecurityPolicyManagedRulesId返回参数结构体
2467
+ */
2468
+ export interface DescribeSecurityPolicyManagedRulesIdResponse {
2469
+ /**
2470
+ * 返回总数
2471
+ */
2472
+ Total: number;
2473
+ /**
2474
+ * 门神规则
2475
+ */
2476
+ Rules: Array<ManagedRule>;
2477
+ /**
2478
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2479
+ */
2480
+ RequestId?: string;
2481
+ }
1804
2482
  /**
1805
2483
  * 失败原因
1806
2484
  */
@@ -1835,24 +2513,31 @@ export interface CreateZoneRequest {
1835
2513
  JumpStart?: boolean;
1836
2514
  }
1837
2515
  /**
1838
- * 源站记录私有鉴权参数
2516
+ * RateLimit配置
1839
2517
  */
1840
- export interface OriginRecordPrivateParameter {
2518
+ export interface RateLimitConfig {
1841
2519
  /**
1842
- * 私有鉴权参数名称:
1843
- "AccessKeyId":Access Key ID
1844
- "SecretAccessKey":Secret Access Key
1845
- */
1846
- Name: string;
2520
+ * 开关
2521
+ */
2522
+ Switch: string;
1847
2523
  /**
1848
- * 私有鉴权参数数值
2524
+ * 用户规则
1849
2525
  */
1850
- Value: string;
2526
+ UserRules: Array<RateLimitUserRule>;
2527
+ /**
2528
+ * 默认模板
2529
+ 注意:此字段可能返回 null,表示取不到有效值。
2530
+ */
2531
+ Template?: RateLimitTemplate;
1851
2532
  }
1852
2533
  /**
1853
- * CheckCertificate返回参数结构体
2534
+ * DescribeSecurityPolicyList返回参数结构体
1854
2535
  */
1855
- export interface CheckCertificateResponse {
2536
+ export interface DescribeSecurityPolicyListResponse {
2537
+ /**
2538
+ * 防护资源列表
2539
+ */
2540
+ Entities: Array<SecurityEntity>;
1856
2541
  /**
1857
2542
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1858
2543
  */
@@ -1875,6 +2560,59 @@ export interface DescribePurgeTasksResponse {
1875
2560
  */
1876
2561
  RequestId?: string;
1877
2562
  }
2563
+ /**
2564
+ * 源站记录私有鉴权参数
2565
+ */
2566
+ export interface OriginRecordPrivateParameter {
2567
+ /**
2568
+ * 私有鉴权参数名称:
2569
+ "AccessKeyId":Access Key ID
2570
+ "SecretAccessKey":Secret Access Key
2571
+ */
2572
+ Name: string;
2573
+ /**
2574
+ * 私有鉴权参数数值
2575
+ */
2576
+ Value: string;
2577
+ }
2578
+ /**
2579
+ * CheckCertificate返回参数结构体
2580
+ */
2581
+ export interface CheckCertificateResponse {
2582
+ /**
2583
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2584
+ */
2585
+ RequestId?: string;
2586
+ }
2587
+ /**
2588
+ * DDoS7层应用
2589
+ */
2590
+ export interface DDoSApplication {
2591
+ /**
2592
+ * 二级域名
2593
+ 注意:此字段可能返回 null,表示取不到有效值。
2594
+ */
2595
+ Host?: string;
2596
+ /**
2597
+ * 域名状态;
2598
+ init 待切ns
2599
+ offline 需要dns开启站点加速
2600
+ process 在部署中,稍等一会
2601
+ online 正常状态
2602
+ 注意:此字段可能返回 null,表示取不到有效值。
2603
+ */
2604
+ Status?: string;
2605
+ /**
2606
+ * 加速开关;on-开启加速;off-关闭加速(AccelerateType:on,SecurityType:on,安全加速,未开防护增强;AccelerateType:off,SecurityType:on,安全加速,开启防护增强;AccelerateType:on,SecurityType:off,内容加速,未开防护增强)
2607
+ 注意:此字段可能返回 null,表示取不到有效值。
2608
+ */
2609
+ AccelerateType?: string;
2610
+ /**
2611
+ * 安全开关;on-开启安全;off-关闭安全(AccelerateType:on,SecurityType:on,安全加速,未开防护增强;AccelerateType:off,SecurityType:on,安全加速,开启防护增强;AccelerateType:on,SecurityType:off,内容加速,未开防护增强)
2612
+ 注意:此字段可能返回 null,表示取不到有效值。
2613
+ */
2614
+ SecurityType?: string;
2615
+ }
1878
2616
  /**
1879
2617
  * DownloadL7Logs请求参数结构体
1880
2618
  */
@@ -1985,29 +2723,71 @@ export interface CreateApplicationProxyRuleRequest {
1985
2723
  SessionPersist?: boolean;
1986
2724
  }
1987
2725
  /**
1988
- * 访问协议强制https跳转配置
1989
- */
1990
- export interface ForceRedirect {
1991
- /**
1992
- * 访问强制跳转配置开关
1993
- on:开启
1994
- off:关闭
1995
- */
1996
- Switch: string;
1997
- /**
1998
- * 重定向状态码
1999
- 301
2000
- 302
2001
- 注意:此字段可能返回 null,表示取不到有效值。
2002
- */
2003
- RedirectStatusCode?: number;
2004
- }
2005
- /**
2006
- * ModifyApplicationProxy请求参数结构体
2726
+ * DescribePrefetchTasks请求参数结构体
2007
2727
  */
2008
- export interface ModifyApplicationProxyRequest {
2728
+ export interface DescribePrefetchTasksRequest {
2009
2729
  /**
2010
- * 站点ID
2730
+ * 任务ID
2731
+ */
2732
+ JobId?: string;
2733
+ /**
2734
+ * 查询起始时间
2735
+ */
2736
+ StartTime?: string;
2737
+ /**
2738
+ * 查询结束时间
2739
+ */
2740
+ EndTime?: string;
2741
+ /**
2742
+ * 查询起始偏移量
2743
+ */
2744
+ Offset?: number;
2745
+ /**
2746
+ * 查询最大返回的结果条数
2747
+ */
2748
+ Limit?: number;
2749
+ /**
2750
+ * 查询的状态
2751
+ 允许的值为:processing、success、failed、timeout、invalid
2752
+ */
2753
+ Statuses?: Array<string>;
2754
+ /**
2755
+ * zone id
2756
+ */
2757
+ ZoneId?: string;
2758
+ /**
2759
+ * 查询的域名列表
2760
+ */
2761
+ Domains?: Array<string>;
2762
+ /**
2763
+ * 查询的资源
2764
+ */
2765
+ Target?: string;
2766
+ }
2767
+ /**
2768
+ * 访问协议强制https跳转配置
2769
+ */
2770
+ export interface ForceRedirect {
2771
+ /**
2772
+ * 访问强制跳转配置开关
2773
+ on:开启
2774
+ off:关闭
2775
+ */
2776
+ Switch: string;
2777
+ /**
2778
+ * 重定向状态码
2779
+ 301
2780
+ 302
2781
+ 注意:此字段可能返回 null,表示取不到有效值。
2782
+ */
2783
+ RedirectStatusCode?: number;
2784
+ }
2785
+ /**
2786
+ * ModifyApplicationProxy请求参数结构体
2787
+ */
2788
+ export interface ModifyApplicationProxyRequest {
2789
+ /**
2790
+ * 站点ID
2011
2791
  */
2012
2792
  ZoneId: string;
2013
2793
  /**
@@ -2092,84 +2872,34 @@ export interface DescribeDnsRecordsResponse {
2092
2872
  RequestId?: string;
2093
2873
  }
2094
2874
  /**
2095
- * DescribeApplicationProxyDetail返回参数结构体
2875
+ * bot 用户画像规则
2096
2876
  */
2097
- export interface DescribeApplicationProxyDetailResponse {
2098
- /**
2099
- * 实例ID
2100
- */
2101
- ProxyId: string;
2877
+ export interface BotPortraitRule {
2102
2878
  /**
2103
- * 实例名称
2104
- */
2105
- ProxyName: string;
2106
- /**
2107
- * 调度模式:
2108
- ip表示Anycast IP
2109
- domain表示CNAME
2879
+ * 本规则的id
2880
+ 注意:此字段可能返回 null,表示取不到有效值。
2110
2881
  */
2111
- PlatType: string;
2112
- /**
2113
- * 0关闭安全,1开启安全
2114
- */
2115
- SecurityType: number;
2116
- /**
2117
- * 0关闭加速,1开启加速
2118
- */
2119
- AccelerateType: number;
2120
- /**
2121
- * 字段已经移至Rule.ForwardClientIp
2122
- */
2123
- ForwardClientIp: string;
2124
- /**
2125
- * 字段已经移至Rule.SessionPersist
2126
- */
2127
- SessionPersist: boolean;
2128
- /**
2129
- * 规则列表
2130
- */
2131
- Rule: Array<ApplicationProxyRule>;
2882
+ RuleID?: number;
2132
2883
  /**
2133
- * 状态:
2134
- online:启用
2135
- offline:停用
2136
- progress:部署中
2884
+ * JS挑战的规则ID
2885
+ 注意:此字段可能返回 null,表示取不到有效值。
2137
2886
  */
2138
- Status: string;
2139
- /**
2140
- * 调度信息
2141
- */
2142
- ScheduleValue: Array<string>;
2143
- /**
2144
- * 更新时间
2145
- */
2146
- UpdateTime: string;
2147
- /**
2148
- * 站点ID
2149
- */
2150
- ZoneId: string;
2151
- /**
2152
- * 站点名称
2153
- */
2154
- ZoneName: string;
2887
+ AlgManagedIds?: Array<number>;
2155
2888
  /**
2156
- * 会话保持时间
2157
- */
2158
- SessionPersistTime: number;
2159
- /**
2160
- * 服务类型
2161
- hostname:子域名
2162
- instance:实例
2889
+ * 数字验证码的规则ID
2890
+ 注意:此字段可能返回 null,表示取不到有效值。
2163
2891
  */
2164
- ProxyType: string;
2892
+ CapManagedIds?: Array<number>;
2165
2893
  /**
2166
- * 七层实例ID
2167
- */
2168
- HostId: string;
2894
+ * 观察的规则ID
2895
+ 注意:此字段可能返回 null,表示取不到有效值。
2896
+ */
2897
+ MonManagedIds?: Array<number>;
2169
2898
  /**
2170
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2171
- */
2172
- RequestId?: string;
2899
+ * 拦截的规则ID
2900
+ 注意:此字段可能返回 null,表示取不到有效值。
2901
+ */
2902
+ DropManagedIds?: Array<number>;
2173
2903
  }
2174
2904
  /**
2175
2905
  * ModifyZoneCnameSpeedUp请求参数结构体
@@ -2212,51 +2942,129 @@ export interface DescribeHostsCertificateRequest {
2212
2942
  Sort?: CertSort;
2213
2943
  }
2214
2944
  /**
2215
- * Hsts配置
2945
+ * DescribeSecurityPolicyManagedRules返回参数结构体
2216
2946
  */
2217
- export interface Hsts {
2947
+ export interface DescribeSecurityPolicyManagedRulesResponse {
2218
2948
  /**
2219
- * 是否开启,on或off。
2949
+ * 本次返回的规则数
2220
2950
  */
2221
- Switch: string;
2951
+ Count: number;
2222
2952
  /**
2223
- * MaxAge数值。
2224
- 注意:此字段可能返回 null,表示取不到有效值。
2225
- */
2226
- MaxAge?: number;
2953
+ * 门神规则
2954
+ */
2955
+ Rules: Array<ManagedRule>;
2227
2956
  /**
2228
- * 是否包含子域名,on或off。
2957
+ * 总规则数
2958
+ */
2959
+ Total: number;
2960
+ /**
2961
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2962
+ */
2963
+ RequestId?: string;
2964
+ }
2965
+ /**
2966
+ * 速率限制模板
2967
+ */
2968
+ export interface RateLimitTemplate {
2969
+ /**
2970
+ * 模板名称
2229
2971
  注意:此字段可能返回 null,表示取不到有效值。
2230
2972
  */
2231
- IncludeSubDomains?: string;
2973
+ Mode?: string;
2232
2974
  /**
2233
- * 是否预加载,on或off。
2975
+ * 模板值详情
2234
2976
  注意:此字段可能返回 null,表示取不到有效值。
2235
2977
  */
2236
- Preload?: string;
2978
+ Detail?: RateLimitTemplateDetail;
2237
2979
  }
2238
2980
  /**
2239
- * ModifyHostsCertificate返回参数结构体
2981
+ * DescribeApplicationProxy请求参数结构体
2240
2982
  */
2241
- export interface ModifyHostsCertificateResponse {
2983
+ export interface DescribeApplicationProxyRequest {
2242
2984
  /**
2243
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2985
+ * 站点ID
2244
2986
  */
2245
- RequestId?: string;
2987
+ ZoneId?: string;
2988
+ /**
2989
+ * 分页参数Offset
2990
+ */
2991
+ Offset?: number;
2992
+ /**
2993
+ * 分页参数Limit
2994
+ */
2995
+ Limit?: number;
2246
2996
  }
2247
2997
  /**
2248
- * ModifyLoadBalancing返回参数结构体
2998
+ * ModifyDDoSPolicyHost返回参数结构体
2249
2999
  */
2250
- export interface ModifyLoadBalancingResponse {
3000
+ export interface ModifyDDoSPolicyHostResponse {
2251
3001
  /**
2252
- * 负载均衡ID
3002
+ * 修改成功的host
2253
3003
  */
2254
- LoadBalancingId: string;
3004
+ Host: string;
2255
3005
  /**
2256
3006
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2257
3007
  */
2258
3008
  RequestId?: string;
2259
3009
  }
3010
+ /**
3011
+ * ModifyApplicationProxyRuleStatus请求参数结构体
3012
+ */
3013
+ export interface ModifyApplicationProxyRuleStatusRequest {
3014
+ /**
3015
+ * 站点ID
3016
+ */
3017
+ ZoneId: string;
3018
+ /**
3019
+ * 四层代理ID
3020
+ */
3021
+ ProxyId: string;
3022
+ /**
3023
+ * 规则ID
3024
+ */
3025
+ RuleId: string;
3026
+ /**
3027
+ * 状态
3028
+ offline: 停用
3029
+ online: 启用
3030
+ */
3031
+ Status: string;
3032
+ }
3033
+ /**
3034
+ * 模板当前详细配置
3035
+ */
3036
+ export interface RateLimitTemplateDetail {
3037
+ /**
3038
+ * 模板名称
3039
+ 注意:此字段可能返回 null,表示取不到有效值。
3040
+ */
3041
+ Mode?: string;
3042
+ /**
3043
+ * 唯一id
3044
+ 注意:此字段可能返回 null,表示取不到有效值。
3045
+ */
3046
+ ID?: number;
3047
+ /**
3048
+ * 处置动作
3049
+ 注意:此字段可能返回 null,表示取不到有效值。
3050
+ */
3051
+ Action?: string;
3052
+ /**
3053
+ * 惩罚时间,秒
3054
+ 注意:此字段可能返回 null,表示取不到有效值。
3055
+ */
3056
+ PunishTime?: number;
3057
+ /**
3058
+ * 阈值
3059
+ 注意:此字段可能返回 null,表示取不到有效值。
3060
+ */
3061
+ Threshold?: number;
3062
+ /**
3063
+ * 统计周期
3064
+ 注意:此字段可能返回 null,表示取不到有效值。
3065
+ */
3066
+ Period?: number;
3067
+ }
2260
3068
  /**
2261
3069
  * CreateApplicationProxyRule返回参数结构体
2262
3070
  */
@@ -2270,6 +3078,62 @@ export interface CreateApplicationProxyRuleResponse {
2270
3078
  */
2271
3079
  RequestId?: string;
2272
3080
  }
3081
+ /**
3082
+ * RateLimit规则
3083
+ */
3084
+ export interface RateLimitUserRule {
3085
+ /**
3086
+ * RateLimit统计阈值
3087
+ */
3088
+ Threshold: number;
3089
+ /**
3090
+ * RateLimit统计时间
3091
+ */
3092
+ Period: number;
3093
+ /**
3094
+ * 规则名
3095
+ */
3096
+ RuleName: string;
3097
+ /**
3098
+ * 动作:monitor(观察), drop(拦截)
3099
+ */
3100
+ Action: string;
3101
+ /**
3102
+ * 惩罚时长
3103
+ */
3104
+ PunishTime: number;
3105
+ /**
3106
+ * 处罚时长单位,second
3107
+ */
3108
+ PunishTimeUnit: string;
3109
+ /**
3110
+ * 规则状态
3111
+ */
3112
+ RuleStatus: string;
3113
+ /**
3114
+ * 规则
3115
+ */
3116
+ Conditions: Array<ACLCondition>;
3117
+ /**
3118
+ * 规则权重
3119
+ */
3120
+ RulePriority: number;
3121
+ /**
3122
+ * 规则id
3123
+ 注意:此字段可能返回 null,表示取不到有效值。
3124
+ */
3125
+ RuleID?: number;
3126
+ /**
3127
+ * 过滤词
3128
+ 注意:此字段可能返回 null,表示取不到有效值。
3129
+ */
3130
+ FreqFields?: Array<string>;
3131
+ /**
3132
+ * 更新时间
3133
+ 注意:此字段可能返回 null,表示取不到有效值。
3134
+ */
3135
+ UpdateTime?: string;
3136
+ }
2273
3137
  /**
2274
3138
  * ModifyDnsRecord返回参数结构体
2275
3139
  */
@@ -2405,6 +3269,63 @@ export interface PostMaxSize {
2405
3269
  */
2406
3270
  MaxSize?: number;
2407
3271
  }
3272
+ /**
3273
+ * 门神规则
3274
+ */
3275
+ export interface ManagedRule {
3276
+ /**
3277
+ * 规则id
3278
+ */
3279
+ RuleId: number;
3280
+ /**
3281
+ * 规则描述
3282
+ */
3283
+ Description: string;
3284
+ /**
3285
+ * 规则类型名
3286
+ */
3287
+ RuleTypeName: string;
3288
+ /**
3289
+ * 策略规则防护等级
3290
+ */
3291
+ RuleLevelDesc: string;
3292
+ /**
3293
+ * 更新时间
3294
+ */
3295
+ UpdateTime: string;
3296
+ /**
3297
+ * 规则当前状态 block, allow
3298
+ */
3299
+ Status: string;
3300
+ /**
3301
+ * 规则标签
3302
+ 注意:此字段可能返回 null,表示取不到有效值。
3303
+ */
3304
+ RuleTags?: Array<string>;
3305
+ /**
3306
+ * 规则类型详细描述
3307
+ 注意:此字段可能返回 null,表示取不到有效值。
3308
+ */
3309
+ RuleTypeDesc?: string;
3310
+ /**
3311
+ * 规则类型id
3312
+ 注意:此字段可能返回 null,表示取不到有效值。
3313
+ */
3314
+ RuleTypeId?: number;
3315
+ }
3316
+ /**
3317
+ * ModifyLoadBalancing返回参数结构体
3318
+ */
3319
+ export interface ModifyLoadBalancingResponse {
3320
+ /**
3321
+ * 负载均衡ID
3322
+ */
3323
+ LoadBalancingId: string;
3324
+ /**
3325
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3326
+ */
3327
+ RequestId?: string;
3328
+ }
2408
3329
  /**
2409
3330
  * DescribeCnameStatus请求参数结构体
2410
3331
  */
@@ -2418,6 +3339,27 @@ export interface DescribeCnameStatusRequest {
2418
3339
  */
2419
3340
  Names: Array<string>;
2420
3341
  }
3342
+ /**
3343
+ * CreateCustomErrorPage请求参数结构体
3344
+ */
3345
+ export interface CreateCustomErrorPageRequest {
3346
+ /**
3347
+ * zone的id
3348
+ */
3349
+ ZoneId: string;
3350
+ /**
3351
+ * 具体所属实体
3352
+ */
3353
+ Entity: string;
3354
+ /**
3355
+ * 自定义页面的文件名
3356
+ */
3357
+ Name: string;
3358
+ /**
3359
+ * 自定义页面的内容
3360
+ */
3361
+ Content: string;
3362
+ }
2421
3363
  /**
2422
3364
  * DescribeDnssec返回参数结构体
2423
3365
  */
@@ -2553,6 +3495,27 @@ export interface DeleteLoadBalancingRequest {
2553
3495
  */
2554
3496
  LoadBalancingId: string;
2555
3497
  }
3498
+ /**
3499
+ * 安全防护实例
3500
+ */
3501
+ export interface SecurityEntity {
3502
+ /**
3503
+ * 用户appid
3504
+ */
3505
+ AppId: number;
3506
+ /**
3507
+ * 一级域名
3508
+ */
3509
+ ZoneId: string;
3510
+ /**
3511
+ * 二级域名
3512
+ */
3513
+ Entity: string;
3514
+ /**
3515
+ * 类型 domain/application
3516
+ */
3517
+ EntityType: string;
3518
+ }
2556
3519
  /**
2557
3520
  * 应用代理实例
2558
3521
  */
@@ -2653,6 +3616,15 @@ export interface ModifyApplicationProxyResponse {
2653
3616
  */
2654
3617
  RequestId?: string;
2655
3618
  }
3619
+ /**
3620
+ * DescribeDDoSPolicy返回参数结构体
3621
+ */
3622
+ export interface DescribeDDoSPolicyResponse {
3623
+ /**
3624
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3625
+ */
3626
+ RequestId?: string;
3627
+ }
2656
3628
  /**
2657
3629
  * 缓存键配置
2658
3630
  */
@@ -2675,6 +3647,40 @@ export interface CacheKey {
2675
3647
  */
2676
3648
  QueryString?: QueryString;
2677
3649
  }
3650
+ /**
3651
+ * ModifyOriginGroup请求参数结构体
3652
+ */
3653
+ export interface ModifyOriginGroupRequest {
3654
+ /**
3655
+ * 源站组ID
3656
+ */
3657
+ OriginId: string;
3658
+ /**
3659
+ * 源站组名称
3660
+ */
3661
+ OriginName: string;
3662
+ /**
3663
+ * 配置类型,当OriginType=self 时,需要填写:
3664
+ area: 按区域配置
3665
+ weight: 按权重配置
3666
+ 当OriginType=third_party 时,不需要填写
3667
+ */
3668
+ Type: string;
3669
+ /**
3670
+ * 源站记录
3671
+ */
3672
+ Record: Array<OriginRecord>;
3673
+ /**
3674
+ * 站点ID
3675
+ */
3676
+ ZoneId: string;
3677
+ /**
3678
+ * 源站类型
3679
+ self:自有源站
3680
+ third_party:第三方源站
3681
+ */
3682
+ OriginType?: string;
3683
+ }
2678
3684
  /**
2679
3685
  * ModifyApplicationProxyRuleStatus返回参数结构体
2680
3686
  */
@@ -2689,18 +3695,35 @@ export interface ModifyApplicationProxyRuleStatusResponse {
2689
3695
  RequestId?: string;
2690
3696
  }
2691
3697
  /**
2692
- * DescribeZones返回参数结构体
3698
+ * DescribeSecurityPolicyList请求参数结构体
2693
3699
  */
2694
- export interface DescribeZonesResponse {
3700
+ export interface DescribeSecurityPolicyListRequest {
2695
3701
  /**
2696
- * 符合条件的站点数
3702
+ * 一级域名
2697
3703
  */
2698
- TotalCount: number;
3704
+ ZoneId: string;
3705
+ }
3706
+ /**
3707
+ * DescribeApplicationProxyDetail请求参数结构体
3708
+ */
3709
+ export interface DescribeApplicationProxyDetailRequest {
2699
3710
  /**
2700
- * 站点详细信息列表
2701
- 注意:此字段可能返回 null,表示取不到有效值。
2702
- */
2703
- Zones: Array<Zone>;
3711
+ * 站点ID
3712
+ */
3713
+ ZoneId: string;
3714
+ /**
3715
+ * 实例ID
3716
+ */
3717
+ ProxyId: string;
3718
+ }
3719
+ /**
3720
+ * DeleteOriginGroup返回参数结构体
3721
+ */
3722
+ export interface DeleteOriginGroupResponse {
3723
+ /**
3724
+ * 源站组ID
3725
+ */
3726
+ OriginId: string;
2704
3727
  /**
2705
3728
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2706
3729
  */
@@ -2728,6 +3751,19 @@ export interface DescribeZoneDetailsRequest {
2728
3751
  */
2729
3752
  Id: string;
2730
3753
  }
3754
+ /**
3755
+ * DescribeDDoSPolicy请求参数结构体
3756
+ */
3757
+ export interface DescribeDDoSPolicyRequest {
3758
+ /**
3759
+ * 策略组id
3760
+ */
3761
+ PolicyId: number;
3762
+ /**
3763
+ * 一级域名zone
3764
+ */
3765
+ ZoneId: string;
3766
+ }
2731
3767
  /**
2732
3768
  * DescribeDefaultCertificates返回参数结构体
2733
3769
  */
@@ -2747,44 +3783,43 @@ export interface DescribeDefaultCertificatesResponse {
2747
3783
  RequestId?: string;
2748
3784
  }
2749
3785
  /**
2750
- * DescribeApplicationProxy请求参数结构体
3786
+ * CreateOriginGroup返回参数结构体
2751
3787
  */
2752
- export interface DescribeApplicationProxyRequest {
3788
+ export interface CreateOriginGroupResponse {
2753
3789
  /**
2754
- * 站点ID
3790
+ * 新增的源站组ID
2755
3791
  */
2756
- ZoneId?: string;
2757
- /**
2758
- * 分页参数Offset
2759
- */
2760
- Offset?: number;
3792
+ OriginId: string;
2761
3793
  /**
2762
- * 分页参数Limit
3794
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2763
3795
  */
2764
- Limit?: number;
3796
+ RequestId?: string;
2765
3797
  }
2766
3798
  /**
2767
- * ModifyApplicationProxyRuleStatus请求参数结构体
3799
+ * DescribeSecurityPolicy返回参数结构体
2768
3800
  */
2769
- export interface ModifyApplicationProxyRuleStatusRequest {
3801
+ export interface DescribeSecurityPolicyResponse {
2770
3802
  /**
2771
- * 站点ID
3803
+ * 用户id
2772
3804
  */
2773
- ZoneId: string;
3805
+ AppId: number;
2774
3806
  /**
2775
- * 四层代理ID
3807
+ * 一级域名
2776
3808
  */
2777
- ProxyId: string;
3809
+ ZoneId: string;
2778
3810
  /**
2779
- * 规则ID
3811
+ * 二级域名
2780
3812
  */
2781
- RuleId: string;
3813
+ Entity: string;
2782
3814
  /**
2783
- * 状态
2784
- offline: 停用
2785
- online: 启用
3815
+ * 安全配置
3816
+ 注意:此字段可能返回 null,表示取不到有效值。
2786
3817
  */
2787
- Status: string;
3818
+ Config: SecurityConfig;
3819
+ /**
3820
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3821
+ */
3822
+ RequestId?: string;
2788
3823
  }
2789
3824
  /**
2790
3825
  * CacheKey中包含请求参数
@@ -2807,6 +3842,10 @@ export interface QueryString {
2807
3842
  */
2808
3843
  Value?: Array<string>;
2809
3844
  }
3845
+ /**
3846
+ * DescribeSecurityPolicyRegions请求参数结构体
3847
+ */
3848
+ export declare type DescribeSecurityPolicyRegionsRequest = null;
2810
3849
  /**
2811
3850
  * ReclaimZone请求参数结构体
2812
3851
  */
@@ -2821,9 +3860,82 @@ export interface ReclaimZoneRequest {
2821
3860
  */
2822
3861
  export interface DeleteZoneRequest {
2823
3862
  /**
2824
- * 站点 ID
2825
- */
2826
- Id: string;
3863
+ * 站点 ID
3864
+ */
3865
+ Id: string;
3866
+ }
3867
+ /**
3868
+ * Bot 规则
3869
+ */
3870
+ export interface BotManagedRule {
3871
+ /**
3872
+ * 想开启的规则id
3873
+ 注意:此字段可能返回 null,表示取不到有效值。
3874
+ */
3875
+ ManagedIds: Array<number>;
3876
+ /**
3877
+ * 本规则的id
3878
+ */
3879
+ RuleID: number;
3880
+ /**
3881
+ * drop/trans/monitor/alg
3882
+ */
3883
+ Action?: string;
3884
+ /**
3885
+ * ip封禁的惩罚时间
3886
+ 注意:此字段可能返回 null,表示取不到有效值。
3887
+ */
3888
+ PunishTime?: number;
3889
+ /**
3890
+ * 单位
3891
+ 注意:此字段可能返回 null,表示取不到有效值。
3892
+ */
3893
+ PunishTimeUnit?: string;
3894
+ /**
3895
+ * 自定义返回页面的名称
3896
+ 注意:此字段可能返回 null,表示取不到有效值。
3897
+ */
3898
+ Name?: string;
3899
+ /**
3900
+ * 自定义返回页面的实例id
3901
+ 注意:此字段可能返回 null,表示取不到有效值。
3902
+ */
3903
+ PageId?: number;
3904
+ /**
3905
+ * 重定向时候的地址,必须为本用户接入的站点子域名,使用URLENCODE
3906
+ 注意:此字段可能返回 null,表示取不到有效值。
3907
+ */
3908
+ RedirectUrl?: string;
3909
+ /**
3910
+ * 重定向时候的返回码
3911
+ 注意:此字段可能返回 null,表示取不到有效值。
3912
+ */
3913
+ ResponseCode?: number;
3914
+ /**
3915
+ * 放行的规则ID
3916
+ 注意:此字段可能返回 null,表示取不到有效值。
3917
+ */
3918
+ TransManagedIds?: Array<number>;
3919
+ /**
3920
+ * JS挑战的规则ID
3921
+ 注意:此字段可能返回 null,表示取不到有效值。
3922
+ */
3923
+ AlgManagedIds?: Array<number>;
3924
+ /**
3925
+ * 数字验证码的规则ID
3926
+ 注意:此字段可能返回 null,表示取不到有效值。
3927
+ */
3928
+ CapManagedIds?: Array<number>;
3929
+ /**
3930
+ * 观察的规则ID
3931
+ 注意:此字段可能返回 null,表示取不到有效值。
3932
+ */
3933
+ MonManagedIds?: Array<number>;
3934
+ /**
3935
+ * 拦截的规则ID
3936
+ 注意:此字段可能返回 null,表示取不到有效值。
3937
+ */
3938
+ DropManagedIds?: Array<number>;
2827
3939
  }
2828
3940
  /**
2829
3941
  * ModifyDefaultCertificate返回参数结构体
@@ -2849,6 +3961,25 @@ export interface ClientIp {
2849
3961
  */
2850
3962
  HeaderName?: string;
2851
3963
  }
3964
+ /**
3965
+ * DNS 记录查询过滤条件
3966
+ */
3967
+ export interface DnsRecordFilter {
3968
+ /**
3969
+ * 过滤字段名,支持的列表如下:
3970
+ - name: 站点名。
3971
+ - status: 站点状态
3972
+ */
3973
+ Name: string;
3974
+ /**
3975
+ * 过滤字段值
3976
+ */
3977
+ Values: Array<string>;
3978
+ /**
3979
+ * 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1
3980
+ */
3981
+ Fuzzy?: boolean;
3982
+ }
2852
3983
  /**
2853
3984
  * DescribeHostsCertificate返回参数结构体
2854
3985
  */
@@ -2954,6 +4085,17 @@ export interface DescribeZoneSettingResponse {
2954
4085
  */
2955
4086
  RequestId?: string;
2956
4087
  }
4088
+ /**
4089
+ * AI规则引擎防护
4090
+ */
4091
+ export interface AiRule {
4092
+ /**
4093
+ * smart_status_close-关闭;smart_status_open-拦截处置;
4094
+ smart_status_observe-观察处置
4095
+ 注意:此字段可能返回 null,表示取不到有效值。
4096
+ */
4097
+ Mode?: string;
4098
+ }
2957
4099
  /**
2958
4100
  * DescribePurgeTasks请求参数结构体
2959
4101
  */
@@ -3029,6 +4171,23 @@ export interface CacheConfig {
3029
4171
  */
3030
4172
  FollowOrigin?: CacheConfigFollowOrigin;
3031
4173
  }
4174
+ /**
4175
+ * ModifyDDoSPolicy请求参数结构体
4176
+ */
4177
+ export interface ModifyDDoSPolicyRequest {
4178
+ /**
4179
+ * 策略组ID
4180
+ */
4181
+ PolicyId: number;
4182
+ /**
4183
+ * 一级域名
4184
+ */
4185
+ ZoneId: string;
4186
+ /**
4187
+ * DDoS具体防护配置
4188
+ */
4189
+ DdosRule?: DdosRule;
4190
+ }
3032
4191
  /**
3033
4192
  * ModifyZoneCnameSpeedUp返回参数结构体
3034
4193
  */
@@ -3056,6 +4215,25 @@ export interface ModifyZoneCnameSpeedUpResponse {
3056
4215
  */
3057
4216
  RequestId?: string;
3058
4217
  }
4218
+ /**
4219
+ * 站点查询过滤条件
4220
+ */
4221
+ export interface ZoneFilter {
4222
+ /**
4223
+ * 过滤字段名,支持的列表如下:
4224
+ - name: 站点名。
4225
+ - status: 站点状态
4226
+ */
4227
+ Name: string;
4228
+ /**
4229
+ * 过滤字段值
4230
+ */
4231
+ Values: Array<string>;
4232
+ /**
4233
+ * 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1
4234
+ */
4235
+ Fuzzy?: boolean;
4236
+ }
3059
4237
  /**
3060
4238
  * 浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
3061
4239
  */
@@ -3086,121 +4264,360 @@ export interface DeleteDnsRecordsRequest {
3086
4264
  Ids: Array<string>;
3087
4265
  }
3088
4266
  /**
3089
- * ModifyHostsCertificate请求参数结构体
4267
+ * ddos黑白名单
3090
4268
  */
3091
- export interface ModifyHostsCertificateRequest {
4269
+ export interface DdosAllowBlock {
4270
+ /**
4271
+ * 开关标识防护是否清空
4272
+ */
4273
+ Switch?: string;
4274
+ /**
4275
+ * 黑白名单数组
4276
+ */
4277
+ UserAllowBlockIp?: Array<DDoSUserAllowBlockIP>;
4278
+ }
4279
+ /**
4280
+ * DDoS地域封禁
4281
+ */
4282
+ export interface DDoSGeoIp {
4283
+ /**
4284
+ * 地域信息
4285
+ 注意:此字段可能返回 null,表示取不到有效值。
4286
+ */
4287
+ RegionId?: Array<number>;
4288
+ /**
4289
+ * 区域封禁清空标识
4290
+ 注意:此字段可能返回 null,表示取不到有效值。
4291
+ */
4292
+ Switch?: string;
4293
+ }
4294
+ /**
4295
+ * DescribeZoneDDoSPolicy返回参数结构体
4296
+ */
4297
+ export interface DescribeZoneDDoSPolicyResponse {
4298
+ /**
4299
+ * 用户appid
4300
+ */
4301
+ AppId: number;
4302
+ /**
4303
+ * 防护分区
4304
+ */
4305
+ ShieldAreas: Array<ShieldArea>;
4306
+ /**
4307
+ * 所有子域名信息,包含安全加速/内容加速
4308
+ 注意:此字段可能返回 null,表示取不到有效值。
4309
+ */
4310
+ Domains: Array<DDoSApplication>;
4311
+ /**
4312
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4313
+ */
4314
+ RequestId?: string;
4315
+ }
4316
+ /**
4317
+ * ACL配置
4318
+ */
4319
+ export interface AclConfig {
4320
+ /**
4321
+ * 开关
4322
+ */
4323
+ Switch: string;
4324
+ /**
4325
+ * ACL用户规则
4326
+ */
4327
+ UserRules: Array<ACLUserRule>;
4328
+ }
4329
+ /**
4330
+ * DescribeDnsData请求参数结构体
4331
+ */
4332
+ export interface DescribeDnsDataRequest {
4333
+ /**
4334
+ * 起始时间
4335
+ */
4336
+ StartTime: string;
4337
+ /**
4338
+ * 结束时间
4339
+ */
4340
+ EndTime: string;
4341
+ /**
4342
+ * 过滤参数
4343
+ */
4344
+ Filters?: Array<DnsDataFilter>;
4345
+ /**
4346
+ * 时间粒度,默认为1分钟粒度,服务端根据时间范围自适应。
4347
+ 支持指定以下几种粒度:
4348
+ min:1分钟粒度
4349
+ 5min:5分钟粒度
4350
+ hour:1小时粒度
4351
+ day:天粒度
4352
+ */
4353
+ Interval?: string;
4354
+ }
4355
+ /**
4356
+ * DDoS特征过滤
4357
+ */
4358
+ export interface DDoSFeaturesFilter {
4359
+ /**
4360
+ * 动作 drop-丢弃;transmit-放行;drop_block-丢弃并拉黑;forward-继续防护
4361
+ */
4362
+ Action?: string;
4363
+ /**
4364
+ * 深度值1
4365
+ */
4366
+ Depth?: number;
4367
+ /**
4368
+ * 深度值2
4369
+ */
4370
+ Depth2?: number;
4371
+ /**
4372
+ * 目标端口结束
4373
+ */
4374
+ DportEnd?: number;
4375
+ /**
4376
+ * 目标端口开始
4377
+ */
4378
+ DportStart?: number;
4379
+ /**
4380
+ * 取非判断1
4381
+ */
4382
+ IsNot?: number;
4383
+ /**
4384
+ * 取非判断2
4385
+ */
4386
+ IsNot2?: number;
4387
+ /**
4388
+ * 多特征关系(单特征时(none),第二特征相关配置可不填) none;and;or
4389
+ */
4390
+ MatchLogic?: string;
4391
+ /**
4392
+ * 匹配方式1 pcre-正则匹配, sunday-字符串匹配
4393
+ */
4394
+ MatchType?: string;
4395
+ /**
4396
+ * 匹配方式2 pcre-正则匹配, sunday-字符串匹配
4397
+ */
4398
+ MatchType2?: string;
4399
+ /**
4400
+ * 偏移量1
4401
+ */
4402
+ Offset?: number;
4403
+ /**
4404
+ * 偏移量2
4405
+ */
4406
+ Offset2?: number;
4407
+ /**
4408
+ * 最大包长
4409
+ */
4410
+ PacketMax?: number;
4411
+ /**
4412
+ * 最小包长
4413
+ */
4414
+ PacketMin?: number;
4415
+ /**
4416
+ * 协议 tcp;udp;icmp;all
4417
+ */
4418
+ Protocol?: string;
4419
+ /**
4420
+ * 源端口结束
4421
+ */
4422
+ SportEnd?: number;
4423
+ /**
4424
+ * 源端口开始
4425
+ */
4426
+ SportStart?: number;
4427
+ /**
4428
+ * 匹配字符串1
4429
+ */
4430
+ Str?: string;
4431
+ /**
4432
+ * 匹配字符串2
4433
+ */
4434
+ Str2?: string;
4435
+ /**
4436
+ * 匹配开始层级,层级参考计算机网络结构 begin_l5, no_match, begin_l3, begin_l4
4437
+ */
4438
+ MatchBegin?: string;
4439
+ /**
4440
+ * 匹配开始层级,层级参考计算机网络结构 begin_l5, no_match, begin_l3, begin_l4
4441
+ */
4442
+ MatchBegin2?: string;
4443
+ }
4444
+ /**
4445
+ * CreatePurgeTask请求参数结构体
4446
+ */
4447
+ export interface CreatePurgeTaskRequest {
3092
4448
  /**
3093
4449
  * Zone ID
3094
4450
  */
3095
4451
  ZoneId: string;
3096
4452
  /**
3097
- * 本次变更的域名
4453
+ * 类型,当前支持的类型:
4454
+ - purge_url:URL
4455
+ - purge_prefix:前缀
4456
+ - purge_host:Hostname
4457
+ - purge_all:全部缓存
4458
+ */
4459
+ Type: string;
4460
+ /**
4461
+ * 要刷新的资源列表,每个元素格式依据Type而定
4462
+ 1) Type = purge_host 时
4463
+ 形如:www.example.com 或 foo.bar.example.com
4464
+ 2) Type = purge_prefix 时
4465
+ 形如:http://www.example.com/example
4466
+ 3) Type = purge_url 时
4467
+ 形如:https://www.example.com/example.jpg
4468
+ 4)Type = purge_all 时
4469
+ Targets可为空,不需要填写
4470
+ */
4471
+ Targets?: Array<string>;
4472
+ /**
4473
+ * 若有编码转换,仅清除编码转换后匹配的资源
4474
+ 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
4475
+ */
4476
+ EncodeUrl?: boolean;
4477
+ }
4478
+ /**
4479
+ * DescribeApplicationProxyDetail返回参数结构体
4480
+ */
4481
+ export interface DescribeApplicationProxyDetailResponse {
4482
+ /**
4483
+ * 实例ID
3098
4484
  */
3099
- Hosts: Array<string>;
4485
+ ProxyId: string;
4486
+ /**
4487
+ * 实例名称
4488
+ */
4489
+ ProxyName: string;
4490
+ /**
4491
+ * 调度模式:
4492
+ ip表示Anycast IP
4493
+ domain表示CNAME
4494
+ */
4495
+ PlatType: string;
4496
+ /**
4497
+ * 0关闭安全,1开启安全
4498
+ */
4499
+ SecurityType: number;
4500
+ /**
4501
+ * 0关闭加速,1开启加速
4502
+ */
4503
+ AccelerateType: number;
4504
+ /**
4505
+ * 字段已经移至Rule.ForwardClientIp
4506
+ */
4507
+ ForwardClientIp: string;
4508
+ /**
4509
+ * 字段已经移至Rule.SessionPersist
4510
+ */
4511
+ SessionPersist: boolean;
4512
+ /**
4513
+ * 规则列表
4514
+ */
4515
+ Rule: Array<ApplicationProxyRule>;
4516
+ /**
4517
+ * 状态:
4518
+ online:启用
4519
+ offline:停用
4520
+ progress:部署中
4521
+ */
4522
+ Status: string;
4523
+ /**
4524
+ * 调度信息
4525
+ */
4526
+ ScheduleValue: Array<string>;
3100
4527
  /**
3101
- * 证书信息, 只需要传入 CertId 即可, 如果为空, 则使用默认证书
4528
+ * 更新时间
3102
4529
  */
3103
- CertInfo?: Array<ServerCertInfo>;
3104
- }
3105
- /**
3106
- * ModifyZoneStatus返回参数结构体
3107
- */
3108
- export interface ModifyZoneStatusResponse {
4530
+ UpdateTime: string;
3109
4531
  /**
3110
- * 站点 ID
4532
+ * 站点ID
3111
4533
  */
3112
- Id: string;
4534
+ ZoneId: string;
3113
4535
  /**
3114
4536
  * 站点名称
3115
4537
  */
3116
- Name: string;
4538
+ ZoneName: string;
3117
4539
  /**
3118
- * 站点状态
3119
- - false 开启站点
3120
- - true 关闭站点
4540
+ * 会话保持时间
4541
+ */
4542
+ SessionPersistTime: number;
4543
+ /**
4544
+ * 服务类型
4545
+ hostname:子域名
4546
+ instance:实例
3121
4547
  */
3122
- Paused: boolean;
4548
+ ProxyType: string;
3123
4549
  /**
3124
- * 更新时间
4550
+ * 七层实例ID
3125
4551
  */
3126
- ModifiedOn: string;
4552
+ HostId: string;
3127
4553
  /**
3128
4554
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3129
4555
  */
3130
4556
  RequestId?: string;
3131
4557
  }
3132
4558
  /**
3133
- * DescribeDnsData请求参数结构体
4559
+ * DownloadL7Logs返回参数结构体
3134
4560
  */
3135
- export interface DescribeDnsDataRequest {
4561
+ export interface DownloadL7LogsResponse {
3136
4562
  /**
3137
- * 起始时间
3138
- */
3139
- StartTime: string;
4563
+ * 七层离线日志data
4564
+ 注意:此字段可能返回 null,表示取不到有效值。
4565
+ */
4566
+ Data: Array<L7OfflineLog>;
3140
4567
  /**
3141
- * 结束时间
3142
- */
3143
- EndTime: string;
4568
+ * 页面大小
4569
+ 注意:此字段可能返回 null,表示取不到有效值。
4570
+ */
4571
+ PageSize: number;
3144
4572
  /**
3145
- * 过滤参数
3146
- */
3147
- Filters?: Array<DnsDataFilter>;
4573
+ * 页号
4574
+ 注意:此字段可能返回 null,表示取不到有效值。
4575
+ */
4576
+ PageNo: number;
3148
4577
  /**
3149
- * 时间粒度,默认为1分钟粒度,服务端根据时间范围自适应。
3150
- 支持指定以下几种粒度:
3151
- min:1分钟粒度
3152
- 5min:5分钟粒度
3153
- hour:1小时粒度
3154
- day:天粒度
4578
+ * 总页数
4579
+ 注意:此字段可能返回 null,表示取不到有效值。
3155
4580
  */
3156
- Interval?: string;
4581
+ Pages: number;
4582
+ /**
4583
+ * 总条数
4584
+ 注意:此字段可能返回 null,表示取不到有效值。
4585
+ */
4586
+ TotalSize: number;
4587
+ /**
4588
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4589
+ */
4590
+ RequestId?: string;
3157
4591
  }
3158
4592
  /**
3159
- * CreatePurgeTask请求参数结构体
4593
+ * CreateOriginGroup请求参数结构体
3160
4594
  */
3161
- export interface CreatePurgeTaskRequest {
4595
+ export interface CreateOriginGroupRequest {
3162
4596
  /**
3163
- * Zone ID
4597
+ * 源站组名称
3164
4598
  */
3165
- ZoneId: string;
4599
+ OriginName: string;
3166
4600
  /**
3167
- * 类型,当前支持的类型:
3168
- - purge_url:URL
3169
- - purge_prefix:前缀
3170
- - purge_host:Hostname
3171
- - purge_all:全部缓存
4601
+ * 配置类型,当OriginType=self 时,需要填写:
4602
+ area: 按区域配置
4603
+ weight: 按权重配置
4604
+ 当OriginType=third_party 时,不需要填写
3172
4605
  */
3173
4606
  Type: string;
3174
4607
  /**
3175
- * 要刷新的资源列表,每个元素格式依据Type而定
3176
- 1) Type = purge_host 时
3177
- 形如:www.example.com 或 foo.bar.example.com
3178
- 2) Type = purge_prefix 时
3179
- 形如:http://www.example.com/example
3180
- 3) Type = purge_url 时
3181
- 形如:https://www.example.com/example.jpg
3182
- 4)Type = purge_all 时
3183
- Targets可为空,不需要填写
3184
- */
3185
- Targets?: Array<string>;
3186
- /**
3187
- * 若有编码转换,仅清除编码转换后匹配的资源
3188
- 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
3189
- */
3190
- EncodeUrl?: boolean;
3191
- }
3192
- /**
3193
- * DeleteDnsRecords返回参数结构体
3194
- */
3195
- export interface DeleteDnsRecordsResponse {
3196
- /**
3197
- * 记录 ID
4608
+ * 源站记录
3198
4609
  */
3199
- Ids: Array<string>;
4610
+ Record: Array<OriginRecord>;
3200
4611
  /**
3201
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4612
+ * 站点ID
3202
4613
  */
3203
- RequestId?: string;
4614
+ ZoneId: string;
4615
+ /**
4616
+ * 源站类型
4617
+ self:自有源站
4618
+ third_party:第三方源站
4619
+ */
4620
+ OriginType?: string;
3204
4621
  }
3205
4622
  /**
3206
4623
  * DescribeHostsSetting请求参数结构体
@@ -3223,6 +4640,15 @@ export interface DescribeHostsSettingRequest {
3223
4640
  */
3224
4641
  Hosts?: Array<string>;
3225
4642
  }
4643
+ /**
4644
+ * DescribeZoneDDoSPolicy请求参数结构体
4645
+ */
4646
+ export interface DescribeZoneDDoSPolicyRequest {
4647
+ /**
4648
+ * 一级域名id
4649
+ */
4650
+ ZoneId?: string;
4651
+ }
3226
4652
  /**
3227
4653
  * CreateApplicationProxyRules返回参数结构体
3228
4654
  */
@@ -3320,6 +4746,41 @@ export interface OriginGroup {
3320
4746
  */
3321
4747
  LoadBalancingUsed: boolean;
3322
4748
  }
4749
+ /**
4750
+ * DDoS黑白名单
4751
+ */
4752
+ export interface DDoSUserAllowBlockIP {
4753
+ /**
4754
+ * 用户ip
4755
+ 注意:此字段可能返回 null,表示取不到有效值。
4756
+ */
4757
+ Ip?: string;
4758
+ /**
4759
+ * 掩码
4760
+ 注意:此字段可能返回 null,表示取不到有效值。
4761
+ */
4762
+ Mask?: number;
4763
+ /**
4764
+ * 类型 block-丢弃;allow-允许
4765
+ 注意:此字段可能返回 null,表示取不到有效值。
4766
+ */
4767
+ Type?: string;
4768
+ /**
4769
+ * 时间戳
4770
+ 注意:此字段可能返回 null,表示取不到有效值。
4771
+ */
4772
+ UpdateTime?: number;
4773
+ /**
4774
+ * 用户ip范围截止
4775
+ 注意:此字段可能返回 null,表示取不到有效值。
4776
+ */
4777
+ Ip2?: string;
4778
+ /**
4779
+ * 掩码截止范围
4780
+ 注意:此字段可能返回 null,表示取不到有效值。
4781
+ */
4782
+ Mask2?: number;
4783
+ }
3323
4784
  /**
3324
4785
  * DescribeLoadBalancing返回参数结构体
3325
4786
  */
@@ -3378,6 +4839,21 @@ export interface ScanDnsRecordsRequest {
3378
4839
  */
3379
4840
  ZoneId: string;
3380
4841
  }
4842
+ /**
4843
+ * 自定义 nameservers
4844
+ */
4845
+ export interface VanityNameServers {
4846
+ /**
4847
+ * 自定义 ns 开关
4848
+ - on 开启
4849
+ - off 关闭
4850
+ */
4851
+ Switch: string;
4852
+ /**
4853
+ * 自定义 ns 列表
4854
+ */
4855
+ Servers?: Array<string>;
4856
+ }
3381
4857
  /**
3382
4858
  * ImportDnsRecords返回参数结构体
3383
4859
  */
@@ -3504,23 +4980,78 @@ export interface DnssecInfo {
3504
4980
  PublicKey: string;
3505
4981
  }
3506
4982
  /**
3507
- * DNS 记录查询过滤条件
4983
+ * DescribeOriginGroup请求参数结构体
3508
4984
  */
3509
- export interface DnsRecordFilter {
4985
+ export interface DescribeOriginGroupRequest {
3510
4986
  /**
3511
- * 过滤字段名,支持的列表如下:
3512
- - name: 站点名。
3513
- - status: 站点状态
4987
+ * 分页参数Offset
4988
+ */
4989
+ Offset: number;
4990
+ /**
4991
+ * 分页参数Limit
4992
+ */
4993
+ Limit: number;
4994
+ /**
4995
+ * 过滤参数
4996
+ */
4997
+ Filters?: Array<OriginFilter>;
4998
+ /**
4999
+ * 站点ID
5000
+ 不填写获取所有站点源站组
3514
5001
  */
3515
- Name: string;
5002
+ ZoneId?: string;
5003
+ }
5004
+ /**
5005
+ * DescribeOriginGroupDetail返回参数结构体
5006
+ */
5007
+ export interface DescribeOriginGroupDetailResponse {
3516
5008
  /**
3517
- * 过滤字段值
5009
+ * 源站组ID
3518
5010
  */
3519
- Values: Array<string>;
5011
+ OriginId: string;
3520
5012
  /**
3521
- * 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1
5013
+ * 源站组名称
3522
5014
  */
3523
- Fuzzy?: boolean;
5015
+ OriginName: string;
5016
+ /**
5017
+ * 配置类型
5018
+ */
5019
+ Type: string;
5020
+ /**
5021
+ * 记录
5022
+ */
5023
+ Record: Array<OriginRecord>;
5024
+ /**
5025
+ * 更新时间
5026
+ */
5027
+ UpdateTime: string;
5028
+ /**
5029
+ * 站点ID
5030
+ */
5031
+ ZoneId: string;
5032
+ /**
5033
+ * 站点名称
5034
+ */
5035
+ ZoneName: string;
5036
+ /**
5037
+ * 源站类型
5038
+ 注意:此字段可能返回 null,表示取不到有效值。
5039
+ */
5040
+ OriginType: string;
5041
+ /**
5042
+ * 是否被四层代理使用
5043
+ 注意:此字段可能返回 null,表示取不到有效值。
5044
+ */
5045
+ ApplicationProxyUsed: boolean;
5046
+ /**
5047
+ * 是否被负载均衡使用
5048
+ 注意:此字段可能返回 null,表示取不到有效值。
5049
+ */
5050
+ LoadBalancingUsed: boolean;
5051
+ /**
5052
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5053
+ */
5054
+ RequestId?: string;
3524
5055
  }
3525
5056
  /**
3526
5057
  * Http2回源配置
@@ -3543,6 +5074,31 @@ export interface OfflineCache {
3543
5074
  */
3544
5075
  Switch: string;
3545
5076
  }
5077
+ /**
5078
+ * 安全Bot配置
5079
+ */
5080
+ export interface BotConfig {
5081
+ /**
5082
+ * bot开关
5083
+ */
5084
+ Switch: string;
5085
+ /**
5086
+ * 预置规则
5087
+ */
5088
+ ManagedRule?: BotManagedRule;
5089
+ /**
5090
+ * 保留
5091
+ */
5092
+ UaBotRule?: BotManagedRule;
5093
+ /**
5094
+ * 保留
5095
+ */
5096
+ IspBotRule?: BotManagedRule;
5097
+ /**
5098
+ * 用户画像规则
5099
+ */
5100
+ PortraitRule?: BotPortraitRule;
5101
+ }
3546
5102
  /**
3547
5103
  * 自定义名字服务器 IP 信息
3548
5104
  */
@@ -3556,3 +5112,28 @@ export interface VanityNameServersIps {
3556
5112
  */
3557
5113
  IPv4: string;
3558
5114
  }
5115
+ /**
5116
+ * DescribeBotManagedRules请求参数结构体
5117
+ */
5118
+ export interface DescribeBotManagedRulesRequest {
5119
+ /**
5120
+ * 一级域名
5121
+ */
5122
+ ZoneId: string;
5123
+ /**
5124
+ * 子域名/应用名
5125
+ */
5126
+ Entity: string;
5127
+ /**
5128
+ * 页数
5129
+ */
5130
+ Page: number;
5131
+ /**
5132
+ * 每页数量
5133
+ */
5134
+ PerPage: number;
5135
+ /**
5136
+ * idcid/sipbot/uabot规则类型,空代表拉取全部
5137
+ */
5138
+ RuleType?: string;
5139
+ }