1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'waf-openapi', 'version' => '2019-09-10'],
'directories' => [
[
'children' => ['DescribeInstanceInfo', 'DescribeInstanceSpecInfo'],
'type' => 'directory',
'title' => 'Instance information',
],
[
'children' => ['DescribeDomainNames', 'DescribeDomain', 'ModifyDomain', 'DescribeCertificates', 'DescribeCertMatchStatus', 'CreateCertificateByCertificateId', 'DescribeDomainBasicConfigs', 'DescribeDomainAdvanceConfigs'],
'type' => 'directory',
'title' => 'Domain name configuration',
],
[
'children' => ['DescribeProtectionModuleMode', 'ModifyDomainIpv6Status', 'DescribeProtectionModuleStatus', 'ModifyProtectionModuleStatus', 'ModifyProtectionModuleMode', 'DescribeProtectionModuleRules', 'CreateProtectionModuleRule', 'ModifyProtectionModuleRule', 'ModifyProtectionRuleStatus', 'DescribeDomainRuleGroup', 'SetDomainRuleGroup', 'ModifyProtectionRuleCacheStatus', 'DeleteProtectionModuleRule', 'DescribeProtectionModuleCodeConfig', 'DescribeRuleGroups', 'DescribeRules'],
'type' => 'directory',
'title' => 'Protection configuration',
],
[
'children' => ['DescribeWafSourceIpSegment'],
'type' => 'directory',
'title' => 'System management',
],
[
'children' => ['CreateCertificate', 'CreateDomain', 'DeleteDomain', 'DeleteInstance', 'DescribeDomainList', 'DescribeLogServiceStatus', 'ModifyLogRetrievalStatus', 'ModifyLogServiceStatus', 'MoveResourceGroup'],
'title' => 'Others',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateCertificate' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added to WAF.', 'type' => 'string', 'required' => false, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'Certificate',
'in' => 'query',
'schema' => ['description' => 'The content of the certificate file.', 'type' => 'string', 'required' => false, 'default' => 'cn', 'example' => '-----BEGIN CERTIFICATE----- 62EcYPWd2Oy1vs6MTXcJSfN9Z7rZ9fmxWr2BFN2XbahgnsSXM48ixZJ4krc+1M+j2kcubVpsE2cgHdj4v8H6jUz9Ji4mr7vMNS6dXv8PUkl/qoDeNGCNdyTS5NIL5ir+g92cL8IGOkjgvhlqt9vc65Cgb4mL+n5+DV9uOyTZTW/MojmlgfUekC2xiXa54nxJf17Y1TADGSbyJbsC0Q9nIrHsPl8YKkvRWvIAqYxXZ7wRwWWmv4TMxFhWRiNY7yZIo2ZUhl02SIDNggIEeg== -----END CERTIFICATE-----', 'title' => ''],
],
[
'name' => 'PrivateKey',
'in' => 'query',
'schema' => ['description' => 'The content of the private key file that corresponds to the certificate.', 'type' => 'string', 'required' => true, 'example' => '-----BEGIN RSA PRIVATE KEY----- DADTPZoOHd9WtZ3UKHJTRgNQmioPQn2bqdKHop+B/dn/4VZL7Jt8zSDGM9sTMThLyvsmLQKBgQCr+ujntC1kN6pGBj2Fw2l/EA/W3rYEce2tyhjgmG7rZ+A/jVE9fld5sQra6ZdwBcQJaiygoIYoaMF2EjRwc0qwHaluq0C15f6ujSoHh2e+D5zdmkTg/3NKNjqNv6xA2gYpinVDzFdZ9Zujxvuh9o4Vqf0YF8bv5UK5G04RtKadOw== -----END RSA PRIVATE KEY-----', 'title' => ''],
],
[
'name' => 'CertificateName',
'in' => 'query',
'schema' => ['description' => 'The name of the certificate.', 'type' => 'string', 'required' => true, 'example' => 'CertName', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. By default, this parameter is empty, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'CertificateId' => ['description' => 'The certificate record ID that is automatically generated by the system.', 'type' => 'integer', 'format' => 'int64', 'example' => '2329260', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CertificateId\\": 2329260,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Upload certificate and private key for an added domain name',
'summary' => 'Uploads the certificate and private key for a domain name that has been added to WAF.',
'description' => 'Uploads or updates the certificate and private key for a specified domain name.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCertificate'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateCertificate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateCertificateByCertificateId' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to which you want to add an SSL certificate.'."\n"
."\n"
.'> Call [DescribeDomainList](~~255880~~) to query all domain names that are added to WAF.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'CertificateId',
'in' => 'query',
'schema' => ['description' => 'The ID of the certificate to add.'."\n"
."\n"
.'> Call [DescribeCertificates](~~160783~~) to query the IDs of all SSL certificates associated with the domain name.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3384669', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> Call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the WAF instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'CertificateId' => ['description' => 'The ID of the added certificate.', 'type' => 'integer', 'format' => 'int64', 'example' => '3384669', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CertificateId\\": 3384669,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Create a certificate for a domain name by certificate ID',
'summary' => 'Creates a certificate for a specified domain name based on a certificate ID by calling the CreateCertificateByCertificateId operation.',
'description' => 'This operation adds an SSL certificate to a specified domain name by certificate ID. Before calling this operation, call [DescribeCertificates](~~160783~~) to query the IDs of all SSL certificates associated with the domain name. To ensure system stability, the queries per second (QPS) for a single user is limited to 10. Requests that exceed this limit will be throttled, which may affect your business. Call this operation appropriately.',
'requestParamsDescription' => 'When you call this operation, in addition to the request parameters described in this topic, you must include Alibaba Cloud API common request parameters. For more information about common parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCertificateByCertificateId'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateCertificateByCertificateId',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateDomain' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-7pp26f1****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to be added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'SourceIps',
'in' => 'query',
'schema' => ['description' => 'The IP address of the origin server or the back-to-origin domain name associated with the domain name. You can set only one of the two:'."\n"
."\n"
.'- To set origin server IP addresses, use the `["ip1","ip2",……]` format. A maximum of 20 IP addresses can be added.'."\n"
.'- To set the back-to-origin domain name, use the `["domain"]` format. Only one domain name can be specified.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method).', 'type' => 'string', 'required' => false, 'example' => '["39.XX.XX.197"]', 'title' => ''],
],
[
'name' => 'IsAccessProduct',
'in' => 'query',
'schema' => ['description' => 'Specifies whether a Layer 7 proxy is deployed in front of WAF (such as Anti-DDoS Pro or CDN), that is, whether the client access traffic passes through other Layer 7 proxy forwarding before reaching WAF. Valid values:'."\n"
."\n"
.'- **0**: No.'."\n"
.'- **1**: Yes.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'AccessHeaderMode',
'in' => 'query',
'schema' => ['description' => 'The method that WAF uses to obtain the actual IP address of the client. Valid values:'."\n"
."\n"
.'- **0** (default): WAF reads the first value of the X-Forwarded-For (XFF) field in the request header as the client IP address.'."\n"
.'- **1**: WAF reads the value of a custom field that you specified in the request header as the client IP address.'."\n"
."\n"
.'> This parameter is required only when **IsAccessProduct** is set to **1** (indicating that a Layer 7 proxy is deployed in front of WAF).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'AccessHeaders',
'in' => 'query',
'schema' => ['description' => 'The list of custom fields used to obtain the client IP address, in the `["header1","header2",……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessHeaderMode** is set to **1** (indicating that WAF reads the value of a custom field in the request header as the client IP address).', 'type' => 'string', 'required' => false, 'example' => '["X-Client-IP"]', 'title' => ''],
],
[
'name' => 'LoadBalancing',
'in' => 'query',
'schema' => ['description' => 'The load balancing algorithm used for back-to-origin. Valid values:'."\n"
."\n"
.'- **0**: IP Hash.'."\n"
.'- **1**: Round Robin.'."\n"
.'- **2**: Least Time.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'LogHeaders',
'in' => 'query',
'schema' => ['description' => 'The traffic tag field and value of the domain name, used to mark traffic processed by WAF.'."\n"
."\n"
.'The format of this parameter value is `[{"k":"_key_","v":"_value_"}]`, where `_key_` specifies the custom request header field and `_value_` specifies the value set for the field.'."\n"
."\n"
.'By specifying custom request header fields and their corresponding values, when traffic to the domain name passes through WAF, WAF automatically adds the custom field values to the request header as traffic tags, facilitating statistics collection by backend services.'."\n"
."\n"
.'> If the custom header field already exists in the request, the system overwrites the value of the custom field in the request with the specified traffic tag value.', 'type' => 'string', 'required' => false, 'example' => '[{"k":"ALIWAF-TAG","v":"Yes"}]', 'title' => ''],
],
[
'name' => 'HttpPort',
'in' => 'query',
'schema' => ['description' => 'The list of HTTP protocol ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method). Setting this parameter indicates that the domain name uses the HTTP protocol. **HttpPort** and **HttpsPort** cannot both be empty.', 'type' => 'string', 'required' => false, 'example' => '[80]', 'title' => ''],
],
[
'name' => 'HttpsPort',
'in' => 'query',
'schema' => ['description' => 'The list of HTTPS protocol ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method). Setting this parameter indicates that the domain name uses the HTTPS protocol. **HttpPort** and **HttpsPort** cannot both be empty.', 'type' => 'string', 'required' => false, 'example' => '[443]', 'title' => ''],
],
[
'name' => 'Http2Port',
'in' => 'query',
'schema' => ['description' => 'The list of HTTP 2.0 protocol ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **HttpsPort** is not empty (indicating that the domain name uses the HTTPS protocol).', 'type' => 'string', 'required' => false, 'example' => '[443]', 'title' => ''],
],
[
'name' => 'HttpToUserIp',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable HTTP back-to-origin. After this feature is enabled, HTTPS requests are forwarded to the origin server over HTTP, and the default back-to-origin port is 80. Valid values:'."\n"
."\n"
.'- **0** (default): Disabled.'."\n"
.'- **1**: Enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **HttpsPort** is not empty (indicating that the domain name uses the HTTPS protocol).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'HttpsRedirect',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable HTTPS forced redirect. After this feature is enabled, HTTP requests from clients are forcibly redirected to HTTPS requests, and the default redirect port is 443. Valid values:'."\n"
."\n"
.'- **0** (default): Disabled.'."\n"
.'- **1**: Enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **HttpsPort** is not empty (indicating that the domain name uses the HTTPS protocol).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'ClusterType',
'in' => 'query',
'schema' => ['description' => 'The type of the WAF protection cluster. Valid values:'."\n"
."\n"
.'- **0** (default): Physical cluster.'."\n"
.'- **1**: Virtual cluster, that is, WAF exclusive cluster.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. The default value is empty, indicating that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'ConnectionTime',
'in' => 'query',
'schema' => ['description' => 'The connection timeout period of the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **ClusterType** is set to **1** (indicating that the domain name uses a WAF exclusive cluster).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '5', 'example' => '5', 'title' => ''],
],
[
'name' => 'ReadTime',
'in' => 'query',
'schema' => ['description' => 'The read connection timeout period of the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **ClusterType** is set to **1** (indicating that the domain name uses a WAF exclusive cluster).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '120', 'example' => '120', 'title' => ''],
],
[
'name' => 'WriteTime',
'in' => 'query',
'schema' => ['description' => 'The write connection timeout period of the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **ClusterType** is set to **1** (indicating that the domain name uses a WAF exclusive cluster).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '120', 'example' => '120', 'title' => ''],
],
[
'name' => 'AccessType',
'in' => 'query',
'schema' => ['description' => 'The access method of the domain name. Valid values:'."\n"
."\n"
.'- **waf-cloud-dns** (default): CNAME access.'."\n"
."\n"
.'- **waf-cloud-native**: Transparent access.', 'type' => 'string', 'required' => false, 'example' => 'waf-cloud-dns', 'title' => ''],
],
[
'name' => 'CloudNativeInstances',
'in' => 'query',
'schema' => ['description' => 'The server and port configuration list for transparent access, in the string format of a JSON array. Each element in the JSON array is a structure that contains the following fields:'."\n"
."\n"
.'- **ProtocolPortConfigs**: JSON Array | Required | The protocol and port configuration list. Each element in the JSON array is a structure that contains the following fields:'."\n"
.' - **Ports**: Array | Required | The list of ports, in the `[port1,port2,……]` format.'."\n"
.' - **Protocol**: String | Required | The protocol type. Valid values: **http**, **https**.'."\n"
.'- **CloudNativeProductName**: String | Required | The type of the cloud service instance. Valid values: **ECS**, **SLB**, **ALB**.'."\n"
.'- **RedirectionTypeName**: String | Required | The type of the redirection port. Valid values: **ECS** (ECS port), **SLB-L4** (SLB Layer 4 port), **SLB-L7** (SLB Layer 7 port), **ALB** (ALB port).'."\n"
.'- **InstanceId**: String | Required | The ID of the cloud service instance.'."\n"
.'- **IPAddressList**: Array | Required | The list of public IP addresses of the cloud service instance, in the `["ip1","ip2",……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-native** (indicating that the domain name uses the transparent access method).', 'type' => 'string', 'required' => false, 'example' => '[{"ProtocolPortConfigs":[{"Ports":[80],"Protocol":"http"}],"RedirectionTypeName":"ALB","InstanceId":"alb-s65nua68wdedsp****","IPAddressList":["182.XX.XX.113"],"CloudNativeProductName":"ALB"}]', 'title' => ''],
],
[
'name' => 'IpFollowStatus',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the IPv4/IPv6 back-to-origin protocol follow feature when the origin server addresses include both IPv4 and IPv6 addresses. After this feature is enabled, WAF forwards requests from IPv4 addresses to the IPv4 origin server and forwards requests from IPv6 addresses to the IPv6 origin server. Valid values:'."\n"
."\n"
.'- **0** (default): Disabled.'."\n"
.'- **1**: Enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'SniStatus',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable back-to-origin SNI. Back-to-origin SNI means that when WAF forwards client requests to the origin server and performs a TLS handshake with the origin server, WAF specifies the host to access through the SNI extension field (Server Name Indicator extension) and establishes an HTTPS connection with that host. If your origin server has multiple virtual hosts (corresponding to different domain names), you need to enable back-to-origin SNI. Valid values:'."\n"
.'- **0**: Disabled.'."\n"
.'- **1**: Enabled.'."\n"
."\n"
.'For WAF instances in the China mainland, back-to-origin SNI is disabled by default. For WAF instances outside the China mainland, back-to-origin SNI is enabled by default.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name uses the CNAME access method) and **HttpsPort** is not empty (indicating that the domain name uses the HTTPS protocol).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'SniHost',
'in' => 'query',
'schema' => ['description' => 'The custom value of the SNI extension field. If this parameter is not set, the value of the **Host** field in the request header is used as the value of the SNI extension field by default.'."\n"
."\n"
.'In most cases, you do not need to customize the SNI, unless your business has special configuration requirements and you want WAF to use an SNI different from the actual request Host in the back-to-origin request (that is, the custom SNI set here).'."\n"
."\n"
.'> This parameter is required only when **SniStatus** is set to **1** (indicating that back-to-origin SNI is enabled).', 'type' => 'string', 'required' => false, 'example' => 'waf.example.com', 'title' => ''],
],
[
'name' => 'Retry',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to retry when WAF fails to forward requests to the origin server. Valid values:'."\n"
."\n"
.'- **true** (default): Retry.'."\n"
.'- **false**: Do not retry.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'Keepalive',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable persistent connections. Valid values:'."\n"
."\n"
.'- **true** (default): Enable persistent connections.'."\n"
."\n"
.'- **false**: Disable persistent connections.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'KeepaliveRequests',
'in' => 'query',
'schema' => ['description' => 'The number of requests that can reuse a persistent connection. Valid values: 60 to 1000.'."\n"
."\n"
.'> The number of requests that can reuse a persistent connection after persistent connections are enabled.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '1000', 'minimum' => '60', 'default' => '1000', 'required' => false, 'example' => '1000', 'title' => ''],
],
[
'name' => 'KeepaliveTimeout',
'in' => 'query',
'schema' => ['description' => 'The timeout period of idle persistent connections. Valid values: 1 to 60. Default value: 15. Unit: seconds.'."\n"
."\n"
.'> The period after which idle persistent connections are released.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '3600', 'minimum' => '1', 'default' => '15', 'required' => false, 'example' => '15', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: China mainland.'."\n"
."\n"
.'- **ap-southeast-1**: Outside the China mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Cname' => ['description' => 'The CNAME address assigned by WAF to the domain name.'."\n"
."\n"
.'> This parameter is returned only when the domain name uses the CNAME access method (the request parameter **AccessType** is set to **waf-cloud-dns**).', 'type' => 'string', 'example' => 'mmspx7qhfvnfzggheh1g2wnbhog66vcv.****.com', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Cname\\": \\"mmspx7qhfvnfzggheh1g2wnbhog66vcv.****.com\\",\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Add domain name configuration',
'summary' => 'Add a domain name to a WAF instance for protection.',
'requestParamsDescription' => 'When you call this API operation, in addition to the request parameters described in this topic, you must also include Alibaba Cloud API common request parameters. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format of API calls, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-28T12:42:34.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-05-23T05:46:03.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-08-22T10:01:08.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDomain'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateProtectionModuleRule' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name for which you want to add protection rule configurations.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection module to configure. Valid values:'."\n"
."\n"
.'- **waf-codec**: Rule engine decoding settings.'."\n"
."\n"
.'- **tamperproof**: Website tamper-proofing rule configurations.'."\n"
."\n"
.'- **dlp**: Data leakage prevention rule configurations.'."\n"
."\n"
.'- **ng_account**: Account security rule configurations.'."\n"
."\n"
.'- **antifraud**: Data risk control protection request configurations.'."\n"
."\n"
.'- **antifraud_js**: Data risk control JS insertion page configurations.'."\n"
."\n"
.'- **bot_algorithm**: Bot management intelligent algorithm rules.'."\n"
."\n"
.'- **bot_wxbb_pkg**: App protection version protection rules.'."\n"
."\n"
.'- **bot_wxbb**: App protection path protection rules.'."\n"
."\n"
.'- **ac_custom**: Custom protection policy rule configurations.'."\n"
."\n"
.'- **whitelist**: Whitelist rule configurations.', 'type' => 'string', 'required' => true, 'example' => 'ac_custom', 'title' => ''],
],
[
'name' => 'Rule',
'in' => 'query',
'schema' => ['description' => 'The rule configuration content, which is a string converted from a JSON object constructed with a set of parameters.'."\n"
."\n"
.'> The specific parameters vary depending on the protection module configuration (**DefenseType**) that is specified. For more information, see the detailed description of the Rule parameter.', 'type' => 'string', 'required' => true, 'example' => ' {"action":"monitor","name":"test","scene":"custom_acl","conditions":[{"opCode":1,"key":"URL","values":"/example"}]}', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. The default value is empty, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Create a configuration rule in a WAF protection module',
'summary' => 'Creates a configuration rule in a specified WAF protection module, such as Web Intrusion Prevention, Data Security, Advanced Protection, Bot Management, Access Control, or Rate Limiting.',
'description' => 'This API is used to create rule configurations in a specified WAF protection module, including Web Intrusion Prevention, Data Security, Advanced Protection, Bot Management, Access Control, and Rate Limiting. You can specify the protection module by setting the **DefenseType** parameter value. For the specific meanings of the parameter values, see the description of the **DefenseType** request parameter.'."\n"
.'Note that to ensure system documentation, the single-user QPS limit is 10 requests per second. Exceeding the limit will result in API call throttling, which may affect your business. Please make calls appropriately.',
'requestParamsDescription' => '**Detailed description of the Rule parameter**'."\n"
."\n"
.' - The JSON string corresponding to rule engine decoding settings (**waf-codec**) contains the following parameters:'."\n"
."\n"
.' - **codecList**: Array type | Required | The decoding configurations to enable. You can view the supported parameter values in the Web Application Firewall console.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "codecList":["url","base64"]'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to website tamper-proofing rule configurations (**tamperproof**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String type | Required | The specific URL to protect.'."\n"
.' - **name**: String type | Required | The rule name.'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "uri":"http://www.aliyundoc.com/example"'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to data leakage prevention rule configurations (**dlp**) contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **conditions**: Array type | Required | The match conditions described in JSON string format. A maximum of two match conditions can be set, and the relationship between the conditions is AND. This parameter contains the following sub-parameters:'."\n"
."\n"
.' - **key**: The match item. Valid values:'."\n"
."\n"
.' - **0**: The URL to protect.'."\n"
.' - **10**: Sensitive information.'."\n"
.' - **11**: Response code.'."\n"
.' > You cannot set match conditions for both response code (**11**) and sensitive information (**10**) simultaneously in the **conditions** parameter.'."\n"
."\n"
.' - **operation**: The match logic. The value is fixed to **1**, which indicates Contains.'."\n"
."\n"
.' - **value**: The match condition value described in JSON string format. Multiple condition values are supported. This parameter contains the following sub-parameters:'."\n"
."\n"
.' - **v**: Applicable only when the match item (**key**) is URL (**0**) or response code (**11**).'."\n"
.' - URL: When `"key":0`, the value is a URL address.'."\n"
.' - Response code: When `"key":11`, valid values include **400**, **401**, **402**, **403**, **404**, **405-499**, **500**, **501**, **502**, **503**, **504**, and **505-599**.'."\n"
.' - **k**: Applicable only when the match item (**key**) is sensitive information (**10**). Valid values:'."\n"
.' - **100**: ID card numbers.'."\n"
.' - **101**: Credit card numbers.'."\n"
.' - **102**: Phone numbers.'."\n"
.' - **103**: Default sensitive words.'."\n"
."\n"
.' - **action**: The match action. Valid values:'."\n"
.' - **3**: Alert.'."\n"
.' - **10**: Sensitive information filtering. This action is applicable only to match conditions that contain sensitive information (`"key":10`).'."\n"
.' - **11**: Return the built-in block page. This action is applicable only to match conditions that contain response codes (`"key":11`).'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "conditions":[{"key":11,"operation":1,"value":[{"v":401}]},{"key":"0","operation":1,"value":[{"v":"www.aliyundoc.com"}]}],'."\n"
.' "action":3'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to account security rule configurations (**ng_account**) contains the following parameters:'."\n"
."\n"
.' - **url_path**: String type | Required | The detection interface, expressed as a URL path. It must start with a forward slash (/).'."\n"
.' - **method**: String type | Required | The request method to detect, including POST, GET, PUT, and DELETE. Multiple request methods are separated by commas (,).'."\n"
.' - **account_left**: String type | Required | The account parameter name.'."\n"
.' - **password_left**: String type | Optional | The password parameter name.'."\n"
.' - **action**: String type | Required | The protection action. Valid values:'."\n"
.' - **monitor**: Alert.'."\n"
.' - **block**: Block.'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "url_path":"/example",'."\n"
.' "method":"POST,GET,PUT,DELETE",'."\n"
.' "account_left":"aaa",'."\n"
.' "password_left:"123",'."\n"
.' "action":"monitor"'."\n"
.' }'."\n"
.' ``` '."\n"
."\n"
.'- The JSON string corresponding to data risk control protection request configurations (**antifraud**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String type | Required | The specific protection request URL.'."\n"
.' '."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "http://1.example.com/example"'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to data risk control JS insertion page configurations (**antifraud_js**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String type | Required | The URL of the page into which the data risk control JS is inserted. The system inserts the data risk control JS into all pages under the specified URL path. The value must start with a forward slash (/).'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "/example/example"'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to Bot management intelligent algorithm rule configurations (**bot_algorithm**) contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **algorithmName**: String type | Required | The algorithm name. Valid values:'."\n"
.' - **RR**: Dedicated resource crawler identification algorithm.'."\n"
.' - **PR**: Targeted path crawler identification algorithm.'."\n"
.' - **DPR**: Parameter polling crawler identification algorithm.'."\n"
.' - **SR**: Dynamic IP crawler identification algorithm.'."\n"
.' - **IND**: Proxy device crawler identification algorithm.'."\n"
.' - **Periodicity**: Periodicity-based crawler identification algorithm.'."\n"
.' - **timeInterval**: Integer type | Required | The detection period. Valid values: 30, 60, 120, 300, and 600. Unit: seconds.'."\n"
.' - **action**: String type | Required | The disposition action. Valid values:'."\n"
.' - **monitor**: Monitor.'."\n"
.' - **captcha**: Slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: Block. When Block is selected as the disposition action, the block duration (**blocktime**) parameter must be specified.'."\n"
.' - **blocktime**: Integer type | Optional | The block duration. Unit: minutes. Valid values: 1 to 600.'."\n"
.' - **config**: String type | Required | The algorithm configuration information in JSON string format. The specific sub-parameters in the algorithm configuration are related to the selected algorithm name (**algorithmName**).'."\n"
.' - The configuration information for the dedicated resource crawler identification algorithm (**RR**) contains the following sub-parameters:'."\n"
.' - **resourceType**: Integer type | Optional | The type of the requested resource. Valid values:'."\n"
.' - **1**: Dynamic resource type.'."\n"
.' - **2**: Static resource type.'."\n"
.' - **-1**: Custom resource type. When Custom resource type is selected, you must also specify the **extensions** parameter with specific resource suffixes in string format, with multiple suffixes separated by commas (,), for example, `css,jpg,xls`.'."\n"
.' - **minRequestCountPerIp**: Integer type | Required | The range of IPs to detect during the detection period. Only IPs with access request counts greater than or equal to this value will be detected. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float type | Required | The risk determination condition, which is the threshold for the ratio of IP access requests that access the specified resource type (for the dedicated resource crawler identification algorithm) or the threshold for the ratio of IP access requests that access the specified path (for the targeted path crawler identification algorithm). An IP is determined as risky when the ratio exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the targeted path crawler identification algorithm (**PR**) contains the following sub-parameters:'."\n"
.' - **keyPathConfiguration**: Array type | Optional | The request path information, supporting a maximum of 10 paths. This sub-parameter is required only when the targeted path crawler identification algorithm is used. It is expressed in JSON string format and contains the following parameters:'."\n"
.' - **method**: String type | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String type | Required | The request path keyword. It must start with a forward slash (/).'."\n"
.' - **matchType**: String type | Required | The match method, used in combination with the request path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regular expression match).'."\n"
.' - **minRequestCountPerIp**: Integer type | Required | The range of IPs to detect during the detection period. Only IPs with access request counts greater than or equal to this value will be detected. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float type | Required | The risk determination condition, which is the threshold for the ratio of IP access requests that access the specified resource type (for the dedicated resource crawler identification algorithm) or the threshold for the ratio of IP access requests that access the specified path (for the targeted path crawler identification algorithm). An IP is determined as risky when the ratio exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the parameter polling crawler identification algorithm (**DPR**) contains the following sub-parameters:'."\n"
.' - **method**: String type | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **urlPattern**: String type | Required | The key parameter path. It must start with a forward slash (/). Use {} to represent key parameters. When multiple {} are configured, these parameters are concatenated as the key parameter. For example, `/company/{}/{}/{}/user.php?uid={}`.'."\n"
.' - **minRequestCountPerIp**: Integer type | Required | The range of IPs to detect during the detection period. Only IPs with access request counts greater than or equal to this value will be detected. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float type | Required | The risk determination condition, which is the threshold for the ratio of different key parameter values in IP access requests. An IP is determined as risky when the ratio exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the dynamic IP crawler identification algorithm (**SR**) contains the following sub-parameters:'."\n"
.' - **maxRequestCountPerSrSession**: Integer type | Required | Defines abnormal sessions by setting the minimum number of requests per session. A session is considered abnormal if the number of requests within a single session is less than this value. Valid values: 1 to 8.'."\n"
.' - **minSrSessionCountPerIp**: Integer type | Required | The risk determination condition, which is the threshold for the number of abnormal sessions in IP access requests. An IP is determined as risky when the number of abnormal sessions in a single IP\'s access requests exceeds this value. Valid values: 5 to 300.'."\n"
.' - The configuration information for the proxy device crawler identification algorithm (**IND**) contains the following sub-parameters:'."\n"
.' - **minIpCount**: Integer type | Required | The malicious device determination condition, which is the threshold for the number of IP changes associated with a device\'s WIFI connections. The device is determined as risky when this threshold is exceeded. Valid values: 5 to 500.'."\n"
.' - **keyPathConfiguration**: Array type | Optional | The detection path information, supporting a maximum of 10 paths. It is expressed in JSON string format and contains the following parameters:'."\n"
.' - **method**: String type | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String type | Required | The detection path keyword. It must start with a forward slash (/).'."\n"
.' - **matchType**: String type | Required | The match method, used in combination with the detection path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regular expression match).'."\n"
.' - The configuration information for the periodicity-based crawler identification algorithm (**Periodicity**) contains the following sub-parameters:'."\n"
.' - **minRequestCountPerIp**: Integer type | Required | The range of IPs to detect during the detection period. Only IPs with access request counts greater than or equal to this value will be detected. Valid values: 5 to 10000.'."\n"
.' - **level**: Integer type | Required | The risk determination level, which indicates the clarity of the periodicity features of the access IP. Valid values:'."\n"
.' - **0**: Obvious.'."\n"
.' - **1**: Moderate.'."\n"
.' - **2**: Weak.'."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"Proxy device crawler identification",'."\n"
.' "algorithmName":"IND",'."\n"
.' "timeInterval":"60",'."\n"
.' "action":"monitor",'."\n"
.' "config":{'."\n"
.' "minIpCount":5,'."\n"
.' "keyPathConfiguration":[{"url":"/index","method":"GET","matchType":"prefix"}]'."\n"
.' }'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to App protection version protection rule configurations (**bot_wxbb_pkg**) contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **action**: String type | Required | The disposition action. Valid values:'."\n"
.' - **test**: Monitor.'."\n"
.' - **close**: Block.'."\n"
.' - **nameList**: Array type | Required | The legitimate version information. A maximum of five rules can be specified. It is expressed in JSON string format and contains the following parameters:'."\n"
.' - **name**: String type | Required | The legitimate package name.'."\n"
.' - **signList**: Array type | Required | The corresponding package signatures. A maximum of 15 signatures can be specified, separated by commas (,).'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"test",'."\n"
.' "action":"close",'."\n"
.' "nameList":[{'."\n"
.' "name":"apk-xxxx",'."\n"
.' "signList":["xxxxxx","xxxxx","xxxx","xx"]'."\n"
.' }]'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to App protection path protection rule configurations (**bot_wxbb**) contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **uri**: String type | Required | The protection path. It must start with a forward slash (/).'."\n"
.' - **matchType**: String type | Required | The match method. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regular expression match).'."\n"
.' - **arg**: String type | Required | The included parameter, used in combination with the match method (**matchType**) parameter to specify the protection path configuration.'."\n"
.' - **action**: String type | Required | The disposition action. Valid values:'."\n"
.' - **test**: Monitor.'."\n"
.' - **close**: Block.'."\n"
.' - **hasTag**: Boolean type | Required | Specifies whether a custom signature field is required.'."\n"
.' - **true**: Yes. When a custom signature field is required, you must specify the **wxbbVmpFieldType** and **wxbbVmpFieldValue** parameters to define the type and value of the signature field.'."\n"
.' - **false**: No.'."\n"
.' - **wxbbVmpFieldType**: Integer type | Optional | The type of the custom signature field. This parameter is required when the **hasTag** parameter is set to **true**. Valid values:'."\n"
.' - **0**: Header.'."\n"
.' - **1**: Parameter.'."\n"
.' - **2**: Cookie.'."\n"
.' - **wxbbVmpFieldValue**: String type | Optional | The value of the custom signature field. This parameter is required when the **hasTag** parameter is set to **true**.'."\n"
.' - **blockInvalidSign**: Integer type | Required | Specifies whether to perform the disposition action on invalid signatures. The value is fixed to **1**. This is the default protection policy for path protection rules.'."\n"
.' - **blockProxy**: Integer type | Optional | Specifies whether to perform the disposition action on proxies. The value is fixed to **1**. This parameter does not need to be specified if no disposition action is required for proxy behavior.'."\n"
.' - **blockSimulator**: Integer type | Optional | Specifies whether to perform the disposition action on simulators. The value is fixed to **1**. This parameter does not need to be specified if no disposition action is required for simulator behavior.'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"test",'."\n"
.' "uri":"/index",'."\n"
.' "matchType":"all",'."\n"
.' "arg":"test",'."\n"
.' "action":"close",'."\n"
.' "hasTag":true,'."\n"
.' "wxbbVmpFieldType":2,'."\n"
.' "wxbbVmpFieldValue":"test",'."\n"
.' "blockInvalidSign":1,'."\n"
.' "blockProxy":1'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- Custom protection policy rule configurations (**ac_custom**) use the **scene** parameter in the corresponding JSON string to set ACL access control rules and CC attack protection rules.'."\n"
."\n"
.' - To set an ACL access control rule (the **scene** parameter value is **custom_acl**), the corresponding JSON string contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **scene**: String type | Required | The protection type. When setting an ACL access control rule, the value is fixed to **custom_acl**.'."\n"
.' - **action**: String type | Required | The disposition action. Valid values:'."\n"
.' - **monitor**: Monitor.'."\n"
.' - **captcha**: Slider CAPTCHA.'."\n"
.' - **captcha_strict**: Strict slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: Block.'."\n"
."\n"
.' - **conditions**: Array type | Required | The match conditions. A maximum of five match conditions can be specified. It is described in JSON string format and contains the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
."\n"
.' > Not every match field (**key**) of a custom rule supports all logical operators (**opcode**). For the relationship between different match fields and supported logical operators, refer to the WAF console at [WAF console](https://yundun.console.aliyun.com/?p=wafnext).'."\n"
."\n"
.' - **11**: Equals.'."\n"
.' - **10**: Does not equal.'."\n"
.' - **41**: Equals one of multiple values.'."\n"
.' - **50**: Does not equal any value.'."\n"
.' - **1**: Contains.'."\n"
.' - **0**: Does not contain.'."\n"
.' - **51**: Contains one of multiple values.'."\n"
.' - **52**: Does not contain any value.'."\n"
.' - **82**: Exists.'."\n"
.' - **2**: Does not exist.'."\n"
.' - **21**: Length equals.'."\n"
.' - **22**: Length is greater than.'."\n"
.' - **20**: Length is less than.'."\n"
.' - **60**: Does not match regular expression.'."\n"
.' - **61**: Matches regular expression.'."\n"
.' - **72**: Prefix match.'."\n"
.' - **81**: Suffix match.'."\n"
.' - **80**: Content is empty.'."\n"
."\n"
.' - **values**: The match content. Fill in the corresponding content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters in the match condition are related to the specified match field (**key**). For detailed information about supported match condition configurations, see [Match condition field description](~~147945~~).'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "action":"monitor",'."\n"
.' "name":"test",'."\n"
.' "scene":"custom_acl",'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}]'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.' - To set a CC attack protection rule (the **scene** parameter value is **custom_cc**), the corresponding JSON string contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **scene**: String type | Required | The protection type. When setting a CC attack protection rule, the value is fixed to **custom_cc**.'."\n"
.' - **conditions**: Array type | Required | The match conditions. A maximum of five match conditions can be specified. It is described in JSON string format and contains the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
."\n"
.' > Not every match field (**key**) of a custom rule supports all logical operators (**opcode**). For the relationship between different match fields and supported logical operators, refer to the WAF console at [WAF console](https://yundun.console.aliyun.com/?p=wafnext).'."\n"
.' '."\n"
.' - **11**: Equals.'."\n"
.' - **10**: Does not equal.'."\n"
.' - **41**: Equals one of multiple values.'."\n"
.' - **50**: Does not equal any value.'."\n"
.' - **1**: Contains.'."\n"
.' - **0**: Does not contain.'."\n"
.' - **51**: Contains one of multiple values.'."\n"
.' - **52**: Does not contain any value.'."\n"
.' - **82**: Exists.'."\n"
.' - **2**: Does not exist.'."\n"
.' - **21**: Length equals.'."\n"
.' - **22**: Length is greater than.'."\n"
.' - **20**: Length is less than.'."\n"
.' - **60**: Does not match regular expression.'."\n"
.' - **61**: Matches regular expression.'."\n"
.' - **72**: Prefix match.'."\n"
.' - **81**: Suffix match.'."\n"
.' - **80**: Content is empty.'."\n"
."\n"
.' - **values**: The match content. Fill in the corresponding content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters in the match condition are related to the specified match field (**key**).'."\n"
."\n"
.' - **action**: String type | Required | The disposition action. Valid values:'."\n"
."\n"
.' - **monitor**: Monitor.'."\n"
.' - **captcha**: Slider CAPTCHA.'."\n"
.' - **captcha_strict**: Strict slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: Block.'."\n"
."\n"
.' - **ratelimit**: JSON format | Required | The rate limiting settings. It is described in JSON string format and contains the following parameters:'."\n"
."\n"
.' - **target**: String type | Required | The type of the statistical object. Valid values:'."\n"
.' - **remote_addr**: IP.'."\n"
.' - **cookie.acw_tc**: Session.'."\n"
.' - **queryarg**: Custom parameter. When Custom parameter is selected, you must specify the name of the custom parameter in the **subkey** parameter.'."\n"
.' - **cookie**: Custom cookie. When Custom cookie is selected, you must specify the cookie content in the **subkey** parameter.'."\n"
.' - **header**: Custom header. When Custom header is selected, you must specify the header content in the **subkey** parameter.'."\n"
.' - **subkey**: String type | Optional | Required when the **target** parameter value is **cookie**, **header**, or **queryarg**. Specify the corresponding information in the **subkey** parameter.'."\n"
.' - **interval**: Integer type | Required | The statistical duration in seconds, which is the statistical period for access counts. It is used in combination with the threshold (**threshold**) parameter.'."\n"
.' - **threshold**: Integer type | Required | The threshold for the number of times a single statistical object is allowed to access the protected URL within the detection duration.'."\n"
.' - **status**: JSON format | Optional | The response code frequency settings. It is described in JSON string format and contains the following parameters:'."\n"
.' - **code**: Integer type | Required | The specified response code.'."\n"
.' - **count**: Integer type | Optional | The threshold for the number of occurrences, meaning the protection rule is triggered when the specified response code occurs more than this threshold. Valid values: 1 to 999999999. The **count** parameter and the **ratio** parameter are mutually exclusive and cannot be configured simultaneously.'."\n"
.' - **ratio**: Integer type | Optional | The threshold for the occurrence ratio (percentage), meaning the protection rule is triggered when the specified response code occurrence ratio exceeds this threshold. Valid values: 1 to 100. The **count** parameter and the **ratio** parameter are mutually exclusive and cannot be configured simultaneously.'."\n"
.' - **scope**: String type | Required | The effective scope. Valid values:'."\n"
.' - **rule**: Within the current feature match scope.'."\n"
.' - **domain**: Within the domain scope of the current rule.'."\n"
.' - **ttl**: Integer type | Required | The effective duration of the disposition action in seconds. Valid values: 60 to 86400.'."\n"
."\n"
.' - **Example**'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"CC protection",'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}],'."\n"
.' "action":"block", '."\n"
.' "scene":"custom_cc", '."\n"
.' "ratelimit":{'."\n"
.' "target": "remote_addr", '."\n"
.' "interval": 300,'."\n"
.' "threshold": 2000,'."\n"
.' "status": {'."\n"
.' "code": 404,'."\n"
.' "count": 200'."\n"
.' },'."\n"
.' "scope": "rule",'."\n"
.' "ttl": 1800'."\n"
.' }'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string corresponding to website whitelist rule configurations (**whitelist**) contains the following parameters:'."\n"
."\n"
.' - **name**: String type | Required | The rule name.'."\n"
.' - **tags**: Array type | Required | The modules to skip during detection. Different types of whitelist rules support different modules (**tags**) to skip. The details are as follows:'."\n"
."\n"
.' > The values of **tags** can only include the values listed under the specific whitelist type. For example, the **tags** values cannot include both **regular** and **cc** simultaneously, because **regular** belongs to the Web Intrusion Prevention whitelist and **cc** belongs to the Access Control/Rate Limiting whitelist.'."\n"
."\n"
.' - To set a global whitelist, **tags** valid values:'."\n"
.' - **waf**: Skip detection of all protection modules.'."\n"
."\n"
.' - To set a Web Intrusion Prevention whitelist, **tags** valid values (multiple values can be set):'."\n"
.' - **regular**: Skip detection by the rule engine (including all protection rules).'."\n"
.' - **regular_rule**: Skip detection of specified protection rules in the rule engine (if this value is selected, you must set the rule IDs to skip using the **regularRules** parameter).'."\n"
.' - **regular_type**: Skip detection of specified types of protection rules in the rule engine (if this value is selected, you must set the rule types to skip using the **regularTypes** parameter).'."\n"
.' - **deeplearning**: Skip detection by the deep learning engine.'."\n"
."\n"
.' - To set an Access Control/Rate Limiting whitelist, **tags** valid values (multiple values can be set):'."\n"
.' - **cc**: Skip detection by the CC security protection module.'."\n"
.' - **customrule**: Skip detection by the custom protection policy.'."\n"
.' - **blacklist**: Skip detection by the IP blacklist module.'."\n"
.' - **antiscan**: Skip detection by the scan protection module.'."\n"
."\n"
.' - To set a Data Security whitelist, **tags** valid values (multiple values can be set):'."\n"
.' - **dlp**: Skip detection by the data leakage prevention module.'."\n"
.' - **tamperproof**: Skip detection by the website tamper-proofing module.'."\n"
.' - **account**: Skip detection by the account security module.'."\n"
."\n"
.' - To set a Bot Management whitelist, **tags** valid values (multiple values can be set):'."\n"
.' - **bot_intelligence**: Skip detection by the crawler threat intelligence module.'."\n"
.' - **bot_algorithm**: Skip detection by the typical crawler behavior identification module.'."\n"
.' - **bot_wxbb**: Skip detection by the App protection module.'."\n"
.' - **antifraud**: Skip detection by the data risk control module.'."\n"
."\n"
.' - **regularRules**: Array type | Optional | The list of protection rule IDs to skip. This parameter is required if the **tags** parameter value contains **regular_rule**. You can view all Web attack protection rules in WAF and obtain the related rule IDs on the **Protection Rule Group** page of the [WAF console](https://yundun.console.aliyun.com/?p=wafnext) by using **Create Rule Group**. For more information, see [Customize protection rule groups](~~99262~~).'."\n"
.' - **regularTypes**: Array type | Optional | The list of protection rule types to skip. This parameter is required if the **tags** parameter value contains **regular_type**. Valid values:'."\n"
.' - **sqli**: SQL injection.'."\n"
.' - **xss**: Cross-site scripting (XSS).'."\n"
.' - **code_exec**: Code execution.'."\n"
.' - **lfilei**: Local file inclusion.'."\n"
.' - **rfilei**: Remote file inclusion.'."\n"
.' - **webshell**: WebShell.'."\n"
.' - **vvip**: Customized protection rules.'."\n"
.' - **other**: Other types.'."\n"
.' '."\n"
.' - **conditions**: Array type | Required | The match conditions. A maximum of five match conditions can be specified. It is described in JSON string format and contains the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
."\n"
.' > Not every match field (**key**) of a custom rule supports all logical operators (**opcode**). For the relationship between different match fields and supported logical operators, refer to the WAF console at [WAF console](https://yundun.console.aliyun.com/?p=wafnext).'."\n"
."\n"
.' - **11**: Equals.'."\n"
.' - **10**: Does not equal.'."\n"
.' - **41**: Equals one of multiple values.'."\n"
.' - **50**: Does not equal any value.'."\n"
.' - **1**: Contains or belongs to.'."\n"
.' - **0**: Does not contain or does not belong to.'."\n"
.' - **51**: Contains one of multiple values.'."\n"
.' - **52**: Does not contain any value.'."\n"
.' - **82**: Exists.'."\n"
.' - **2**: Does not exist.'."\n"
.' - **21**: Length equals.'."\n"
.' - **22**: Length is greater than.'."\n"
.' - **20**: Length is less than.'."\n"
.' - **60**: Does not match regular expression.'."\n"
.' - **61**: Matches regular expression.'."\n"
.' - **72**: Prefix match.'."\n"
.' - **81**: Suffix match.'."\n"
.' - **80**: Content is empty.'."\n"
.' - **30**: Value is less than.'."\n"
.' - **31**: Value is greater than.'."\n"
."\n"
.' - **values**: The match content. Fill in the corresponding content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters in the match condition are related to the specified match field (**key**).'."\n"
."\n"
.' - **Example**'."\n"
.' '."\n"
.' ```'."\n"
.' {'."\n"
.' "name": "test",'."\n"
.' "tags": ["cc","customrule"],'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}],'."\n"
.' }'."\n"
.' ``` '."\n"
."\n\n"
.'When calling the API, in addition to the request parameters described in this topic, you must also include the Alibaba Cloud API common request parameters. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format of the API call, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProtectionModuleRule'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DeleteDomain' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added to WAF.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Delete specified domain name configuration information',
'summary' => 'Deletes the configuration information of a specified domain name.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDomain'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DeleteInstance' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID of the WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group.'."\n"
."\n"
.'Default value: empty, which indicates the default resource group.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The unique identifier that Alibaba Cloud generated for this API request.', 'type' => 'string', 'example' => 'F35F45B0-5D6B-4238-BE02-A62D****E840', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F35F45B0-5D6B-4238-BE02-A62D****E840\\"\\n}","type":"json"}]',
'title' => 'Release a WAF instance',
'summary' => 'Releases a pay-as-you-go Web Application Firewall (WAF) instance or an expired subscription instance.',
'description' => 'After an instance is released, all data associated with the instance is permanently deleted and cannot be recovered. Proceed with caution.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteInstance'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DeleteProtectionModuleRule' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name for which you want to delete the protection rule.'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that are added to WAF.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection feature module to which the rule to be deleted belongs. Valid values:'."\n"
."\n"
.'- **waf-codec**: the decoding settings of the RegEx Protection DPI engine.'."\n"
."\n"
.'- **tamperproof**: web tamper-proofing rules.'."\n"
."\n"
.'- **dlp**: data leak prevention rules.'."\n"
."\n"
.'- **ng_account**: account security rules.'."\n"
."\n"
.'- **antifraud**: data risk control protection request configurations.'."\n"
."\n"
.'- **antifraud_js**: data risk control JS insertion page configurations.'."\n"
."\n"
.'- **bot_algorithm**: intelligent algorithm rules of Bot Management.'."\n"
."\n"
.'- **bot_wxbb_pkg**: version protection rules of App Protection.'."\n"
."\n"
.'- **bot_wxbb**: path protection rules of App Protection.'."\n"
."\n"
.'- **ac_custom**: custom protection policy rules.'."\n"
."\n"
.'- **whitelist**: whitelist rules.', 'type' => 'string', 'required' => true, 'example' => 'ac_custom', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the protection rule to delete.'."\n"
."\n"
.'> You can call [DescribeProtectionModuleRules](~~100398~~) to query the IDs of all rules in a specified protection module.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '42754', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-mp9153****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. By default, this parameter is empty, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '1557B42F-B889-460A-B17F-1DE5C5AD7FF2', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1557B42F-B889-460A-B17F-1DE5C5AD7FF2\\"\\n}","type":"json"}]',
'title' => 'Delete a rule from a protection module',
'summary' => 'Deletes a rule configured in a specified protection module by calling DeleteProtectionModuleRule.',
'description' => 'This operation deletes a rule configured in a specified protection module.'."\n"
.'To ensure system stability, the queries per second (QPS) for a single user is limited to 10. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProtectionModuleRule'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeCertMatchStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that is added to WAF.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'Certificate',
'in' => 'query',
'schema' => ['description' => 'The content of the certificate file.', 'type' => 'string', 'required' => true, 'example' => '-----BEGIN CERTIFICATE----- 62EcYPWd2Oy1vs6MTXcJSfN9*****9fmxWr2BFN2XbahgnsSXM48ixZJ4krc+1M+j2kcubVpsE2cgHdj4v8H6jUz9Ji4mr7vMNS6dXv8PUkl/qoDeNGCNdyTS5NIL5ir+g92cL8IGOkjgvhlqt9vc65Cgb4mL+n5+DV9uOyTZTW/MojmlgfUekC2xiXa54nxJf17Y1TADGSbyJbsC0Q9nIrHsPl8YKkvRWvIAqYxXZ7wRwWWmv4TMxFhWRiNY7yZIo2ZUhl02SIDNggIEeg== -----END CERTIFICATE-----', 'title' => ''],
],
[
'name' => 'PrivateKey',
'in' => 'query',
'schema' => ['description' => 'The content of the private key file.', 'type' => 'string', 'required' => true, 'example' => '-----BEGIN RSA PRIVATE KEY----- DADTPZoOHd9WtZ3UKHJTRgNQ****Qn2bqdKHop+B/dn/4VZL7Jt8zSDGM9sTMThLyvsmLQKBgQCr+ujntC1kN6pGBj2Fw2l/EA/W3rYEce2tyhjgmG7rZ+A/jVE9fld5sQra6ZdwBcQJaiygoIYoaMF2EjRwc0qwHaluq0C15f6ujSoHh2e+D5zdmkTg/3NKNjqNv6xA2gYpinVDzFdZ9Zujxvuh9o4Vqf0YF8bv5UK5G04RtKadOw== -----END RSA PRIVATE KEY-----', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'MatchStatus' => ['description' => 'Indicates whether the certificate and private key match.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MatchStatus\\": false,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Check whether the uploaded certificate and private key match for a domain name',
'summary' => 'Checks whether the certificate and private key uploaded for a specified domain name configuration match.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCertMatchStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeCertMatchStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeCertificates' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to obtain the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name for which you want to query the associated SSL certificates.'."\n"
."\n"
.'If you do not set this parameter, the SSL certificates associated with all domain names are queried.', 'type' => 'string', 'required' => false, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not set this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzz2e****pp7i', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'ECF65091-3704-55D5-BC88-EC208B0E238C', 'title' => ''],
'Certificates' => [
'description' => 'The SSL certificate information associated with the domain name.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'IsUsing' => ['description' => 'Indicates whether the certificate is currently used by the domain name. Valid values:'."\n"
."\n"
.'- **true**: The certificate is in use.'."\n"
.'- **false**: The certificate is not in use.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'CertificateName' => ['description' => 'The name of the certificate.', 'type' => 'string', 'example' => '*.aliyundoc.com', 'title' => ''],
'CertificateId' => ['description' => 'The ID of the certificate.', 'type' => 'integer', 'format' => 'int64', 'example' => '2329260', 'title' => ''],
'CommonName' => ['description' => 'The domain name that is bound to the certificate.', 'type' => 'string', 'example' => '*.aliyundoc.com', 'title' => ''],
'Sans' => [
'description' => 'The list of SAN (Subject Alternative Name) extension attributes of the certificate.',
'type' => 'array',
'items' => ['description' => 'Other domain names that are bound to the certificate.', 'type' => 'string', 'example' => '*.aliyundoc.com', 'title' => ''],
'title' => '',
'example' => '',
],
'EndTime' => ['description' => 'The expiration time of the certificate. The value is a Unix timestamp in UTC. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1971273600000', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ECF65091-3704-55D5-BC88-EC208B0E238C\\",\\n \\"Certificates\\": [\\n {\\n \\"IsUsing\\": false,\\n \\"CertificateName\\": \\"*.aliyundoc.com\\",\\n \\"CertificateId\\": 2329260,\\n \\"CommonName\\": \\"*.aliyundoc.com\\",\\n \\"Sans\\": [\\n \\"*.aliyundoc.com\\"\\n ],\\n \\"EndTime\\": 1971273600000\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query available certificates for a specified domain name',
'summary' => 'Queries the available existing certificates for a specified domain name, that is, certificates that are already managed in SSL Certificates Service.',
'description' => 'This API is used to query the list of SSL certificates associated with a domain name (purchased through Alibaba Cloud SSL Certificates Service or uploaded and managed in SSL Certificates Service), such as the certificate ID, name, associated domain name, and SAN (Subject Alternative Name) extension attributes. Note that to ensure system stability, the QPS for a single user is limited to 10 requests per second. If the limit is exceeded, API calls will be throttled, which may affect your business. Please call this API at a reasonable frequency.',
'requestParamsDescription' => 'When you call this API, in addition to the request parameters described in this topic, you must also include Alibaba Cloud API common request parameters. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format of the API, see the request example in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-04-18T02:30:35.000Z', 'description' => 'Response parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCertificates'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'yundun-waf:DescribeCertificates',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomain' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-7pp26f1****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to query.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all domain names that have been added to WAF protection.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D827FCFE-90A7-4330-9326-D33C8B4C7726', 'title' => ''],
'Domain' => [
'description' => 'The configuration information of the domain name.',
'type' => 'object',
'properties' => [
'HttpToUserIp' => ['description' => 'Indicates whether the HTTP back-to-origin feature is enabled. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method) and **HttpsPort** is not empty (indicating that the domain name uses HTTPS).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'SniStatus' => ['description' => 'Indicates whether back-to-origin Server Name Indication (SNI) is enabled. When back-to-origin SNI is enabled, WAF forwards client requests to the origin server and specifies the host to access through the SNI extension field (Server Name Indicator extension) during the TLS handshake with the origin server, and then establishes an HTTPS connection with the specified host. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added by using the CNAME method) and **HttpsPort** is not empty (indicating that the domain name uses HTTPS).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'IsAccessProduct' => ['description' => 'Indicates whether another Layer 7 proxy (such as Anti-DDoS Pro or CDN) is deployed in front of WAF, meaning whether client traffic passes through another Layer 7 proxy before reaching WAF. Valid values:'."\n"
."\n"
.'- **0**: no.'."\n"
.'- **1**: yes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'AccessHeaderMode' => ['description' => 'The method that WAF uses to obtain the originating IP address of the client. Valid values:'."\n"
."\n"
.'- **0**: WAF reads the first value of the X-Forwarded-For (XFF) field in the request header as the client IP address.'."\n"
.'- **1**: WAF reads the value of a custom field that you specify in the request header as the client IP address.'."\n"
."\n"
.'> This parameter is returned only when **IsAccessProduct** is set to **1** (indicating that another Layer 7 proxy service is deployed in front of WAF).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'HttpsRedirect' => ['description' => 'Indicates whether HTTPS forced redirect is enabled. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method) and **HttpsPort** is not empty (indicating that the domain name uses HTTPS).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'IpFollowStatus' => ['description' => 'Indicates whether the IPv4/IPv6 back-to-origin protocol follow feature is enabled. Valid values:'."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'LoadBalancing' => ['description' => 'The load balancing algorithm used for back-to-origin. Valid values:'."\n"
."\n"
.'- **0**: IP Hash.'."\n"
.'- **1**: round-robin.'."\n"
.'- **2**: Least Time.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'AccessType' => ['description' => 'The Website Config method. Valid values:'."\n"
.'- **waf-cloud-dns**: CNAME access.'."\n"
.'- **waf-cloud-native**: transparent access.', 'type' => 'string', 'example' => 'waf-cloud-dns', 'title' => ''],
'Version' => ['description' => 'The version of the current domain name configuration.', 'type' => 'integer', 'format' => 'int64', 'example' => '40', 'title' => ''],
'ClusterType' => ['description' => 'The cluster type of the WAF instance. Valid values:'."\n"
."\n"
.'- **0**: physical cluster.'."\n"
.'- **1**: virtual cluster, which is a WAF exclusive cluster.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'ReadTime' => ['description' => 'The read connection timeout period of the WAF cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '120', 'title' => ''],
'WriteTime' => ['description' => 'The write connection timeout period of the WAF cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '120', 'title' => ''],
'SniHost' => ['description' => 'The custom value of the SNI extension field. An empty value indicates that no custom SNI value is set. By default, the value of the **Host** field in the request header is used as the value of the SNI extension field.'."\n"
."\n"
.'> This parameter is returned only when **SniStatus** is set to **1** (indicating that back-to-origin SNI is enabled).', 'type' => 'string', 'example' => 'waf.example.com', 'title' => ''],
'ResourceGroupId' => ['description' => 'The ID of the resource group to which the WAF instance belongs.', 'type' => 'string', 'example' => 'rg-acfm2mkrunv****', 'title' => ''],
'Cname' => ['description' => 'The CNAME assigned by WAF to the domain name.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'string', 'example' => 'kdmqyi3ck7xogegxpiyfpb0fj21mgkxn.****.com', 'title' => ''],
'ConnectionTime' => ['description' => 'The connection timeout period of the WAF cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'LogHeaders' => [
'description' => 'The traffic tag fields and values of the domain name, which are used to mark traffic processed by WAF.'."\n"
."\n"
.'> This parameter is returned only when the traffic tag feature is enabled for the domain name.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'k' => ['description' => 'The name of the traffic tag field.', 'type' => 'string', 'example' => 'ALIWAF-TAG', 'title' => ''],
'v' => ['description' => 'The value of the traffic tag field.', 'type' => 'string', 'example' => 'Yes', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CloudNativeInstances' => [
'description' => 'The configuration list for transparent access.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-native** (indicating that the domain name is added to WAF by using the transparent access method).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RedirectionTypeName' => ['description' => 'The type of the traffic redirection port. Valid values:'."\n"
."\n"
.'- **SLB-L4**: redirects traffic from the Layer 4 listener port of a Classic Load Balancer (CLB, formerly SLB) instance to WAF for protection.'."\n"
.'- **SLB-L7**: redirects traffic from the Layer 7 listener port of a CLB instance to WAF for protection.'."\n"
.'- **ECS**: redirects traffic from the listener port of an Elastic Compute Service (ECS) server to WAF for protection.'."\n"
.'- **ALB**: redirects traffic from the HTTP or HTTPS listener port of an Application Load Balancer (ALB) instance to WAF for protection.', 'type' => 'string', 'example' => 'ALB', 'title' => ''],
'CloudNativeProductName' => ['description' => 'The type of the cloud service instance. Valid values:'."\n"
."\n"
.'- **SLB**: Classic Load Balancer (CLB, formerly SLB) instance.'."\n"
.'- **ECS**: Elastic Compute Service (ECS) server.'."\n"
.'- **ALB**: Application Load Balancer (ALB) instance.', 'type' => 'string', 'example' => 'ALB', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the cloud service instance.', 'type' => 'string', 'example' => 'alb-s65nua68wdedsp****', 'title' => ''],
'IPAddressList' => [
'description' => 'The list of public IP addresses of the cloud service instance.',
'type' => 'array',
'items' => ['description' => 'The public IP address of the cloud service instance.', 'type' => 'string', 'example' => '39.XX.XX.197', 'title' => ''],
'example' => '["39.XX.XX.197"]',
'title' => '',
],
'ProtocolPortConfigs' => [
'description' => 'The list of protocol and port configurations.',
'type' => 'array',
'items' => [
'description' => 'The protocol and port configuration.',
'type' => 'object',
'properties' => [
'Ports' => [
'description' => 'The list of ports.',
'type' => 'array',
'items' => ['description' => 'The port.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
'example' => '[80]',
'title' => '',
],
'Protocol' => ['description' => 'The protocol type. Valid values:'."\n"
.'- **http**: HTTP.'."\n"
.'- **https**: HTTPS.', 'type' => 'string', 'example' => 'http', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'HttpPort' => [
'description' => 'The list of HTTP ports.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).',
'type' => 'array',
'items' => ['description' => 'The HTTP port.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
'title' => '',
'example' => '',
],
'Http2Port' => [
'description' => 'The list of HTTP 2.0 ports.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method) and **HttpsPort** is not empty (indicating that the domain name uses HTTPS).',
'type' => 'array',
'items' => ['description' => 'The HTTP 2.0 port.', 'type' => 'integer', 'format' => 'int32', 'example' => '8443', 'title' => ''],
'title' => '',
'example' => '',
],
'SourceIps' => [
'description' => 'The addresses of the origin server.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).',
'type' => 'array',
'items' => ['description' => 'The address of the origin server.', 'type' => 'string', 'example' => '39.XX.XX.197', 'title' => ''],
'title' => '',
'example' => '',
],
'HttpsPort' => [
'description' => 'The list of HTTPS ports.'."\n"
."\n"
.'> This parameter is returned only when **AccessType** is set to **waf-cloud-dns** (indicating that the domain name is added to WAF by using the CNAME method).',
'type' => 'array',
'items' => ['description' => 'The HTTPS port.', 'type' => 'integer', 'format' => 'int32', 'example' => '443', 'title' => ''],
'title' => '',
'example' => '',
],
'AccessHeaders' => [
'description' => 'The list of custom fields used to obtain the originating IP address of the client.'."\n"
."\n"
.'> This parameter is returned only when **AccessHeaderMode** is set to **1** (indicating that WAF reads the value of a custom field that you specify in the request header as the client IP address).',
'type' => 'array',
'items' => ['description' => 'The custom field used to obtain the originating IP address of the client.', 'type' => 'string', 'example' => 'X-Client-IP', 'title' => ''],
'title' => '',
'example' => '',
],
'Retry' => ['description' => 'Indicates whether WAF retries when back-to-origin fails. Valid values:'."\n"
."\n"
.'- **true**: retries.'."\n"
."\n"
.'- **false**: does not retry.', 'type' => 'boolean', 'default' => 'true', 'example' => 'false', 'title' => ''],
'Keepalive' => ['description' => 'Indicates whether persistent connections are enabled. Valid values:'."\n"
."\n"
.'- **true**: enabled.'."\n"
."\n"
.'- **false**: disabled.', 'type' => 'boolean', 'default' => 'true', 'example' => 'true', 'title' => ''],
'KeepaliveRequests' => ['description' => 'The number of requests that reuse persistent connections. Valid values: 60 to 1000.'."\n"
."\n"
.'> The number of persistent connections to reuse after persistent connections are enabled.', 'type' => 'integer', 'format' => 'int32', 'default' => '1000', 'example' => '1000', 'title' => ''],
'KeepaliveTimeout' => ['description' => 'The idle timeout period for persistent connections. Valid values: 1 to 60. Default value: 15. Unit: seconds.'."\n"
."\n"
.'> The idle duration after which a reused persistent connection is released.', 'type' => 'integer', 'format' => 'int32', 'default' => '15', 'example' => '15', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D827FCFE-90A7-4330-9326-D33C8B4C7726\\",\\n \\"Domain\\": {\\n \\"HttpToUserIp\\": 0,\\n \\"SniStatus\\": 1,\\n \\"IsAccessProduct\\": 1,\\n \\"AccessHeaderMode\\": 1,\\n \\"HttpsRedirect\\": 0,\\n \\"IpFollowStatus\\": 1,\\n \\"LoadBalancing\\": 2,\\n \\"AccessType\\": \\"waf-cloud-dns\\",\\n \\"Version\\": 40,\\n \\"ClusterType\\": 0,\\n \\"ReadTime\\": 120,\\n \\"WriteTime\\": 120,\\n \\"SniHost\\": \\"waf.example.com\\",\\n \\"ResourceGroupId\\": \\"rg-acfm2mkrunv****\\",\\n \\"Cname\\": \\"kdmqyi3ck7xogegxpiyfpb0fj21mgkxn.****.com\\",\\n \\"ConnectionTime\\": 5,\\n \\"LogHeaders\\": [\\n {\\n \\"k\\": \\"ALIWAF-TAG\\",\\n \\"v\\": \\"Yes\\"\\n }\\n ],\\n \\"CloudNativeInstances\\": [\\n {\\n \\"RedirectionTypeName\\": \\"ALB\\",\\n \\"CloudNativeProductName\\": \\"ALB\\",\\n \\"InstanceId\\": \\"alb-s65nua68wdedsp****\\",\\n \\"IPAddressList\\": [\\n \\"39.XX.XX.197\\"\\n ],\\n \\"ProtocolPortConfigs\\": [\\n {\\n \\"Ports\\": [\\n 80\\n ],\\n \\"Protocol\\": \\"http\\"\\n }\\n ]\\n }\\n ],\\n \\"HttpPort\\": [\\n 80\\n ],\\n \\"Http2Port\\": [\\n 8443\\n ],\\n \\"SourceIps\\": [\\n \\"39.XX.XX.197\\"\\n ],\\n \\"HttpsPort\\": [\\n 443\\n ],\\n \\"AccessHeaders\\": [\\n \\"X-Client-IP\\"\\n ],\\n \\"Retry\\": false,\\n \\"Keepalive\\": true,\\n \\"KeepaliveRequests\\": 1000,\\n \\"KeepaliveTimeout\\": 15\\n }\\n}","type":"json"}]',
'title' => 'Query the configuration of a domain name added to WAF',
'summary' => 'Queries the configuration information of a domain name that has been added to WAF protection.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request example in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-22T06:08:27.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-05-23T05:46:04.000Z', 'description' => 'Response parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomain'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomainAdvanceConfigs' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-2r427ng****', 'title' => ''],
],
[
'name' => 'DomainList',
'in' => 'query',
'schema' => ['description' => 'The domain names whose configurations you want to query. You can specify multiple domain names. Separate multiple domain names with commas (,).'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the domain name belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'DomainConfigs' => [
'description' => 'The detailed configuration information of the domain names.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Domain' => ['description' => 'The domain name.', 'type' => 'string', 'example' => 'www.aliyundoc.com', 'title' => ''],
'Profile' => [
'description' => 'The domain name configuration.',
'type' => 'object',
'properties' => [
'Http2Port' => [
'description' => 'The list of HTTP 2.0 ports.',
'type' => 'array',
'items' => ['description' => 'The HTTP 2.0 port.', 'type' => 'integer', 'format' => 'int32', 'example' => '443', 'title' => ''],
'title' => '',
'example' => '',
],
'Ipv6Status' => ['description' => 'Indicates whether IPv6 security protection is enabled. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'HttpPort' => [
'description' => 'The list of HTTP ports.',
'type' => 'array',
'items' => ['description' => 'The HTTP port.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
'title' => '',
'example' => '',
],
'GSLBStatus' => ['description' => 'Indicates whether intelligent load balancing is enabled. Valid values:'."\n"
."\n"
.'- **off**: disabled.'."\n"
."\n"
.'- **on**: enabled.', 'type' => 'string', 'example' => 'on', 'title' => ''],
'Rs' => [
'description' => 'The list of origin server addresses.',
'type' => 'array',
'items' => ['description' => 'The origin server address.', 'type' => 'string', 'example' => '38.XX.XX.42', 'title' => ''],
'example' => '["39.XX.XX.197"]',
'title' => '',
],
'VipServiceStatus' => ['description' => 'The service status of the WAF instance IP address (or WAF virtual cluster IP address) currently in use. Valid values:'."\n"
."\n"
.'- **0**: Normal.'."\n"
."\n"
.'- **1**: The system scrubs traffic.'."\n"
."\n"
.'- **2**: The system is in blackhole filtering status.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'ClusterType' => ['description' => 'The cluster type of the WAF instance. Valid values:'."\n"
."\n"
.'- **0** (default): physical cluster.'."\n"
.'- **1**: virtual cluster, which is a WAF exclusive cluster.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'ExclusiveVipStatus' => ['description' => 'Indicates whether an exclusive IP address is used. Valid values:'."\n"
."\n"
.'- **0**: no.'."\n"
."\n"
.'- **1**: yes.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Cname' => ['description' => 'The CNAME address assigned by the WAF instance for the domain name configuration.', 'type' => 'string', 'example' => '****dsbpkt75zeiok5mta2j5l7hggcrm.****.com', 'title' => ''],
'CertStatus' => ['description' => 'The certificate status (the HTTPS protocol status). Valid values:'."\n"
."\n"
.'- **0**: abnormal. For example, no certificate is uploaded, or the uploaded certificate is invalid.'."\n"
."\n"
.'- **1**: normal. A certificate is uploaded and the certificate is valid.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'HttpsPort' => [
'description' => 'The list of HTTPS ports.',
'type' => 'array',
'items' => ['description' => 'The HTTPS port.', 'type' => 'integer', 'format' => 'int32', 'example' => '443', 'title' => ''],
'title' => '',
'example' => '',
],
'ResolvedType' => ['description' => 'The type of the CNAME records to parse. Valid values:'."\n"
."\n"
.'- **-1**: points to the origin server.'."\n"
."\n"
.'- **0**: points to the WAF instance IP address.'."\n"
."\n"
.'- **1**: points to the WAF virtual cluster IP address.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"DomainConfigs\\": [\\n {\\n \\"Domain\\": \\"www.aliyundoc.com\\",\\n \\"Profile\\": {\\n \\"Http2Port\\": [\\n 443\\n ],\\n \\"Ipv6Status\\": 1,\\n \\"HttpPort\\": [\\n 80\\n ],\\n \\"GSLBStatus\\": \\"on\\",\\n \\"Rs\\": [\\n \\"38.XX.XX.42\\"\\n ],\\n \\"VipServiceStatus\\": 0,\\n \\"ClusterType\\": 0,\\n \\"ExclusiveVipStatus\\": 0,\\n \\"Cname\\": \\"****dsbpkt75zeiok5mta2j5l7hggcrm.****.com\\",\\n \\"CertStatus\\": 1,\\n \\"HttpsPort\\": [\\n 443\\n ],\\n \\"ResolvedType\\": 0\\n }\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query detailed configuration records of added domain names',
'summary' => 'Queries the detailed configurations of domain names that have been added to WAF for protection.',
'description' => 'Queries the detailed configurations of domain names that have been added to WAF for protection, such as CNAME addresses, origin server addresses, and HTTP and HTTPS port lists. To ensure system stability, the queries per second (QPS) for a single user is limited to 50. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.',
'requestParamsDescription' => 'When you call this operation, you must include the common request parameters of Alibaba Cloud APIs in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-10-18T07:56:27.000Z', 'description' => 'Response parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainAdvanceConfigs'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainAdvanceConfigs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomainBasicConfigs' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'DomainKey',
'in' => 'query',
'schema' => ['description' => 'The domain name keyword. If you specify this parameter, only domain name configurations that contain the specified keyword are returned.'."\n"
."\n"
.'If you do not specify this parameter, all domain name configurations are returned.', 'type' => 'string', 'required' => false, 'example' => 'aliyundoc', 'title' => ''],
],
[
'name' => 'AccessType',
'in' => 'query',
'schema' => ['description' => 'The domain name access mode. Set this parameter to query domain name configurations that use the specified access mode. Valid values:'."\n"
."\n"
.'- **waf-cloud-dns**: CNAME access.'."\n"
.'- **waf-cloud-native**: transparent access.'."\n"
."\n"
.'If you do not set this parameter, all domain name configurations are returned.', 'type' => 'string', 'required' => false, 'example' => 'waf-cloud-dns', 'title' => ''],
],
[
'name' => 'CloudNativeProductId',
'in' => 'query',
'schema' => ['description' => 'The type of the origin server. Set this parameter to query domain name configurations that use the specified origin server type in transparent access mode. Valid values:'."\n"
.'- **0**: ECS instance.'."\n"
.'- **1**: Classic Load Balancer (CLB) instance.'."\n"
.'- **2**: Application Load Balancer (ALB) instance.'."\n"
."\n"
.'If you do not set this parameter, all domain name configurations are returned.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number in a paging query. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of domain name configurations per page in a paging query. Default value: **10**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the domain name belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => 'The total number of domain name configurations returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'DomainConfigs' => [
'description' => 'The list of domain name configurations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the domain name configuration. Valid values:'."\n"
."\n"
.'- **0**: invalid (deleted).'."\n"
.'- **1**: valid (created).'."\n"
.'- **10**: being created.'."\n"
.'- **11**: creation failed.'."\n"
.'- **20**: being deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Domain' => ['description' => 'The domain name.', 'type' => 'string', 'example' => 'www.aliyundoc.com', 'title' => ''],
'Owner' => ['description' => 'The source of the domain name configuration. The value is fixed as **WAF**, which indicates that the domain name is added through WAF.', 'type' => 'string', 'example' => 'WAF', 'title' => ''],
'CcMode' => ['description' => 'The mode of the CC security protection feature. Valid values:'."\n"
."\n"
.'- **0**: **Protection** mode.'."\n"
.'- **1**: **Protection-Emergency** mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'CcStatus' => ['description' => 'The status of the CC security protection feature. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'AccessType' => ['description' => 'The domain name access mode. Valid values:'."\n"
."\n"
.'- **waf-cloud-dns**: CNAME access.'."\n"
.'- **waf-cloud-native**: transparent access.', 'type' => 'string', 'example' => 'waf-cloud-dns', 'title' => ''],
'Version' => ['description' => 'The version number of the current configuration.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'AclStatus' => ['description' => 'The status of the custom protection policy feature. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'WafStatus' => ['description' => 'The status of the rule protection engine feature. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'WafMode' => ['description' => 'The mode of the rule protection engine feature. Valid values:'."\n"
."\n"
.'- **0**: **Block** mode.'."\n"
.'- **1**: **Warn** mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 1,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"DomainConfigs\\": [\\n {\\n \\"Status\\": 1,\\n \\"Domain\\": \\"www.aliyundoc.com\\",\\n \\"Owner\\": \\"WAF\\",\\n \\"CcMode\\": 0,\\n \\"CcStatus\\": 1,\\n \\"AccessType\\": \\"waf-cloud-dns\\",\\n \\"Version\\": 0,\\n \\"AclStatus\\": 1,\\n \\"WafStatus\\": 1,\\n \\"WafMode\\": 0\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query protection settings of domain name configurations',
'summary' => 'Queries the basic configurations of website domain names that are added to Web Application Firewall (WAF) for protection.',
'description' => 'This operation is used to query the basic configurations of website domain names that are added to WAF for protection (hereinafter referred to as domain name configurations) by paging. For example, you can query the status of domain name configurations and the status and mode of default security protection modules, including the rule protection DPI engine, CC security protection, and custom protection policy. To ensure system stability, the queries per second (QPS) for a single user is limited to 50. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.',
'requestParamsDescription' => 'When you call this operation, you must also include Alibaba Cloud common request parameters in addition to the request parameters described in this topic. For more information, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the **Example** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainBasicConfigs'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainBasicConfigs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomainList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-7pp26f1****', 'title' => ''],
],
[
'name' => 'DomainName',
'in' => 'query',
'schema' => ['description' => 'The domain name that you want to query.'."\n"
."\n"
.'You can set this parameter to perform a prefix match to check whether a specific domain name is added to WAF for protection.', 'type' => 'string', 'required' => false, 'example' => 'example.com', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number of the page to return in a paged query. Default value: **1**, which indicates the first page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page in a paged query. Default value: **10**, which indicates 10 entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '10', 'example' => '10', 'title' => ''],
],
[
'name' => 'IsSub',
'in' => 'query',
'schema' => ['description' => 'The type of domain name that you want to query. Valid values:'."\n"
."\n"
.'- **0** (default): queries all domain names, including exact domain names and wildcard domain names.'."\n"
.'- **1**: queries only exact domain names.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'DomainNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of domain names that you want to query.'."\n"
."\n"
.'You can set this parameter to perform a fuzzy match to check whether multiple domain names are added to WAF for protection.',
'type' => 'array',
'items' => ['description' => 'The domain name that you want to query.', 'type' => 'string', 'required' => false, 'example' => 'example.com '."\n", 'title' => ''],
'required' => false,
'example' => 'example.com',
'maxItems' => 100,
'title' => '',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => 'The total number of domain names returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '592E866F-6C05-4E7C-81DE-B4D8E86B91EF', 'title' => ''],
'DomainNames' => [
'description' => 'The list of domain names returned.',
'type' => 'array',
'items' => ['description' => 'The domain name.', 'type' => 'string', 'example' => 'www.example.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"592E866F-6C05-4E7C-81DE-B4D8E86B91EF\\",\\n \\"DomainNames\\": [\\n \\"www.example.com\\"\\n ]\\n}","type":"json"}]',
'title' => 'Query domain name asset information',
'summary' => 'Invokes DescribeDomainList to perform a paged query of domain names that are added to WAF for protection.',
'description' => 'You can also use this operation to query all domain names that are added to WAF for protection, but paged query is not supported, which means all domain names are returned at a time. If you have a large number of domain names, we recommend that you invoke this operation to perform a paged query, which displays results by page and supports conditional query.',
'requestParamsDescription' => 'When you call this operation, you must include common request parameters in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainList'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomainNames' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the domain name belongs in Resource Management. This parameter is empty by default, which indicates that the domain name belongs to the default resource group.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'DomainNames' => [
'description' => 'The list of domain names that have been added.',
'type' => 'array',
'items' => ['description' => 'The domain name.', 'type' => 'string', 'example' => '1.example.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"DomainNames\\": [\\n \\"1.example.com\\"\\n ]\\n}","type":"json"}]',
'title' => 'Retrieve the list of domain names added to a specified instance',
'summary' => 'Retrieves the list of domain names that have been added to a specified WAF instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainNames'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainNames',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeDomainRuleGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to query.'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. Default value: empty, which indicates the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-aek2oij****hbfi', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RuleGroupId' => ['description' => 'The ID of the protection rule group bound to the domain. Valid values:'."\n"
."\n"
.'- **1011**: the strict rule group built into WAF.'."\n"
.'- **1012**: the medium rule group built into WAF.'."\n"
.'- **1013**: the loose rule group built into WAF.'."\n"
."\n"
.'Other values indicate the IDs of custom rule groups.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1012', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'WafAiStatus' => ['description' => 'The status of the intelligent rule hosting feature. Valid values:'."\n"
."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RuleGroupId\\": 1012,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"WafAiStatus\\": 1\\n}","type":"json"}]',
'title' => 'DescribeDomainRuleGroup',
'summary' => 'Queries the ID of the protection rule group bound to a domain and the status of the intelligent rule hosting feature by calling DescribeDomainRuleGroup.',
'description' => 'This API operation is used to query the ID of the protection rule group bound to a specified domain and the status of the intelligent rule hosting feature under the rule protection engine.'."\n"
.'Note that to ensure system stability, the queries per second (QPS) for a single user is limited to 10. If the limit is exceeded, API calls will be throttled, which may affect your business. Please make API calls appropriately.',
'requestParamsDescription' => 'When you call this API operation, in addition to the request parameters described in this topic, you must also include Alibaba Cloud API common request parameters. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format of this API operation, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-01-18T08:24:59.000Z', 'description' => 'Response parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainRuleGroup'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainRuleGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeInstanceInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance that you want to query.'."\n"
."\n"
.'If you do not set this parameter, the information about all WAF instances in the Chinese mainland or outside the Chinese mainland is returned.', 'type' => 'string', 'required' => false, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. If you do not set this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'InstanceInfo' => [
'description' => 'The details of the WAF instance.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'Indicates whether the WAF instance has expired. Valid values:'."\n"
.'- **0**: expired.'."\n"
.'- **1**: not expired.'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'EndDate' => ['description' => 'The expiration time of the WAF instance. This value is a UNIX timestamp. Unit: seconds.'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'integer', 'format' => 'int64', 'example' => '1512921600', 'title' => ''],
'Version' => ['description' => 'The edition of the WAF instance. Valid values:'."\n"
."\n"
.'<props="china">- **version_3**: Premium Edition in the Chinese mainland.</props>'."\n"
.'<props="china">- **version_4**: Business Edition in the Chinese mainland.</props>'."\n"
.'<props="china">- **version_5**: Ultimate Edition in the Chinese mainland.</props>'."\n"
.'<props="china">- **version_exclusive_cluster**: virtual exclusive cluster edition in the Chinese mainland.</props>'."\n"
.'<props="china">- **version_hybrid_cloud_standard**: Hybrid Cloud WAF Edition in the Chinese mainland.</props>'."\n"
.'<props="china">- **version_pro_asia**: Premium Edition outside the Chinese mainland.</props>'."\n"
.'<props="china">- **version_business_asia**: Business Edition outside the Chinese mainland.</props>'."\n"
.'<props="china">- **version_enterprise_asia**: Ultimate Edition outside the Chinese mainland.</props>'."\n"
.'<props="china">- **version_exclusive_cluster_asia**: virtual exclusive cluster edition outside the Chinese mainland.</props>'."\n"
.'<props="china">- **version_hybrid_cloud_standard_asia**: Hybrid Cloud WAF Edition outside the Chinese mainland.</props>'."\n"
.'<props="china">- **version_elastic_bill**: pay-as-you-go billing method edition.</props>'."\n"
.'<props="china">- **version_elastic_bill_new**: pay-as-you-go billing method 2.0 edition.</props>'."\n"
."\n"
.'<props="china">If the returned version parameter value is not in the preceding list, confirm that you are using an Alibaba Cloud China Website (www.aliyun.com) account.</props> '."\n"
."\n"
.'<props="intl">- **version_pro_china**: Premium Edition in the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_business_china**: Business Edition in the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_enterprise_china**: Ultimate Edition in the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_exclusive_china**: virtual exclusive cluster edition in the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_hybrid_cloud_standard_china**: Hybrid Cloud WAF Edition in the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_pro**: Premium Edition outside the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_business**: Business Edition outside the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_enterprise**: Ultimate Edition outside the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_exclusive**: virtual exclusive cluster edition outside the Chinese mainland.</props>'."\n"
.'<props="intl">- **version_hybrid_cloud_standard**: Hybrid Cloud WAF Edition outside the Chinese mainland.</props>'."\n"
."\n"
.'<props="intl">If the returned version parameter value is not in the preceding list, confirm that you are using an Alibaba Cloud International Website (www.alibabacloud.com) account.</props>'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'string', 'example' => 'version_3', 'title' => ''],
'RemainDay' => ['description' => 'The remaining available days of the trial WAF instance.'."\n"
."\n"
.'> This parameter is returned only if **Trial** is **1** (a trial WAF instance is activated).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Region' => ['description' => 'The region of the WAF instance. Valid values:'."\n"
."\n"
.'- **cn**: the Chinese mainland.'."\n"
.'- **cn-hongkong**: outside the Chinese mainland.'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'string', 'example' => 'cn', 'title' => ''],
'PayType' => ['description' => 'The activation status of the WAF instance. Valid values:'."\n"
."\n"
.'- **0**: No WAF instance is activated under the current Alibaba Cloud account.'."\n"
.'- **1**: A subscription instance of WAF is activated under the current Alibaba Cloud account.'."\n"
.'<props="china">- **2**: A WAF instance that uses the pay-as-you-go billing method is activated under the current Alibaba Cloud account.</props>', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'InDebt' => ['description' => 'Indicates whether the WAF instance has an overdue payment. Valid values:'."\n"
."\n"
.'- **0**: The instance has an overdue payment.'."\n"
.'- **1**: The instance does not have an overdue payment.'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'string', 'example' => 'waf-cn-tl32ast****', 'title' => ''],
'SubscriptionType' => ['description' => '<props="china">The billable method of the WAF instance. Valid values:</props>'."\n"
.'<props="china">- **Subscription**: subscription.</props>'."\n"
.'<props="china">- **PayAsYouGo**: pay-as-you-go billing method.</props>'."\n"
."\n"
.'<props="intl">The billable method of the WAF instance. The value is fixed as **Subscription**, which indicates subscription.</props>'."\n"
."\n"
.'> This parameter is not returned if **PayType** is **0** (WAF instance is not activated).', 'type' => 'string', 'example' => 'Subscription', 'title' => ''],
'Trial' => ['description' => 'Indicates whether a trial WAF instance is activated under the current Alibaba Cloud account. Valid values:'."\n"
."\n"
.'- **0**: No.'."\n"
.'- **1**: Yes.'."\n"
."\n"
.'> This parameter is returned only if a trial WAF instance is activated under the current Alibaba Cloud account.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"InstanceInfo\\": {\\n \\"Status\\": 1,\\n \\"EndDate\\": 1512921600,\\n \\"Version\\": \\"version_3\\",\\n \\"RemainDay\\": 1,\\n \\"Region\\": \\"cn\\",\\n \\"PayType\\": 1,\\n \\"InDebt\\": 1,\\n \\"InstanceId\\": \\"waf-cn-tl32ast****\\",\\n \\"SubscriptionType\\": \\"Subscription\\",\\n \\"Trial\\": 1\\n }\\n}","type":"json"}]',
'title' => 'Get WAF instance information',
'summary' => 'Queries the details of a WAF instance under the current Alibaba Cloud account.',
'description' => 'This operation queries the details of a WAF instance under the current Alibaba Cloud account, such as the instance ID, edition, status, and expiration time. To ensure system stability, the queries per second (QPS) is limited to 50 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a proper frequency.',
'requestParamsDescription' => 'When you call this operation, you must include common request parameters in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeInstanceInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeInstanceSpecInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance to query.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => false, 'example' => 'waf-cn-st2225l****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => "\n"
.'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'E906513E-F6B5-495E-98DC-7BA8****1D76', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID of the WAF instance.', 'type' => 'string', 'example' => 'waf-cn-st2225l****', 'title' => ''],
'ExpireTime' => ['description' => 'The expiration time of the WAF instance. The value is a UNIX timestamp in the format of milliseconds.'."\n"
."\n"
.'> For instances that use the pay-as-you-go billing method, the returned value indicates the expiration time of the trial edition.', 'type' => 'integer', 'format' => 'int64', 'example' => '1677168000000', 'title' => ''],
'Version' => ['description' => 'The version of the WAF instance. Valid values:'."\n"
."\n"
.'<props="china">'."\n"
."\n"
.'- **version_3**: Premium Edition in the Chinese mainland.'."\n"
."\n"
.'- **version_4**: Business edition in the Chinese mainland.'."\n"
."\n"
.'- **version_5**: Ultimate Edition in the Chinese mainland.'."\n"
."\n"
.'- **version_exclusive_cluster**: virtual exclusive cluster edition in the Chinese mainland.'."\n"
."\n"
.'- **version_hybrid_clou_standard**: hybrid cloud WAF edition in the Chinese mainland.'."\n"
."\n"
.'- **version_pro_asia**: Premium Edition outside China.'."\n"
."\n"
.'- **version_business_asia**: Business edition outside China.'."\n"
."\n"
.'- **version_enterprise_asia**: Ultimate Edition outside China.'."\n"
."\n"
.'- **version_exclusive_cluster_asia**: virtual exclusive cluster edition outside China.'."\n"
."\n"
.'- **version_hybrid_cloud_standard_asia**: hybrid cloud WAF edition outside China.'."\n"
."\n"
.'- **version_elastic_bill**: pay-as-you-go billing method edition.'."\n"
."\n"
.'- **version_elastic_bill_new**: pay-as-you-go billing method 2.0 edition.'."\n"
."\n"
.'</props>'."\n"
."\n"
.'<props="intl">'."\n"
."\n"
.'- **version_pro_china**: Premium Edition in the Chinese mainland.'."\n"
."\n"
.'- **version_business_china**: Business edition in the Chinese mainland.'."\n"
."\n"
.'- **version_enterprise_china**: Ultimate Edition in the Chinese mainland.'."\n"
."\n"
.'- **version_exclusive_china**: virtual exclusive cluster edition in the Chinese mainland.'."\n"
."\n"
.'- **version_hybrid_cloud_standard_china**: hybrid cloud WAF edition in the Chinese mainland.'."\n"
."\n"
.'- **version_pro**: Premium Edition outside China.'."\n"
."\n"
.'- **version_business**: Business edition outside China.'."\n"
."\n"
.'- **version_enterprise**: Ultimate Edition outside China.'."\n"
."\n"
.'- **version_exclusive**: virtual exclusive cluster edition outside China.'."\n"
."\n"
.'- **version_hybrid_cloud_standard**: hybrid cloud WAF edition outside China.'."\n"
."\n"
.'</props>'."\n"
."\n"
.'<props="china">If the returned version parameter value is not in the preceding list, confirm that you are using an Alibaba Cloud China Website (www.aliyun.com) account.</props>'."\n"
."\n"
.'<props="intl">If the returned version parameter value is not in the preceding list, confirm that you are using an Alibaba Cloud International Website (www.alibabacloud.com) account.</props>', 'type' => 'string', 'example' => 'version_3', 'title' => ''],
'InstanceSpecInfos' => [
'description' => 'The specification information of the WAF instance. The information is returned as an array of **Code** and **Value** pairs. **Code** indicates the specification code, and **Value** indicates the corresponding specification value.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The specification code of the WAF instance. Valid values:'."\n"
."\n"
.'- **100**: indicates whether HTTPS service protection is supported.'."\n"
.'- **101**: the daily service traffic threshold.'."\n"
.'- **102**: the mitigation threshold for HTTP flood attacks.'."\n"
.'- **103**: the total number of domain names that can be added for protection.'."\n"
.'- **104**: indicates whether wildcard domain names are supported.'."\n"
.'- **105**: the number of custom mitigation policies (ACL access control) rules that can be configured.'."\n"
.'- **106**: the number of back-to-origin IP addresses for domain names.'."\n"
.'- **107**: indicates whether servers outside Alibaba Cloud are supported.'."\n"
.'- **108**: indicates whether the custom advanced web access control feature is supported.'."\n"
.'- **109**: indicates whether non-standard ports are supported.'."\n"
.'- **110**: indicates whether the scan protection feature is supported.'."\n"
.'- **111**: indicates whether data risk control is supported.'."\n"
.'- **112**: the number of data risk control records that can be configured.'."\n"
.'- **113**: the number of primary domain names (top-level domain names) that can be added for protection.'."\n"
.'- **114**: the normal service bandwidth threshold.'."\n"
.'- **115**: the number of attached domain name packages.'."\n"
.'- **116**: indicates whether adding ECS IP addresses under different Alibaba Cloud accounts as origin server IP addresses is supported.'."\n"
.'- **117**: indicates whether adding Web Hosting IP addresses as origin server IP addresses is supported.'."\n"
.'- **118**: the number of data risk control rule scenarios that can be configured.'."\n"
.'- **119**: indicates whether the semantics analysis DPI engine feature is supported.'."\n"
.'- **12**: indicates whether the service network traffic analysis feature is supported.'."\n"
.'- **120**: indicates whether ICP filing verification is required for domain names added for protection.'."\n"
.'- **121**: indicates whether custom mitigation policies (HTTP flood attack prevention) rules can be configured.'."\n"
.'- **122**: the number of custom mitigation policies (HTTP flood attack prevention) rules that can be configured.'."\n"
.'- **123**: indicates whether the region-level IP blacklist feature is supported.'."\n"
.'- **124**: indicates whether web tamper-proofing is supported.'."\n"
.'- **125**: the number of custom tamper-proofing protection rules that can be configured.'."\n"
.'- **126**: indicates whether log collection is supported.'."\n"
.'- **127**: the number of non-standard ports that can be added.'."\n"
.'- **128**: the HTTP protocol ports that can be added.'."\n"
.'- **129**: the HTTPS protocol ports that can be added.'."\n"
.'- **13**: indicates whether switching the HTTP flood protection mode is supported.'."\n"
.'- **130**: indicates whether attacker profiling is supported.'."\n"
.'- **131**: indicates whether the sensitive information leak prevention feature is supported.'."\n"
.'- **132**: the number of sensitive information leak prevention rules that can be configured.'."\n"
.'- **133**: the condition fields that can be used in custom mitigation policies and whitelist policies.'."\n"
.'- **134**: the number of attached exclusive IP addresses.'."\n"
.'- **135**: indicates whether the data dashboard feature is supported.'."\n"
.'- **136**: the number of supported data dashboards.'."\n"
.'- **137**: indicates whether the deep learning engine feature is supported.'."\n"
.'- **138**: indicates whether full logs are supported.'."\n"
.'- **139**: the storage duration of full logs.'."\n"
.'- **14**: indicates whether viewing HTTP flood attack log details is supported.'."\n"
.'- **140**: the maximum storage capacity of full logs.'."\n"
.'- **141**: indicates whether the alerting settings feature is supported.'."\n"
.'- **142**: the number of times the full log storage space can be cleared.'."\n"
.'- **143**: indicates whether custom protection rule groups are supported.'."\n"
.'- **144**: the number of custom rule groups that can be configured.'."\n"
.'- **145**: indicates whether the general gateway proxy for protection modules is supported.'."\n"
.'- **146**: indicates whether the general rule proxy for protection modules is supported.'."\n"
.'- **147**: indicates whether the security expert service platform is supported.'."\n"
.'- **148**: indicates whether trial use is supported.'."\n"
.'- **149**: indicates whether transparent proxy mode is supported.'."\n"
.'- **150**: indicates whether IPv6 is supported.'."\n"
.'- **151**: indicates whether the proactive defense feature is supported.'."\n"
.'- **152**: the number of proactive defense rules that can be configured.'."\n"
.'- **153**: indicates whether HTTP 2.0 service protection is supported.'."\n"
.'- **154**: indicates whether the domain name configuration feature is supported.'."\n"
.'- **155**: indicates whether the asset discovery feature is supported.'."\n"
.'- **156**: indicates whether pre-release testing specifications are available.'."\n"
.'- **157**: indicates whether virtual exclusive clusters are supported.'."\n"
.'- **158**: the number of ports supported by virtual exclusive clusters.'."\n"
.'- **159**: indicates whether the account security feature is supported.'."\n"
.'- **160**: the number of interfaces for account security protection.'."\n"
.'- **162**: the number of whitelist rules that can be added.'."\n"
.'- **163**: the number of custom protection rules.'."\n"
.'- **164**: the number of IP blacklist rules.'."\n"
.'- **167**: indicates whether custom scan protection configuration is supported.'."\n"
.'- **168**: the number of Global Server Load Balancing (GSLB) protected domain names.'."\n"
.'- **169**: indicates whether intelligent load balancing is supported.'."\n"
.'- **171**: indicates whether the application protection feature is supported.'."\n"
.'- **172**: the number of application protection rules.'."\n"
.'- **173**: indicates whether the typical crawler behavior identification feature is supported.'."\n"
.'- **176**: indicates whether the legitimate crawler identification feature is supported.'."\n"
.'- **177**: indicates whether the crawler threat intelligence feature is supported.'."\n"
.'- **181**: the number of traffic redirection configurations (each corresponding to a specific instance IP address and port) that can be added for transparent access.'."\n"
.'- **190**: indicates whether HTTP flood attack prevention capabilities are supported.'."\n"
.'- **191**: indicates whether account security defense capabilities are supported.'."\n"
.'- **192**: indicates whether scan attack prevention capabilities are supported.'."\n"
.'- **193**: indicates whether custom TLS security policy is supported.'."\n"
.'- **194**: indicates whether advanced settings for custom TLS security policy are supported.'."\n"
.'- **196**: indicates whether transparent access supports attaching any interface.'."\n"
.'- **199**: indicates whether origin fetch over IPv6 is supported.'."\n"
.'- **200**: indicates whether scenario-specific anti-crawler configuration is supported.'."\n"
.'- **201**: the number of scenario-specific anti-crawler configurations.', 'type' => 'string', 'example' => '103', 'title' => ''],
'Value' => ['description' => 'The value that corresponds to the WAF instance specification code. The value can be **true** (yes) or **false** (no), or a specific number.'."\n"
."\n"
.'> For example, if **Code** is set to **103**, the **Value** is **640**. If **Code** is set to **104**, the **Value** is **true**.', 'type' => 'string', 'example' => '640', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E906513E-F6B5-495E-98DC-7BA8****1D76\\",\\n \\"InstanceId\\": \\"waf-cn-st2225l****\\",\\n \\"ExpireTime\\": 1677168000000,\\n \\"Version\\": \\"version_3\\",\\n \\"InstanceSpecInfos\\": [\\n {\\n \\"Code\\": \\"103\\",\\n \\"Value\\": \\"640\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query WAF instance specifications',
'summary' => 'Queries the specification information of a WAF instance.',
'requestParamsDescription' => 'When you call this operation, you must include the common request parameters of Alibaba Cloud APIs in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeInstanceSpecInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeLogServiceStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call DescribeInstanceInfo to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'Region',
'in' => 'query',
'schema' => ['description' => 'The region ID of Log Service. Valid values: '."\n"
.'- **cn**: the Chinese mainland (default)'."\n"
.'- **cn-hongkong**: outside China.', 'type' => 'string', 'required' => false, 'default' => 'cn', 'example' => 'cn', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, refer to [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page in a paged query. Default value: **10**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '10', 'example' => '10', 'title' => ''],
],
[
'name' => 'DomainNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of domain names to query. You can specify up to 10 domain names at a time. If you do not specify this parameter, all domain names are queried.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all domain names that are added to the current WAF instance for protection.',
'type' => 'array',
'items' => ['description' => 'The domain name.', 'type' => 'string', 'required' => false, 'example' => 'www.aliyunXXXX.com', 'title' => ''],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '63', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
'DomainStatus' => [
'description' => 'The log collection status of the domain names (whether log collection is enabled).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Domain' => ['description' => 'The domain name.', 'type' => 'string', 'example' => 'www.aliyun.com', 'title' => ''],
'SlsLogActive' => ['description' => 'Indicates whether log collection is enabled for the domain name. Valid values:'."\n"
."\n"
.'- **1**: enabled.'."\n"
.'- **0**: disabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 63,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\",\\n \\"DomainStatus\\": [\\n {\\n \\"Domain\\": \\"www.aliyun.com\\",\\n \\"SlsLogActive\\": 1\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query log collection status',
'summary' => 'Queries the log collection status (whether log collection is enabled) of domain names that are added to WAF for protection.',
'requestParamsDescription' => 'When you call this operation, in addition to the request parameters described in this topic, you must include Alibaba Cloud API common request parameters. For more information about common request parameters, refer to [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the **request example** in this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-08-23T11:43:34.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogServiceStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeLogServiceStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeProtectionModuleCodeConfig' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'CodeType',
'in' => 'query',
'schema' => ['description' => 'The type of code to query. Set the value to **14**, which indicates the region codes applicable to the WAF region-level IP blacklist configuration.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '14', 'title' => ''],
],
[
'name' => 'CodeValue',
'in' => 'query',
'schema' => ['description' => 'The type of region codes to query. Valid values:'."\n"
.'- **0**: region codes within China.'."\n"
.'- **1**: region codes outside China.'."\n"
."\n"
.'If you do not set this parameter, all types of region codes are queried.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the website domain name belongs in Resource Management. If you do not set this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['type' => 'string', 'default' => 'cn-hangzhou', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'CodeConfigs' => ['description' => 'The specific configuration of region codes. The value is a string converted from a JSON array. Each element in the JSON array represents a type of region code and contains the following fields:'."\n"
."\n"
.'- **code**: Integer | The type of region code. Valid values: **0** (region codes within China) | **1** (region codes outside China).'."\n"
."\n"
.'- **name**: String | All region codes of this type. Multiple region codes are separated by commas (,). For the meanings of specific region codes, see the description below the **Response parameters** table.'."\n"
."\n"
.'- **env**: String | Indicates whether the region code is available. Valid values: **online** (the region code is available) | **offline** (the region code is unavailable).', 'type' => 'string', 'example' => '[{"code":0,"name":"310000,530000,150000,110000,TW_01,220000,510000,120000,640000,340000,370000,140000,440000,450000,650000,320000,360000,130000,410000,330000,460000,420000,430000,MO_01,620000,350000,540000,520000,210000,500000,610000,630000,HK_01,230000","env":"online"}]', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'BE3911B8-9D96-5B39-8875-503BBC9DA4BF', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeConfigs\\": \\"[{\\\\\\"code\\\\\\":0,\\\\\\"name\\\\\\":\\\\\\"310000,530000,150000,110000,TW_01,220000,510000,120000,640000,340000,370000,140000,440000,450000,650000,320000,360000,130000,410000,330000,460000,420000,430000,MO_01,620000,350000,540000,520000,210000,500000,610000,630000,HK_01,230000\\\\\\",\\\\\\"env\\\\\\":\\\\\\"online\\\\\\"}]\\",\\n \\"RequestId\\": \\"BE3911B8-9D96-5B39-8875-503BBC9DA4BF\\"\\n}","type":"json"}]',
'title' => 'Query WAF protection module code configuration',
'summary' => 'Queries the region codes that can be configured in the WAF region-level IP blacklist.',
'description' => 'This operation queries the region codes that can be configured in the WAF region-level IP blacklist.'."\n"
.'The queries per second (QPS) limit for a single user is 100. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.',
'requestParamsDescription' => 'When you call this operation, you must include common request parameters in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request example in the **Examples** section.',
'responseParamsDescription' => '**Region codes within China (`"code": 0`)**.'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "310000": "Shanghai",'."\n"
.' "610000": "Shaanxi",'."\n"
.' "360000": "Jiangxi",'."\n"
.' "230000": "Heilongjiang",'."\n"
.' "530000": "Yunnan",'."\n"
.' "140000": "Shanxi",'."\n"
.' "440000": "Guangdong",'."\n"
.' "320000": "Jiangsu",'."\n"
.' "110000": "Beijing",'."\n"
.' "MO_01": "Macao (China)",'."\n"
.' "620000": "Gansu",'."\n"
.' "370000": "Shandong",'."\n"
.' "150000": "Inner Mongolia",'."\n"
.' "450000": "Guangxi",'."\n"
.' "410000": "Henan",'."\n"
.' "500000": "Chongqing",'."\n"
.' "120000": "Tianjin",'."\n"
.' "630000": "Qinghai",'."\n"
.' "460000": "Hainan",'."\n"
.' "640000": "Ningxia",'."\n"
.' "330000": "Zhejiang",'."\n"
.' "HK_01": "Hong Kong (China)",'."\n"
.' "420000": "Hubei",'."\n"
.' "430000": "Hunan",'."\n"
.' "130000": "Hebei",'."\n"
.' "510000": "Sichuan",'."\n"
.' "350000": "Fujian",'."\n"
.' "210000": "Liaoning",'."\n"
.' "220000": "Jilin",'."\n"
.' "340000": "Anhui",'."\n"
.' "520000": "Guizhou",'."\n"
.' "TW_01": "Taiwan (China)"'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'**Region codes outside China (`"code": 1`)**.'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "KE": "Kenya",'."\n"
.' "KG": "Kyrgyzstan",'."\n"
.' "KH": "Cambodia",'."\n"
.' "KI": "Kiribati",'."\n"
.' "KM": "Comoros",'."\n"
.' "KN": "Saint Kitts and Nevis",'."\n"
.' "KP": "North Korea",'."\n"
.' "KR": "South Korea",'."\n"
.' "KW": "Kuwait",'."\n"
.' "KY": "Cayman Islands",'."\n"
.' "KZ": "Kazakhstan",'."\n"
.' "LA": "Laos",'."\n"
.' "LB": "Lebanon",'."\n"
.' "LC": "Saint Lucia",'."\n"
.' "LI": "Liechtenstein",'."\n"
.' "LK": "Sri Lanka",'."\n"
.' "LR": "Liberia",'."\n"
.' "LS": "Lesotho",'."\n"
.' "LT": "Lithuania",'."\n"
.' "LU": "Luxembourg",'."\n"
.' "LV": "Latvia",'."\n"
.' "LY": "Libya",'."\n"
.' "MA": "Morocco",'."\n"
.' "MC": "Monaco",'."\n"
.' "MD": "Moldova",'."\n"
.' "ME": "Montenegro",'."\n"
.' "MF": "Saint Martin",'."\n"
.' "MG": "Madagascar",'."\n"
.' "MH": "Marshall Islands",'."\n"
.' "MK": "North Macedonia",'."\n"
.' "ML": "Mali",'."\n"
.' "MM": "Myanmar",'."\n"
.' "MN": "Mongolia",'."\n"
.' "MP": "Northern Mariana Islands",'."\n"
.' "MQ": "Martinique",'."\n"
.' "MR": "Mauritania",'."\n"
.' "MS": "Montserrat",'."\n"
.' "MT": "Malta",'."\n"
.' "MU": "Mauritius",'."\n"
.' "MV": "Maldives",'."\n"
.' "MW": "Malawi",'."\n"
.' "MX": "Mexico",'."\n"
.' "MY": "Malaysia",'."\n"
.' "MZ": "Mozambique",'."\n"
.' "NA": "Namibia",'."\n"
.' "NC": "New Caledonia",'."\n"
.' "NE": "Niger",'."\n"
.' "NF": "Norfolk Island",'."\n"
.' "NG": "Nigeria",'."\n"
.' "NI": "Nicaragua",'."\n"
.' "NL": "Netherlands",'."\n"
.' "NO": "Norway",'."\n"
.' "NP": "Nepal",'."\n"
.' "NR": "Nauru",'."\n"
.' "NU": "Niue",'."\n"
.' "NZ": "New Zealand",'."\n"
.' "GA": "Gabon",'."\n"
.' "GB": "United Kingdom",'."\n"
.' "WS": "Samoa",'."\n"
.' "GD": "Grenada",'."\n"
.' "GE": "Georgia",'."\n"
.' "GF": "French Guiana",'."\n"
.' "GG": "Guernsey",'."\n"
.' "GH": "Ghana",'."\n"
.' "GI": "Gibraltar",'."\n"
.' "GL": "Greenland",'."\n"
.' "GM": "Gambia",'."\n"
.' "GN": "Guinea",'."\n"
.' "GP": "Guadeloupe",'."\n"
.' "GQ": "Equatorial Guinea",'."\n"
.' "GR": "Greece",'."\n"
.' "GT": "Guatemala",'."\n"
.' "GU": "Guam",'."\n"
.' "GW": "Guinea-Bissau",'."\n"
.' "GY": "Guyana",'."\n"
.' "HN": "Honduras",'."\n"
.' "HR": "Croatia",'."\n"
.' "HT": "Haiti",'."\n"
.' "YE": "Yemen",'."\n"
.' "HU": "Hungary",'."\n"
.' "YT": "Mayotte",'."\n"
.' "ID": "Indonesia",'."\n"
.' "IE": "Ireland",'."\n"
.' "IL": "Israel",'."\n"
.' "IM": "Isle of Man",'."\n"
.' "IN": "India",'."\n"
.' "IO": "British Indian Ocean Territory",'."\n"
.' "ZA": "South Africa",'."\n"
.' "IQ": "Iraq",'."\n"
.' "IR": "Iran",'."\n"
.' "IS": "Iceland",'."\n"
.' "IT": "Italy",'."\n"
.' "ZM": "Zambia",'."\n"
.' "JE": "Jersey",'."\n"
.' "ZW": "Zimbabwe",'."\n"
.' "JM": "Jamaica",'."\n"
.' "JO": "Jordan",'."\n"
.' "JP": "Japan",'."\n"
.' "SI": "Slovenia",'."\n"
.' "BY": "Belarus",'."\n"
.' "SK": "Slovakia",'."\n"
.' "BZ": "Belize",'."\n"
.' "SL": "Sierra Leone",'."\n"
.' "SM": "San Marino",'."\n"
.' "SN": "Senegal",'."\n"
.' "SO": "Somalia",'."\n"
.' "CA": "Canada",'."\n"
.' "SR": "Suriname",'."\n"
.' "SS": "South Sudan",'."\n"
.' "ST": "Sao Tome and Principe",'."\n"
.' "CD": "Democratic Republic of the Congo",'."\n"
.' "CF": "Central African Republic",'."\n"
.' "SV": "El Salvador",'."\n"
.' "CG": "Congo",'."\n"
.' "CH": "Switzerland",'."\n"
.' "SX": "Sint Maarten",'."\n"
.' "SY": "Syria",'."\n"
.' "CI": "Cote d\'Ivoire",'."\n"
.' "SZ": "Eswatini",'."\n"
.' "CK": "Cook Islands",'."\n"
.' "CL": "Chile",'."\n"
.' "CM": "Cameroon",'."\n"
.' "CN": "China",'."\n"
.' "CO": "Colombia",'."\n"
.' "TC": "Turks and Caicos Islands",'."\n"
.' "CR": "Costa Rica",'."\n"
.' "TD": "Chad",'."\n"
.' "CU": "Cuba",'."\n"
.' "CV": "Cabo Verde",'."\n"
.' "TG": "Togo",'."\n"
.' "CW": "Curacao",'."\n"
.' "TH": "Thailand",'."\n"
.' "CX": "Christmas Island",'."\n"
.' "TJ": "Tajikistan",'."\n"
.' "CY": "Cyprus",'."\n"
.' "CZ": "Czech Republic",'."\n"
.' "TK": "Tokelau",'."\n"
.' "TL": "Timor-Leste",'."\n"
.' "TM": "Turkmenistan",'."\n"
.' "TN": "Tunisia",'."\n"
.' "TO": "Tonga",'."\n"
.' "TR": "Turkey",'."\n"
.' "TT": "Trinidad and Tobago",'."\n"
.' "DE": "Germany",'."\n"
.' "TV": "Tuvalu",'."\n"
.' "DJ": "Djibouti",'."\n"
.' "TZ": "Tanzania",'."\n"
.' "DK": "Denmark",'."\n"
.' "DM": "Dominica",'."\n"
.' "DO": "Dominican Republic",'."\n"
.' "UA": "Ukraine",'."\n"
.' "UG": "Uganda",'."\n"
.' "DZ": "Algeria",'."\n"
.' "UM": "United States Minor Outlying Islands",'."\n"
.' "US": "United States",'."\n"
.' "EC": "Ecuador",'."\n"
.' "EE": "Estonia",'."\n"
.' "EG": "Egypt",'."\n"
.' "UY": "Uruguay",'."\n"
.' "UZ": "Uzbekistan",'."\n"
.' "VA": "Vatican City",'."\n"
.' "VC": "Saint Vincent and the Grenadines",'."\n"
.' "ER": "Eritrea",'."\n"
.' "ES": "Spain",'."\n"
.' "VE": "Venezuela",'."\n"
.' "ET": "Ethiopia",'."\n"
.' "VG": "British Virgin Islands",'."\n"
.' "VI": "United States Virgin Islands",'."\n"
.' "VN": "Vietnam",'."\n"
.' "VU": "Vanuatu",'."\n"
.' "FI": "Finland",'."\n"
.' "FJ": "Fiji",'."\n"
.' "FK": "Falkland Islands",'."\n"
.' "FM": "Micronesia",'."\n"
.' "FO": "Faroe Islands",'."\n"
.' "FR": "France",'."\n"
.' "WF": "Wallis and Futuna",'."\n"
.' "OM": "Oman",'."\n"
.' "PA": "Panama",'."\n"
.' "PE": "Peru",'."\n"
.' "PF": "French Polynesia",'."\n"
.' "PG": "Papua New Guinea",'."\n"
.' "PH": "Philippines",'."\n"
.' "PK": "Pakistan",'."\n"
.' "PL": "Poland",'."\n"
.' "PM": "Saint Pierre and Miquelon",'."\n"
.' "PR": "Puerto Rico",'."\n"
.' "PS": "Palestine",'."\n"
.' "PT": "Portugal",'."\n"
.' "PW": "Palau",'."\n"
.' "PY": "Paraguay",'."\n"
.' "QA": "Qatar",'."\n"
.' "AD": "Andorra",'."\n"
.' "AE": "United Arab Emirates",'."\n"
.' "AF": "Afghanistan",'."\n"
.' "AG": "Antigua and Barbuda",'."\n"
.' "AI": "Anguilla",'."\n"
.' "AL": "Albania",'."\n"
.' "AM": "Armenia",'."\n"
.' "AO": "Angola",'."\n"
.' "AP": "Asia Pacific",'."\n"
.' "AQ": "Antarctica",'."\n"
.' "AR": "Argentina",'."\n"
.' "AS": "American Samoa",'."\n"
.' "RE": "Reunion",'."\n"
.' "AT": "Austria",'."\n"
.' "AU": "Australia",'."\n"
.' "AW": "Aruba",'."\n"
.' "AX": "Aland Islands",'."\n"
.' "AZ": "Azerbaijan",'."\n"
.' "RO": "Romania",'."\n"
.' "BA": "Bosnia and Herzegovina",'."\n"
.' "BB": "Barbados",'."\n"
.' "RS": "Serbia",'."\n"
.' "BD": "Bangladesh",'."\n"
.' "BE": "Belgium",'."\n"
.' "RU": "Russia",'."\n"
.' "BF": "Burkina Faso",'."\n"
.' "RW": "Rwanda",'."\n"
.' "BG": "Bulgaria",'."\n"
.' "BH": "Bahrain",'."\n"
.' "BI": "Burundi",'."\n"
.' "BJ": "Benin",'."\n"
.' "BL": "Saint Barthelemy",'."\n"
.' "BM": "Bermuda",'."\n"
.' "BN": "Brunei",'."\n"
.' "BO": "Bolivia",'."\n"
.' "SA": "Saudi Arabia",'."\n"
.' "BQ": "Bonaire, Sint Eustatius and Saba",'."\n"
.' "SB": "Solomon Islands",'."\n"
.' "BR": "Brazil",'."\n"
.' "SC": "Seychelles",'."\n"
.' "SD": "Sudan",'."\n"
.' "BS": "Bahamas",'."\n"
.' "SE": "Sweden",'."\n"
.' "BT": "Bhutan",'."\n"
.' "SG": "Singapore",'."\n"
.' "BW": "Botswana"'."\n"
.'}.'."\n"
."\n"
.'```.',
'changeSet' => [
['createdAt' => '2021-12-07T10:18:56.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleCodeConfig'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleCodeConfig',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeProtectionModuleMode' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name of the website to query.'."\n"
.'> The domain name must have been added to WAF for protection. You can call [DescribeDomainList](~~255880~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection module whose pattern you want to query. Valid values:'."\n"
."\n"
.'- **waf**: rule protection engine.'."\n"
.'- **dld**: deep learning engine.'."\n"
.'- **ac_cc**: HTTP flood protection.'."\n"
.'- **antifraud**: data risk control.'."\n"
.'- **normalized**: proactive defense.', 'type' => 'string', 'required' => true, 'example' => 'waf', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the domain name belongs in Resource Management. If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['type' => 'string', 'default' => 'cn-hangzhou', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'DE14845A-F46F-59BE-B8F7-6ED7A787D213', 'title' => ''],
'Mode' => ['description' => 'The current protection pattern of the protection module. The valid values and meanings of this parameter vary based on the **DefenseType** request parameter. The following list describes the details:'."\n"
."\n"
.'- If **DefenseType** is set to **waf** (rule protection engine), the valid values of **Mode** are:'."\n"
."\n"
.' - **0**: Block Mode.'."\n"
.' - **1**: Alerting pattern.'."\n"
."\n"
.'- If **DefenseType** is set to **dld** (deep learning engine), the valid values of **Mode** are:'."\n"
."\n"
.' - **0**: Alerting pattern.'."\n"
.' - **1**: Block Mode.'."\n"
."\n"
.'- If **DefenseType** is set to **ac_cc** (HTTP flood protection), the valid values of **Mode** are:'."\n"
."\n"
.' - **0**: Defense mode.'."\n"
.' - **1**: Defense-emergency pattern.'."\n"
."\n"
.'- If **DefenseType** is set to **antifraud** (data risk control), the valid values of **Mode** are:'."\n"
."\n"
.' - **0**: Alerting pattern.'."\n"
.' - **1**: Block Mode.'."\n"
.' - **2**: Strict Block Mode.'."\n"
."\n"
.'- If **DefenseType** is set to **normalized** (proactive defense), the valid values of **Mode** are:'."\n"
."\n"
.' - **0**: Alerting pattern.'."\n"
.' - **1**: Block Mode.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DE14845A-F46F-59BE-B8F7-6ED7A787D213\\",\\n \\"Mode\\": 0\\n}","type":"json"}]',
'title' => 'Query the current protection pattern of a domain name',
'summary' => 'Retrieves the current protection pattern of a specified domain name, such as the RegEx protection engine, big data deep learning engine, HTTP flood protection, data risk control, and proactive defense.',
'description' => 'Queries the current protection pattern used by a specified protection module (including the rule protection engine, deep learning engine, HTTP flood protection, data risk control, and proactive defense) in the website Protection Settings.'."\n"
."\n"
.'You can specify the protection module to query by setting the **DefenseType** parameter. For more information about the valid values, see the description of the **DefenseType** request parameter.'."\n"
."\n"
.'Before calling this operation, you must have called [CreateDomain](~~160780~~) to create a Website Config and add the website domain name to WAF for protection.'."\n"
."\n"
.'To ensure system stability, the queries per second (QPS) is limited to 10 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.',
'requestParamsDescription' => 'When you call this operation, you must include the common request parameters of Alibaba Cloud APIs in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleMode'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleMode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeProtectionModuleRules' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of rules to return on each page in a paging query. Default value: **10**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The current page number in a paging query. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to query. Details:'."\n"
."\n"
.'- When **DefenseType** is set to a value other than **ng_account** (querying website protection settings other than account security rules), this parameter is required.'."\n"
.' > You can invoke [DescribeDomainList](~~255880~~) to query all domain names that have been added to WAF for protection.'."\n"
."\n"
.'- When **DefenseType** is set to **ng_account** (querying account security rule configurations), do not set this parameter. Otherwise, an error message is returned.', 'type' => 'string', 'required' => false, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The type of protection feature configuration to query. Valid values:'."\n"
."\n"
.'- **waf-codec**: rule protection DPI engine decoding settings.'."\n"
."\n"
.'- **tamperproof**: web tamper-proofing rule configurations.'."\n"
."\n"
.'- **dlp**: sensitive information leak prevention rule configurations.'."\n"
."\n"
.'- **ng_account**: account security rule configurations.'."\n"
."\n"
.'- **bot_crawler**: legitimate crawler rule configurations.'."\n"
."\n"
.'- **bot_intelligence**: crawler threat intelligence rule configurations.'."\n"
."\n"
.'- **antifraud**: data risk control protection request configurations.'."\n"
."\n"
.'- **antifraud_js**: data risk control JS insertion page configurations.'."\n"
."\n"
.'- **bot_algorithm**: intelligent algorithm rule configurations.'."\n"
."\n"
.'- **bot_wxbb_pkg**: app protection version protection rules.'."\n"
."\n"
.'- **bot_wxbb**: app protection path protection rules.'."\n"
."\n"
.'- **ac_blacklist**: IP blacklist rule configurations.'."\n"
."\n"
.'- **ac_highfreq**: automatic blocking rules for high-frequency web attack IP addresses.'."\n"
."\n"
.'- **ac_dirscan**: folder scan protection rule configurations.'."\n"
."\n"
.'- **ac_custom**: custom mitigation policy rule configurations.'."\n"
."\n"
.'- **whitelist**: protection whitelist rule configurations.', 'type' => 'string', 'required' => true, 'example' => 'ac_highfreq', 'title' => ''],
],
[
'name' => 'Query',
'in' => 'query',
'schema' => ['description' => 'The filter and sorting settings for rules, expressed as a JSON format string. The following parameters are included:'."\n"
."\n"
.'> This parameter must be in Base64-encoded format. Construct the JSON format string based on the following parameter description and then convert it to Base64 encoding.'."\n"
."\n"
.'- **filter**: JSON format string | Optional | The filter condition. Described in JSON string format, which includes the following parameters:'."\n"
."\n"
.' - **nameId**: String | Optional | Queries rules whose rule ID equals this parameter value or whose rule name contains this parameter value.'."\n"
."\n"
.' - **scene**: String | Optional | The protection module to query. Valid values are the same as those of the **DefenseType** parameter.'."\n"
."\n"
.' - **enabled**: Boolean | Optional | The rule status to query. Valid values:'."\n"
."\n"
.' - **false**: Disabled.'."\n"
."\n"
.' - **true**: Enabled.'."\n"
."\n"
.' - **status**: Integer | Optional | The rule status to query. This parameter has the same meaning as the **enabled** parameter. Valid values:'."\n"
."\n"
.' - **0**: Disabled.'."\n"
."\n"
.' - **1**: Enabled.'."\n"
."\n"
.' - **ruleId**: Integer | Optional | The rule ID to query.'."\n"
."\n"
.' - **ruleIdList**: Array | Optional | The list of rule IDs to query. Separate multiple rule IDs with commas (,).'."\n"
."\n"
.' - **sceneList**: Array | Optional | The list of protection modules to query. Valid values are the same as those of the **DefenseType** parameter. Separate multiple protection modules with commas (,).'."\n"
."\n"
.' - **originList**: Array | Optional | The rule sources. Valid values: **system** (automatically generated by the system) and **custom** (custom-created). Separate multiple rule sources with commas (,).'."\n"
."\n"
.' - **tag**: String | Optional | When the protection module is set to protection whitelist (**whitelist**), set this parameter to query protection whitelist rules that skip detection for a specified module. For the valid values and meanings of the **tag** parameter, refer to the description of the protection whitelist rule configuration in the response elements.'."\n"
."\n"
.' - **origin**: String | Optional | When the protection module is set to protection whitelist (**whitelist**), set this parameter to query protection whitelist rules automatically added by the WAF intelligent rule hosting feature. The value is fixed as **ai**. If this parameter is not set, all protection whitelist rules are queried (including rules you manually added and rules automatically added by the intelligent rule hosting feature).'."\n"
."\n"
.' - **category**: String | Optional | When the protection module is set to protection whitelist (**whitelist**), set this parameter to query a specified whitelist categorization. Valid values:'."\n"
."\n"
.' - **waf**: website whitelist.'."\n"
."\n"
.' - **ws**: Web Intrusion Prevention whitelist.'."\n"
."\n"
.' - **ac**: Access Control/Rate Limiting whitelist.'."\n"
."\n"
.' - **ds**: Data Security whitelist.'."\n"
."\n"
.'- **orderBy**: String | Optional | The sorting field. Valid values:'."\n"
."\n"
.' - **action**: the rule action. This value is valid only when querying custom mitigation policy rules.'."\n"
."\n"
.' - **gmt_modified** (default): the last modification time.'."\n"
."\n"
.' - **name**: the rule name.'."\n"
."\n"
.' - **status**: the rule status.'."\n"
."\n"
.'- **desc**: Boolean | Optional | Specifies whether to sort in descending order. Valid values:'."\n"
."\n"
.' - **false**: Ascending order.'."\n"
."\n"
.' - **true** (default): Descending order.', 'type' => 'string', 'required' => false, 'example' => 'e2ZpbHRlcjp7InJ1bGVJZCI6NDI3NTV9LG9yZGVyQnk6ImdtdF9tb2RpZmllZCIsZGVzYzp0cnVlfQ==', 'title' => ''],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => ['description' => 'The language of the rule name. Valid values:'."\n"
."\n"
.'- **zh**: Chinese.'."\n"
.'- **en**: English.'."\n"
.'- **ja**: Japanese.', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If this parameter is not set, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => 'The total number of rule configurations returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
'Rules' => [
'description' => 'The rule configuration information, including the rule ID, creation time, and status.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The rule status. Valid values:'."\n"
."\n"
.'- **0**: Disabled.'."\n"
."\n"
.'- **1**: Enabled.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Time' => ['description' => 'The time when the rule was created. The value is a UNIX timestamp. Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1570700044', 'title' => ''],
'Content' => ['description' => 'The rule configuration content, expressed as a string converted from a JSON object constructed with a series of parameters.'."\n"
."\n"
.'> The specific parameters vary depending on the protection feature module configuration (**DefenseType**). For more information, refer to the **Content parameter description**.', 'type' => 'object', 'example' => '{"count":60,"interval":60,"ttl":300}', 'title' => ''],
'Version' => ['description' => 'The version number of the current rule configuration.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
'RuleId' => ['description' => 'The rule ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '42755', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 1,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\",\\n \\"Rules\\": [\\n {\\n \\"Status\\": 1,\\n \\"Time\\": 1570700044,\\n \\"Content\\": {\\n \\"count\\": 60,\\n \\"interval\\": 60,\\n \\"ttl\\": 300\\n },\\n \\"Version\\": 2,\\n \\"RuleId\\": 42755\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query WAF protection feature rule configuration records',
'summary' => 'Queries the rule configuration records of WAF protection features, such as Web Intrusion Prevention, Data Security, Bot Management, Access Control or Rate Limiting, and Website Whitelist.',
'description' => 'This operation queries the rule configuration records of specified WAF protection feature modules (including Web Intrusion Prevention, Data Security, Bot Management, Access Control or Rate Limiting, and Website Whitelist) with paging.'."\n"
.'You can specify the protection feature module by setting the **DefenseType** parameter. For the meanings of specific parameter values, refer to the description of the **DefenseType** request parameter.'."\n"
.'To ensure system stability, the queries per second (QPS) is limited to 50 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation appropriately.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, refer to the request example in the **Examples** section.',
'responseParamsDescription' => '**Content parameter description**.'."\n"
."\n"
.' - The JSON string for rule protection engine decoding settings (**waf-codec**) contains the following parameters:'."\n"
."\n"
.' - **codecList**: String | Required | The enabled decoding configuration items.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "codecList":["url","base64"]'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for web tamper-proofing rule configurations (**tamperproof**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The specific URL to protect.'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **status**: Integer | Optional | The protection status of the rule:'."\n"
.' - **0** (default): Not in effect.'."\n"
.' - **1**: In effect.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "uri":"http://www.example.com/example",'."\n"
.' "status":1'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for sensitive information leak prevention rule configurations (**dlp**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **conditions**: Array | Required | The match conditions described in JSON string format. A maximum of two match conditions can be set, and the relationship between conditions is AND. The following parameters are included:'."\n"
."\n"
.' - **key**: The match field.'."\n"
.' - **0**: the protected URL.'."\n"
.' - **10**: sensitive information.'."\n"
.' - **11**: the response code.'."\n"
.' - **operation**: The match logic. The value is fixed as **1**, which indicates Contains.'."\n"
.' - **value**: The match condition values described in JSON string format. Multiple condition values are supported. The following parameters are included:'."\n"
.' - **v**: Applicable only when the match field (**key**) is URL (**0**) or response code (**11**).'."\n"
.' - URL: When `"key":0`, the value is a URL address.'."\n"
.' - Response code: When `"key":11`, valid values include **400**, **401**, **402**, **403**, **404**, **405-499**, **500**, **501**, **502**, **503**, **504**, and **505-599**.'."\n"
.' - **k**: Applicable only when the match field (**key**) is sensitive information (**10**). Valid values:'."\n"
.' - **100**: ID card.'."\n"
.' - **101**: credit card.'."\n"
.' - **102**: phone number.'."\n"
.' - **103**: default sensitive words.'."\n"
.' - **action**: The match action.'."\n"
.' - **3**: Alert.'."\n"
.' - **10**: Sensitive information filtering. This action is applicable only to match conditions that contain sensitive information (`"key":10`).'."\n"
.' - **11**: Return the built-in block page. This action is applicable only to match conditions that contain response codes (`"key":11`).'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "conditions":[{"key":11,"operation":1,"value":[{"v":401}]},{"key":"0","operation":1,"value":[{"v":"www.example.com"}]}],'."\n"
.' "action":3'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for account security rule configurations (**ng_account**) contains the following parameters:'."\n"
."\n"
.' - **domain**: String | Required | The protected domain name.'."\n"
."\n"
.' - **method**: String | Required | The request method to detect, including POST, GET, PUT, and DELETE. Multiple request methods are supported, separated by commas (,).'."\n"
."\n"
.' - **url_path**: String | Required | The detection interface, expressed as a URL path that must start with a forward slash (/).'."\n"
."\n"
.' - **account_left**: String | Required | The account parameter name.'."\n"
."\n"
.' - **password_left**: String | Optional | The password parameter name.'."\n"
."\n"
.' - **action**: String | Required | The protection action. Valid values:'."\n"
.' - **monitor**: Alert.'."\n"
.' - **block**: Block.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "domain":"www.example.com",'."\n"
.' "method":"GET,POST",'."\n"
.' "url_path":"/example",'."\n"
.' "account_left":"aaa",'."\n"
.' "action":"monitor"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for legitimate crawler rule configurations (**bot_crawler**) contains the following parameters:'."\n"
."\n"
.' - **Status**: Integer | Required | Specifies whether to enable the rule. Valid values:'."\n"
.' - 0: Disabled.'."\n"
.' - 1: Enabled.'."\n"
.' - **Version**: Integer | Required | The rule version number.'."\n"
.' - **Content**: String | Required | The rule details described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **conditions**: Array | Optional | The protection path conditions. In legitimate crawler rule configurations, this value is fixed as empty, indicating all paths.'."\n"
.' - **expressions**: Array | Required | The rule conditional expressions that represent all rule condition information in a more readable format.'."\n"
.' - **bypassTags**: String | Required | The modules to skip detection. In legitimate crawler rule configurations, this value is fixed as **antibot**, indicating the Bot Management module.'."\n"
.' - **tags**: Array | Required | The protection feature module to which the rule belongs. In legitimate crawler rule configurations, this value is fixed as `["antibot"]`, indicating the Bot Management module.'."\n"
.' - **RuleId**: Integer | Required | The rule ID.'."\n"
.' - **Time**: String | Required | The last modification time of the rule, expressed as a UNIX timestamp in seconds.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "Status":0,'."\n"
.' "Version":1,'."\n"
.' "Content":{'."\n"
.' "name":"百度蜘蛛白名单",'."\n"
.' "conditions":[],'."\n"
.' "expressions":["remote_addr inl \'ioc.210d077a-cf34-49ad-a9b3-0aa48095c595\' && uri =^ \'/\'"],'."\n"
.' "bypassTags":"antibot",'."\n"
.' "tags":["antibot"]'."\n"
.' },'."\n"
.' "RuleId":20384,'."\n"
.' "Time":1585818161'."\n"
.' }'."\n"
.' ```'."\n"
.'- The JSON string for crawler threat intelligence rule configurations (**bot_intelligence**) contains the following parameters:'."\n"
."\n"
.' - **Status**: Integer | Required | Specifies whether to enable the rule. Valid values:'."\n"
.' - 0: Disabled.'."\n"
.' - 1: Enabled.'."\n"
.' - **Version**: Integer | Required | The rule version number.'."\n"
.' - **Content**: String | Required | The rule details described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **action**: String | Required | The action. Valid values:'."\n"
.' - **monitor**: Monitor.'."\n"
.' - **captcha**: Slider CAPTCHA.'."\n"
.' - **captcha_strict**: Strict slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: Block.'."\n"
.' - **urlList**: Array | Required | The protection paths. A maximum of ten protection paths can be specified. Described in JSON string format, which includes the following parameters:'."\n"
.' - **mode**: String | Required | The match method, used together with the path keyword (**url**) parameter to specify the protection path. Valid values: **eq** (exact match), **prefix-match** (prefix match), and **regex** (regex match).'."\n"
.' - **url**: String | Required | The path keyword, which must start with a forward slash (/).'."\n"
.' - **keyType**: String | Required | The intelligence library type, which includes IP library (**ip**) and fingerprint library (**ua**).'."\n"
.' - **RuleId**: Integer | Required | The rule ID.'."\n"
.' - **Time**: String | Required | The last modification time of the rule, expressed as a UNIX timestamp in seconds.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "Status":1,'."\n"
.' "Version":1,'."\n"
.' "Content":{'."\n"
.' "name":"IDC IP库-腾讯云",'."\n"
.' "action":"captcha_strict",'."\n"
.' "urlList":[{"mode":"prefix-match","url":"/indexa"}, {"mode":"regex","url":"/"},{"mode":"eq","url":"/"}],'."\n"
.' "keyType":"ip"'."\n"
.' },'."\n"
.' "RuleId":922777,'."\n"
.' "Time":1585907112'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for data risk control protection request rule configurations (**antifraud**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The specific protection request URL.'."\n"
.' '."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "http://1.example.com/example"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for data risk control JS insertion page configurations (**antifraud_js**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The URL of the page where the data risk control JS is to be inserted. The system inserts the data risk control JS into all pages under the specified URL path.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "/example/example"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for intelligent algorithm rule configurations (**bot_algorithm**) contains the following parameters:'."\n"
."\n"
.' - **Status**: Integer | Required | Specifies whether to enable the rule. Valid values:'."\n"
.' - 0: Disabled.'."\n"
.' - 1: Enabled.'."\n"
.' - **Version**: Integer | Required | The rule version number.'."\n"
.' - **Content**: String | Required | The rule details described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **timeInterval**: Integer | Required | The detection period. Valid values: 30, 60, 120, 300, and 600. Unit: seconds.'."\n"
.' - **action**: String | Required | The action. Valid values:'."\n"
.' - **monitor**: Monitor.'."\n"
.' - **captcha**: Slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: Block. When Block is selected as the action, the block duration (**blocktime**) parameter must be set.'."\n"
.' - **blocktime**: Integer | Optional | The block duration. Unit: minutes. Valid values: 1 to 600.'."\n"
.' - **algorithmName**: String | Required | The algorithm name. Valid values:'."\n"
.' - **RR**: dedicated resource crawler identification algorithm.'."\n"
.' - **PR**: targeted path crawler identification algorithm.'."\n"
.' - **DPR**: parameter polling crawler identification algorithm.'."\n"
.' - **SR**: dynamic IP crawler identification algorithm.'."\n"
.' - **IND**: proxy device crawler identification algorithm.'."\n"
.' - **Periodicity**: periodicity crawler identification algorithm.'."\n"
.' - **config**: String | Required | The algorithm configuration information in JSON string format. The specific sub-parameters in the algorithm configuration depend on the selected algorithm name (**algorithmName**).'."\n"
.' - The configuration for the dedicated resource crawler identification algorithm (**RR**) includes the following sub-parameters:'."\n"
.' - **resourceType**: Integer | Optional | The requested resource type. Valid values:'."\n"
.' - **1**: dynamic resource type.'."\n"
.' - **2**: static resource type.'."\n"
.' - **-1**: custom resource type. When custom resource type is selected, set the **extensions** parameter to specify the resource suffixes in string format, separated by commas (,). For example, `css,jpg,xls`.'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The range of IP addresses to detect during the detection period. Only IP addresses with a URI of the requests greater than or equal to this value are detected. Specify the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of access requests to the specified resource type among all IP access requests. An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration for the targeted path crawler identification algorithm (**PR**) includes the following sub-parameters:'."\n"
.' - **keyPathConfiguration**: Array | Optional | The request path information. A maximum of 10 paths can be specified. This sub-parameter is required only when the targeted path crawler identification algorithm is used. Described in JSON string format, which includes the following parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String | Required | The request path keyword, which must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method, used together with the request path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regex match).'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The range of IP addresses to detect during the detection period. Only IP addresses with a URI of the requests greater than or equal to this value are detected. Specify the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of access requests to the specified paths among all IP access requests (for the targeted path crawler identification algorithm). An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration for the parameter polling crawler identification algorithm (**DPR**) includes the following sub-parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **urlPattern**: String | Required | The key parameter path, which must start with a forward slash (/). Use {} to represent key parameters. When multiple {} are configured, these parameters are concatenated as the key parameter. For example, `/company/{}/{}/{}/user.php?uid={}`.'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The range of IP addresses to detect during the detection period. Only IP addresses with a URI of the requests greater than or equal to this value are detected. Specify the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of distinct key parameter values among all IP access requests. An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration for the dynamic IP crawler identification algorithm (**SR**) includes the following sub-parameters:'."\n"
.' - **maxRequestCountPerSrSession**: Integer | Required | The minimum number of requests per session used to define an abnormal session. A session is determined as abnormal if the number of requests in a single session is less than this value. Valid values: 1 to 8.'."\n"
.' - **minSrSessionCountPerIp**: Integer | Required | The risk determination condition, which is the threshold for the number of abnormal sessions among IP access requests. An IP address is determined as risky if the number of abnormal sessions in a single IP access request exceeds this value. Valid values: 5 to 300.'."\n"
.' - The configuration for the proxy device crawler identification algorithm (**IND**) includes the following sub-parameters:'."\n"
.' - **minIpCount**: Integer | Required | The malicious device determination condition, which is the threshold for the number of IP address changes associated with the device via WIFI. A device is determined as risky if the number exceeds this threshold. Valid values: 5 to 500.'."\n"
.' - **keyPathConfiguration**: Array | Optional | The detection path information. A maximum of 10 paths can be specified. Described in JSON string format, which includes the following parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String | Required | The detection path keyword, which must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method, used together with the detection path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regex match).'."\n"
.' - The configuration for the periodicity crawler identification algorithm (**Periodicity**) includes the following sub-parameters:'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The range of IP addresses to detect during the detection period. Only IP addresses with a URI of the requests greater than or equal to this value are detected. Specify the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **level**: Integer | Required | The risk determination level, which indicates the degree of periodicity in the access IP pattern. Valid values:'."\n"
.' - **0**: Obvious.'."\n"
.' - **1**: Moderate.'."\n"
.' - **2**: Weak.'."\n"
.' - **RuleId**: Integer | Required | The rule ID.'."\n"
.' - **Time**: String | Required | The last modification time of the rule, expressed as a UNIX timestamp in seconds.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "Status":1,'."\n"
.' "Version":1,'."\n"
.' "Content":{'."\n"
.' "name":"动态IP",'."\n"
.' "timeInterval":60,'."\n"
.' "action":"warn",'."\n"
.' "algorithmName":"IND",'."\n"
.' "config":{"minIpCount":5,"keyPathConfiguration":[{"method":"GET","matchType":"prefix","url":"/index"}]}'."\n"
.' },'."\n"
.' "RuleId":940180,'."\n"
.' "Time":1585832957'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for app protection version protection rule configurations (**bot_wxbb_pkg**) contains the following parameters:'."\n"
."\n"
.' - **Version**: Integer | Required | The rule version number.'."\n"
.' - **Content**: String | Required | The rule details described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **action**: String | Required | The action. Valid values:'."\n"
.' - **test**: Monitor.'."\n"
.' - **close**: Block.'."\n"
.' - **nameList**: Array | Required | The legitimate version information. A maximum of five rules can be specified. Described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The legitimate package name.'."\n"
.' - **signList**: Array | Required | The corresponding package signatures. A maximum of 15 signatures are supported, separated by commas (,).'."\n"
.' - **RuleId**: Integer | Required | The rule ID.'."\n"
.' - **Time**: String | Required | The last modification time of the rule, expressed as a UNIX timestamp in seconds.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "Version":0,'."\n"
.' "Content":{'."\n"
.' "nameList":[{"signList":["xxxxxx","xxxxx","xxxx","xx"],"name":"apk-xxxx"}],'."\n"
.' "name":"test",'."\n"
.' "action":"close"'."\n"
.' },'."\n"
.' "RuleId":271,'."\n"
.' "Time":1585836143'."\n"
.' }'."\n"
.' ```'."\n"
.'- The JSON string for app protection path protection rule configurations (**bot_wxbb**) contains the following parameters:'."\n"
."\n"
.' - **Version**: Integer | Required | The rule version number.'."\n"
.' - **Content**: String | Required | The rule details described in JSON string format, which includes the following parameters:'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **uri**: String | Required | The protection path, which must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method. Valid values: **all** (exact match), **prefix** (prefix match), and **regex** (regex match).'."\n"
.' - **arg**: String | Required | The parameter inclusion, used together with the match method (**matchType**) parameter to specify the protection path configuration.'."\n"
.' - **action**: String | Required | The action. Valid values:'."\n"
.' - **test**: Monitor.'."\n"
.' - **close**: Block.'."\n"
.' - **wxbbVmpFieldType**: Integer | Optional | The custom signing field type. This parameter is not returned if no custom signing field is set in the rule. Valid values:'."\n"
.' - **0**: header.'."\n"
.' - **1**: parameter.'."\n"
.' - **2**: cookie.'."\n"
.' - **wxbbVmpFieldValue**: String | Optional | The custom signing field value. This parameter is not returned if no custom signing field is set in the rule.'."\n"
.' - **blockInvalidSign**: Boolean | Required | Specifies whether to perform the action on invalid signatures.'."\n"
.' - **blockProxy**: Boolean | Required | Specifies whether to perform the action on proxies.'."\n"
.' - **blockSimulator**: Boolean | Required | Specifies whether to perform the action on simulators.'."\n"
.' - **RuleId**: Integer | Required | The rule ID.'."\n"
.' - **Time**: String | Required | The last modification time of the rule, expressed as a UNIX timestamp in seconds.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "Version":6,'."\n"
.' "Content":{'."\n"
.' "blockInvalidSign":true,'."\n"
.' "wxbbVmpFieldValue":"test",'."\n"
.' "blockSimulator":true,'."\n"
.' "matchType":"all",'."\n"
.' "arg":"test",'."\n"
.' "name":"test",'."\n"
.' "action":"close",'."\n"
.' "blockProxy":true,'."\n"
.' "uri":"/index",'."\n"
.' "wxbbVmpFieldType":1'."\n"
.' },'."\n"
.' "RuleId":2585,'."\n"
.' "Time":1586241849'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for IP blacklist rule configurations (**ac_blacklist**) contains the following parameters:'."\n"
."\n"
.' - **empty**: Boolean | Required | Indicates whether the blacklist is empty.'."\n"
.' - **remoteAddr**: Array | Required | The IP addresses in the blacklist.'."\n"
.' - **area**: String | Required | The Location Blacklist rule expressed as a JSON format string, which includes country codes (countryCodes), region codes (regionCodes), and whether to allow access (not) as specific parameters. Because the API operation returns blocked countries and regions in encoding format, view the specific blocked countries and regions in the console.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "empty":false,'."\n"
.' "remoteAddr":["1.XX.XX.1","12.XX.XX.2"]'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for automatic blocking rules for high-frequency web attack IP addresses (**ac_highfreq**) contains the following parameters:'."\n"
."\n"
.' - **interval**: Integer | Required | The detection time range. Unit: seconds. Valid values: 5 to 1800.'."\n"
.' - **ttl**: Integer | Required | The IP blocking duration. Unit: seconds. Valid values: 60 to 86400.'."\n"
.' - **count**: Integer | Required | The web attack count threshold. Blocking is triggered when the number of attacks within the detection time range exceeds this value. Valid values: 2 to 50000.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "interval":60,'."\n"
.' "ttl":300,'."\n"
.' "count":60'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for directory scan protection rule configurations (**ac_dirscan**) contains the following parameters:'."\n"
."\n"
.' - **interval**: Integer | Required | The detection time range. Unit: seconds. Valid values: 5 to 1800.'."\n"
.' - **ttl**: Integer | Required | The IP blocking duration. Unit: seconds.'."\n"
.' - **count**: Integer | Required | The access count threshold. Valid values: 2 to 50000.'."\n"
.' - **weight**: Float | Required | The 404 response code ratio threshold (percentage). Valid values: `(0,1]`.'."\n"
.' - **uriNum**: Integer | Required | The scanned directory count threshold. Valid values: 2 to 50000.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "interval":10,'."\n"
.' "ttl":1800,'."\n"
.' "count":50,'."\n"
.' "weight":0.7,'."\n"
.' "u.',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleRules'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleRules',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeProtectionModuleStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name of the website to query.'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that are added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The WAF security protection feature module to query. Valid values:'."\n"
."\n"
.'- **waf**: rule-based protection engine.'."\n"
.'- **dld**: deep learning engine.'."\n"
.'- **tamperproof**: web tamper-proofing.'."\n"
.'- **dlp**: sensitive information leak prevention.'."\n"
.'- **normalized**: proactive defense.'."\n"
.'- **bot_crawler**: legitimate crawlers.'."\n"
.'- **bot_intelligence**: crawler threat intelligence.'."\n"
.'- **antifraud**: data risk control.'."\n"
.'- **bot_algorithm**: intelligent algorithm.'."\n"
.'- **bot_wxbb**: app protection.'."\n"
.'- **bot_wxbb_pkg**: version protection in app protection.'."\n"
.'- **ac_cc**: HTTP flood protection.'."\n"
.'- **ac_blacklist**: IP blacklist.'."\n"
.'- **ac_highfreq**: blocking of high-frequency web attacks in scan protection.'."\n"
.'- **ac_dirscan**: directory traversal protection in scan protection.'."\n"
.'- **ac_scantools**: scan tool blocking in scan protection.'."\n"
.'- **ac_collaborative**: collaborative defense in scan protection.'."\n"
.'- **ac_custom**: custom protection policy.'."\n"
."\n"
.'> Only one feature module can be set at a time.', 'type' => 'string', 'required' => true, 'example' => 'waf', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance to query.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-aek2hw7****ftqi', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ModuleStatus' => ['description' => 'The enablement status of the protection feature module. Valid values:'."\n"
."\n"
.'- **0**: The feature module is disabled.'."\n"
.'- **1**: The feature module is enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ModuleStatus\\": 1,\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Query the status of WAF protection features',
'summary' => 'Queries the status of WAF protection features, including Web Intrusion Prevention, Data Security, Advanced Protection, Bot Management, Access Control, and Rate Limiting modules.',
'description' => 'Queries the enablement status of a specified WAF protection feature module. You can set the **DefenseType** parameter to specify the protection feature module to query. For more information about the valid values, see the description of the **DefenseType** request parameter. To ensure system stability, the queries per second (QPS) for each user is limited to 50. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request example in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeRuleGroups' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '93352',
'abilityTreeNodes' => ['FEATUREwaf10VDFG'],
],
'parameters' => [
[
'name' => 'SourceIp',
'in' => 'query',
'schema' => ['description' => 'The source IP address of the request. You do not need to specify this parameter. The system automatically obtains the value.', 'type' => 'string', 'required' => false, 'example' => '60.208.*.*', 'title' => ''],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => ['description' => 'The language of the response. Valid values:'."\n"
."\n"
.'- **zh** (default): Chinese'."\n"
.'- **en**: English.', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page in a paginated query. Default value: **10**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => 'The page number of the current page in a paginated query. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'WafLang',
'in' => 'query',
'schema' => ['description' => 'The language of the response. Valid values:'."\n"
."\n"
.'- **ZH** (default): Chinese'."\n"
.'- **EN**: English.', 'type' => 'string', 'required' => false, 'example' => 'ZH', 'title' => ''],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => [
'description' => 'The type of the rule group. Valid values:'."\n"
.'- Empty (default)'."\n"
.'- **10**: system rule group'."\n"
.'- **1**: custom rule group.',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'enum' => ['1', '10'],
'example' => '10',
'title' => '',
],
],
[
'name' => 'PolicyId',
'in' => 'query',
'schema' => ['description' => 'The ID of the rule group. Only a single value is supported.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1011', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_cdnsdf3****', 'title' => ''],
],
[
'name' => 'Region',
'in' => 'query',
'schema' => ['description' => 'The region ID. Valid values: '."\n"
.'- **cn**: Chinese mainland (default)'."\n"
.'- **cn-hongkong**: outside the Chinese mainland.', 'type' => 'string', 'required' => false, 'default' => 'cn', 'example' => 'cn', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-aek2**', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '02E9A4B8-90FB-5F41-A049-*', 'title' => ''],
'TaskStatus' => ['description' => 'The execution status of the current request. Valid values: '."\n"
.'- **0**: pending execution. '."\n"
.'- **1**: in progress. '."\n"
.'- **2**: completed.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'WafTaskId' => ['description' => 'The WAF request ID.', 'type' => 'string', 'example' => '123', 'title' => ''],
'RuleGroups' => [
'description' => 'The list of rule groups.',
'type' => 'array',
'items' => [
'description' => 'The list of rule groups.',
'type' => 'object',
'properties' => [
'Type' => ['description' => 'The type of the rule group. Valid values:'."\n"
.'- **10**: system rule group'."\n"
.'- **1**: custom rule group.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RuleCnt' => ['description' => 'The number of rules in the current rule group.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RuleGroupUpdateTime' => ['description' => 'The time when the rule group was last updated, in seconds (UNIX timestamp).', 'type' => 'integer', 'format' => 'int64', 'example' => '1711445265', 'title' => ''],
'PolicyId' => ['description' => 'The ID of the rule group.', 'type' => 'integer', 'format' => 'int64', 'example' => '116562', 'title' => ''],
'Name' => ['description' => 'The name of the rule group.', 'type' => 'string', 'example' => 'rule_group_test', 'title' => ''],
'TemplatePolicyId' => ['description' => 'The template ID of the rule group.', 'type' => 'integer', 'format' => 'int64', 'example' => '1102', 'title' => ''],
'RuleGroupTemplateName' => ['description' => 'The name of the rule group template.', 'type' => 'string', 'example' => 'rule_group_test', 'title' => ''],
'Desc' => ['description' => 'The description of the rule group.', 'type' => 'string', 'example' => 'desc', 'title' => ''],
'WafVersion' => ['description' => 'The version number of the current configuration, which is used for optimistic locking control.', 'type' => 'integer', 'format' => 'int64', 'example' => '11', 'title' => ''],
'DomainList' => [
'description' => 'The list of domain names that reference the current rule group.',
'type' => 'array',
'items' => ['description' => 'The domain name that references the current rule group.', 'type' => 'string', 'example' => 'test.aliyundome.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"02E9A4B8-90FB-5F41-A049-*\\",\\n \\"TaskStatus\\": 2,\\n \\"Total\\": 1,\\n \\"WafTaskId\\": \\"123\\",\\n \\"RuleGroups\\": [\\n {\\n \\"Type\\": 1,\\n \\"RuleCnt\\": 1,\\n \\"RuleGroupUpdateTime\\": 1711445265,\\n \\"PolicyId\\": 116562,\\n \\"Name\\": \\"rule_group_test\\",\\n \\"TemplatePolicyId\\": 1102,\\n \\"RuleGroupTemplateName\\": \\"rule_group_test\\",\\n \\"Desc\\": \\"desc\\",\\n \\"WafVersion\\": 11,\\n \\"DomainList\\": [\\n \\"test.aliyundome.com\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Query regex rule groups by page',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRuleGroups'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeRuleGroups',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'summary' => '',
],
'DescribeRules' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '93355',
'abilityTreeNodes' => ['FEATUREwaf10VDFG'],
],
'parameters' => [
[
'name' => 'SourceIp',
'in' => 'query',
'schema' => ['description' => 'The source IP address of the request. You do not need to specify this parameter. The system automatically obtains the value.', 'type' => 'string', 'required' => false, 'example' => '42.84.*.*', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page when paging. Default value: **10**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: **1**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'RuleIdKey',
'in' => 'query',
'schema' => ['description' => 'The ID of the rule. Fuzzy match is supported.', 'type' => 'string', 'required' => false, 'example' => ' 1131*0', 'title' => ''],
],
[
'name' => 'CveIdKey',
'in' => 'query',
'schema' => ['description' => 'The CVE ID.', 'type' => 'string', 'required' => false, 'example' => 'CVE-*-*5', 'title' => ''],
],
[
'name' => 'ProtectionType',
'in' => 'query',
'schema' => ['description' => 'The protection type. Valid values:'."\n"
.'- **11**: SQL injection '."\n"
.'- **12**: cross-site scripting (XSS) '."\n"
.'- **13**: code execution '."\n"
.'- **14**: CRLF '."\n"
.'- **15**: local file inclusion (LFI) '."\n"
.'- **16**: remote file inclusion (RFI)'."\n"
.'- **17**: webshell '."\n"
.'- **19**: cross-site request forgery '."\n"
.'- **20**: others '."\n"
.'- **21**: SEMA.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '11', 'title' => ''],
],
[
'name' => 'ApplicationType',
'in' => 'query',
'schema' => ['description' => 'The application type. Valid values:'."\n"
.'- **0**: general'."\n"
.'- **1**: wordpress'."\n"
.'- **2**: dedecms'."\n"
.'- **3**: Discuz'."\n"
.'- **4**: phpcms'."\n"
.'- **5**: ecshop'."\n"
.'- **6**: shopex'."\n"
.'- **7**: Drupal'."\n"
.'- **8**: joomla'."\n"
.'- **9**: Metinfo'."\n"
.'- **10**: Struts2'."\n"
.'- **11**: SpringBoot'."\n"
.'- **12**: Jboss'."\n"
.'- **13**: weblogic'."\n"
.'- **14**: websphere'."\n"
.'- **15**: tomcat'."\n"
.'- **16**: es'."\n"
.'- **17**: ThinkPHP'."\n"
.'- **18**: fastjosn'."\n"
.'- **19**: ImageMagick'."\n"
.'- **20**: PHPWind'."\n"
.'- **21**: PHPAdmin'."\n"
.'- **99**: others.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'RiskLevel',
'in' => 'query',
'schema' => ['description' => 'The risk level of the check item to query. Valid values:'."\n"
."\n"
.'- **0**: high'."\n"
.'- **1**: medium'."\n"
.'- **2**: low.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'RuleGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the regular expression rule group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1012', 'title' => ''],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => ['description' => 'The language of the rule name. Valid values:'."\n"
."\n"
.'- **zh**: Chinese.'."\n"
.'- **en**: English.', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstance](~~433756~~) operation to query instance ID of the WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-*', 'title' => ''],
],
[
'name' => 'Region',
'in' => 'query',
'schema' => ['description' => 'The region ID. Valid values: '."\n"
.'- **cn**: the Chinese mainland (default)'."\n"
.'- **cn-hongkong**: outside the Chinese mainland.', 'type' => 'string', 'required' => false, 'default' => 'cn', 'example' => 'cn', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-*', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RuleGroupTemplateId' => ['description' => 'The ID of the regular expression rule group.', 'type' => 'string', 'example' => '1012', 'title' => ''],
'RuleGroupName' => ['description' => 'The name of the regular expression rule group.', 'type' => 'string', 'example' => 'test111', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-*', 'title' => ''],
'TotalCount' => ['description' => 'The total number of rules returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'RuleGroupTemplateName' => ['description' => 'The name of the rule group.', 'type' => 'string', 'example' => 'rule_group_test', 'title' => ''],
'IsSubscribe' => ['description' => 'The automatic update status of the rule group.'."\n"
."\n"
.'- 1: Automatic update is enabled.'."\n"
."\n"
.'- 2: Automatic update is disabled.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Rules' => [
'description' => 'The list of rules.',
'type' => 'array',
'items' => [
'description' => 'The list of rules.',
'type' => 'object',
'properties' => [
'RiskLevel' => ['description' => 'The risk level of the rule. Valid values:'."\n"
."\n"
.'- **0**: High.'."\n"
.'- **1**: Medium.'."\n"
.'- **2**: Low.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'UpdateTime' => ['description' => 'The time when the rule was last updated.', 'type' => 'integer', 'format' => 'int64', 'example' => '1684120148.0', 'title' => ''],
'Description' => ['description' => 'The description of the rule.', 'type' => 'string', 'example' => '默认', 'title' => ''],
'CveUrl' => ['description' => 'The CVE URL.', 'type' => 'string', 'example' => 'https://avd.aliyun.com/', 'title' => ''],
'ApplicationType' => ['description' => 'The application type. Valid values:'."\n"
.'- **0**: general'."\n"
.'- **1**: wordpress'."\n"
.'- **2**: dedecms'."\n"
.'- **3**: Discuz'."\n"
.'- **4**: phpcms'."\n"
.'- **5**: ecshop'."\n"
.'- **6**: shopex'."\n"
.'- **7**: Drupal'."\n"
.'- **8**: joomla'."\n"
.'- **9**: Metinfo'."\n"
.'- **10**: Struts2'."\n"
.'- **11**: SpringBoot'."\n"
.'- **12**: Jboss'."\n"
.'- **13**: weblogic'."\n"
.'- **14**: websphere'."\n"
.'- **15**: tomcat'."\n"
.'- **16**: es'."\n"
.'- **17**: ThinkPHP'."\n"
.'- **18**: fastjosn'."\n"
.'- **19**: ImageMagick'."\n"
.'- **20**: PHPWind'."\n"
.'- **21**: PHPAdmin'."\n"
.'- **99**: others.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
'CveId' => ['description' => 'CVE ID。', 'type' => 'string', 'example' => 'CVE-2021-*', 'title' => ''],
'ProtectionType' => ['description' => 'The protection type. Valid values:'."\n"
.'- **11**: SQL injection '."\n"
.'- **12**: cross-site scripting (XSS) '."\n"
.'- **13**: code execution '."\n"
.'- **14**: CRLF '."\n"
.'- **15**: local file inclusion (LFI) '."\n"
.'- **16**: remote file inclusion (RFI)'."\n"
.'- **17**: webshell '."\n"
.'- **19**: cross-site request forgery '."\n"
.'- **20**: others '."\n"
.'- **21**: SEMA.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'RuleName' => ['description' => 'The name of the rule.', 'type' => 'string', 'example' => 'rules_41', 'title' => ''],
'RuleId' => ['description' => 'The ID of the rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '42755', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RuleGroupTemplateId\\": \\"1012\\",\\n \\"RuleGroupName\\": \\"test111\\",\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-*\\",\\n \\"TotalCount\\": 1,\\n \\"RuleGroupTemplateName\\": \\"rule_group_test\\",\\n \\"IsSubscribe\\": 1,\\n \\"Rules\\": [\\n {\\n \\"RiskLevel\\": 0,\\n \\"UpdateTime\\": 1684120148,\\n \\"Description\\": \\"默认\\",\\n \\"CveUrl\\": \\"https://avd.aliyun.com/\\",\\n \\"ApplicationType\\": 15,\\n \\"CveId\\": \\"CVE-2021-*\\",\\n \\"ProtectionType\\": 11,\\n \\"RuleName\\": \\"rules_41\\",\\n \\"RuleId\\": 42755\\n }\\n ]\\n}","type":"json"}]',
'title' => 'List rules in a regular expression rule group by page',
'changeSet' => [
['createdAt' => '2024-05-27T10:59:51.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRules'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeRules',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'summary' => '',
],
'DescribeWafSourceIpSegment' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance to query.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'AB2F5E31-EE96-4FD7-9560-45FF****77FF', 'title' => ''],
'Ips' => ['description' => 'The list of back-to-origin IP addresses and CIDR blocks used by the IPv4 WAF protection cluster.', 'type' => 'string', 'example' => '47.XXX.XXX.192/26,……,47.XXX.XXX.0/24', 'title' => ''],
'IpV6s' => ['description' => 'The list of back-to-origin IP addresses and CIDR blocks used by the IPv6 WAF protection cluster.', 'type' => 'string', 'example' => '39.XXX.XXX.0/24,……,2408:400a:XXXX:XXXX::/56', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AB2F5E31-EE96-4FD7-9560-45FF****77FF\\",\\n \\"Ips\\": \\"47.XXX.XXX.192/26,……,47.XXX.XXX.0/24\\",\\n \\"IpV6s\\": \\"39.XXX.XXX.0/24,……,2408:400a:XXXX:XXXX::/56\\"\\n}","type":"json"}]',
'title' => 'Query back-to-origin CIDR blocks of a WAF instance',
'summary' => 'Queries the back-to-origin IP addresses and CIDR blocks used by WAF protection clusters.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request example in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-08T14:06:07.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeWafSourceIpSegment'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeWafSourceIpSegment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyDomain' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-7pp26f1****', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-7pp26f1****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name to configure.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'SourceIps',
'in' => 'query',
'schema' => ['description' => 'The IP addresses or back-to-origin domain name of the origin server associated with the domain name. You can set only one of the two types:'."\n"
."\n"
.'- To set origin server IP addresses, use the `["ip1","ip2",……]` format. You can add up to 20 IP addresses.'."\n"
.'- To set a back-to-origin domain name, use the `["domain"]` format. You can specify only one domain name.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method.', 'type' => 'string', 'required' => false, 'example' => '["39.XX.XX.197"]', 'title' => ''],
],
[
'name' => 'LoadBalancing',
'in' => 'query',
'schema' => ['description' => 'The load balancing algorithm used for back-to-origin requests. Valid values:'."\n"
."\n"
.'- **0**: IP Hash.'."\n"
.'- **1**: round-robin.'."\n"
.'- **2**: Least Time.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'HttpPort',
'in' => 'query',
'schema' => ['description' => 'The list of HTTP ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method. Setting this parameter indicates that the domain name uses the HTTP protocol. **HttpPort** and **HttpsPort** cannot both be empty.', 'type' => 'string', 'required' => false, 'example' => '[80]', 'title' => ''],
],
[
'name' => 'HttpsPort',
'in' => 'query',
'schema' => ['description' => 'The list of HTTPS ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method. Setting this parameter indicates that the domain name uses the HTTPS protocol. **HttpPort** and **HttpsPort** cannot both be empty.', 'type' => 'string', 'required' => false, 'example' => '[443]', 'title' => ''],
],
[
'name' => 'Http2Port',
'in' => 'query',
'schema' => ['description' => 'The list of HTTP 2.0 ports, in the `[port1,port2,……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **HttpsPort** is not empty, which indicates that the domain name uses the HTTPS protocol.', 'type' => 'string', 'required' => false, 'example' => '[443]', 'title' => ''],
],
[
'name' => 'HttpsRedirect',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable HTTPS forced redirect. After HTTPS forced redirect is enabled, HTTP requests from clients are redirected to HTTPS requests. The default redirect port is 443. Valid values:'."\n"
."\n"
.'- **0** (default): disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **HttpsPort** is not empty, which indicates that the domain name uses the HTTPS protocol.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'HttpToUserIp',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable HTTP back-to-origin. After HTTP back-to-origin is enabled, HTTPS requests are forwarded to the origin server over HTTP. The default back-to-origin port is 80. Valid values:'."\n"
."\n"
.'- **0** (default): disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **HttpsPort** is not empty, which indicates that the domain name uses the HTTPS protocol.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '0', 'title' => ''],
],
[
'name' => 'IsAccessProduct',
'in' => 'query',
'schema' => ['description' => 'Specifies whether a Layer 7 proxy such as Anti-DDoS Pro or CDN is deployed in front of WAF, meaning whether client traffic passes through another Layer 7 proxy before reaching WAF. Valid values:'."\n"
."\n"
.'- **0**: no.'."\n"
.'- **1**: yes.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'AccessHeaderMode',
'in' => 'query',
'schema' => ['description' => 'The method that WAF uses to obtain the originating IP address of the client. Valid values:'."\n"
."\n"
.'- **0** (default): WAF reads the first value of the X-Forwarded-For (XFF) field in the request header as the client IP address.'."\n"
.'- **1**: WAF reads the value of a custom field that you specify in the request header as the client IP address.'."\n"
."\n"
.'> This parameter is required only when **IsAccessProduct** is set to **1**, which indicates that a Layer 7 proxy is deployed in front of WAF.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'AccessHeaders',
'in' => 'query',
'schema' => ['description' => 'The list of custom header fields used to obtain the originating IP address of the client, in the `["header1","header2",……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessHeaderMode** is set to **1**, which indicates that WAF reads the value of a custom field that you specify in the request header as the client IP address.', 'type' => 'string', 'required' => false, 'example' => '["X-Client-IP"]', 'title' => ''],
],
[
'name' => 'LogHeaders',
'in' => 'query',
'schema' => ['description' => 'The traffic tag field and value for the domain name, used to tag traffic processed by WAF.'."\n"
."\n"
.'The value of this parameter is in the `[{"k":"_key_","v":"_value_"}]` format. `_key_` specifies the custom request header field, and `_value_` specifies the value of the field.'."\n"
."\n"
.'By specifying a custom request header field and its value, WAF automatically adds the custom field value to the request header as a traffic tag when traffic for the domain name passes through WAF. This helps backend services collect relevant statistics.'."\n"
."\n"
.'> If the custom header field already exists in the request, the system overwrites the existing value with the traffic tag value you specify.', 'type' => 'string', 'required' => false, 'example' => '[{"k":"ALIWAF-TAG","v":"Yes"}]', 'title' => ''],
],
[
'name' => 'ClusterType',
'in' => 'query',
'schema' => ['description' => 'The type of the WAF protection cluster. Valid values:'."\n"
."\n"
.'- **0** (default): physical cluster.'."\n"
.'- **1**: virtual cluster, which is a WAF exclusive cluster.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'ConnectionTime',
'in' => 'query',
'schema' => ['description' => 'The connection timeout period for the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **ClusterType** is set to **1**, which indicates that the WAF exclusive cluster is used.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '5', 'example' => '5', 'title' => ''],
],
[
'name' => 'ReadTime',
'in' => 'query',
'schema' => ['description' => 'The read timeout period for the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **ClusterType** is set to **1**, which indicates that the WAF exclusive cluster is used.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '120', 'example' => '120', 'title' => ''],
],
[
'name' => 'WriteTime',
'in' => 'query',
'schema' => ['description' => 'The write timeout period for the WAF exclusive cluster. Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **ClusterType** is set to **1**, which indicates that the WAF exclusive cluster is used.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '120', 'example' => '120', 'title' => ''],
],
[
'name' => 'AccessType',
'in' => 'query',
'schema' => ['description' => 'The Website Config method. Valid values:'."\n"
."\n"
.'- **waf-cloud-dns** (default): CNAME record.'."\n"
."\n"
.'- **waf-cloud-native**: transparent access.', 'type' => 'string', 'required' => false, 'example' => 'waf-cloud-dns', 'title' => ''],
],
[
'name' => 'CloudNativeInstances',
'in' => 'query',
'schema' => ['description' => 'The list of server and port configurations for transparent access. The value is a string converted from a JSON array. Each element in the JSON array is a struct that contains the following fields:'."\n"
."\n"
.'- **ProtocolPortConfigs**: JSON Array type | Required | The list of protocol and port configurations. Each element in the JSON array is a struct that contains the following fields:'."\n"
.' - **Ports**: Array type | Required | The list of ports, in the `[port1,port2,……]` format.'."\n"
.' - **Protocol**: String type | Required | The protocol type. Valid values: **http**, **https**.'."\n"
.'- **CloudNativeProductName**: String type | Required | The type of the cloud service instance. Valid values: **ECS**, **SLB**, **ALB**.'."\n"
.'- **RedirectionTypeName**: String type | Required | The type of the traffic redirection port. Valid values: **ECS** (ECS port), **SLB-L4** (SLB Layer 4 port), **SLB-L7** (SLB Layer 7 port), **ALB** (ALB port).'."\n"
.'- **InstanceId**: String type | Required | The ID of the cloud service instance.'."\n"
.'- **IPAddressList**: Array type | Required | The list of public IP addresses of the cloud service instance, in the `["ip1","ip2",……]` format.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-native**, which indicates that the domain name is added by using the transparent access method.', 'type' => 'string', 'required' => false, 'example' => '[{"ProtocolPortConfigs":[{"Ports":[80],"Protocol":"http"}],"RedirectionTypeName":"ALB","InstanceId":"alb-s65nua68wdedsp****","IPAddressList":["182.XX.XX.113"],"CloudNativeProductName":"ALB"}]', 'title' => ''],
],
[
'name' => 'IpFollowStatus',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable IPv4/IPv6 back-to-origin protocol following when the origin server addresses include both IPv4 and IPv6 addresses. After this feature is enabled, WAF forwards requests from IPv4 addresses to IPv4 origin servers and requests from IPv6 addresses to IPv6 origin servers. Valid values:'."\n"
."\n"
.'- **0** (default): disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'SniStatus',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable back-to-origin Server Name Indication (SNI). Back-to-origin SNI means that when WAF forwards client requests to the origin server and performs a TLS handshake with the origin server, WAF specifies the host to access through the SNI extension field (Server Name Indicator extension) and establishes an HTTPS connection with that host. If your origin server hosts multiple virtual hosts (corresponding to different domain names), enable back-to-origin SNI. Valid values:'."\n"
.'- **0**: disabled.'."\n"
.'- **1**: enabled.'."\n"
."\n"
.'For WAF instances in the Chinese mainland, back-to-origin SNI is disabled by default. For WAF instances outside the Chinese mainland, back-to-origin SNI is enabled by default.'."\n"
."\n"
.'> This parameter is required only when **AccessType** is set to **waf-cloud-dns**, which indicates that the domain name is added by using the CNAME method, and **HttpsPort** is not empty, which indicates that the domain name uses the HTTPS protocol.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'SniHost',
'in' => 'query',
'schema' => ['description' => 'The custom value of the SNI extension field. If you do not set this parameter, the value of the **Host** field in the request header is used as the SNI extension field value by default.'."\n"
."\n"
.'In most cases, you do not need to customize the SNI value unless your service has special configuration requirements and you want WAF to use an SNI value in back-to-origin requests that differs from the actual request Host.'."\n"
."\n"
.'> This parameter is required only when **SniStatus** is set to **1**, which indicates that back-to-origin SNI is enabled.', 'type' => 'string', 'required' => false, 'example' => 'waf.example.com', 'title' => ''],
],
[
'name' => 'Retry',
'in' => 'query',
'schema' => ['description' => 'Specifies whether WAF retries when back-to-origin fails. Valid values:'."\n"
."\n"
.'- **true** (default): retry.'."\n"
."\n"
.'- **false**: do not retry.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'Keepalive',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable persistent connections. Valid values:'."\n"
."\n"
.'- **true** (default): enabled.'."\n"
."\n"
.'- **false**: disabled.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'KeepaliveRequests',
'in' => 'query',
'schema' => ['description' => 'The number of requests that reuse a persistent connection. Valid values: 60 to 1000.'."\n"
."\n"
.'> This parameter specifies how many requests can reuse a persistent connection after persistent connections are enabled.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '1000', 'minimum' => '60', 'default' => '1000', 'required' => false, 'example' => '1000', 'title' => ''],
],
[
'name' => 'KeepaliveTimeout',
'in' => 'query',
'schema' => ['description' => 'The idle timeout period for persistent connections. Valid values: 1 to 60. Default value: 15. Unit: seconds.'."\n"
."\n"
.'> This parameter specifies how long an idle persistent connection is kept before it is released.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '3600', 'minimum' => '1', 'default' => '15', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not set this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Modify domain name configuration',
'summary' => 'Modifies the configuration of a domain name that has been added to WAF.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-28T12:42:34.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-05-23T05:46:03.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-08-22T10:01:08.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDomain'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyDomainIpv6Status' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-mp9153****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'Enabled',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable IPv6 security protection. Valid values:'."\n"
."\n"
.'- **0**: Disabled.'."\n"
."\n"
.'- **1**: Enabled.', 'type' => 'string', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Enable or disable iPv6 security protection for a domain name configuration',
'summary' => 'Enables or disables the IPv6 security protection feature for a specified domain name configuration.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDomainIpv6Status'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyDomainIpv6Status',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyLogRetrievalStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query instance ID of the WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all added domain names.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'Enabled',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the log search feature. Valid values:'."\n"
."\n"
.'- **0**: disables the feature.'."\n"
."\n"
.'- **1**: enables the feature.'."\n"
."\n"
.'> WAF records access request logs for a domain name only after the log search feature is enabled for the domain name. If you disable the log search feature, access request logs during the disabled period are not recorded. Even if you re-enable the log search feature, you cannot query access request logs generated during the disabled period.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Enable or disable the log search feature for a specified domain name',
'summary' => 'Enables or disables the log search feature for a specified domain name.',
'description' => 'The log search feature has been upgraded to Simple Log Service for WAF. For more information, see [WAF Log Service](~~100503~~). This operation is applicable only to existing users who still have the log search feature. To enable or disable Simple Log Service for WAF for a domain name, call [ModifyLogServiceStatus](~~162742~~).',
'requestParamsDescription' => 'When you call this operation, you must include the common request parameters of Alibaba Cloud APIs in addition to the request parameters described in this topic. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyLogRetrievalStatus'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyLogRetrievalStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyLogServiceStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'Enabled',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the log collection feature. Valid values:'."\n"
."\n"
.'- **0**: disabled'."\n"
."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbbiden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Enable or disable log collection for a specified domain name configuration',
'summary' => 'Enables or disables the log collection feature for a specified domain name configuration by calling the ModifyLogServiceStatus operation.',
'description' => 'Before you enable the log collection feature for a domain name configuration, make sure that the real-time log query and analysis feature is activated for the WAF instance and that WAF is authorized to deliver recorded logs to your dedicated Simple Log Service Logstore.'."\n"
."\n"
.'For more information, see [Real-time log query and analysis](~~100503~~).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyLogServiceStatus'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyLogServiceStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyProtectionModuleMode' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added to WAF.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection module. Valid values:'."\n"
."\n"
.'- **waf**: RegEx protection engine'."\n"
."\n"
.'- **dld**: big data deep learning engine'."\n"
."\n"
.'- **ac_cc**: CC attack protection'."\n"
."\n"
.'- **antifraud**: data risk control'."\n"
."\n"
.'- **normalized**: proactive defense.', 'type' => 'string', 'required' => true, 'example' => 'waf', 'title' => ''],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => ['description' => 'The protection mode.'."\n"
."\n"
.'> The meaning of the **Mode** value varies depending on the specified protection module (**DefenseType**).'."\n"
."\n"
.'- RegEx protection engine (**waf**)'."\n"
.' - **0**: Block mode.'."\n"
.' - **1**: Warn mode.'."\n"
.'- Big data deep learning engine (**dld**)'."\n"
.' - **0**: Warn mode.'."\n"
.' - **1**: Block mode.'."\n"
.'- CC attack protection (**ac_cc**)'."\n"
.' - **0**: Protection mode.'."\n"
.' - **1**: Protection-emergency mode.'."\n"
.'- Data risk control (**antifraud**)'."\n"
.' - **0**: Warn mode.'."\n"
.' - **1**: Block mode.'."\n"
.' - **2**: Strict block mode.'."\n"
.'- Proactive defense (**normalized**)'."\n"
.' - **1**: Block mode.'."\n"
.' - **0**: Warn mode.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. Default value: empty, which indicates the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Modify WAF protection mode',
'summary' => 'Modifies the WAF protection mode for modules such as the RegEx protection engine, big data deep learning engine, CC attack protection, data risk control, and proactive defense.',
'description' => 'You can specify the protection module by setting the **DefenseType** parameter. For more information about the valid values, see the description of the **DefenseType** request parameter.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleMode'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleMode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyProtectionModuleRule' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name whose rule configurations you want to modify.'."\n"
."\n"
.'> You can call [DescribeDomainNames](~~86373~~) to query all domain names that are added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection feature module to which the rule configuration belongs. Valid values:'."\n"
."\n"
.'- **tamperproof**: web tamper-proofing rules.'."\n"
."\n"
.'- **dlp**: sensitive information leak prevention rules.'."\n"
."\n"
.'- **ng_account**: account security rules.'."\n"
."\n"
.'- **bot_intelligence**: crawler threat intelligence.'."\n"
."\n"
.'- **antifraud**: data risk control protection requests.'."\n"
."\n"
.'- **antifraud_js**: data risk control JS insertion pages.'."\n"
."\n"
.'- **bot_algorithm**: intelligent algorithm rules for bot management.'."\n"
."\n"
.'- **bot_wxbb_pkg**: version protection rules for app protection.'."\n"
."\n"
.'- **bot_wxbb**: path protection rules for app protection.'."\n"
."\n"
.'- **ac_blacklist**: IP blacklist rules.'."\n"
."\n"
.'- **ac_highfreq**: automatic blocking rules for high-frequency web attack IP addresses.'."\n"
."\n"
.'- **ac_dirscan**: folder scan protection rules.'."\n"
."\n"
.'- **ac_custom**: custom mitigation policy rules.'."\n"
."\n"
.'- **whitelist**: whitelist rules.', 'type' => 'string', 'required' => true, 'example' => 'ac_custom', 'title' => ''],
],
[
'name' => 'Rule',
'in' => 'query',
'schema' => ['description' => 'The rule configuration content, specified as a string converted from a JSON object constructed with a series of parameters.'."\n"
."\n"
.'> The specific parameters vary depending on the protection module configuration (**DefenseType**) you specify. For more information, see the detailed description of the Rule parameter.', 'type' => 'string', 'required' => true, 'example' => ' {"action":"monitor","name":"test","scene":"custom_acl","conditions":[{"opCode":1,"key":"URL","values":"/example"}]}', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the rule configuration to modify.'."\n"
."\n"
.'> You can call [DescribeProtectionModuleRules](~~100398~~) to query the IDs of all created rules.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '369998', 'title' => ''],
],
[
'name' => 'LockVersion',
'in' => 'query',
'schema' => ['description' => 'The version number of the rule configuration to modify.'."\n"
."\n"
.'> You can call [DescribeProtectionModuleRules](~~100398~~) to query the version number of a rule configuration.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rg-aek2lav****s77i', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Modify WAF protection feature configuration rules',
'summary' => 'Modifies the configuration rules of WAF protection features, such as web intrusion prevention, data security, advanced protection, bot management, access control, throttling, and whitelists.',
'description' => 'This operation modifies the rule configurations of a specified WAF protection module, including web intrusion prevention, data security, advanced protection, bot management, access control or throttling, and whitelist modules. You can specify the protection module by setting the **DefenseType** parameter. For more information about the valid values, see the description of the **DefenseType** request parameter.'."\n"
.'To ensure system stability, the queries per second (QPS) is limited to 10 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.',
'requestParamsDescription' => '**Detailed description of the Rule parameter**.'."\n"
."\n"
.' - The JSON string for web tamper-proofing rule configuration (**tamperproof**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The specific URL to protect.'."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **status**: Integer | Optional | The protection status of the rule. Valid values:'."\n"
.' - **0** (default): Not in effect.'."\n"
.' - **1**: In effect.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "uri":"http://www.example.com/example",'."\n"
.' "status":1 '."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for sensitive information leak prevention rule configuration (**dlp**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **conditions**: Array | Required | The match conditions described in JSON string format. You can specify up to two match conditions, and the conditions have an AND relationship. The following parameters are included:'."\n"
.' - **key**: The match item.'."\n"
.' - **0**: the URL to protect.'."\n"
.' - **10**: sensitive information.'."\n"
.' - **11**: the response code.'."\n"
.' > You cannot set match conditions for both the response code (**11**) and sensitive information (**10**) in the **conditions** parameter at the same time.'."\n"
.' - **operation**: The match logic. The value is fixed as **1**, which indicates Contains.'."\n"
.' - **value**: The match condition values described in JSON string format. Multiple condition values are supported. The following parameters are included:'."\n"
.' - **v**: Applicable only when the match item (**key**) is URL (**0**) or response code (**11**).'."\n"
.' - URL: When `"key":0`, the value is a URL address.'."\n"
.' - Response code: When `"key":11`, valid values include **400**, **401**, **402**, **403**, **404**, **405-499**, **500**, **501**, **502**, **503**, **504**, and **505-599**.'."\n"
.' - **k**: Applicable only when the match item (**key**) is sensitive information (**10**). Valid values:'."\n"
.' - **100**: ID card.'."\n"
.' - **101**: credit card.'."\n"
.' - **102**: phone number.'."\n"
.' - **103**: default sensitive words.'."\n"
.' - **action**: The match action.'."\n"
.' - **3**: alert.'."\n"
.' - **10**: sensitive information filtering. This action applies only to match conditions that contain sensitive information (`"key":10`).'."\n"
.' - **11**: return the built-in block page. This action applies only to match conditions that contain a response code (`"key":11`).'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"example",'."\n"
.' "conditions":[{"key":11,"operation":1,"value":[{"v":401}]},{"key":"0","operation":1,"value":[{"v":"www.example.com"}]}],'."\n"
.' "action":3'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for account security rule configuration (**ng_account**) contains the following parameters:'."\n"
."\n"
.' - **url_path**: String | Required | The detection interface, expressed as a URL path. It must start with a forward slash (/).'."\n"
.' - **method**: String | Required | The request method to detect, including POST, GET, PUT, and DELETE. Multiple request methods are supported and separated by commas (,).'."\n"
.' - **account_left**: String | Required | The account parameter name.'."\n"
.' - **password_left**: String | Optional | The password parameter name.'."\n"
.' - **action**: String | Required | The protection action. Valid values:'."\n"
.' - **monitor**: alert.'."\n"
.' - **block**: block.'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "url_path":"/example",'."\n"
.' "method":"POST,GET,PUT,DELETE",'."\n"
.' "account_left":"aaa",'."\n"
.' "password_left:"123",'."\n"
.' "action":"monitor"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for crawler threat intelligence configuration in bot management (**bot_intelligence**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name. It must correspond to the rule ID (**RuleId**) parameter.'."\n"
.' - **urlList**: Array | Required | The protection paths. You can specify up to 10 protection paths. Expressed in JSON string format with the following parameters:'."\n"
.' - **mode**: String | Required | The match method, used in combination with the path keyword (**url**) parameter to specify the protection path. Valid values: **eq** (exact match), **prefix-match** (prefix match), **regex** (regular expression match).'."\n"
.' - **url**: String | Required | The path keyword. It must start with a forward slash (/).'."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
.' - **monitor**: monitor.'."\n"
.' - **captcha**: slider CAPTCHA.'."\n"
.' - **captcha_strict**: strict slider CAPTCHA. '."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: block.'."\n"
.' - **status**: Integer | Required | The enabled status. Valid values:'."\n"
.' - **0**: disabled.'."\n"
.' - **1**: enabled.'."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "urlList":['."\n"
.' {"mode":"prefix-match","url":"/indexa"},'."\n"
.' {"mode":"regex","url":"/"},'."\n"
.' {"mode":"eq","url":"/"}],'."\n"
.' "name":"IDC IP库-腾讯云",'."\n"
.' "action":"captcha_strict",'."\n"
.' "status":1'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for intelligent algorithm rule configuration in bot management (**bot_algorithm**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **algorithmName**: String | Required | The algorithm name. Valid values:'."\n"
.' - **RR**: dedicated resource crawler identification algorithm.'."\n"
.' - **PR**: targeted path crawler identification algorithm.'."\n"
.' - **DPR**: parameter polling crawler identification algorithm.'."\n"
.' - **SR**: dynamic IP crawler identification algorithm.'."\n"
.' - **IND**: proxy device crawler identification algorithm.'."\n"
.' - **Periodicity**: periodicity crawler identification algorithm.'."\n"
.' - **timeInterval**: Integer | Required | The detection interval. Unit: seconds. Valid values: 30, 60, 120, 300, and 600.'."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
.' - **monitor**: monitor.'."\n"
.' - **captcha**: slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: block. If you select block as the disposition action, you must specify the block duration (**blocktime**) parameter.'."\n"
.' - **blocktime**: Integer | Optional | The block duration. Unit: minutes. Valid values: 1 to 600.'."\n"
.' - **config**: String | Required | The algorithm configuration information, expressed in JSON string format. The specific sub-parameters in the algorithm configuration vary depending on the selected algorithm name (**algorithmName**).'."\n"
.' - The configuration information for the dedicated resource crawler identification algorithm (**RR**) contains the following sub-parameters:'."\n"
.' - **resourceType**: Integer | Optional | The type of requested resource. Valid values:'."\n"
.' - **1**: dynamic resource type.'."\n"
.' - **2**: static resource type.'."\n"
.' - **-1**: custom resource type. If you select custom resource type, you must also specify the **extensions** parameter to define specific resource suffixes in string format, separated by commas (,). Example: `css,jpg,xls`.'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The scope of IP addresses to detect within the detection interval. Only IP addresses with a URI of the requests greater than or equal to the specified value are detected. This parameter specifies the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of access requests to the specified resource type among all IP access requests. An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the targeted path crawler identification algorithm (**PR**) contains the following sub-parameters:'."\n"
.' - **keyPathConfiguration**: Array | Optional | The request path information. You can specify up to 10 paths. This sub-parameter is required only when using the targeted path crawler identification algorithm. Expressed in JSON string format with the following parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String | Required | The request path keyword. It must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method, used in combination with the request path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), **regex** (regular expression match).'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The scope of IP addresses to detect within the detection interval. Only IP addresses with a URI of the requests greater than or equal to the specified value are detected. This parameter specifies the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of access requests to the specified paths among all IP access requests. An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the parameter polling crawler identification algorithm (**DPR**) contains the following sub-parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **urlPattern**: String | Required | The key parameter path. It must start with a forward slash (/). Use {} to represent key parameters. When multiple {} are configured, these parameters are concatenated as the key parameter. Example: `/company/{}/{}/{}/user.php?uid={}`.'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The scope of IP addresses to detect within the detection interval. Only IP addresses with a URI of the requests greater than or equal to the specified value are detected. This parameter specifies the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **minRatio**: Float | Required | The risk determination condition, which is the threshold for the proportion of distinct key parameter values among all IP access requests. An IP address is determined as risky if the proportion exceeds this threshold. Valid values: 0.01 to 1.'."\n"
.' - The configuration information for the dynamic IP crawler identification algorithm (**SR**) contains the following sub-parameters:'."\n"
.' - **maxRequestCountPerSrSession**: Integer | Required | Defines an abnormal session by setting the minimum number of requests per session. A session is determined as abnormal if the number of requests in a single session is less than this value. Valid values: 1 to 8.'."\n"
.' - **minSrSessionCountPerIp**: Integer | Required | The risk determination condition, which is the threshold for the number of abnormal sessions in IP access requests. An IP address is determined as risky if the number of abnormal sessions in a single IP access request exceeds this value. Valid values: 5 to 300.'."\n"
.' - The configuration information for the proxy device crawler identification algorithm (**IND**) contains the following sub-parameters:'."\n"
.' - **minIpCount**: Integer | Required | The malicious device determination condition, which is the threshold for the number of IP address changes associated with the device through Wi-Fi. A device is determined as risky if the number exceeds this threshold. Valid values: 5 to 500.'."\n"
.' - **keyPathConfiguration**: Array | Optional | The detection path information. You can specify up to 10 paths. Expressed in JSON string format with the following parameters:'."\n"
.' - **method**: String | Required | The request method. Valid values: **POST**, **GET**, **PUT**, **DELETE**, **HEAD**, and **OPTIONS**.'."\n"
.' - **url**: String | Required | The detection path keyword. It must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method, used in combination with the detection path keyword (**url**) parameter to specify the request path. Valid values: **all** (exact match), **prefix** (prefix match), **regex** (regular expression match).'."\n"
.' - The configuration information for the periodicity crawler identification algorithm (**Periodicity**) contains the following sub-parameters:'."\n"
.' - **minRequestCountPerIp**: Integer | Required | The scope of IP addresses to detect within the detection interval. Only IP addresses with a URI of the requests greater than or equal to the specified value are detected. This parameter specifies the minimum URI of the requests. Valid values: 5 to 10000.'."\n"
.' - **level**: Integer | Required | The risk determination level, which indicates the degree of periodicity in the access IP pattern. Valid values:'."\n"
.' - **0**: obvious.'."\n"
.' - **1**: moderate.'."\n"
.' - **2**: weak.'."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"代理设备爬虫识别",'."\n"
.' "algorithmName":"IND",'."\n"
.' "timeInterval":"60",'."\n"
.' "action":"warn",'."\n"
.' "config":{'."\n"
.' "minIpCount":5,'."\n"
.' "keyPathConfiguration":[{"url":"/index","method":"GET","matchType":"prefix"}]'."\n"
.' }'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for version protection rule configuration in app protection (**bot_wxbb_pkg**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
.' - **test**: monitor.'."\n"
.' - **close**: block.'."\n"
.' - **nameList**: Array | Required | The legitimate version information. You can specify up to five rules. Expressed in JSON string format with the following parameters:'."\n"
.' - **name**: String | Required | The legitimate package name.'."\n"
.' - **signList**: Array | Required | The corresponding package signatures. You can specify up to 15 signatures, separated by commas (,).'."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"test",'."\n"
.' "action":"close",'."\n"
.' "nameList":[{'."\n"
.' "name":"apk-xxxx",'."\n"
.' "signList":["xxxxxx","xxxxx","xxxx","xx"]'."\n"
.' }]'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for path protection rule configuration in app protection (**bot_wxbb**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **uri**: String | Required | The protection path. It must start with a forward slash (/).'."\n"
.' - **matchType**: String | Required | The match method. Valid values: **all** (exact match), **prefix** (prefix match), **regex** (regular expression match).'."\n"
.' - **arg**: String | Required | The parameter inclusion, used in combination with the match method (**matchType**) parameter to specify the protection path configuration.'."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
.' - **test**: monitor.'."\n"
.' - **close**: block.'."\n"
.' - **hasTag**: Boolean | Required | Specifies whether a custom signature field is required.'."\n"
.' - **true**: Yes. If you select this option, you must specify the **wxbbVmpFieldType** and **wxbbVmpFieldValue** parameters to define the type and value of the signature field.'."\n"
.' - **false**: No.'."\n"
.' - **wxbbVmpFieldType**: Integer | Optional | The type of the custom signature field. Required when the **hasTag** parameter is set to **true**. Valid values:'."\n"
.' - **0**: header.'."\n"
.' - **1**: parameter.'."\n"
.' - **2**: cookie.'."\n"
.' - **wxbbVmpFieldValue**: String | Optional | The value of the custom signature field. Required when the **hasTag** parameter is set to **true**.'."\n"
.' - **blockInvalidSign**: Integer | Required | Specifies whether to apply the disposition action to invalid signatures. The value is fixed as **1**. This is the default mitigation policy for path protection rules.'."\n"
.' - **blockProxy**: Integer | Optional | Specifies whether to apply the disposition action to proxies. The value is fixed as **1**. Do not specify this parameter if you do not need to apply the disposition action to proxy behavior.'."\n"
.' - **blockSimulator**: Integer | Optional | Specifies whether to apply the disposition action to simulators. The value is fixed as **1**. Do not specify this parameter if you do not need to apply the disposition action to simulator behavior.'."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"test",'."\n"
.' "uri":"/index",'."\n"
.' "matchType":"all",'."\n"
.' "arg":"test",'."\n"
.' "action":"close",'."\n"
.' "hasTag":true,'."\n"
.' "wxbbVmpFieldType":2,'."\n"
.' "wxbbVmpFieldValue":"test",'."\n"
.' "blockInvalidSign":1,'."\n"
.' "blockProxy":1'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string for data risk control protection request configuration (**antifraud**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The specific protection request URL.'."\n"
.' '."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "http://1.example.com/example"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for data risk control JS insertion page configuration (**antifraud_js**) contains the following parameters:'."\n"
."\n"
.' - **uri**: String | Required | The URL of the page where the data risk control JS is to be inserted. The system inserts the data risk control JS into all pages under the specified URL path. The value must start with a forward slash (/).'."\n"
."\n"
.' - **Example**.'."\n"
."\n"
.' ```'."\n"
.' {'."\n"
.' "uri": "/example/example"'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for IP blacklist rule configuration (**ac_blacklist**) contains the following parameters:'."\n"
."\n"
.' - **remoteAddr**: Array | Optional | The IP addresses in the blacklist. IP addresses and CIDR blocks are supported. Separate multiple IP addresses with commas (,). You can add up to 200 IP addresses. An empty value clears the IP blacklist.'."\n"
."\n"
.' - **area**: Array | Optional | The regions in the region-level IP blacklist. Expressed as a string converted from a JSON array. Each element in the JSON array is a structure that contains the following fields:'."\n"
."\n"
.' - **countryCodes**: Array | Required | The country codes. If only `["CN"]` is specified, it indicates blocking regions within the Chinese mainland, and you must also specify **regionCodes**. If a value other than `["CN"]` is specified, it indicates blocking regions outside China, and **regionCodes** is not required. You can call [DescribeProtectionModuleCodeConfig](~~201108~~) to query region codes within and outside China.'."\n"
."\n"
.' - **regionCodes**: Array | Optional | The region codes within China.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' { "remoteAddr": [ "1.XX.XX.1", "2.XX.XX.2" ], "area": [ { "countryCodes": [ "CN" ], "regionCodes": [ "310000", "530000" ] }, { "countryCodes": [ "AD", "AL" ] } ] }'."\n"
.' }'."\n"
.' ```'."\n"
.'- The JSON string for automatic blocking rule configuration for high-frequency web attack IP addresses (**ac_highfreq**) contains the following parameters:'."\n"
."\n"
.' - **interval**: Integer | Required | The detection time range. Unit: seconds. Valid values: 5 to 1800.'."\n"
.' - **ttl**: Integer | Required | The IP blocking duration. Unit: seconds. Valid values: 60 to 86400.'."\n"
.' - **count**: Integer | Required | The web attack count threshold. If the number of attacks within the detection time range exceeds this value, blocking is triggered. Valid values: 2 to 50000.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "interval":60,'."\n"
.' "ttl":300,'."\n"
.' "count":60'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The JSON string for directory scan protection rule configuration (**ac_dirscan**) contains the following parameters:'."\n"
."\n"
.' - **interval**: Integer | Required | The detection time range. Unit: seconds. Valid values: 5 to 1800.'."\n"
.' - **ttl**: Integer | Required | The IP blocking duration. Unit: seconds. Valid values: 60 to 86400.'."\n"
.' - **count**: Integer | Required | The access count threshold. Valid values: 2 to 50000.'."\n"
.' - **weight**: Float | Required | The 404 response code ratio threshold (percentage). Valid values: 0 to 1.'."\n"
.' - **uriNum**: Integer | Required | The scanned directory count threshold. Valid values: 2 to 50000.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "interval":10,'."\n"
.' "ttl":1800,'."\n"
.' "count":50,'."\n"
.' "weight":0.7,'."\n"
.' "uriNum":20 '."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.'- The custom mitigation policy rule configuration (**ac_custom**) uses the **scene** parameter in its corresponding JSON string to set ACL access control rules and CC attack protection rules.'."\n"
."\n"
.' - To set an ACL access control rule (the **scene** parameter value is **custom_acl**), the corresponding JSON string contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **scene**: String | Required | The protection type. When setting an ACL access control rule, the value is fixed as **custom_acl**.'."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
.' - **monitor**: monitor.'."\n"
.' - **captcha**: slider CAPTCHA.'."\n"
.' - **captcha_strict**: strict slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: block.'."\n"
.' - **conditions**: Array | Required | The match conditions. You can specify up to 5 match conditions. Described in JSON string format with the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
.' - **0**: does not contain or does not belong to.'."\n"
.' - **1**: contains or belongs to.'."\n"
.' - **2**: does not exist.'."\n"
.' - **10**: does not equal.'."\n"
.' - **11**: equals.'."\n"
.' - **20**: length is less than.'."\n"
.' - **21**: length equals.'."\n"
.' - **22**: length is greater than.'."\n"
.' - **30**: value is less than.'."\n"
.' - **31**: value equals.'."\n"
.' - **32**: value is greater than.'."\n"
."\n"
.' - **values**: The match content. Specify the appropriate content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters depend on the specified match field (**key**). For more information about supported match condition configurations, see [Match condition field description](~~147945~~).'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "action":"monitor",'."\n"
.' "name":"test",'."\n"
.' "scene":"custom_acl",'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}]'."\n"
.' }'."\n"
.' ```.'."\n"
."\n"
.' - To set a CC attack protection rule (the **scene** parameter value is **custom_cc**), the corresponding JSON string contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
.' - **scene**: String | Required | The protection type. When setting a CC attack protection rule, the value is fixed as **custom_cc**.'."\n"
.' - **conditions**: Array | Required | The match conditions. You can specify up to 5 match conditions. Described in JSON string format with the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
."\n"
.' - **0**: does not contain or does not belong to.'."\n"
.' - **1**: contains or belongs to.'."\n"
.' - **2**: does not exist.'."\n"
.' - **10**: does not equal.'."\n"
.' - **11**: equals.'."\n"
.' - **20**: length is less than.'."\n"
.' - **21**: length equals.'."\n"
.' - **22**: length is greater than.'."\n"
.' - **30**: value is less than.'."\n"
.' - **31**: value equals.'."\n"
.' - **32**: value is greater than.'."\n"
."\n"
.' - **values**: The match content. Specify the appropriate content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters depend on the specified match field (**key**).'."\n"
."\n"
.' - **action**: String | Required | The disposition action. Valid values:'."\n"
."\n"
.' - **monitor**: monitor.'."\n"
.' - **captcha**: slider CAPTCHA.'."\n"
.' - **captcha_strict**: strict slider CAPTCHA.'."\n"
.' - **js**: JavaScript verification.'."\n"
.' - **block**: block.'."\n"
."\n"
.' - **ratelimit**: JSON format | Required | The frequency settings. Described in JSON string format with the following parameters:'."\n"
."\n"
.' - **target**: String | Required | The type of statistical object. Valid values:'."\n"
.' - **remote_addr**: IP.'."\n"
.' - **cookie.acw_tc**: session.'."\n"
.' - **queryarg**: custom parameter. If you select custom parameter, you must specify the name of the custom parameter in the **subkey** parameter.'."\n"
.' - **cookie**: custom cookie. If you select custom cookie, you must specify the cookie content in the **subkey** parameter.'."\n"
.' - **header**: custom header. If you select custom header, you must specify the header content in the **subkey** parameter.'."\n"
.' - **subkey**: String | Optional | Required when the **target** parameter is set to **cookie**, **header**, or **queryarg**. Specify the corresponding information in the **subkey** parameter.'."\n"
."\n"
.' - **interval**: Integer | Required | The statistical duration (unit: seconds), which is the statistical period for access counts. Used in combination with the threshold (**threshold**) parameter.'."\n"
."\n"
.' - **threshold**: Integer | Required | The threshold for the number of times a single statistical object can access the protected address within the detection duration.'."\n"
."\n"
.' - **status**: JSON format | Optional | The response code frequency settings. Described in JSON string format with the following parameters:'."\n"
."\n"
.' - **code**: Integer | Required | The specified response code.'."\n"
."\n"
.' - **count**: Integer | Optional | The occurrence count threshold. The protection rule is triggered when the specified response code occurs more than this threshold number of times. Valid values: 1 to 999999999. You can specify either the **count** parameter or the **ratio** parameter, but not both.'."\n"
."\n"
.' - **ratio**: Integer | Optional | The occurrence ratio threshold (percentage). The protection rule is triggered when the proportion of the specified response code exceeds this threshold. Valid values: 1 to 100. You can specify either the **count** parameter or the **ratio** parameter, but not both.'."\n"
."\n"
.' - **scope**: String | Required | The effective scope. Valid values:'."\n"
."\n"
.' - **rule**: within the current feature match scope.'."\n"
."\n"
.' - **domain**: within the domain name scope of the current rule.'."\n"
.' '."\n"
.' - **ttl**: Integer | Required | The duration for which the disposition action takes effect. Unit: seconds. Valid values: 60 to 86400.'."\n"
."\n"
.' - **Example**'."\n"
.' ```'."\n"
.' {'."\n"
.' "name":"CC 防护",'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}],'."\n"
.' "action":"block", '."\n"
.' "scene":"custom_cc", '."\n"
.' "ratelimit":{'."\n"
.' "target": "remote_addr", '."\n"
.' "interval": 300,'."\n"
.' "threshold": 2000,'."\n"
.' "status": {'."\n"
.' "code": 404,'."\n"
.' "count": 200'."\n"
.' },'."\n"
.' "scope": "rule",'."\n"
.' "ttl": 1800'."\n"
.' }'."\n"
.' ```'."\n"
."\n"
.'- The JSON string for website whitelist rule configuration (**whitelist**) contains the following parameters:'."\n"
."\n"
.' - **name**: String | Required | The rule name.'."\n"
."\n"
.' - **tags**: Array | Required | The modules to skip. The modules that can be skipped (**tags**) vary depending on the type of whitelist rule. The details are as follows:'."\n"
."\n"
.' > The values of **tags** can only include the values listed under the specific whitelist type. For example, the **tags** values cannot contain both **regular** and **cc** at the same time, because **regular** belongs to the web intrusion prevention whitelist and **cc** belongs to the access control or throttling whitelist.'."\n"
."\n"
.' - To set a global whitelist, set **tags** to:'."\n"
.' - **waf**: skips all protection modules.'."\n"
."\n"
.' - To set a web intrusion prevention whitelist, set **tags** to one or more of the following values:'."\n"
.' - **regular**: skips the protection rules engine, which includes all protection rules.'."\n"
.' - **regular_rule**: skips the specified protection rules in the protection rules engine. If you select this value, you must set the rule IDs to skip by using the **regularRules** parameter.'."\n"
.' - **regular_type**: skips the specified types of protection rules in the protection rules engine. If you select this value, you must set the rule types to skip by using the **regularTypes** parameter.'."\n"
.' - **deeplearning**: skips the deep learning engine.'."\n"
."\n"
.' - To set an access control or throttling whitelist, set **tags** to one or more of the following values:'."\n"
.' - **cc**: skips the CC security protection module.'."\n"
.' - **customrule**: skips the custom mitigation policy module.'."\n"
.' - **blacklist**: skips the IP blacklist module.'."\n"
.' - **antiscan**: skips the scan protection module.'."\n"
."\n"
.' - To set a data security whitelist, set **tags** to one or more of the following values:'."\n"
.' - **dlp**: skips the sensitive information leak prevention module.'."\n"
.' - **tamperproof**: skips the website tamper-proofing module.'."\n"
.' - **account**: skips the account security module.'."\n"
."\n"
.' - To set a bot management whitelist, set **tags** to one or more of the following values:'."\n"
.' - **bot_intelligence**: skips the crawler threat intelligence module.'."\n"
.' - **bot_algorithm**: skips the typical crawler behavior identification module.'."\n"
.' - **bot_wxbb**: skips the app protection module.'."\n"
.' - **antifraud**: skips the data risk control module.'."\n"
."\n"
.' - **regularRules**: Array | Optional | The list of protection rule IDs to skip. Required if the value of the **tags** parameter contains **regular_rule**. You can go to the **Protection Rule Group** page in the [WAF console](https://yundun.console.aliyun.com/?p=wafnext) and create a rule group to query all web attack protection rules and obtain their IDs. For more information, see [Customize protection rule groups](~~99262~~).'."\n"
.' - **regularTypes**: Array | Optional | The list of protection rule types to skip. Required if the value of the **tags** parameter contains **regular_type**. Valid values:'."\n"
.' - **sqli**: SQL injection.'."\n"
.' - **xss**: cross-site scripting.'."\n"
.' - **code_exec**: code execution.'."\n"
.' - **lfilei**: local file inclusion.'."\n"
.' - **rfilei**: remote file inclusion.'."\n"
.' - **webshell**: WebShell.'."\n"
.' - **vvip**: custom protection rules.'."\n"
.' - **other**: other types.'."\n"
."\n"
.' - **conditions**: Array | Required | The match conditions. You can specify up to 5 match conditions. Described in JSON string format with the following parameters:'."\n"
."\n"
.' - **key**: The match field. Valid values: **URL**, **IP**, **Referer**, **User-Agent**, **Params**, **Cookie**, **Content-Type**, **Content-Length**, **X-Forwarded-For**, **Post-Body**, **Http-Method**, **Header**, and **URLPath**.'."\n"
."\n"
.' - **opCode**: The logical operator. Valid values:'."\n"
."\n"
.' - **0**: does not contain or does not belong to.'."\n"
."\n"
.' - **1**: contains or belongs to.'."\n"
."\n"
.' - **2**: does not exist.'."\n"
."\n"
.' - **10**: does not equal.'."\n"
."\n"
.' - **11**: equals.'."\n"
."\n"
.' - **20**: length is less than.'."\n"
."\n"
.' - **21**: length equals.'."\n"
."\n"
.' - **22**: length is greater than.'."\n"
."\n"
.' - **30**: value is less than.'."\n"
."\n"
.' - **31**: value equals.'."\n"
."\n"
.' - **32**: value is greater than.'."\n"
."\n"
.' '."\n"
."\n"
.' - **values**: The match content. Specify the appropriate content as needed, expressed as a String type.'."\n"
."\n"
.' > The valid values of the logical operator (**opCode**) and match content (**values**) parameters depend on the specified match field (**key**).'."\n"
."\n"
.' - **Example**'."\n"
.' '."\n"
.' ```'."\n"
.' {'."\n"
.' "name": "test",'."\n"
.' "tags": ["cc","customrule"],'."\n"
.' "conditions":[{"opCode":1,"key":"URL","values":"/example"}],'."\n"
.' }'."\n"
.' ```'."\n"
."\n\n"
."\n"
.'When calling this operation, in addition to the request parameters described in this topic, you must also include the Alibaba Cloud common request parameters. For more information about common request parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the format of API requests, see the request examples in the **Examples** section of this topic.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleRule'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyProtectionModuleStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name of the website to operate on.'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that are added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => 'www.aliyundoc.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The WAF security protection module to operate on. Valid values:'."\n"
."\n"
.'- **waf**: rule-based protection policy engine.'."\n"
.'- **dld**: deep learning engine.'."\n"
.'- **tamperproof**: web tamper-proofing.'."\n"
.'- **dlp**: sensitive information leak prevention.'."\n"
.'- **normalized**: proactive defense.'."\n"
.'- **bot_crawler**: legitimate crawlers.'."\n"
.'- **bot_intelligence**: crawler threat intelligence.'."\n"
.'- **antifraud**: data risk control.'."\n"
.'- **bot_algorithm**: intelligent algorithm.'."\n"
.'- **bot_wxbb**: app protection.'."\n"
.'- **bot_wxbb_pkg**: version protection in app protection.'."\n"
.'- **ac_cc**: HTTP flood protection.'."\n"
.'- **ac_blacklist**: IP blacklist.'."\n"
.'- **ac_highfreq**: blocking of high-frequency web attacks in scan protection.'."\n"
.'- **ac_dirscan**: folder traverse protection in scan protection.'."\n"
.'- **ac_scantools**: scan tool blocking in scan protection.'."\n"
.'- **ac_collaborative**: collaborative defense in scan protection.'."\n"
.'- **ac_custom**: custom protection policy.'."\n"
."\n"
.'> You can set only one feature module at a time.', 'type' => 'string', 'required' => true, 'example' => 'waf', 'title' => ''],
],
[
'name' => 'ModuleStatus',
'in' => 'query',
'schema' => ['description' => 'The status of the protection module. Valid values:'."\n"
."\n"
.'- **0**: Disabled.'."\n"
.'- **1**: Enabled.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance to operate on.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-zz11sr5****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekztsixucs****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Enable or disable a specified WAF protection feature',
'summary' => 'Enables or disables a specified WAF protection feature, such as web intrusion prevention, data security, advanced protection, bot management, access control, or throttling.',
'description' => 'This operation enables or disables a specified WAF protection module.'."\n"
.'You can set the **DefenseType** parameter to specify the protection module to operate on. For more information about the valid values, see the description of the **DefenseType** request parameter.'."\n"
.'To ensure system stability, the China Chinese mainland per-user queries per second (QPS) limit is 20. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.',
'requestParamsDescription' => 'In addition to the request parameters described in this topic, you must include Alibaba Cloud API common parameters in your request. For more information about common parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request example in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleStatus'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyProtectionRuleCacheStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '93407',
'abilityTreeNodes' => ['FEATUREwafI1HM4C'],
],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the rule.'."\n"
.'> Call the [DescribeProtectionModuleRules](~~100398~~) operation to query the IDs of all rules.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '42755', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection module. Set the value to **tamperproof**.', 'type' => 'string', 'required' => true, 'example' => 'tamperproof', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
.'> Call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => "\n"
.'The ID of the resource group to which the WAF instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19160D5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19160D5EB0\\"\\n}","type":"json"}]',
'title' => 'Update the cache of a page protected by a web tamper-proofing rule',
'summary' => 'Updates the cache of a page protected by a specified web tamper-proofing rule.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-06-25T11:40:13.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionRuleCacheStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionRuleCacheStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ModifyProtectionRuleStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '93408',
'abilityTreeNodes' => ['FEATUREwafNZKQ0J'],
],
'parameters' => [
[
'name' => 'Domain',
'in' => 'query',
'schema' => ['description' => 'The domain name that has been added.', 'type' => 'string', 'required' => true, 'example' => 'www.example.com', 'title' => ''],
],
[
'name' => 'DefenseType',
'in' => 'query',
'schema' => ['description' => 'The protection feature module. Valid values:'."\n"
."\n"
.'- **tamperproof**: web tamper-proofing'."\n"
."\n"
.'- **bot_crawler**: the legitimate search engine whitelist in the legitimate crawlers feature module'."\n"
."\n"
.'- **bot_intelligence**: crawler threat intelligence'."\n"
."\n"
.'- **ac_custom**: custom protection policy'."\n"
."\n"
.'- **whitelist**: website whitelist', 'type' => 'string', 'required' => true, 'example' => 'tamperproof', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the protection rule.'."\n"
."\n"
.'> You can call the [DescribeProtectionModuleRules](~~100398~~) operation to query all rule IDs.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '42755', 'title' => ''],
],
[
'name' => 'RuleStatus',
'in' => 'query',
'schema' => ['description' => 'The status of the protection rule. Valid values:'."\n"
."\n"
.'- **0**: disabled'."\n"
.'- **1**: enabled.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'LockVersion',
'in' => 'query',
'schema' => ['description' => 'The version number of the rule configuration record.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'Instance ID of the WAF instance.'."\n"
."\n"
.'> You can call the [DescribeInstanceInfo](~~140857~~) operation to query instance ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf_elasticity-cn-0xldbqt****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the WAF instance belongs in Resource Management. By default, this parameter is empty, which indicates that the instance belongs to the default resource group.'."\n"
."\n"
.'For more information about resource groups, see [Create a resource group](~~94485~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Enable or disable WAF protection modules for a domain name',
'summary' => 'Enables or disables WAF protection feature modules for a domain name, such as web tamper-proofing, legitimate crawlers, crawler threat intelligence, custom protection policies, and website whitelists.',
'description' => 'You can specify the protection module by setting the **DefenseType** parameter. For more information about the valid values, see the description of the **DefenseType** request parameter.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-06-25T11:40:13.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionRuleStatus'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionRuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'MoveResourceGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF resource to move.'."\n"
."\n"
.'After you configure a Website Config for a domain name in WAF, the domain name represents a WAF resource. A WAF resource uses a resource ID (ResourceId) as its unique identity in Resource Management. The resource ID of a WAF resource is in the format of `<InstanceId>~<Domain>`:'."\n"
."\n"
.'- `<InstanceId>` specifies the ID of the current WAF instance. You can invoke the [DescribeInstanceInfo](~~140857~~) operation in the WAF API to query the ID of the current WAF instance.'."\n"
."\n"
.'- `<Domain>` specifies the website domain name that is added to the WAF instance for protection. You can invoke the [DescribeDomainList](~~255880~~) operation in the WAF API to query all domain names added to the WAF instance for protection.'."\n"
."\n"
.'- `<InstanceId>` and `<Domain>` are connected by `~` to form the resource ID of the WAF domain name resource.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-09k1rd5****~www.example.com', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which you want to move the WAF resource.'."\n"
."\n"
.'After you create a resource group in Resource Management, a unique identifier is generated for the resource group, which is the resource group ID (ResourceGroupId).'."\n"
."\n"
.'You can view all resource group IDs on the **Resource Group** page in the [Resource Management console](https://resourcemanager.console.aliyun.com/resource-groups), or call the [ListResourceGroups](~~158855~~) operation provided by Resource Management to query all resource group IDs.', 'type' => 'string', 'required' => true, 'example' => 'rg-atstuj3rtop****', 'title' => ''],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => 'The type of the WAF resource. Set the value to **domain**, which indicates that the WAF resource type is domain name only.', 'type' => 'string', 'required' => true, 'example' => 'domain', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance resides. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: the Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request. Alibaba Cloud generates a unique identifier for each request. You can use the request ID to troubleshoot issues.', 'type' => 'string', 'example' => 'C33EB3D5-AF96-43CA-9C7E-37A8****6A1E', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33EB3D5-AF96-43CA-9C7E-37A8****6A1E\\"\\n}","type":"json"}]',
'title' => 'Move a resource to a new resource group',
'summary' => 'Moves a WAF resource to a different resource group.',
'description' => 'A WAF resource represents a domain name that is added to WAF for protection. A resource group is a mechanism for organizing and managing resources within an Alibaba Cloud account. Resource groups help you manage resources across multiple projects or applications and simplify user authorization management within a single account. Domain name resources added to WAF belong to the default resource group by default. You can move WAF domain name resources to a custom resource group for grouped resource management.'."\n"
."\n"
.'You can create a resource group in the Alibaba Cloud Management Console. For related operations, see [Create a resource group](https://www.alibabacloud.com/help/en/resource-management/user-guide/create-a-resource-group). You can also create a resource group by invoking the Resource Management API. For more information, see [CreateResourceGroup](https://www.alibabacloud.com/help/en/resource-management/api-createresourcegroup).'."\n"
."\n"
.'For more information about resource groups, see [What is Resource Management?](https://www.alibabacloud.com/help/en/resource-management/product-overview/what-is-resource-management).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'MoveResourceGroup'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:MoveResourceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'SetDomainRuleGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Domains',
'in' => 'query',
'schema' => ['description' => 'The list of domain names for which you want to configure the protection rule group. Specify the value as a string converted from an array.'."\n"
."\n"
.'You can specify multiple domain names at a time in the following format: `["<Domain name 1>","<Domain name 2>",...]`.'."\n"
."\n"
.'> You can call [DescribeDomainList](~~255880~~) to query all domain names that have been added to WAF for protection.', 'type' => 'string', 'required' => true, 'example' => '["www.aliyundoc.com"]', 'title' => ''],
],
[
'name' => 'RuleGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the protection rule group to apply to the rule-based protection engine. Valid values:'."\n"
."\n"
.'- **1011**: the built-in Strict rule group of WAF.'."\n"
.'- **1012**: the built-in Medium rule group of WAF.'."\n"
.'- **1013**: the built-in Loose rule group of WAF.'."\n"
."\n"
.'In addition to the built-in rule groups listed above, you can also specify the ID of a custom rule group.'."\n"
."\n"
.'> You can obtain the ID of a custom rule group on the **Protection Rule Group** page in the [Web Application Firewall console](https://yundun.console.aliyun.com/?p=wafnext).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1012', 'title' => ''],
],
[
'name' => 'WafVersion',
'in' => 'query',
'schema' => ['description' => 'The version number for the current configuration, which is used for optimistic locking control.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the WAF instance.'."\n"
."\n"
.'> You can call [DescribeInstanceInfo](~~140857~~) to query the ID of the current WAF instance.', 'type' => 'string', 'required' => true, 'example' => 'waf-cn-tl32ast****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which the domain name belongs in Resource Management.'."\n"
."\n"
.'If you do not specify this parameter, the default resource group is used.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfm2pz25js****', 'title' => ''],
],
[
'name' => 'WafAiStatus',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the intelligent rule hosting feature. Valid values:'."\n"
.'- **0**: disabled.'."\n"
.'- **1** (default): enabled.'."\n"
."\n"
.'Intelligent rule hosting means that WAF intelligently learns the behavior patterns of historical business traffic, identifies protection rules that may cause false positives for normal business, and automatically configures web intrusion protection whitelists to block the corresponding protection rules in specific business protection scenarios. After the false positive risk is eliminated, the blocked protection rules are restored.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the WAF instance is deployed. Valid values:'."\n"
."\n"
.'- **cn-hangzhou**: Chinese mainland.'."\n"
."\n"
.'- **ap-southeast-1**: outside the Chinese mainland.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'D7861F61-5B61-46CE-A47C-6B19****5EB0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7861F61-5B61-46CE-A47C-6B19****5EB0\\"\\n}","type":"json"}]',
'title' => 'Configure a protection rule group for a domain name',
'summary' => 'Configures the protection rule group used by the regular expression protection engine for a specified domain name. In addition to the three system default protection rule groups, you can also select a custom rule group.',
'description' => 'Configures the protection rule group for the rule-based protection engine and the status of the intelligent rule hosting feature for a specified domain name.'."\n"
.'When configuring a protection rule group, you can use the built-in Normal, Strict, and Loose protection rule groups provided by WAF, or select a custom rule group. To ensure system stability, the queries per second (QPS) is limited to 10 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.'."\n"
."\n"
.'><notice> Creating custom rule groups through the API is not currently supported. You must first create a rule group and obtain the corresponding rule group ID on the **System Management** > **Protection Rule Group** page in the [Web Application Firewall console](https://yundun.console.aliyun.com/?p=wafnext) before you can call this operation to apply a custom rule group to a domain name.'."\n"
.'></notice>.',
'requestParamsDescription' => 'When you call this operation, you must include common Alibaba Cloud API request parameters in addition to the operation-specific request parameters described in this topic. For more information about common parameters, see [Common parameters](~~162719~~).'."\n"
."\n"
.'For the request format, see the request examples in the **Examples** section of this topic.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-01-18T08:24:59.000Z', 'description' => 'Request parameters changed, Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetDomainRuleGroup'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:SetDomainRuleGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'wafopenapi.ap-southeast-1.aliyuncs.com', 'endpoint' => 'wafopenapi.ap-southeast-1.aliyuncs.com', 'vpc' => 'wafopenapi-intl.vpc-proxy.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'wafopenapi.cn-hangzhou.aliyuncs.com', 'endpoint' => 'wafopenapi.cn-hangzhou.aliyuncs.com', 'vpc' => 'wafopenapi.vpc-proxy.aliyuncs.com'],
],
'errorCodes' => [
['code' => '10900', 'message' => 'Invalid parameter', 'http_code' => 400, 'description' => 'Invalid parameter'],
['code' => '11001', 'message' => 'Internal server error', 'http_code' => 400, 'description' => 'System internal error'],
['code' => '500', 'message' => 'Internal server error', 'http_code' => 500, 'description' => 'Internal System Error'],
['code' => 'AccountSafeUsed', 'message' => 'The feature of account security is being used.', 'http_code' => 400, 'description' => 'The account security feature is in use.'],
['code' => 'AclIpCountOverLimit', 'message' => 'Ip count in ACL rule is over limit.', 'http_code' => 400, 'description' => 'The number of IP addresses in the custom rule (ACL) exceeds the limit.'],
['code' => 'AclParamError', 'message' => 'Acl param invalid.', 'http_code' => 400, 'description' => 'The ACL parameter is invalid.'],
['code' => 'AntifraudOrAntifriaudJsUsed', 'message' => 'The feature of data risk control is being used.', 'http_code' => 400, 'description' => 'The data risk control feature is in use.'],
['code' => 'BotAlgorithmUsed', 'message' => 'The feature of crawler behavior algorithm is being used.', 'http_code' => 400, 'description' => 'The typical bot behavior identification feature is in effect.'],
['code' => 'BusinessDomainNotRecord', 'message' => 'The specified domain name is not ICP filed.', 'http_code' => 400, 'description' => 'The specified domain name does not have an ICP filing.'],
['code' => 'BusinessInvalidArgument', 'message' => 'The specified parameters are invalid.', 'http_code' => 403, 'description' => 'The specified parameter is invalid.'],
['code' => 'BusinessInvalidDomainIpInvalid', 'message' => 'The IP address cannot be added.', 'http_code' => 403, 'description' => 'The IP address cannot be added.'],
['code' => 'BusinessInvalidIpv6', 'message' => 'Back-to-origin IPv6 addresses are not supported. To add these IP addresses, you must enable the feature of forwarding requests to origin servers over IPv6.', 'http_code' => 403, 'description' => 'Back-to-origin IPv6 addresses are not supported. To add these IP addresses, you must enable the feature of forwarding requests to origin servers over IPv6.'],
['code' => 'BusinessInvalidSourceIp', 'message' => 'The origin fetch address includes disallowed IP addresses or domains.', 'http_code' => 400, 'description' => 'The back-to-origin addresses include IP addresses and domain names that are not allowed.'],
['code' => 'BusinessIpDomain', 'message' => 'The current access domain does not support in IP format.', 'http_code' => 400, 'description' => 'The IP address format is not supported.'],
['code' => 'BusinessMainDomainNotSupport', 'message' => 'The added primary domain name is not supported.', 'http_code' => 403, 'description' => 'The added second-level domain name is not supported.'],
['code' => 'BusinessSourceIpSupportVirtuaIp', 'message' => 'You can only add wan net ip.', 'http_code' => 403, 'description' => 'Currently, it is a customized version of shared virtual host, and only the IP address of Wanwang virtual host can be added.'],
['code' => 'BusinessViolation', 'message' => 'The domain-related business is suspected of violating regulations. If you have any questions, please follow the ticket process.', 'http_code' => 400, 'description' => 'The domain-related business is suspected of violating regulations. If you have any questions, please follow the ticket process.'],
['code' => 'CertDomainNotMatch', 'message' => 'The certificate does not include this domain.', 'http_code' => 400, 'description' => 'This certificate does not contain the domain name.'],
['code' => 'CertExpiredError', 'message' => 'The certificate has expired. Do not continue using this certificate.', 'http_code' => 400, 'description' => 'The certificate is expired. You can no longer use this certificate.'],
['code' => 'CertFormatError', 'message' => 'The certificate is malformed.', 'http_code' => 400, 'description' => 'The format of the certificate is invalid.'],
['code' => 'CertKeyNotMatch', 'message' => 'The certificate file and private key do not match.', 'http_code' => 400, 'description' => 'The certificate file does not match the private key of the certificate.'],
['code' => 'CertNameDuplicateError', 'message' => 'The certificate name already exists.', 'http_code' => 400, 'description' => 'The name of the certificate already exists.'],
['code' => 'CertNameExisted', 'message' => 'The certificate name already exists.', 'http_code' => 400, 'description' => 'The name of the certificate already exists.'],
['code' => 'CertNotExist', 'message' => 'The certificate is not exist.', 'http_code' => 400, 'description' => 'The certificate does not exist.'],
['code' => 'ComboError', 'message' => 'No package information is available.', 'http_code' => 400, 'description' => 'No software package information is available.'],
['code' => 'CustomAclOrCcUsed', 'message' => 'The feature of advanced conditions is being used.', 'http_code' => 400, 'description' => 'The custom rule (ACL) is in use.'],
['code' => 'CustomRulesGroupUsed', 'message' => 'The feature of custom rule group is being used.', 'http_code' => 400, 'description' => 'The custom policy group is in use.'],
['code' => 'CustomSpeedLimitUsed', 'message' => 'The feature of custom throttling is being used.', 'http_code' => 400, 'description' => 'The custom rule (throttling) is in use.'],
['code' => 'Defense.Contro.DefenseTemplateSubSceneNotExist', 'message' => 'The protection scenario template sub-scene does not exist.', 'http_code' => 400, 'description' => 'The protection scenario template sub-scene does not exist.'],
['code' => 'Defense.Control.DefenseActonExpiredTimeInvalid', 'message' => 'The expiration time of the rule action is invalid.', 'http_code' => 400, 'description' => 'The expiration time of the rule action is invalid.'],
['code' => 'Defense.Control.DefenseAddressBookInUse', 'message' => 'The address book is in use and cannot be deleted.', 'http_code' => 400, 'description' => 'The address book is in use and cannot be deleted. Rules for using this address book: %s.'],
['code' => 'Defense.Control.DefenseAddressFileFormatError', 'message' => 'The format of the uploaded address book file is incorrect.', 'http_code' => 400, 'description' => 'The format of the uploaded address book file is incorrect.'],
['code' => 'Defense.Control.DefenseAddressInvalid', 'message' => 'The address in the address book is illegal.', 'http_code' => 400, 'description' => 'The address in the address book is illegal.'],
['code' => 'Defense.Control.DefenseAddressOperationTooFrequent', 'message' => 'Address book operations are too frequent.', 'http_code' => 400, 'description' => 'Address book operations are too frequent. Please try again later.'],
['code' => 'Defense.Control.DefenseAddressOversize', 'message' => 'The number of addresses in the address book exceeds the limit.', 'http_code' => 400, 'description' => 'The number of addresses in the address book exceeds the limit.'],
['code' => 'Defense.Control.DefenseAddressUploading', 'message' => 'The address book file is being uploaded, please try again later.', 'http_code' => 400, 'description' => 'The address book file is being uploaded, please try again later.'],
['code' => 'Defense.Control.DefenseAiAssetPositionInvalid', 'message' => 'The position parameter of the large model protection asset is incorrect.', 'http_code' => 400, 'description' => 'The position parameter of the large model protection asset is incorrect.'],
['code' => 'Defense.Control.DefenseAiWhitelistStatusInvalid', 'message' => 'The status of ai whitelist is invalid.', 'http_code' => 400, 'description' => 'The status of the intelligent whitelist is invalid.'],
['code' => 'Defense.Control.DefenseAntiscanRuleConfigInvalid', 'message' => 'The configuration of anti scanning rules in the scanning protection policy is illegal.', 'http_code' => 400, 'description' => 'The configuration of the scan protection rule is invalid.'],
['code' => 'Defense.Control.DefenseAntiscanRuleConfigInvalid', 'message' => 'The configuration of the scan protection rule is invalid.', 'http_code' => 400, 'description' => 'The configuration of the scan protection rule is invalid.'],
['code' => 'Defense.Control.DefenseApisecRuleRegexInvalid', 'message' => 'The regular expression in the API security rule is invalid. Error reason: %s.', 'http_code' => 400, 'description' => 'The regular expression in an API security rule is invalid. Error reason:%s.'],
['code' => 'Defense.Control.DefenseAssetConditionDuplicate', 'message' => 'The match conditions of the asset is duplicated with other assets.', 'http_code' => 400, 'description' => 'The match conditions of the asset is duplicated with other assets.'],
['code' => 'Defense.Control.DefenseAssetConditionInvalid', 'message' => 'The protection asset flow matching condition is incorrect.', 'http_code' => 400, 'description' => 'The protection asset flow matching condition is incorrect.'],
['code' => 'Defense.Control.DefenseAssetConfigInvalid', 'message' => 'The protection asset is configured incorrectly.', 'http_code' => 400, 'description' => 'The protection asset is configured incorrectly.'],
['code' => 'Defense.Control.DefenseAssetCountOversize', 'message' => 'The number of protected assets exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected assets exceeds the limit.'],
['code' => 'Defense.Control.DefenseAssetExist', 'message' => 'Protective asset configuration already exists.', 'http_code' => 400, 'description' => 'Protective asset configuration already exists.'],
['code' => 'Defense.Control.DefenseAssetNameComplicate', 'message' => 'The name of the asset duplicates another asset.', 'http_code' => 400, 'description' => 'The name of the asset duplicates another asset.'],
['code' => 'Defense.Control.DefenseAssetNameInvalid', 'message' => 'The asset name is illegal.', 'http_code' => 400, 'description' => 'The asset name is illegal.'],
['code' => 'Defense.Control.DefenseAssetNotExist', 'message' => 'Protective asset does not exist.', 'http_code' => 400, 'description' => 'Protective asset does not exist.'],
['code' => 'Defense.Control.DefenseAssetNotSupported', 'message' => 'The protected assets feature is not supported.', 'http_code' => 400, 'description' => 'The protected assets feature is not supported.'],
['code' => 'Defense.Control.DefenseAssetStatusInvalid', 'message' => 'The asset status is illegal.', 'http_code' => 400, 'description' => 'The asset status is illegal.'],
['code' => 'Defense.Control.DefenseBookTypeInvalid', 'message' => 'The address book type is illegal.', 'http_code' => 400, 'description' => 'The address book type is illegal.'],
['code' => 'Defense.Control.DefenseBotManagerWebSdkNotSupport', 'message' => 'Fencing object does not support automatic integration with WebSdk.', 'http_code' => 400, 'description' => 'Fencing object does not support automatic integration with WebSdk.'],
['code' => 'Defense.Control.DefenseBotResourceCrossBindError', 'message' => 'The same protection object in a Bot scene cannot be integrated and bound at the same time.', 'http_code' => 400, 'description' => 'The protected object in which the SDK is integrated cannot be the same as the protected object to which protection rules are applied in the scenario-specific configuration.'],
['code' => 'Defense.Control.DefenseBotResourceCrossBindError', 'message' => 'The protected object in which the SDK is integrated cannot be the same as the protected object to which protection rules are applied in the scenario-specific configuration.', 'http_code' => 400, 'description' => 'The protected object in which the SDK is integrated cannot be the same as the protected object to which protection rules are applied in the scenario-specific configuration.'],
['code' => 'Defense.Control.DefenseClientSideDetectionConfigInvalid', 'message' => 'The client-side protection detection rule is incorrectly configured.', 'http_code' => 400, 'description' => 'The client-side protection detection rule is incorrectly configured.'],
['code' => 'Defense.Control.DefenseCodecRuleAlreadyExist', 'message' => 'Duplicate anti scanning rules in the scanning protection strategy.', 'http_code' => 400, 'description' => 'The scan protection rule exists.'],
['code' => 'Defense.Control.DefenseCodecRuleAlreadyExist', 'message' => 'The scan protection rule exists.', 'http_code' => 400, 'description' => 'The scan protection rule exists.'],
['code' => 'Defense.Control.DefenseConfigNotSupported', 'message' => 'The defense configuration is not supported.', 'http_code' => 400, 'description' => 'The protection feature is not supported.'],
['code' => 'Defense.Control.DefenseCustomResponseHeadersOutOfSize', 'message' => 'The number of custom headers of custom response rules in the protection policy exceeds the limit.', 'http_code' => 400, 'description' => 'The number of custom Header fields in the custom response rule exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseCustomResponseHeadersOutOfSize', 'message' => 'The number of custom Header fields in the custom response rule exceeds the limit.', 'http_code' => 400, 'description' => 'The number of custom Header fields in the custom response rule exceeds the limit.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleActionInvalid', 'message' => 'The custom response rule action does not match the rule action.', 'http_code' => 400, 'description' => 'Custom response rule action does not match rule action'],
['code' => 'Defense.Control.DefenseCustomResponseRuleConfigInvalid', 'message' => 'Illegal configuration of custom response rule in protection policy.', 'http_code' => 400, 'description' => 'The configuration of the custom response rule is invalid.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleConfigInvalid', 'message' => 'The configuration of the custom response rule is invalid.', 'http_code' => 400, 'description' => 'The configuration of the custom response rule is invalid.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleExist', 'message' => 'The custom response rule in the protection policy already exists.', 'http_code' => 400, 'description' => 'The custom response rule exists.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleExist', 'message' => 'The custom response rule exists.', 'http_code' => 400, 'description' => 'The custom response rule exists.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleInUse', 'message' => 'The custom response rule is in use and cannot be deleted.', 'http_code' => 400, 'description' => 'Custom response rule in use, list of associated rules:%s, list of associated objects:%s'],
['code' => 'Defense.Control.DefenseCustomResponseRuleNotExist', 'message' => 'The custom response rule does not exist.', 'http_code' => 400, 'description' => 'The custom response rule does not exist.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleNotPermitDelete', 'message' => 'The custom response rule in the protection policy cannot be deleted', 'http_code' => 400, 'description' => 'You cannot delete custom response rules.'],
['code' => 'Defense.Control.DefenseCustomResponseRuleNotPermitDelete', 'message' => 'You cannot delete custom response rules.', 'http_code' => 400, 'description' => 'You cannot delete custom response rules.'],
['code' => 'Defense.Control.DefenseDownloadOssFileFailed', 'message' => 'Failed to parse OSS files.', 'http_code' => 400, 'description' => 'Failed to parse OSS files.'],
['code' => 'Defense.Control.DefenseExtensionPluginContentNotEmpty', 'message' => 'Extension content cannot be empty.', 'http_code' => 400, 'description' => 'Extension content cannot be empty.'],
['code' => 'Defense.Control.DefenseExtensionPluginIdInvalid', 'message' => 'Invalid extension ID.', 'http_code' => 400, 'description' => 'Invalid extension ID.'],
['code' => 'Defense.Control.DefenseExtensionPluginIdNotEmpty', 'message' => 'Extension ID is not allowed to be empty.', 'http_code' => 400, 'description' => 'Extension ID is not allowed to be empty.'],
['code' => 'Defense.Control.DefenseExtensionPluginParamsNotEmpty', 'message' => 'Extension parameter cannot be empty.', 'http_code' => 400, 'description' => 'Extension parameter cannot be empty.'],
['code' => 'Defense.Control.DefenseExtensionPluginParamsTypeNotSupport', 'message' => 'The extension parameter type is not supported.', 'http_code' => 400, 'description' => 'The extension parameter type is not supported.'],
['code' => 'Defense.Control.DefenseExtensionPluginParamsValueTypeNotMatch', 'message' => 'Extension parameter value does not match type.', 'http_code' => 400, 'description' => 'Extension parameter value does not match type.'],
['code' => 'Defense.Control.DefenseExtensionPluginRuleInUse', 'message' => 'The Extension rule is in use and cannot be deleted.', 'http_code' => 400, 'description' => 'Extension rule in use, association rule list:%s'],
['code' => 'Defense.Control.DefenseExtensionPluginRuleInUse', 'message' => 'Extension rule in use, list of association rules:%s.', 'http_code' => 400, 'description' => 'Extension rule in use, list of association rules:%s.'],
['code' => 'Defense.Control.DefenseInOperation', 'message' => 'Protection configuration is operating, please try again later.', 'http_code' => 400, 'description' => 'Protection configuration is operating, please try again later.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpEmpty', 'message' => 'The IP in the IP blacklist cannot be empty.', 'http_code' => 400, 'description' => 'You must add IP addresses to the IP address blacklist.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpEmpty', 'message' => 'You must add IP addresses to the IP address blacklist.', 'http_code' => 400, 'description' => 'You must add IP addresses to the IP address blacklist.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpInvalid', 'message' => 'Illegal IP in IP blacklist.', 'http_code' => 400, 'description' => 'The IP addresses in the IP address blacklist are invalid.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpInvalid', 'message' => 'The IP addresses in the IP address blacklist are invalid.', 'http_code' => 400, 'description' => 'The IP addresses in the IP address blacklist are invalid.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpOutOfRange', 'message' => 'The number of IPS in the IP blacklist exceeds the limit.', 'http_code' => 400, 'description' => 'The number of IP addresses in the IP address blacklist exceeds the limit.'],
['code' => 'Defense.Control.DefenseIpBlacklistIpOutOfRange', 'message' => 'The number of IP addresses in the IP address blacklist exceeds the limit.', 'http_code' => 400, 'description' => 'The number of IP addresses in the IP address blacklist exceeds the limit.'],
['code' => 'Defense.Control.DefenseIpCountOversize', 'message' => 'The number of IPs exceeds the limit.', 'http_code' => 400, 'description' => 'The number of IPs exceeds the limit.'],
['code' => 'Defense.Control.DefenseLogModifyStatusFailed', 'message' => 'Failed to modify protected object state through log service.', 'http_code' => 400, 'description' => 'Failed to change the Log Service configuration for the protected object.'],
['code' => 'Defense.Control.DefenseLogModifyStatusFailed', 'message' => 'Failed to change the status of the protected object.', 'http_code' => 400, 'description' => 'Failed to change the status of the protected object.'],
['code' => 'Defense.Control.DefenseLogTimeExpired', 'message' => 'The time for querying logs has expired.', 'http_code' => 400, 'description' => 'The query log time has expired.'],
['code' => 'Defense.Control.DefenseMajorProtectionRuleConfigInvalid', 'message' => 'The rules that are configured in the protection template for major events are invalid.', 'http_code' => 400, 'description' => 'The rules that are configured in the protection template for major events are invalid.'],
['code' => 'Defense.Control.DefenseMajorProtectionRuleExist', 'message' => 'The rules that are configured in the protection template for major events already exist.', 'http_code' => 400, 'description' => 'The rules that are configured in the protection template for major events already exist.'],
['code' => 'Defense.Control.DefenseOssFileNotFound', 'message' => 'Failed to find the OSS files that are uploaded.', 'http_code' => 400, 'description' => 'Failed to find the OSS files that are uploaded.'],
['code' => 'Defense.Control.DefensePolicyInUse', 'message' => 'The custom regular rule group is referenced by the template and cannot be deleted.', 'http_code' => 400, 'description' => 'The custom regular expression rule group is referenced by the template and cannot be deleted.'],
['code' => 'Defense.Control.DefensePolicyNotFound', 'message' => 'Regular rule group does not exist.', 'http_code' => 400, 'description' => 'The regular expression rule group does not exist.'],
['code' => 'Defense.Control.DefensePolicyNotFound', 'message' => 'The regular expression rule group does not exist.', 'http_code' => 400, 'description' => 'The regular expression rule group does not exist.'],
['code' => 'Defense.Control.DefensePolicyOwnedByAnotherUser', 'message' => 'Custom regular rule group does not belong to this user.', 'http_code' => 400, 'description' => 'The regular expression rule group does not belong to the user.'],
['code' => 'Defense.Control.DefensePolicyOwnedByAnotherUser', 'message' => 'The regular expression rule group does not belong to the user.', 'http_code' => 400, 'description' => 'The regular expression rule group does not belong to the user.'],
['code' => 'Defense.Control.DefensePolicyRuleAlreadyExist', 'message' => 'Regular rule group rule in basic protection policy already exists.', 'http_code' => 400, 'description' => 'Regular expression rules exist in the basic protection rule module.'],
['code' => 'Defense.Control.DefensePolicyRuleAlreadyExist', 'message' => 'Regular expression rules exist.', 'http_code' => 400, 'description' => 'Regular expression rules exist.'],
['code' => 'Defense.Control.DefenseResourceAccessNotDelete', 'message' => 'The protection object from access cannot be deleted.', 'http_code' => 400, 'description' => 'You cannot delete the protected objects that are automatically synchronized.'],
['code' => 'Defense.Control.DefenseResourceAccessNotDelete', 'message' => 'You cannot delete the protected objects that are automatically synchronized.', 'http_code' => 400, 'description' => 'You cannot delete the protected objects that are automatically synchronized.'],
['code' => 'Defense.Control.DefenseResourceAddDeleteSameTime', 'message' => 'The protected objects in the protection group cannot be bound and unbound at the same time.', 'http_code' => 400, 'description' => 'You cannot add a protected object to a protected object group and remove the protected object from a protected object group at the same time.'],
['code' => 'Defense.Control.DefenseResourceAddDeleteSameTime', 'message' => 'You cannot add a protected object to a protected object group and remove the protected object from a protected object group at the same time.', 'http_code' => 400, 'description' => 'You cannot add a protected object to a protected object group and remove the protected object from a protected object group at the same time.'],
['code' => 'Defense.Control.DefenseResourceAlreadyInCustom', 'message' => 'The protection object has been bound with a custom protection policy.', 'http_code' => 400, 'description' => 'The protected object is bound to a custom protection rule.'],
['code' => 'Defense.Control.DefenseResourceAlreadyInCustom', 'message' => 'The protected object is bound to a custom protection template.', 'http_code' => 400, 'description' => 'The protected object is bound to a custom protection template.'],
['code' => 'Defense.Control.DefenseResourceAndGroupConflict', 'message' => 'The name of the protected object is the same as the name of the protected object group.', 'http_code' => 400, 'description' => 'The name of the protected object is the same as the name of the protected object group.'],
['code' => 'Defense.Control.DefenseResourceCountOverSize', 'message' => 'The number of protected objects exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected objects exceeds the limit.'],
['code' => 'Defense.Control.DefenseResourceDetailInvalid', 'message' => 'The detail field of the protected object is illegal.', 'http_code' => 400, 'description' => 'The detail field for the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceDetailInvalid', 'message' => 'The detail field of the protected object is invalid.', 'http_code' => 400, 'description' => 'The detail field for the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceDetailNotEmpty', 'message' => 'The details of the protected object cannot be empty.', 'http_code' => 400, 'description' => 'You must configure the detail field for the protected object.'],
['code' => 'Defense.Control.DefenseResourceDetailNotEmpty', 'message' => 'You must configure the detail field of the protected object.', 'http_code' => 400, 'description' => 'You must configure the detail field for the protected object.'],
['code' => 'Defense.Control.DefenseResourceExist', 'message' => 'Protection object already exists.', 'http_code' => 400, 'description' => 'The protected object exists.'],
['code' => 'Defense.Control.DefenseResourceExist', 'message' => 'The protected object exists.', 'http_code' => 400, 'description' => 'The protected object exists.'],
['code' => 'Defense.Control.DefenseResourceGroupCountOverSize', 'message' => 'The number of protection groups exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected object groups exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseResourceGroupCountOverSize', 'message' => 'The number of protected object groups exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected object groups exceeds the limit.'],
['code' => 'Defense.Control.DefenseResourceGroupDescriptionInvalid', 'message' => 'Illegal protection group description information.', 'http_code' => 400, 'description' => 'The description of the protected object group is invalid.'],
['code' => 'Defense.Control.DefenseResourceGroupDescriptionInvalid', 'message' => 'The description of the protected object group is invalid.', 'http_code' => 400, 'description' => 'The description of the protected object group is invalid.'],
['code' => 'Defense.Control.DefenseResourceGroupExist', 'message' => 'Protection group already exists.', 'http_code' => 400, 'description' => 'The protected object group exists.'],
['code' => 'Defense.Control.DefenseResourceGroupExist', 'message' => 'The protected object group exists.', 'http_code' => 400, 'description' => 'The protected object group exists.'],
['code' => 'Defense.Control.DefenseResourceGroupNameInvalid', 'message' => 'Illegal protection group name.', 'http_code' => 400, 'description' => 'The name of the protected object group is invalid.'],
['code' => 'Defense.Control.DefenseResourceGroupNameInvalid', 'message' => 'The name of the protected object group is invalid.', 'http_code' => 400, 'description' => 'The name of the protected object group is invalid.'],
['code' => 'Defense.Control.DefenseResourceGroupNotExist', 'message' => 'Protection group does not exist.', 'http_code' => 400, 'description' => 'The protected object group does not exist.'],
['code' => 'Defense.Control.DefenseResourceGroupNotExist', 'message' => 'The protected object group does not exist.', 'http_code' => 400, 'description' => 'The protected object group does not exist.'],
['code' => 'Defense.Control.DefenseResourceInGroupCountOverSize', 'message' => 'The number of protected objects in the protection group exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected objects in the protected object group exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseResourceInGroupCountOverSize', 'message' => 'The number of protected objects in the protected object group exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected objects in the protected object group exceeds the limit.'],
['code' => 'Defense.Control.DefenseResourceInTemplateCountOverSize', 'message' => 'The number of protected objects in the protection template exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected objects in the protection template exceeds the limit.'],
['code' => 'Defense.Control.DefenseResourceInvalid', 'message' => 'The name of the protected object is illegal.', 'http_code' => 400, 'description' => 'The name of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceInvalid', 'message' => 'The name of the protected object is invalid.', 'http_code' => 400, 'description' => 'The name of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceModelInvalid', 'message' => 'The model of the protected object is illegal.', 'http_code' => 400, 'description' => 'The model of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceModelInvalid', 'message' => 'The model of the protected object is invalid.', 'http_code' => 400, 'description' => 'The model of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceNameAndAssetConflict', 'message' => 'The protected object or protection group name is the same as the protected asset ID.', 'http_code' => 400, 'description' => 'The protected object or protection group name is the same as the protected asset ID.'],
['code' => 'Defense.Control.DefenseResourceNotExist', 'message' => 'Protection object does not exist.', 'http_code' => 400, 'description' => 'The protected object does not exist.'],
['code' => 'Defense.Control.DefenseResourceNotExist', 'message' => 'The protected object does not exist.', 'http_code' => 400, 'description' => 'The protected object does not exist.'],
['code' => 'Defense.Control.DefenseResourcePatternNotEmpty', 'message' => 'The protection form of the protected object cannot be empty.', 'http_code' => 400, 'description' => 'You must configure the protection pattern of the protected object.'],
['code' => 'Defense.Control.DefenseResourcePatternNotEmpty', 'message' => 'You must configure the protection pattern of the protected object.', 'http_code' => 400, 'description' => 'You must configure the protection pattern of the protected object.'],
['code' => 'Defense.Control.DefenseResourcePatternNotFound', 'message' => 'The protection form of the protected object is illegal.', 'http_code' => 400, 'description' => 'The protection pattern of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourcePatternNotFound', 'message' => 'The protection pattern of the protected object is invalid.', 'http_code' => 400, 'description' => 'The protection pattern of the protected object is invalid.'],
['code' => 'Defense.Control.DefenseResourceProductNotEmpty', 'message' => 'The product information of the protection object cannot be empty.', 'http_code' => 400, 'description' => 'You must configure the service information about the protected object.'],
['code' => 'Defense.Control.DefenseResourceProductNotEmpty', 'message' => 'You must configure the service information about the protected object.', 'http_code' => 400, 'description' => 'You must configure the service information about the protected object.'],
['code' => 'Defense.Control.DefenseResourceRelationExist', 'message' => 'The protection object has been bound.', 'http_code' => 400, 'description' => 'The protected object is added to a protected object group.'],
['code' => 'Defense.Control.DefenseResourceRelationExist', 'message' => 'The protected object is added to a protected object group.', 'http_code' => 400, 'description' => 'The protected object is added to a protected object group.'],
['code' => 'Defense.Control.DefenseResourceRelationNotExist', 'message' => 'The protected object is not added to the protected object group.', 'http_code' => 400, 'description' => 'The fencing object is not added to the fencing object group'],
['code' => 'Defense.Control.DefenseResourceRuleAccountDecodeTypeInvalid', 'message' => 'The decoding type in the account extraction rule is invalid.', 'http_code' => 400, 'description' => 'The decoding type in the account extraction rule is invalid.'],
['code' => 'Defense.Control.DefenseResourceRuleAccountOversize', 'message' => 'The number of extracted configurations in the account extraction rule exceeds the limit.', 'http_code' => 400, 'description' => 'The number of extracted configurations in the account extraction rule exceeds the limit.'],
['code' => 'Defense.Control.DefenseResourceRuleAccountPriorityInvalid', 'message' => 'The configuration priority in the account extraction rule is invalid.', 'http_code' => 400, 'description' => 'The configuration priority in the account extraction rule is invalid.'],
['code' => 'Defense.Control.DefenseResourceRuleNotPermitModify', 'message' => 'This protected resource rule cannot be modified.', 'http_code' => 400, 'description' => 'This protected resource rule cannot be modified.'],
['code' => 'Defense.Control.DefenseResourceRuleNotPermitUpdateStatus', 'message' => 'This protected resource rule does not allow update status.', 'http_code' => 400, 'description' => 'This protected resource rule does not allow update status'],
['code' => 'Defense.Control.DefenseResourceTemplateIdInvalid', 'message' => 'When querying the protection objects or protection groups that can be bound in the protection policy, the protection policy ID is invalid.', 'http_code' => 400, 'description' => 'The ID of the protection rule is invalid when you query the protected objects or protected object groups that can be bound to the protection rule.'],
['code' => 'Defense.Control.DefenseResourceTemplateIdInvalid', 'message' => 'The ID of the protection rule is invalid when you query the protected objects or protected object groups that can be bound to the protection rule.', 'http_code' => 400, 'description' => 'The ID of the protection rule is invalid when you query the protected objects or protected object groups that can be bound to the protection rule.'],
['code' => 'Defense.Control.DefenseResponseStatusInvalid', 'message' => 'Response log switch status is illegal.', 'http_code' => 400, 'description' => 'The status of the response log switch is invalid.'],
['code' => 'Defense.Control.DefenseRuleAccountProtectorConfigInvalid', 'message' => 'Account Security Rule configuration error.', 'http_code' => 400, 'description' => 'Error configuring account security rules in protection rules. %s'],
['code' => 'Defense.Control.DefenseRuleActionInvalid', 'message' => 'Illegal action of protection rules.', 'http_code' => 400, 'description' => 'The action that is defined in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleActionInvalid', 'message' => 'The action that is defined in the protection rule is invalid.', 'http_code' => 400, 'description' => 'The action that is defined in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleAttackLevelConflict', 'message' => 'The attack level of the large model prompt word attack protection rule is repeated.', 'http_code' => 400, 'description' => 'The attack level of the large model prompt word attack protection rule is repeated.'],
['code' => 'Defense.Control.DefenseRuleAutoOriginInvalid', 'message' => 'The origin of auto rules is invalid.', 'http_code' => 400, 'description' => 'The origin of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleAutoUpdateInvalid', 'message' => 'Invalid automatic update configuration.', 'http_code' => 400, 'description' => 'Invalid automatic update configuration.'],
['code' => 'Defense.Control.DefenseRuleBotConfigInvalid', 'message' => 'Illegal Bot Scene Rule Configuration.', 'http_code' => 400, 'description' => 'The scenario-specific configuration is invalid.'],
['code' => 'Defense.Control.DefenseRuleBotTrafficInvalid', 'message' => 'Illegal traffic characteristics in Bot scene.', 'http_code' => 400, 'description' => 'The traffic characteristics in the scenario-specific configuration are invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionEmpty', 'message' => 'The flow characteristic in the protection rule cannot be empty.', 'http_code' => 400, 'description' => 'You must configure traffic characteristics in the protection rule.'],
['code' => 'Defense.Control.DefenseRuleConditionEmpty', 'message' => 'You must configure the traffic characteristics in the protection rule.', 'http_code' => 400, 'description' => 'You must configure traffic characteristics in the protection rule.'],
['code' => 'Defense.Control.DefenseRuleConditionKeyInvalid', 'message' => 'Invalid flow characteristic matching field of protection rule.', 'http_code' => 400, 'description' => 'The match field in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionKeyInvalid', 'message' => 'The match field in the protection rule is invalid.', 'http_code' => 400, 'description' => 'The match field in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionOpValueInvalid', 'message' => 'Invalid protection rule flow characteristic logic symbol.', 'http_code' => 400, 'description' => 'The logical operator in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionOpValueInvalid', 'message' => 'The logical operator in the protection rule is invalid.', 'http_code' => 400, 'description' => 'The logical operator in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionOversize', 'message' => 'The number of flow characteristics of the protection rule exceeds the limit.', 'http_code' => 400, 'description' => 'The number of traffic features in the protection rule exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseRuleConditionValueInvalid', 'message' => 'Matching content of flow characteristics of invalid protection rules.', 'http_code' => 400, 'description' => 'The match content in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConditionValueInvalid', 'message' => 'The match content in the protection rule is invalid.', 'http_code' => 400, 'description' => 'The match content in the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleConfigNotPermitModify', 'message' => 'The protection scenario rule cannot be modified.', 'http_code' => 400, 'description' => 'The protection scenario rule cannot be modified.'],
['code' => 'Defense.Control.DefenseRuleContentModerationConfigInvalid', 'message' => 'Large model content security scenario protection rule configuration error.', 'http_code' => 400, 'description' => 'Large model content security scenario protection rule configuration error.'],
['code' => 'Defense.Control.DefenseRuleCountOverSize', 'message' => 'The number of protection rules exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protection rules exceeds the limit.'],
['code' => 'Defense.Control.DefenseRuleCreateModifyCountEmpty', 'message' => 'Number of protection rules created or modified at a time cannot be empty.', 'http_code' => 400, 'description' => 'You must specify the number of protection rules that you want to create or modify at the same time.'],
['code' => 'Defense.Control.DefenseRuleCreateModifyCountEmpty', 'message' => 'You must specify the number of protection rules that you want to create or modify at the same time.', 'http_code' => 400, 'description' => 'You must specify the number of protection rules that you want to create or modify at the same time.'],
['code' => 'Defense.Control.DefenseRuleCreateModifyCountOverSize', 'message' => 'The number of protection resources in the protection template exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected resources in the protection template exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseRuleCreateModifyCountOverSize', 'message' => 'The number of protected resources in the protection template exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protected resources in the protection template exceeds the limit.'],
['code' => 'Defense.Control.DefenseRuleDetectAttackLevelConflict', 'message' => 'The detection type and attack level in the content security protection rules of the large model are the same.', 'http_code' => 400, 'description' => 'The detection type and attack level in the content security protection rules of the large model are the same.'],
['code' => 'Defense.Control.DefenseRuleDistinctConditionOpValueInvalid', 'message' => 'Invalid traffic feature logic symbol for protection deduplication statistics rule.', 'http_code' => 400, 'description' => 'Invalid traffic feature logic symbol for protection deduplication statistics rule'],
['code' => 'Defense.Control.DefenseRuleDistinctConditionValueInvalid', 'message' => 'The threshold configuration of the deduplication statistics of the protection rule is invalid.', 'http_code' => 400, 'description' => 'The threshold configuration of the deduplication statistics of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleGrayConfigInvalid', 'message' => 'The gray-scale effective configuration of the rule is invalid.', 'http_code' => 400, 'description' => 'Invalid canary release configurations for protection rules'],
['code' => 'Defense.Control.DefenseRuleIdConflict', 'message' => 'The protection rule ID is duplicate.', 'http_code' => 400, 'description' => 'The protection rule ID is duplicate.'],
['code' => 'Defense.Control.DefenseRuleNameAlreadyInUse', 'message' => 'Protection rule duplicate name.', 'http_code' => 400, 'description' => 'The name of the protection rule exists.'],
['code' => 'Defense.Control.DefenseRuleNameAlreadyInUse', 'message' => 'The name of the protection rule exists.', 'http_code' => 400, 'description' => 'The name of the protection rule exists.'],
['code' => 'Defense.Control.DefenseRuleNameConflict', 'message' => 'Duplicate protection rule name in batch request.', 'http_code' => 400, 'description' => 'Duplicate protection rule names are specified in the batch of requests.'],
['code' => 'Defense.Control.DefenseRuleNameConflict', 'message' => 'Duplicate protection rule names are specified in the batch of requests.', 'http_code' => 400, 'description' => 'Duplicate protection rule names are specified in the batch of requests.'],
['code' => 'Defense.Control.DefenseRuleNameInvalid', 'message' => 'Illegal protection rule name.', 'http_code' => 400, 'description' => 'The name of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleNameInvalid', 'message' => 'The name of the protection rule is invalid.', 'http_code' => 400, 'description' => 'The name of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleNotExist', 'message' => 'Protection rule does not exist.', 'http_code' => 400, 'description' => 'The protection rule does not exist.'],
['code' => 'Defense.Control.DefenseRuleNotExist', 'message' => 'The protection rule does not exist.', 'http_code' => 400, 'description' => 'The protection rule does not exist.'],
['code' => 'Defense.Control.DefenseRuleNotPermitCreate', 'message' => 'This protection scenario rule is not allowed to be created.', 'http_code' => 400, 'description' => 'This protection scenario rule is not allowed to be created.'],
['code' => 'Defense.Control.DefenseRuleNotPermitDelete', 'message' => 'The protection scenario rule cannot be deleted.', 'http_code' => 400, 'description' => 'The protection scenario rule cannot be deleted.'],
['code' => 'Defense.Control.DefenseRuleOriginEmpty', 'message' => 'The source of protection rule cannot be empty.', 'http_code' => 400, 'description' => 'You must specify the source of the protection rule.'],
['code' => 'Defense.Control.DefenseRuleOriginEmpty', 'message' => 'You must specify the source of the protection rule.', 'http_code' => 400, 'description' => 'You must specify the source of the protection rule.'],
['code' => 'Defense.Control.DefenseRuleRateLimitInvalid', 'message' => 'Speed limit configuration of invalid protection rules.', 'http_code' => 400, 'description' => 'The rate-limiting configuration of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleRateLimitInvalid', 'message' => 'The rate-limiting configuration of the protection rule is invalid.', 'http_code' => 400, 'description' => 'The rate-limiting configuration of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleRateLimitTargetInvalid', 'message' => 'Invalid protection rule speed limit target.', 'http_code' => 400, 'description' => 'The rate-limiting statistical object of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleRateLimitTargetInvalid', 'message' => 'The rate-limiting threshold of the protection rule is invalid.', 'http_code' => 400, 'description' => 'The rate-limiting threshold of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleStatusInvalid', 'message' => 'Illegal protection rule status.', 'http_code' => 400, 'description' => 'The status of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleStatusInvalid', 'message' => 'The status of the protection rule is invalid.', 'http_code' => 400, 'description' => 'The status of the protection rule is invalid.'],
['code' => 'Defense.Control.DefenseRuleStatusNotSupported', 'message' => 'The operation is not supported in the current protection rule state.', 'http_code' => 400, 'description' => 'The operation is not supported in the current protection rule state'],
['code' => 'Defense.Control.DefenseRuleTamperProofConfigInvalid', 'message' => 'Site tamper prevention configuration error in protection rules.', 'http_code' => 400, 'description' => 'The website tamper-proofing configuration is invalid.'],
['code' => 'Defense.Control.DefenseRuleTamperProofProtocolConflict', 'message' => 'Site tamper-proof protocol conflict in protection rules.', 'http_code' => 400, 'description' => 'The protocol in the website tamper-proofing rule conflicts.'],
['code' => 'Defense.Control.DefenseRuleTimeConfigInvalid', 'message' => 'The timing configuration of the rule is invalid.', 'http_code' => 400, 'description' => 'Invalid validity period configurations for protection rules'],
['code' => 'Defense.Control.DefenseRuleUpstreamActionConfigInvalid', 'message' => 'The configuration of the upstream tagging action is invalid.', 'http_code' => 400, 'description' => 'Invalid configurations for marking back-to-origin requests'],
['code' => 'Defense.Control.DefenseRuleUrlConflict', 'message' => 'Page tamper-proof rule URL duplication.', 'http_code' => 400, 'description' => 'The protected URL in the website tamper-proofing rule already exists.'],
['code' => 'Defense.Control.DefenseSaleSpecValueInvalid', 'message' => 'Sales Rule Configuration Exception.', 'http_code' => 400, 'description' => 'The configuration of the sales rule is abnormal.'],
['code' => 'Defense.Control.DefenseSaleSpecValueInvalid', 'message' => 'The configuration of the sales rule is abnormal.', 'http_code' => 400, 'description' => 'The configuration of the sales rule is abnormal.'],
['code' => 'Defense.Control.DefenseSceneNotSupported', 'message' => 'This protection scenario is not supported.', 'http_code' => 400, 'description' => 'The protection scenario is not supported.'],
['code' => 'Defense.Control.DefenseSceneNotSupported', 'message' => 'The protection scenario is not supported.', 'http_code' => 400, 'description' => 'The protection scenario is not supported.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindNotSupportAsset', 'message' => 'The protection template does not support binding or unbinding protected assets. Only protected objects and protected groups are supported.', 'http_code' => 400, 'description' => 'The protection template does not support binding or unbinding protected assets. Only protected objects and protected groups are supported.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindOnlySupportAsset', 'message' => 'The protection template only supports binding or unbinding protected assets, but does not support binding or unbinding protected objects and protected groups.', 'http_code' => 400, 'description' => 'The protection template only supports binding or unbinding protected assets, but does not support binding or unbinding protected objects and protection groups.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindResourceInvalid', 'message' => 'If the resource bound or unbound by the protection template is invalid, it may have been added to other user-defined templates or protection groups.', 'http_code' => 400, 'description' => 'The protected resource that is bound to or unbound from the protection template is invalid. The protected resource is bound to other custom templates or added to protected object groups.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindResourceInvalid', 'message' => 'The protected object that is bound to or unbound from the protection template is invalid. The protected object is bound to other custom templates or added to protected object groups.', 'http_code' => 400, 'description' => 'The protected resource that is bound to or unbound from the protection template is invalid. The protected resource is bound to other custom templates or added to protected object groups.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindResourceNotFound', 'message' => 'The resource bound or unbound by the protection template was not found.', 'http_code' => 400, 'description' => 'Failed to find the protected resource that is bound to or unbound from the protection template.'],
['code' => 'Defense.Control.DefenseTemplateBindUnbindResourceNotFound', 'message' => 'Failed to find the protected object that is bound to or unbound from the protection template.', 'http_code' => 400, 'description' => 'Failed to find the protected resource that is bound to or unbound from the protection template.'],
['code' => 'Defense.Control.DefenseTemplateCountOverSize', 'message' => 'The number of protective templates exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protection templates exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseTemplateCountOverSize', 'message' => 'The number of protection templates exceeds the limit.', 'http_code' => 400, 'description' => 'The number of protection templates exceeds the limit.'],
['code' => 'Defense.Control.DefenseTemplateDescriptionInvalid', 'message' => 'Illegal protection template description.', 'http_code' => 400, 'description' => 'The description of the protection template is invalid.'],
['code' => 'Defense.Control.DefenseTemplateDetailInvalid', 'message' => 'Protection template configuration details field is invalid.', 'http_code' => 400, 'description' => 'Protection template configuration details field is invalid'],
['code' => 'Defense.Control.DefenseTemplateInGrayOperation', 'message' => 'Protection template grayscale upgrade operation, please try again later.', 'http_code' => 400, 'description' => 'Protection template grayscale upgrade operation, please try again later'],
['code' => 'Defense.Control.DefenseTemplateInOperation', 'message' => 'Protective template operation, please try again later.', 'http_code' => 400, 'description' => 'The protection template is in use. Try again later.'],
['code' => 'Defense.Control.DefenseTemplateNameInUse', 'message' => 'Protection template name has been used.', 'http_code' => 400, 'description' => 'The name of the protection template is being used.'],
['code' => 'Defense.Control.DefenseTemplateNameInUse', 'message' => 'The name of the protection template is being used.', 'http_code' => 400, 'description' => 'The name of the protection template is being used.'],
['code' => 'Defense.Control.DefenseTemplateNotExist', 'message' => 'Protective template does not exist.', 'http_code' => 400, 'description' => 'The protection template does not exist.'],
['code' => 'Defense.Control.DefenseTemplateNotExist', 'message' => 'The protection template does not exist.', 'http_code' => 400, 'description' => 'The protection template does not exist.'],
['code' => 'Defense.Control.DefenseTemplateOwnedByAnotherUser', 'message' => 'Protection template does not belong to this user.', 'http_code' => 400, 'description' => 'The protection template does not belong to the user.'],
['code' => 'Defense.Control.DefenseTemplateOwnedByAnotherUser', 'message' => 'The protection template does not belong to the user.', 'http_code' => 400, 'description' => 'The protection template does not belong to the user.'],
['code' => 'Defense.Control.DefenseTemplateRuleNotPermitCreate', 'message' => 'You cannot create protection rules.', 'http_code' => 400, 'description' => 'This protection module rule does not allow creation'],
['code' => 'Defense.Control.DefenseTemplateRuleNotPermitDelete', 'message' => 'Rules in this protection policy are not allowed to be deleted.', 'http_code' => 400, 'description' => 'You cannot delete protection rules from the protection template.'],
['code' => 'Defense.Control.DefenseTemplateRuleNotPermitDelete', 'message' => 'You cannot delete protection rules.', 'http_code' => 400, 'description' => 'You cannot delete protection rules.'],
['code' => 'Defense.Control.DefenseTemplateRuleStatusNotPermitModify', 'message' => 'The status of this protection rule cannot be modified.', 'http_code' => 400, 'description' => 'The status of the protection rule cannot be modified.'],
['code' => 'Defense.Control.DefenseTemplateStatusInvalid', 'message' => 'Illegal status of protective template.', 'http_code' => 400, 'description' => 'The status of the protection template is invalid.'],
['code' => 'Defense.Control.DefenseTemplateStatusInvalid', 'message' => 'The status of the protection template is invalid.', 'http_code' => 400, 'description' => 'The status of the protection template is invalid.'],
['code' => 'Defense.Control.DefenseTemplateTypeBindUnbindResourceInvalid', 'message' => 'Only user-defined protection templates can bind or unbind protection resources.', 'http_code' => 400, 'description' => 'Only custom protection templates can be bound to or unbound from protected resources.'],
['code' => 'Defense.Control.DefenseTemplateTypeBindUnbindResourceInvalid', 'message' => 'Only custom protection templates can be bound to or unbound from protected resources.', 'http_code' => 400, 'description' => 'Only custom protection templates can be bound to or unbound from protected resources.'],
['code' => 'Defense.Control.DefenseTemplateUserDefaultExist', 'message' => 'User default protection template already exists.', 'http_code' => 400, 'description' => 'The default protection template exists.'],
['code' => 'Defense.Control.DefenseTemplateUserDefaultExist', 'message' => 'The default protection template exists.', 'http_code' => 400, 'description' => 'The default protection template exists.'],
['code' => 'Defense.Control.DefenseTemplateUserDefaultNotSupport', 'message' => 'The default protection template is not supported.', 'http_code' => 400, 'description' => 'The default protection template is not supported.'],
['code' => 'Defense.Control.DefenseTestActionInvalid', 'message' => 'Illegal test of protective function action.', 'http_code' => 400, 'description' => 'The action that is used to test the protection feature is invalid.'],
['code' => 'Defense.Control.DefenseTestExpiredTimeInvalid', 'message' => 'Illegal timeout for testing protective functions.', 'http_code' => 400, 'description' => 'The timeout period to test the protection feature is invalid.'],
['code' => 'Defense.Control.DefenseTestUserIpInvalid', 'message' => 'Illegal user IP to test protection function.', 'http_code' => 400, 'description' => 'The IP address that is used to test the protection feature is invalid.'],
['code' => 'Defense.Control.DefenseThreatIntelligenceConfigInvalid', 'message' => 'Threat Intelligence Rule configuration error.', 'http_code' => 400, 'description' => 'Threat Intelligence Rule configuration error. %s'],
['code' => 'Defense.Control.DefenseTraceIdInvalid', 'message' => 'The format of the log request ID is incorrect.', 'http_code' => 400, 'description' => 'The log request ID format is incorrect'],
['code' => 'Defense.Control.DefenseTrafficGuideAlreadyExist', 'message' => 'Drainage strategy already exists.', 'http_code' => 400, 'description' => 'Drainage strategy already exists.'],
['code' => 'Defense.Control.DefenseTrafficGuideConfigModelInvalid', 'message' => 'Drainage strategy mode is invalid.', 'http_code' => 400, 'description' => 'Drainage strategy mode is invalid.'],
['code' => 'Defense.Control.DefenseTrafficGuideConfigProductInvalid', 'message' => 'Drainage strategy products are ineffective.', 'http_code' => 400, 'description' => 'The traffic‑generation strategy product is ineffective.'],
['code' => 'Defense.Control.DefenseTrafficGuideConfigStrategyInvalid', 'message' => 'The drainage strategy is ineffective.', 'http_code' => 400, 'description' => 'The drainage strategy is ineffective.'],
['code' => 'Defense.Control.DefenseTrafficGuideCountOverSize', 'message' => 'Only one drainage strategy is supported.', 'http_code' => 400, 'description' => 'Only one drainage strategy is supported.'],
['code' => 'Defense.Control.DefenseTrafficGuideRuleCountOverSize', 'message' => 'The number of regular or precise rules for drainage policies exceeds the limit.', 'http_code' => 400, 'description' => 'The number of regular or precise rules for drainage policies exceeds the limit.'],
['code' => 'Defense.Control.DefenseUploadOssFileFailed', 'message' => 'Failed to upload OSS files.', 'http_code' => 400, 'description' => 'Failed to upload the OSS file.'],
['code' => 'Defense.Control.DefenseVastIpDescriptionInvalid', 'message' => 'The description of the IP address blacklist is invalid.', 'http_code' => 400, 'description' => 'The description of the IP address blacklist is invalid.'],
['code' => 'Defense.Control.DefenseVastIpExpiredTimeInvalid', 'message' => 'The expiration time of the IP address blacklist for protection for major events is invalid.', 'http_code' => 400, 'description' => 'The expiration time of the IP address blacklist for protection for major events is invalid.'],
['code' => 'Defense.Control.DefenseVastIpFileEmpty', 'message' => 'The content of the IP address blacklist file for protection for major events is empty.', 'http_code' => 400, 'description' => 'The IP address blacklist file for protection for major events is empty.'],
['code' => 'Defense.Control.DefenseVastIpFileFormatError', 'message' => 'The format of the IP address blacklist file for protection for major events is invalid.', 'http_code' => 400, 'description' => 'The format of the IP address blacklist file for protection for major events is invalid.'],
['code' => 'Defense.Control.DefenseVastIpFileOversize', 'message' => 'The number of IP addresses in the IP address blacklist file for protection for major events exceeds the upper limit.', 'http_code' => 400, 'description' => 'The number of IP addresses in the IP address blacklist file for protection for major events exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseVastIpOperationCountOversize', 'message' => 'The number of IP addresses that are operated each time exceeds the upper limit. The IP addresses are the IP addresses in the IP address blacklist for protection for major events.', 'http_code' => 400, 'description' => 'The number of IP addresses that are operated each time exceeds the upper limit. The IP addresses are the IP addresses in the IP address blacklist for protection for major events.'],
['code' => 'Defense.Control.DefenseVastIpTotalCountOversize', 'message' => 'The total number of IP addresses in the IP address blacklist for protection for major events exceeds the upper limit.', 'http_code' => 400, 'description' => 'The total number of IP addresses in the IP address blacklist for protection for major events exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseVastIpUploadFormError', 'message' => 'Failed to obtain the information about the uploaded IP address blacklist file for protection for major events.', 'http_code' => 400, 'description' => 'Failed to obtain the information about the uploaded IP address blacklist file for protection for major events.'],
['code' => 'Defense.Control.DefenseWafCustomRuleCompileFailed', 'message' => 'Custom regular rule compilation failed.', 'http_code' => 400, 'description' => 'Custom regular rule compilation failed'],
['code' => 'Defense.Control.DefenseWafCustomRuleConfigInvalid', 'message' => 'Invalid custom regular rule configuration.', 'http_code' => 400, 'description' => 'Invalid custom regular rule configuration.'],
['code' => 'Defense.Control.DefenseWhitelistBypassRuleNotExist', 'message' => 'The whitelist protection rule does not exist.', 'http_code' => 400, 'description' => 'The whitelist protection rule does not exist. Rule ID:%s.'],
['code' => 'Defense.Control.DefenseWhitelistBypassTagInvalid', 'message' => 'The white mark in the white list is invalid.', 'http_code' => 400, 'description' => 'The whitelist tag is invalid.'],
['code' => 'Defense.Control.DefenseWhitelistBypassTagInvalid', 'message' => 'The whitelist parameter is invalid.', 'http_code' => 400, 'description' => 'The whitelist parameter is invalid.'],
['code' => 'Defense.Control.DefenseWhitelistCategoryInvalid', 'message' => 'Invalid whitelist whitelist policy module.', 'http_code' => 400, 'description' => 'Protection modules defined in the whitelist are invalid.'],
['code' => 'Defense.Control.DefenseWhitelistCategoryInvalid', 'message' => 'Protection modules defined in the whitelist are invalid.', 'http_code' => 400, 'description' => 'Protection modules that are defined in the whitelist are invalid.'],
['code' => 'Defense.Control.DefenseWhitelistConfigInvalid', 'message' => 'The whitelist rule is misconfigured.', 'http_code' => 400, 'description' => 'Error configuring whitelist rule: %s.'],
['code' => 'Defense.Control.DefenseWhitelistRegularRuleSize', 'message' => 'The number of white regular rule IDS in the white list exceeds the limit.', 'http_code' => 400, 'description' => 'The number of regular expression rules in the whitelist exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseWhitelistRegularRuleSize', 'message' => 'The number of regular expression rules in the whitelist exceeds the limit.', 'http_code' => 400, 'description' => 'The number of regular expression rules in the whitelist exceeds the limit.'],
['code' => 'Defense.Control.DefenseWhitelistRegularTypeSize', 'message' => 'The number of white regular rule types in the white list exceeds the limit.', 'http_code' => 400, 'description' => 'The number of types of regular expression rules in the whitelist exceeds the upper limit.'],
['code' => 'Defense.Control.DefenseWhitelistRegularTypeSize', 'message' => 'The number of types of regular expression rules in the whitelist exceeds the limit.', 'http_code' => 400, 'description' => 'The number of types of regular expression rules in the whitelist exceeds the limit.'],
['code' => 'Defense.Control.InvalidDefenseRuleID', 'message' => 'The protection rule ID is invalid.', 'http_code' => 400, 'description' => 'The protection rule ID is invalid.'],
['code' => 'Defense.Control.InvalidParameter', 'message' => 'Invalid parameter.', 'http_code' => 400, 'description' => 'The parameter is invalid.'],
['code' => 'Defense.Control.InvalidParameter', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => 'The parameter is invalid.'],
['code' => 'Defense.Control.ProductNotSupportRule', 'message' => 'Access mode does not support this protection scenario rule.%s.', 'http_code' => 400, 'description' => 'Access mode does not support this protection scenario rule.%s.'],
['code' => 'DlpUsed', 'message' => 'The feature of data leakage prevention is being used.', 'http_code' => 400, 'description' => 'The data leakage prevention feature is in effect.'],
['code' => 'DomainDuplicateError', 'message' => 'The domain has been configured.', 'http_code' => 400, 'description' => 'The configuration of the domain name is complete.'],
['code' => 'DomainNotBeianOrInBlackList', 'message' => 'The domain does not have an ICP filling or has been blacklisted.', 'http_code' => 400, 'description' => 'The domain name does not have an ICP filing or is added to the blacklist.'],
['code' => 'DomainNotBeianOrInBlackList', 'message' => 'Blacklist or Domain Names That Do Not Have ICP Filings', 'http_code' => 400, 'description' => 'The domain name does not have an ICP filing or has committed a penalty.'],
['code' => 'DomainNotExist', 'message' => 'The specified domain does not exist.', 'http_code' => 400, 'description' => 'The specified domain name does not exist.'],
['code' => 'DomainQuotaExceed', 'message' => 'Domain Quota Exceed.', 'http_code' => 400, 'description' => 'The quota of domain names is reached.'],
['code' => 'DomainRetSourceNotSupport', 'message' => 'Your waf does not support return to domain.', 'http_code' => 400, 'description' => 'Your WAF instance does not support back-to-origin domain names.'],
['code' => 'DomainUsedByOthers', 'message' => 'The domain name is being used by another owner.', 'http_code' => 400, 'description' => 'The domain name is being used by another user.'],
['code' => 'DrainageOverrun', 'message' => 'The number of ports for which WAF protection is enabled exceeds the quota.', 'http_code' => 403, 'description' => 'The number of connected ports exceeds the system limit.'],
['code' => 'ExtensiveDomainUsedError', 'message' => 'Another user has used this wildcard domain in Waf.', 'http_code' => 400, 'description' => 'The wildcard domain is already used.'],
['code' => 'FunctionAvailableError', 'message' => 'The function is not available.', 'http_code' => 403, 'description' => 'The function is not available.'],
['code' => 'IllegalDefaultCertificate', 'message' => 'The default certificate does not exist.', 'http_code' => 403, 'description' => 'The default certificate for transparent access is invalid.'],
['code' => 'InternalError', 'message' => 'Unknown error.', 'http_code' => 500, 'description' => 'Request processing failed due to unknown error'],
['code' => 'InvalidIncludeSubDomainWithPreload', 'message' => 'The parameter HstsIncludeSubDomain is invalid. When the parameter HstsPreload is true, the HstsIncludeSubDomain must be true.', 'http_code' => 400, 'description' => 'The parameter HstsIncludeSubDomain is invalid. When the parameter HstsPreload is true, the HstsIncludeSubDomain must be true.'],
['code' => 'InvalidParameter', 'message' => 'Invalid parameter.', 'http_code' => 400, 'description' => 'Invalid parameter'],
['code' => 'InvalidParameters', 'message' => 'Invalid parameters.', 'http_code' => 400, 'description' => 'The parameters are illegal.'],
['code' => 'Log.Control.ApisecSpecInfoNotFound', 'message' => 'API security service has not been activated.', 'http_code' => 400, 'description' => 'API security service has not been activated.'],
['code' => 'Log.Control.AssumeRoleFailed', 'message' => 'Insufficient permissions, please authorize.', 'http_code' => 400, 'description' => 'You do not have the required permissions. Obtain the required permissions.'],
['code' => 'Log.Control.AssumeRoleFailed', 'message' => 'You do not have the required permissions. Obtain the required permissions.', 'http_code' => 400, 'description' => 'You do not have the required permissions. Obtain the required permissions.'],
['code' => 'Log.Control.BatchDescribeSlsDispatchStatusFailed', 'message' => 'Query whether SLS service is open error.', 'http_code' => 400, 'description' => 'Failed to check whether Log Service is activated.'],
['code' => 'Log.Control.BatchDescribeSlsDispatchStatusFailed', 'message' => 'Failed to check whether Log Service is activated.', 'http_code' => 400, 'description' => 'Failed to check whether Log Service is activated.'],
['code' => 'Log.Control.BatchDescribeSlsLogStoreFailed', 'message' => 'Failed to obtain the logstore list of Log Service SLS.', 'http_code' => 400, 'description' => 'Failed to obtain the logstore list of Log Service SLS.'],
['code' => 'Log.Control.BatchDescribeSlsProjectFailed', 'message' => 'Failed to obtain the project list of Log Service SLS.', 'http_code' => 400, 'description' => 'Failed to obtain the project list of Log Service SLS.'],
['code' => 'Log.Control.ClusterDeliveryNameEmpty', 'message' => 'When you enable WAF cluster outgoing logs, the outgoing configuration name cannot be empty.', 'http_code' => 400, 'description' => 'When you enable WAF cluster outgoing logs, the outgoing configuration name cannot be empty.'],
['code' => 'Log.Control.CreateEtlMetaFailed', 'message' => 'Open Log Distribution Failed.', 'http_code' => 400, 'description' => 'Failed to enable the Log Service for WAF feature.'],
['code' => 'Log.Control.CreateEtlMetaFailed', 'message' => 'Failed to enable the Log Service for WAF feature.', 'http_code' => 400, 'description' => 'Failed to enable the Log Service for WAF feature.'],
['code' => 'Log.Control.CreateProjectLogstoreFailed', 'message' => 'Failed to create Projects and Logstores.', 'http_code' => 400, 'description' => 'Failed to create a project and a Logstore.'],
['code' => 'Log.Control.CreateProjectLogstoreFailed', 'message' => 'Failed to create a project and a Logstore.', 'http_code' => 400, 'description' => 'Failed to create a project and a Logstore.'],
['code' => 'Log.Control.DeleteEtlMetaFailed', 'message' => 'Failed to close log distribution.', 'http_code' => 400, 'description' => 'Failed to disable the Log Service for WAF feature.'],
['code' => 'Log.Control.DeleteEtlMetaFailed', 'message' => 'Failed to disable the Log Service for WAF feature.', 'http_code' => 400, 'description' => 'Failed to disable the Log Service for WAF feature.'],
['code' => 'Log.Control.DeleteLogStoreFailed', 'message' => 'Failed to delete LogStore.', 'http_code' => 400, 'description' => 'Failed to delete the Logstore.'],
['code' => 'Log.Control.DeleteLogStoreFailed', 'message' => 'Failed to delete the Logstore.', 'http_code' => 400, 'description' => 'Failed to delete the Logstore.'],
['code' => 'Log.Control.DeliveryConfigCountExceed', 'message' => 'The count of WAF outgoing configurations exceeds the limit.', 'http_code' => 400, 'description' => 'The number of WAF outgoing configurations exceeds the limit.'],
['code' => 'Log.Control.DeliveryConfigInUse', 'message' => 'WAF cluster outgoing configuration is in use and cannot be deleted.', 'http_code' => 400, 'description' => 'The delivery configuration is in use and cannot be deleted.'],
['code' => 'Log.Control.DeliveryConfigNameDuplicate', 'message' => 'WAF outgoing configuration name is duplicate.', 'http_code' => 400, 'description' => 'WAF outgoing configuration name is duplicate.'],
['code' => 'Log.Control.DeliveryConfigNotExist', 'message' => 'The WAF cluster log outgoing configuration does not exist.', 'http_code' => 400, 'description' => 'The WAF cluster log outgoing configuration does not exist.'],
['code' => 'Log.Control.DescribeLogstoreInfoFailed', 'message' => 'Failed to view LogStore information.', 'http_code' => 400, 'description' => 'Failed to view the Logstore information.'],
['code' => 'Log.Control.DescribeLogstoreInfoFailed', 'message' => 'Failed to view the Logstore information.', 'http_code' => 400, 'description' => 'Failed to view the Logstore information.'],
['code' => 'Log.Control.DescribeSlsAuthFailed', 'message' => 'Error querying user for authorization to operate SLS resource.', 'http_code' => 400, 'description' => 'Failed to check whether a user is authorized to manage Log Service resources.'],
['code' => 'Log.Control.DescribeSlsAuthFailed', 'message' => 'Failed to check whether a user is authorized to manage Log Service resources.', 'http_code' => 400, 'description' => 'Failed to check whether a user is authorized to manage Log Service resources.'],
['code' => 'Log.Control.DescribeSlsDispatchStatusFailed', 'message' => 'Query Log Distribution Status Error.', 'http_code' => 400, 'description' => 'Failed to query the status of the Log Service for WAF feature.'],
['code' => 'Log.Control.DescribeSlsDispatchStatusFailed', 'message' => 'Failed to query the status of the Log Service for WAF feature.', 'http_code' => 400, 'description' => 'Failed to query the status of the Log Service for WAF feature.'],
['code' => 'Log.Control.EtlMetaExistError', 'message' => 'Log distribution already exists.', 'http_code' => 400, 'description' => 'The Log Service for WAF feature is enabled.'],
['code' => 'Log.Control.EtlMetaExistError', 'message' => 'The Log Service for WAF feature is enabled.', 'http_code' => 400, 'description' => 'The Log Service for WAF feature is enabled.'],
['code' => 'Log.Control.EtlMetaNotExist', 'message' => 'Log distribution configuration does not exist.', 'http_code' => 400, 'description' => 'The Log Service for WAF feature is not enabled.'],
['code' => 'Log.Control.EtlMetaNotExist', 'message' => 'The Log Service for WAF feature is not enabled.', 'http_code' => 400, 'description' => 'The Log Service for WAF feature is not enabled.'],
['code' => 'Log.Control.HybridCloudNotSupport', 'message' => 'The hybrid cloud extension node is not supported. Please purchase and try again.', 'http_code' => 400, 'description' => 'The hybrid cloud extension node is not supported. Please purchase and try again.'],
['code' => 'Log.Control.HybridClusterNotExist', 'message' => 'The hybrid cloud cluster does not exist.', 'http_code' => 400, 'description' => 'The hybrid cloud cluster does not exist.'],
['code' => 'Log.Control.InDebtError', 'message' => 'You have a bill in arrears and do not meet the requirements for automatic logging service. Please recharge your bill and settle it before trying again.', 'http_code' => 400, 'description' => 'You have overdue payments in your account. The Log Service for WAF feature cannot be automatically enabled. Top up your account, settle the payments, and try again.'],
['code' => 'Log.Control.InDebtError', 'message' => 'You have overdue payments in your account. The Log Service for WAF feature cannot be automatically enabled. Top up your account, settle the payments, and try again.', 'http_code' => 400, 'description' => 'You have overdue payments in your account. The Log Service for WAF feature cannot be automatically enabled. Top up your account, settle the payments, and try again.'],
['code' => 'Log.Control.InvalidAssertKey', 'message' => 'The AssertKey is invalid.', 'http_code' => 400, 'description' => 'Invalid AssertKey parameter'],
['code' => 'Log.Control.InvalidInstanceId', 'message' => 'The instance ID is invalid.', 'http_code' => 400, 'description' => 'The instance ID is invalid.'],
['code' => 'Log.Control.InvalidParameter', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => 'The request parameter is invalid. Please verify the request parameter.'],
['code' => 'Log.Control.InvalidParameter', 'message' => 'Parameter error. Check and correct the parameter and try again.', 'http_code' => 400, 'description' => 'Parameter error. Check and correct the parameter and try again.'],
['code' => 'Log.Control.InvalidSlsParam', 'message' => 'Invalid parameters for Log Service SLS.', 'http_code' => 400, 'description' => 'Invalid parameters for Log Service SLS'],
['code' => 'Log.Control.InvalidUserId', 'message' => 'Invalid user id.', 'http_code' => 400, 'description' => 'The user ID is invalid.'],
['code' => 'Log.Control.InvalidUserId', 'message' => 'The user ID is invalid.', 'http_code' => 400, 'description' => 'The user ID is invalid.'],
['code' => 'Log.Control.KafkaConfigParamError', 'message' => 'The Kafka log outgoing configuration parameter is incorrect.', 'http_code' => 400, 'description' => 'The Kafka log outgoing configuration parameter is incorrect.'],
['code' => 'Log.Control.LogServiceNotSupport', 'message' => 'Log Service is not supported. Please try again after purchasing.', 'http_code' => 400, 'description' => 'Log Service is not supported. Please try again after purchasing.'],
['code' => 'Log.Control.ModifyEtlMetaFailed', 'message' => 'Failed to modify log distribution configuration.', 'http_code' => 400, 'description' => 'Failed to modify the configuration of the Log Service for WAF feature.'],
['code' => 'Log.Control.ModifyEtlMetaFailed', 'message' => 'Failed to modify the configuration of the Log Service for WAF feature.', 'http_code' => 400, 'description' => 'Failed to modify the configuration of the Log Service for WAF feature.'],
['code' => 'Log.Control.ModifyUserLogFieldConfigError', 'message' => 'The user failed to modify the log field.', 'http_code' => 400, 'description' => 'Failed to modify the log fields.'],
['code' => 'Log.Control.ModifyUserLogFieldConfigError', 'message' => 'Failed to modify the log fields.', 'http_code' => 400, 'description' => 'Failed to modify the log fields.'],
['code' => 'Log.Control.ModifyUserLogSpecError', 'message' => 'modify user log spec code failed, please try again later.', 'http_code' => 400, 'description' => 'Failed to enable the Log Service for WAF feature.'],
['code' => 'Log.Control.OpenSlsServiceFailed', 'message' => 'Failed to open SLS.', 'http_code' => 400, 'description' => 'Failed to activate Log Service.'],
['code' => 'Log.Control.OpenSlsServiceFailed', 'message' => 'Failed to activate Log Service.', 'http_code' => 400, 'description' => 'Failed to activate Log Service.'],
['code' => 'Log.Control.ResourceCountTooMuch', 'message' => 'When querying the log delivery status of protected resources, the number of protected resources exceeds the limit.', 'http_code' => 400, 'description' => 'When querying the log delivery status of protected resources, the number of protected resources exceeds the limit.'],
['code' => 'Log.Control.ResourceDeliveryNameEmpty', 'message' => 'When you enable external log delivery for protected resources, the external delivery configuration name cannot be empty.', 'http_code' => 400, 'description' => 'When you enable external log delivery for protected resources, the external delivery configuration name cannot be empty.'],
['code' => 'Log.Control.ResourceNotExist', 'message' => 'The protected resource does not exist.', 'http_code' => 400, 'description' => 'The protected object does not exist.'],
['code' => 'Log.Control.ResourceNotSupportDelivery', 'message' => 'The protected resource does not support enabling external log delivery.', 'http_code' => 400, 'description' => 'The protected resource does not support enabling external log delivery.'],
['code' => 'Log.Control.SlsLogStoreNotExist', 'message' => 'LogStore for SLS does not exist.', 'http_code' => 400, 'description' => 'The Logstore does not exist.'],
['code' => 'Log.Control.SlsLogStoreNotExist', 'message' => 'The Logstore does not exist.', 'http_code' => 400, 'description' => 'The Logstore does not exist.'],
['code' => 'Log.Control.SlsProjectNotExist', 'message' => 'Projects for SLS do not exist.', 'http_code' => 400, 'description' => 'The project does not exist.'],
['code' => 'Log.Control.SlsProjectNotExist', 'message' => 'The project does not exist.', 'http_code' => 400, 'description' => 'The project does not exist.'],
['code' => 'Log.Control.SyslogConfigParamError', 'message' => 'Syslog outgoing configuration parameter error.', 'http_code' => 400, 'description' => 'Syslog outgoing configuration parameter error.'],
['code' => 'Log.Control.UserLogFieldIsUpdating', 'message' => 'The user log field is being configured.', 'http_code' => 400, 'description' => 'The log fields are being configured.'],
['code' => 'Log.Control.UserLogFieldIsUpdating', 'message' => 'The log field is being configured.', 'http_code' => 400, 'description' => 'The log field is being configured.'],
['code' => 'Log.Control.UserLogOpenedError', 'message' => 'Log Service activation failed.', 'http_code' => 400, 'description' => 'Log Service activation failed.'],
['code' => 'Log.Control.UserRegionNotFound', 'message' => 'User region not found.', 'http_code' => 400, 'description' => 'User region not found.'],
['code' => 'NoPermission', 'message' => 'The current operation is not authorized. Please contact the main account to perform authorization after the RAM console is authorized.', 'http_code' => 400, 'description' => 'You are not authorized to perform this operation. Contact the owner of the Alibaba Cloud account to obtain authorization in the RAM console.'],
['code' => 'NoPermissonCreatesServiceLinkedRole', 'message' => 'No Permisson Create Service Linked Role.', 'http_code' => 400, 'description' => 'You do not have the permissions to create the service-linked role.'],
['code' => 'NormalizedUsed', 'message' => 'The feature of positive security model is being used.', 'http_code' => 400, 'description' => 'The positive security model is in use'],
['code' => 'ParamError', 'message' => 'The parameters of your request are invalid.', 'http_code' => 400, 'description' => 'The requested parameter is invalid.'],
['code' => 'PropertyConvertFailed', 'message' => 'The property convert failed.', 'http_code' => 400, 'description' => 'Request processing failed due to an unknown error.'],
['code' => 'Rasp.Attach.DeleteFail', 'message' => 'The access record in the access switch ON state cannot be deleted.', 'http_code' => 200, 'description' => 'The access record in the access switch ON state cannot be deleted.'],
['code' => 'Rasp.Sale.NotExist', 'message' => 'User not purchased.', 'http_code' => 400, 'description' => 'The user has not purchased a RASP instance.'],
['code' => 'Rasp.UnexpectedError', 'message' => 'Unknown error.', 'http_code' => 500, 'description' => 'Request processing failed due to unknown error'],
['code' => 'RedirectionStarting', 'message' => 'WAF protection is being enabled for the port. Try again later.', 'http_code' => 403, 'description' => 'WAF protection is being enabled for the port. Try again later.'],
['code' => 'RequestError', 'message' => 'The system is unavailable. Please try again later.', 'http_code' => 400, 'description' => 'The system is unavailable. Try again later.'],
['code' => 'RiskyDomain', 'message' => 'The domain name you added may be at risk. If you have any questions, please submit a work order.', 'http_code' => 400, 'description' => 'The domain name you added may be at risk. If you have any questions, please submit a work order.'."\n"],
['code' => 'RoleAlreadyExists', 'message' => 'Service Linked Role Already Exists.', 'http_code' => 400, 'description' => 'The role already exists.'],
['code' => 'RsListenPortError', 'message' => 'The specified origin server listening port is invalid.', 'http_code' => 403, 'description' => 'The specified origin server listening port is invalid.'],
['code' => 'Rule.Service.CustomRuleGroupCountGreaterMaxCapacity', 'message' => 'The number of custom rule groups exceeds the purchase limit.', 'http_code' => 400, 'description' => 'The number of custom rule groups exceeds the upper limit.'],
['code' => 'Rule.Service.CustomRuleGroupCountGreaterMaxCapacity', 'message' => 'The number of custom rule groups exceeds the upper limit.', 'http_code' => 400, 'description' => 'The number of custom rule groups exceeds the upper limit.'],
['code' => 'Rule.Service.GenericException', 'message' => 'Internal error.', 'http_code' => 400, 'description' => 'An internal error occurred.'],
['code' => 'Rule.Service.GenericException', 'message' => 'A system error occurred.', 'http_code' => 400, 'description' => 'A system error occurred.'],
['code' => 'Rule.Service.InternalUnknownError', 'message' => 'Unknown error.', 'http_code' => 400, 'description' => 'An unknown error occurred.'],
['code' => 'Rule.Service.InternalUnknownError', 'message' => 'An unknown error occurred.', 'http_code' => 400, 'description' => 'An unknown error occurred.'],
['code' => 'Rule.Service.InvalidParameter', 'message' => 'Parameter check failed.', 'http_code' => 400, 'description' => 'Failed to verify parameters.'],
['code' => 'Rule.Service.InvalidParameter', 'message' => 'Failed to verify parameters.', 'http_code' => 400, 'description' => 'Failed to verify parameters.'],
['code' => 'Rule.Service.NotFoundObject', 'message' => 'No corresponding data found.', 'http_code' => 400, 'description' => 'Failed to find the specified data.'],
['code' => 'Rule.Service.NotFoundObject', 'message' => 'Failed to find the specified data.', 'http_code' => 400, 'description' => 'Failed to find the specified data.'],
['code' => 'Rule.Service.NotFoundPolicy', 'message' => 'Rule group not found.', 'http_code' => 400, 'description' => 'No rule groups found.'],
['code' => 'Rule.Service.NotFoundPolicy', 'message' => 'No rule groups found.', 'http_code' => 400, 'description' => 'No rule groups are found.'],
['code' => 'Rule.Service.NotFoundRule', 'message' => 'No rules found.', 'http_code' => 400, 'description' => 'No rules are found.'],
['code' => 'Rule.Service.NotSupportedCustomRuleGroup', 'message' => 'Custom rule group not purchased, please upgrade.', 'http_code' => 400, 'description' => 'The custom rule group is not supported. Upgrade your instance and try again.'],
['code' => 'Rule.Service.NotSupportedCustomRuleGroup', 'message' => 'The custom rule group is not supported.', 'http_code' => 400, 'description' => 'The custom rule group is not supported.'],
['code' => 'Rule.Service.NotSupportedOperation', 'message' => 'This operation is not supported.', 'http_code' => 400, 'description' => 'The operation is not supported.'],
['code' => 'Rule.Service.NotSupportedOperation', 'message' => 'The operation is not supported.', 'http_code' => 400, 'description' => 'The operation is not supported.'],
['code' => 'Rule.Service.ParameterFormatError', 'message' => 'Parameter format error.', 'http_code' => 400, 'description' => 'The parameter format is invalid.'],
['code' => 'Rule.Service.ParameterFormatError', 'message' => 'The format of the parameter is invalid.', 'http_code' => 400, 'description' => 'The format of the parameter is invalid.'],
['code' => 'Rule.Service.ParameterIsEmpty', 'message' => 'Empty parameter.', 'http_code' => 400, 'description' => 'You must configure the parameter.'],
['code' => 'Rule.Service.ParameterIsEmpty', 'message' => 'You must configure the parameter.', 'http_code' => 400, 'description' => 'You must configure the parameter.'],
['code' => 'Rule.Service.ParameterNotInRange', 'message' => 'Parameter exceeded expected range.', 'http_code' => 400, 'description' => 'The parameter value is invalid.'],
['code' => 'Rule.Service.ParameterNotInRange', 'message' => 'The parameter value is invalid.', 'http_code' => 400, 'description' => 'The parameter value is invalid.'],
['code' => 'Rule.Service.PolicyNameAlreadyExist', 'message' => 'Rule group name already exists.', 'http_code' => 400, 'description' => 'The group name already exists.'],
['code' => 'Rule.Service.PolicyNameAlreadyExist', 'message' => 'The group name already exists.', 'http_code' => 400, 'description' => 'The group name already exists.'],
['code' => 'Rule.Service.PolicyStatusError', 'message' => 'Rule group in use, unable to operate.', 'http_code' => 400, 'description' => 'The rule group is in use and cannot be applied.'],
['code' => 'Rule.Service.PolicyStatusError', 'message' => 'The rule group is in use and cannot be operated.', 'http_code' => 400, 'description' => 'The rule group is in use and cannot be operated.'],
['code' => 'RuleNameDuplicated', 'message' => 'Rule name already in use.', 'http_code' => 400, 'description' => 'The name of the rule is used.'],
['code' => 'RuleNameInvalidError', 'message' => 'The name of rule is invalid.', 'http_code' => 400, 'description' => 'The name of the protection rule is invalid.'],
['code' => 'RuleNotExist', 'message' => 'The specified rule does not exist.', 'http_code' => 400, 'description' => 'The specified protection rule does not exist.'],
['code' => 'RuleQueryParamError', 'message' => 'The request parameter is invalid.', 'http_code' => 403, 'description' => 'The request parameter is invalid.'],
['code' => 'SecondLevelDomainQuotaExceed', 'message' => 'Second Level Domain Quota Exceed.', 'http_code' => 403, 'description' => 'Second Level Domain Quota Exceed.'],
['code' => 'TamperproofUsed', 'message' => 'The feature of website tamper-proofing is being used.', 'http_code' => 400, 'description' => 'The website tamper-proofing feature is in use.'],
['code' => 'TestErrorCode.%s.', 'message' => 'TestErrorMsg.%s.', 'http_code' => 400, 'description' => 'Error code of the test'],
['code' => 'UnderDDoS', 'message' => 'The current WAF instance is in the defense/blackhole state, and it is not allowed to enable the Exclusive IP/GSLB configuration', 'http_code' => 400, 'description' => 'Traffic scrubbing or blackhole filtering is triggered for the WAF instance. You cannot enable Exclusive IP Address or Shared Cluster-based Intelligent Load Balancing.'],
['code' => 'UserMigrating', 'message' => 'WAF user is migrating, the operation of resource does not support.', 'http_code' => 400, 'description' => 'WAF users are being migrated and cannot access resources.'],
['code' => 'UserNotFound', 'message' => 'The specified user does not exist.', 'http_code' => 403, 'description' => 'The specified user does not exist.'],
['code' => 'VasdUsedUp', 'message' => 'The resource package has been used up. For example, all VIP addresses are used.', 'http_code' => 403, 'description' => 'The resource package has been used up. For example, all VIP addresses are used.'],
['code' => 'VerifyDomainCountExceed', 'message' => 'The number of domain names exceeds the limit. You can upgrade the domain package.', 'http_code' => 400, 'description' => 'The number of domain names exceeds the upper limit. You can upgrade the extra domain package.'],
['code' => 'VerifyHttpPortNotSupport', 'message' => 'An invalid HTTP port is specified.', 'http_code' => 400, 'description' => 'The specified HTTP port is invalid.'],
['code' => 'VerifyInfoLeakageNotSupport', 'message' => 'Information leakage prevention is not supported.', 'http_code' => 403, 'description' => 'Data leak prevention is not supported.'],
['code' => 'VerifyMainDomainCountExceed', 'message' => 'The number of primary domains exceeds the limit. You can upgrade the domain package.', 'http_code' => 400, 'description' => 'The number of second-level domain names exceeds the upper limit. You can upgrade the domain name package.'],
['code' => 'VerifyRuleCountExceed', 'message' => 'The number of rules exceeds the limit.', 'http_code' => 400, 'description' => 'The number of rules exceeds the upper limit.'],
['code' => 'VerifyScreenNotSupport', 'message' => 'Large screens are not supported.', 'http_code' => 403, 'description' => 'The data visualization feature is not supported.'],
['code' => 'VerifyTamperproofNotSupport', 'message' => 'Tamper resistance is not supported.', 'http_code' => 403, 'description' => 'Website tamper-proofing is not supported.'],
['code' => 'Waf.Control.AllAccessCnameNeedMigrate', 'message' => 'The user access configuration has not been migrated yet. Please confirm after migration.', 'http_code' => 400, 'description' => 'The migration of domain name configurations is not complete.'],
['code' => 'Waf.Control.ApisecDefaultRuleNotSupportDelete', 'message' => 'The default rules for API security do not support deletion.', 'http_code' => 400, 'description' => 'The default rules for API security do not support deletion.'],
['code' => 'Waf.Control.ApisecExportTypeExist', 'message' => 'API security export task already exists.', 'http_code' => 400, 'description' => 'API security export task already exists.'],
['code' => 'Waf.Control.ApisecInSystemUpdate', 'message' => 'API security service upgrade, expected to last 90 minutes, please try again later.', 'http_code' => 400, 'description' => 'API security service upgrade, expected to last 90 minutes, please try again later.'],
['code' => 'Waf.Control.ApisecIsInitializing', 'message' => 'API security service initialization, expected to last for 1 minute, please try again later.', 'http_code' => 400, 'description' => 'API security service initialization, expected to last for 1 minute, please try again later.'],
['code' => 'Waf.Control.ApisecNotSupport', 'message' => 'The API security module is not supported.', 'http_code' => 400, 'description' => 'The API security module is not supported.'],
['code' => 'Waf.Control.ApisecRuleHostParameterConflict', 'message' => 'The content of the domain name field in the API security rule is duplicate.', 'http_code' => 400, 'description' => 'The content of the domain name field in the API security rule is duplicate.'],
['code' => 'Waf.Control.ApisecRuleInOperation', 'message' => 'The API security policy configuration is operating, please try again later.', 'http_code' => 400, 'description' => 'The API security policy configuration is operating, please try again later.'],
['code' => 'Waf.Control.ApisecRuleNotExist', 'message' => 'API security rule does not exist.', 'http_code' => 400, 'description' => 'API security rule does not exist.'],
['code' => 'Waf.Control.CloudProductInfoEmpty', 'message' => 'The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance.', 'http_code' => 400, 'description' => 'The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance.'."\n"],
['code' => 'Waf.Control.CloudProductInfoNotMartch', 'message' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.', 'http_code' => 400, 'description' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.'],
['code' => 'Waf.Control.CnameBatchOpsFailedDomains', 'message' => 'Failed to upgrade the domain name to WAF3.0 or roll back the domain name to WAF2.0.', 'http_code' => 400, 'description' => 'Failed to upgrade the domain name to WAF3.0 or roll back the domain name to WAF2.0.'],
['code' => 'Waf.Control.Conflict', 'message' => 'Configuration Conflict', 'http_code' => 400, 'description' => 'A configuration conflict occurs. Try again later.'],
['code' => 'Waf.Control.DefenseResourceCountOverSize', 'message' => 'The maximum number of protected objects is exceeded.', 'http_code' => 400, 'description' => 'The number of protected objects exceeds the upper limit.'],
['code' => 'Waf.Control.DefenseResourceEmpty', 'message' => 'CloudResourceId parameter is illegal.', 'http_code' => 400, 'description' => 'CloudResourceId parameter is illegal'],
['code' => 'Waf.Control.DomainAndDomainIdBothEmpty', 'message' => 'domain and domainId cannot be empty at the same time.', 'http_code' => 400, 'description' => 'The domain name and domain name ID cannot be empty at the same time.'."\n"],
['code' => 'Waf.Control.DomainAndDomainIdNotMatch', 'message' => 'domain and domainId do not match.', 'http_code' => 400, 'description' => 'The input parameters Domain and DomainId do not match'."\n"],
['code' => 'Waf.Control.DomainExist', 'message' => 'The domain has been configured.', 'http_code' => 400, 'description' => 'The domain name already exists. Select an appropriate domain name again.'],
['code' => 'Waf.Control.DomainExist', 'message' => 'The domain name already exists.', 'http_code' => 400, 'description' => 'The domain name already exists.'],
['code' => 'Waf.Control.DomainFormatInvalid', 'message' => 'Incorrect domain name format.', 'http_code' => 400, 'description' => 'Incorrect domain name format.'],
['code' => 'Waf.Control.DomainIdIsIllegal', 'message' => 'The input parameter, the domainId is illegal.', 'http_code' => 400, 'description' => 'Illegal entry DomainId'],
['code' => 'Waf.Control.DomainNotEmpty', 'message' => 'The domain name must be specified.', 'http_code' => 400, 'description' => 'The domain name is not specified.'],
['code' => 'Waf.Control.DomainOwnerNotVerify', 'message' => 'The user domain ownership is not verified.', 'http_code' => 400, 'description' => 'The ownership of the domain name is not verified.'],
['code' => 'Waf.Control.DomainsNotEmpty', 'message' => 'The domain name list cannot be empty.', 'http_code' => 400, 'description' => 'You must select at least one domain name.'],
['code' => 'Waf.Control.DomainTxtRecordValidateFailed', 'message' => 'Failed to verify the ownership of the primary domain name', 'http_code' => 400, 'description' => 'Failed to verify the ownership of the second-level domain name. Enter the second-level domain name that you own.'],
['code' => 'Waf.Control.ExportDomainsExist', 'message' => 'The domain name export task is in progress. Please do not export it repeatedly.', 'http_code' => 400, 'description' => 'The task of exporting domain names is running. Do not repeat the export.'],
['code' => 'Waf.Control.ExportingTasksMoreThanFifty', 'message' => 'The number of tasks being exported cannot exceed 50', 'http_code' => 400, 'description' => 'The number of tasks being exported cannot exceed 50.'],
['code' => 'Waf.Control.FingerStatusNotEmpty', 'message' => 'The parameters of your request are invalid.', 'http_code' => 400, 'description' => 'The request parameters are invalid. Verify the request parameters.'],
['code' => 'Waf.Control.InstanceExpired', 'message' => 'The instance has expired and does not support POC.', 'http_code' => 400, 'description' => 'The instance has expired and does not support POC.'],
['code' => 'Waf.Control.InstanceStatusNotSupport', 'message' => 'Migration is not supported in the current instance state.', 'http_code' => 400, 'description' => 'Instances in this state cannot be migrated.'],
['code' => 'Waf.Control.InsufficientPocQuota', 'message' => 'Insufficient POC quota.', 'http_code' => 400, 'description' => 'Insufficient POC quota.'],
['code' => 'Waf.Control.InvalidApisecComplianceCode', 'message' => 'The information data type in the compliance check rule is invalid.', 'http_code' => 400, 'description' => 'The information data type in the compliance check rule is invalid.'],
['code' => 'Waf.Control.InvalidApisecRuleCondition', 'message' => 'The condition parameter in the API security rule is invalid.', 'http_code' => 400, 'description' => 'The condition parameter in the API security rule is invalid.'],
['code' => 'Waf.Control.InvalidApisecRuleParam', 'message' => 'The API security rule parameter is invalid.', 'http_code' => 400, 'description' => 'The API security rule parameter is invalid.'],
['code' => 'Waf.Control.InvalidApisecTrafficTime', 'message' => 'The time parameter for API security compliance check is invalid.', 'http_code' => 400, 'description' => 'The time parameter for API security compliance check is invalid.'],
['code' => 'Waf.Control.InvalidApisecWhitelistTags', 'message' => 'The tags parameter in the API security whitelist rule is invalid.', 'http_code' => 400, 'description' => 'The tags parameter in the API security whitelist rule is invalid.'],
['code' => 'Waf.Control.InvalidDelegatedUserId', 'message' => 'Invalid delegated administrator user ID.', 'http_code' => 400, 'description' => 'Invalid delegated administrator user ID.'],
['code' => 'Waf.Control.InvalidMemberUserId', 'message' => 'Invalid member account user ID.', 'http_code' => 400, 'description' => 'Invalid member account user ID.'],
['code' => 'Waf.Control.InvalidParameter', 'message' => 'The parameters of your request are invalid.', 'http_code' => 400, 'description' => 'The request parameters are invalid. Verify the request parameters.'],
['code' => 'Waf.Control.MemberHasWafInstance', 'message' => 'The member account already holds a WAF instance and cannot be managed by a delegated administrator account.', 'http_code' => 400, 'description' => 'The member account already holds a WAF instance and cannot be managed by an administrator account.'],
['code' => 'Waf.Control.MemberNotExist', 'message' => 'The member account does not exist. Please check and try again.', 'http_code' => 400, 'description' => 'The member account does not exist. Please check and try again.'],
['code' => 'Waf.Control.MemberUserInBatchTooMuch', 'message' => 'The number of member accounts for batch operations exceeds the limit.', 'http_code' => 400, 'description' => 'The number of member accounts for batch operations exceeds the limit.'],
['code' => 'Waf.Control.MemberUserOverLimit', 'message' => 'The number of managed member accounts has exceeded the WAF instance specification limit. Please upgrade and try again.', 'http_code' => 400, 'description' => 'The number of managed member accounts exceeds the WAF instance specification limit. Upgrade and try again.'],
['code' => 'Waf.Control.MigrateTaskExist', 'message' => 'The migration task already exists.', 'http_code' => 400, 'description' => 'The migration task already exists.'],
['code' => 'Waf.Control.ModuleCodeInvalid', 'message' => 'The code of the pricing module is incorrect.', 'http_code' => 400, 'description' => 'The code of the pricing module is incorrect.'],
['code' => 'Waf.Control.NotRollBack', 'message' => 'During the migration, the domain name has been modified or added to the access configuration in V3. You cannot roll back or abort the upgrade.', 'http_code' => 400, 'description' => 'During the migration, the domain name has been modified or added to the access configuration in V3. You cannot roll back or abort the upgrade.'],
['code' => 'Waf.Control.NotSupportRd', 'message' => 'The user\'s WAF instance does not support multi-account management. Please upgrade and try again.', 'http_code' => 400, 'description' => 'The user\'s WAF instance does not support multi-account management. Please upgrade and try again.'],
['code' => 'Waf.Control.PocFunctionBought', 'message' => 'The function specified to enable POC has already been purchased.', 'http_code' => 400, 'description' => 'The function specified to enable POC has already been purchased.'],
['code' => 'Waf.Control.PocIllegalType', 'message' => 'Type field value is incorrect when enabling POC.', 'http_code' => 400, 'description' => 'Type field value is incorrect when enabling POC.'],
['code' => 'Waf.Control.PocInvalidEdition', 'message' => 'The WAF version does not support the POC function.', 'http_code' => 400, 'description' => 'The WAF version does not support the POC function.'],
['code' => 'Waf.Control.PocRepeatedEnable', 'message' => 'POC has been enabled and cannot be repeated.', 'http_code' => 400, 'description' => 'POC has been enabled and cannot be repeated.'],
['code' => 'Waf.Control.ResourceDirectoryNotExist', 'message' => 'The user has not activated the resource directory. Please try again after activating.', 'http_code' => 400, 'description' => 'The user has not activated the resource directory. Please try again after activating.'],
['code' => 'Waf.Control.TopDomainNotEmpty', 'message' => 'The top-level domain must be specified.', 'http_code' => 400, 'description' => 'The second-level domain name is not specified.'],
['code' => 'Waf.Control.UserAlreadyMigrated', 'message' => 'The user configuration has been migrated to the new version of WAF.', 'http_code' => 400, 'description' => 'User configurations are migrated to WAF 3.0.'],
['code' => 'Waf.Control.UserMigrating', 'message' => 'The user is not allowed to access the configuration during the migration.', 'http_code' => 400, 'description' => 'The user is not allowed to access the configuration during the migration.'],
['code' => 'Waf.Control.VerifyRecordNotFound', 'message' => 'The verification record does not exist.', 'http_code' => 400, 'description' => 'The verification record does not exist.'],
['code' => 'Waf.HybridCloud.AccessModeInvalid', 'message' => 'The access type is invalid.', 'http_code' => 400, 'description' => 'The access type is invalid.'],
['code' => 'Waf.HybridCloud.AccessModeIsEmpty', 'message' => 'The access mode cannot be empty.', 'http_code' => 400, 'description' => 'The access mode cannot be empty.'],
['code' => 'Waf.HybridCloud.AccessRegionInvalid', 'message' => 'The access region is invalid.', 'http_code' => 400, 'description' => 'The region is invalid.'],
['code' => 'Waf.HybridCloud.ApisecRuleConfigConflict', 'message' => 'API security rule configuration conflicts.', 'http_code' => 400, 'description' => 'API security rule configuration conflicts'],
['code' => 'Waf.HybridCloud.ApisecRuleParamError', 'message' => 'API security rule parameter exception.', 'http_code' => 400, 'description' => 'API security rule parameter exception'],
['code' => 'Waf.HybridCloud.ApisecRuleServiceError', 'message' => 'API security rule service exception.', 'http_code' => 400, 'description' => 'API security rule service exception'],
['code' => 'Waf.HybridCloud.ClusterIdNotEmpty', 'message' => 'The cluster ID cannot be empty.', 'http_code' => 400, 'description' => 'The cluster ID cannot be empty.'],
['code' => 'Waf.HybridCloud.ClusterNameEmpty', 'message' => 'The cluster name cannot be empty.', 'http_code' => 400, 'description' => 'The cluster name cannot be empty.'],
['code' => 'Waf.HybridCloud.ClusterNameExist', 'message' => 'The cluster name already exists.', 'http_code' => 400, 'description' => 'The cluster name already exists.'],
['code' => 'Waf.HybridCloud.ClusterNotFound', 'message' => 'No cluster information found.', 'http_code' => 400, 'description' => 'No cluster information is found.'],
['code' => 'Waf.HybridCloud.ClusterRuleAlreadyExists', 'message' => 'Cluster rule already exists.', 'http_code' => 400, 'description' => 'Cluster rule already exists.'],
['code' => 'Waf.HybridCloud.ClusterRuleContentEmpty', 'message' => 'Cluster rule content cannot be empty.', 'http_code' => 400, 'description' => 'Cluster rule content cannot be empty.'],
['code' => 'Waf.HybridCloud.ClusterRuleDontUsed', 'message' => 'Cluster rules have been updated to a new version. For more information, see the latest API documentation.', 'http_code' => 400, 'description' => 'Cluster rules have been updated to a new version. For more information, see the latest API documentation.'],
['code' => 'Waf.HybridCloud.ClusterRuleNotFound', 'message' => 'The cluster rule resource ID does not exist.', 'http_code' => 400, 'description' => 'The cluster rule resource ID does not exist.'],
['code' => 'Waf.HybridCloud.ClusterRuleResourceIdEmpty', 'message' => 'Cluster rule resource ID cannot be empty.', 'http_code' => 400, 'description' => 'Cluster rule resource ID cannot be empty'],
['code' => 'Waf.HybridCloud.ClusterRuleStatusIsEmpty', 'message' => 'The rule status of the service-oriented cluster cannot be empty', 'http_code' => 400, 'description' => 'The rule status must be specified.'],
['code' => 'Waf.HybridCloud.ClusterRuleTypeDontUpdate', 'message' => 'The cluster rule type cannot be modified.', 'http_code' => 400, 'description' => 'The cluster rule type cannot be modified.'],
['code' => 'Waf.HybridCloud.ClusterRuleTypeIsEmpty', 'message' => 'The service-oriented cluster rule type cannot be empty', 'http_code' => 400, 'description' => 'The rule type must be specified.'],
['code' => 'Waf.HybridCloud.ClusterRuleTypeNotExist', 'message' => 'The cluster rule type is incorrect.', 'http_code' => 400, 'description' => 'The cluster rule type is incorrect.'],
['code' => 'Waf.HybridCloud.ExactRuleCountOverSize', 'message' => 'The number of precise matching rules exceeds the limit', 'http_code' => 400, 'description' => 'The number of exact match rules exceeds the limit.'],
['code' => 'Waf.HybridCloud.GroupCreationError', 'message' => 'You must create storage groups, management groups, and protection groups in sequence.', 'http_code' => 400, 'description' => 'You must create groups in sequence.'],
['code' => 'Waf.HybridCloud.GroupDeleteDomainReferError', 'message' => 'You cannot delete the group because the domain names in the group are in use. Remove the domain names from the group first.', 'http_code' => 400, 'description' => 'You cannot delete the group because the domain names in the group are in use. Remove the domain names from the group first.'],
['code' => 'Waf.HybridCloud.GroupDeleteDomainReferError', 'message' => 'A domain name is currently using this protection group. Please delete the domain name reference relationship before proceeding.', 'http_code' => 400, 'description' => 'A domain name is currently using this protection group. Delete the domain name reference relationship before performing the operation.'],
['code' => 'Waf.HybridCloud.GroupDeleteNodeInError', 'message' => 'You cannot delete the group. Remove the nodes from the group first.', 'http_code' => 400, 'description' => 'The group cannot be deleted. Remove nodes from the group first.'],
['code' => 'Waf.HybridCloud.GroupDeletionError', 'message' => 'You must delete protection groups, management groups, and storage groups in sequence.', 'http_code' => 400, 'description' => 'Delete groups in sequence.'],
['code' => 'Waf.HybridCloud.GroupIdInvalid', 'message' => 'The group ID is invalid.', 'http_code' => 400, 'description' => 'The group ID is invalid.'],
['code' => 'Waf.HybridCloud.GroupLocationNotEmpty', 'message' => 'The group region cannot be empty.', 'http_code' => 400, 'description' => 'The group region cannot be empty.'],
['code' => 'Waf.HybridCloud.GroupNameNotEmpty', 'message' => 'The group name cannot be empty.', 'http_code' => 400, 'description' => 'The group name cannot be empty.'],
['code' => 'Waf.HybridCloud.GroupProtectionNodeOverrun', 'message' => 'The number of protected nodes exceeds the upper limit.', 'http_code' => 400, 'description' => 'The number of protected nodes exceeds the upper limit.'],
['code' => 'Waf.HybridCloud.GroupVagentIdInvalid', 'message' => 'The group ID is invalid.', 'http_code' => 400, 'description' => 'The group ID is invalid.'],
['code' => 'Waf.HybridCloud.HttpPortIsEmpty', 'message' => 'The HTTP ports cannot be empty.', 'http_code' => 400, 'description' => 'The HTTP ports cannot be empty.'],
['code' => 'Waf.HybridCloud.HttpsPortIsEmpty', 'message' => 'The HTTPS ports cannot be empty.', 'http_code' => 400, 'description' => 'The HTTPS ports cannot be empty.'],
['code' => 'Waf.HybridCloud.HybridCloudApisecNotSupport', 'message' => 'WAF instances do not support hybrid cloud API security.', 'http_code' => 400, 'description' => 'WAF instances do not support hybrid cloud API security'],
['code' => 'Waf.HybridCloud.HybridCloudNotsupport', 'message' => 'Hybrid cloud is not supported.', 'http_code' => 400, 'description' => 'Hybrid clouds are not supported.'],
['code' => 'Waf.HybridCloud.InternalError', 'message' => 'Internal service error.', 'http_code' => 400, 'description' => 'Internal Service Error'],
['code' => 'Waf.HybridCloud.InvalidGroupType', 'message' => 'The group type is invalid.', 'http_code' => 400, 'description' => 'The group type is invalid.'],
['code' => 'Waf.HybridCloud.InvalidHttpPort', 'message' => 'The HTTP port is invalid.', 'http_code' => 400, 'description' => 'The HTTP port is invalid.'],
['code' => 'Waf.HybridCloud.InvalidHttpsPort', 'message' => 'The HTTPS port is invalid.', 'http_code' => 400, 'description' => 'The HTTPS port is invalid.'],
['code' => 'Waf.HybridCloud.LoadBalanceIpNotEmpty', 'message' => 'The server IP address for load balancing cannot be empty.', 'http_code' => 400, 'description' => 'The server IP address for load balancing cannot be empty.'],
['code' => 'Waf.HybridCloud.ProtectionCountOrverLoad', 'message' => 'The number of protected domains exceeds the upper limit.', 'http_code' => 400, 'description' => 'The number of protected nodes exceeds the specification.'],
['code' => 'Waf.HybridCloud.ProtectionServerCountInvalid', 'message' => 'The number of protected domains is invalid.', 'http_code' => 400, 'description' => 'The number of protected nodes is invalid.'],
['code' => 'Waf.HybridCloud.PullinRuleFormatInvalid', 'message' => 'Incorrect format of drainage rules', 'http_code' => 400, 'description' => 'The format of traffic redirection rules is invalid.'],
['code' => 'Waf.HybridCloud.RegexRuleCountOverSize', 'message' => 'The number of regular matching rules exceeds the limit', 'http_code' => 400, 'description' => 'The number of regular expression rules exceeds the limit.'],
['code' => 'Waf.HybridCloud.SdkInfoNotExist', 'message' => 'SDK info not exist.', 'http_code' => 400, 'description' => 'The traffic redirection node does not exist.'],
['code' => 'Waf.HybridCloud.SdkMidIsEmpty', 'message' => 'Machine unique identifier mid cannot be empty', 'http_code' => 400, 'description' => 'The machine ID must be specified.'],
['code' => 'Waf.HybridCloud.ServerContinentsInvalid', 'message' => 'The continent is invalid.', 'http_code' => 400, 'description' => 'The continent is invalid.'],
['code' => 'Waf.HybridCloud.ServerContinestsUnuseable', 'message' => 'The continent is not supported.', 'http_code' => 400, 'description' => 'The continent is not supported.'],
['code' => 'Waf.HybridCloud.ServerMidInvalid', 'message' => 'The machine ID is invalid.', 'http_code' => 400, 'description' => 'The machine ID is invalid.'],
['code' => 'Waf.HybridCloud.ServerMidNotExist', 'message' => 'The machine ID does not exist.', 'http_code' => 400, 'description' => 'The machine ID does not exist.'],
['code' => 'Waf.HybridCloud.ServerOperatorInvalid', 'message' => 'The operator is invalid.', 'http_code' => 400, 'description' => 'The operator is invalid.'],
['code' => 'Waf.HybridCloud.ServerOperatorUnuseable', 'message' => 'The operator is not supported.', 'http_code' => 400, 'description' => 'The operator is not supported.'],
['code' => 'Waf.HybridCloud.ServerRegionCodeInvalid', 'message' => 'The city is invalid.', 'http_code' => 400, 'description' => 'The city is invalid.'],
['code' => 'Waf.HybridCloud.ServerRegionCodeUnuseable', 'message' => 'The city is not supported.', 'http_code' => 400, 'description' => 'The city is not supported.'],
['code' => 'Waf.HybridCloud.ServerRegionTypeInvalid', 'message' => 'The region type is invalid.', 'http_code' => 400, 'description' => 'The region type is invalid.'],
['code' => 'Waf.HybridCloud.ServerUpdateFailed', 'message' => 'Failed to update the server information.', 'http_code' => 400, 'description' => 'Failed to update the server information.'],
['code' => 'Waf.HybridCloud.UniqueClusterGroupType', 'message' => 'You can create only one group of this type in a cluster.', 'http_code' => 400, 'description' => 'You can create only one group of this type in a cluster.'],
['code' => 'Waf.HybridCloud.UniqueGroupName', 'message' => 'The group name already exists.', 'http_code' => 400, 'description' => 'The group name already exists.'],
['code' => 'Waf.HybridCloud.UserNoPermission', 'message' => 'You do not have the permissions to perform this operation.', 'http_code' => 400, 'description' => 'You do not have the permissions to perform this operation.'],
['code' => 'Waf.Instance.MaxTransparentIpPortCountLimit', 'message' => 'The number of transparent access exceeds the current maximum number that can be added', 'http_code' => 400, 'description' => 'The maximum number of instances that you can add to WAF in transparent proxy mode is exceeded.'],
['code' => 'Waf.Instance.ValidFaild', 'message' => 'WAF instance check failed. Check whether the instance ID is correct.', 'http_code' => 400, 'description' => 'WAF instance check failed. Check whether the instance ID is correct.'],
['code' => 'Waf.Pullin.AbnormalStatus', 'message' => 'The status of the access resource is abnormal. Resource:%s.', 'http_code' => 400, 'description' => 'The status of the access resource is abnormal. Resource:%s.'],
['code' => 'Waf.Pullin.AlreadyAccessed', 'message' => 'The cloud product has been accessed. Instance ID:%s, Port:%s, Product Type:%s.', 'http_code' => 400, 'description' => 'The cloud product has been accessed. Instance ID:%s, Port:%s, Product Type:%s.'],
['code' => 'Waf.Pullin.BackedInBacklist', 'message' => 'The input back-to-source IP is in the system blacklist, please update the back-to-source IP.', 'http_code' => 400, 'description' => 'The back-to-origin IP address is in the blacklist. Change the back-to-origin IP address.'],
['code' => 'Waf.Pullin.BackendPortIncompatible', 'message' => 'The back-to-source port is incompatible with the listening port, listening protocol:%s, listening port:%s, back-to-source port:%s.', 'http_code' => 400, 'description' => 'The back-to-source port is incompatible with the listening port, listening protocol:%s, listening port:%s, back-to-source port:%s.'],
['code' => 'Waf.Pullin.BackendPortNotMatched', 'message' => 'The back-to-source port does not match the listening port. Listening protocol:%s, listening port:%s, back-to-source port:%s.', 'http_code' => 400, 'description' => 'The back-to-source port does not match the listening port. Listening protocol:%s, listening port:%s, back-to-source port:%s.'],
['code' => 'Waf.Pullin.BackupBackendConflict', 'message' => 'The backup backend configuration conflicts.', 'http_code' => 400, 'description' => 'The backup link back-to-source configuration conflicts.'],
['code' => 'Waf.Pullin.BatchDnsScheduleCheckFailed', 'message' => 'Batch dns scheduling is in progress, and access related operations are prohibited.', 'http_code' => 400, 'description' => 'batch dns scheduling is in progress, and access-related operations are prohibited.'],
['code' => 'Waf.Pullin.BusinessDomainNotRecord', 'message' => 'The domain name does not have an ICP filing.', 'http_code' => 400, 'description' => 'The domain name does not have an ICP filing.'],
['code' => 'Waf.Pullin.BusinessViolation', 'message' => 'The domain-related business is suspected of violating regulations. If you have any questions, please follow the ticket process.', 'http_code' => 400, 'description' => 'Domain name business is suspected of violating regulations. If you have any questions, please go through the work order process.'],
['code' => 'Waf.Pullin.BusinessViolation', 'message' => 'Domain services are suspected of violating regulations. If you have any questions, please submit a work order. Violating resource: %s.', 'http_code' => 400, 'description' => 'Domain services are suspected of violating regulations. If you have any questions, please submit a work order. Violating resource: %s.'],
['code' => 'Waf.Pullin.BusinessViolation', 'message' => 'The web services are suspected of violating regulations. If you have any questions, please submit a work order. Violating resource: %s.', 'http_code' => 400, 'description' => 'The web services are suspected of violating regulations. If you have any questions, please submit a work order. Violating resource: %s.'],
['code' => 'Waf.Pullin.CertAuthFailed', 'message' => 'Certificate authorization failed.', 'http_code' => 400, 'description' => 'Failed to perform certificate authentication.'],
['code' => 'Waf.Pullin.CertAuthFailed', 'message' => 'Failed to perform certificate authentication.', 'http_code' => 400, 'description' => 'Failed to perform certificate authentication.'],
['code' => 'Waf.Pullin.CertExist', 'message' => 'Certificate already exists.', 'http_code' => 400, 'description' => 'The certificate exists.'],
['code' => 'Waf.Pullin.CertExist', 'message' => 'The certificate exists.', 'http_code' => 400, 'description' => 'The certificate exists.'],
['code' => 'Waf.Pullin.CertExpired', 'message' => 'Certificate has expired.', 'http_code' => 400, 'description' => 'The certificate is expired.'],
['code' => 'Waf.Pullin.CertExpired', 'message' => 'The certificate has expired.', 'http_code' => 400, 'description' => 'The certificate has expired.'],
['code' => 'Waf.Pullin.CertExpired', 'message' => 'Certificate expired, certificate ID:%s .', 'http_code' => 400, 'description' => 'Certificate expired, certificate ID:%s.'],
['code' => 'Waf.Pullin.CertKeyEmpty', 'message' => 'Certificate private key is empty.', 'http_code' => 400, 'description' => 'The private key of the certificate is empty.'],
['code' => 'Waf.Pullin.CertKeyEmpty', 'message' => 'The private key of the certificate is empty.', 'http_code' => 400, 'description' => 'The private key of the certificate is empty.'],
['code' => 'Waf.Pullin.CertKeyNotMatch', 'message' => 'Certificate file does not match private key.', 'http_code' => 400, 'description' => 'The certificate file does not match the private key.'],
['code' => 'Waf.Pullin.CertKeyNotMatch', 'message' => 'The certificate file does not match the private key.', 'http_code' => 400, 'description' => 'The certificate file does not match the private key.'],
['code' => 'Waf.Pullin.CertNameExist', 'message' => 'Certificate name already exists.', 'http_code' => 400, 'description' => 'The name of the certificate is being used.'],
['code' => 'Waf.Pullin.CertNameExist', 'message' => 'The name of the certificate is being used.', 'http_code' => 400, 'description' => 'The name of the certificate is being used.'],
['code' => 'Waf.Pullin.CertNotExist', 'message' => 'Certificate does not exist.', 'http_code' => 400, 'description' => 'The certificate does not exist.'],
['code' => 'Waf.Pullin.CertNotExist', 'message' => 'The certificate does not exist.', 'http_code' => 400, 'description' => 'The certificate does not exist.'],
['code' => 'Waf.Pullin.CertNotExist', 'message' => 'Certificate does not exist in SSL Certificate Center, certificate type:%s, certificate ID:%s.', 'http_code' => 400, 'description' => 'Certificate does not exist in SSL Certificate Center, certificate type:%s, certificate ID:%s.'],
['code' => 'Waf.Pullin.CertNotMatchDomain', 'message' => 'The domain name is not included in the certificate.', 'http_code' => 400, 'description' => 'The domain name is not included in the certificate.'],
['code' => 'Waf.Pullin.CertSaveFailed', 'message' => 'Certificate save failed.', 'http_code' => 400, 'description' => 'Failed to store the certificate.'],
['code' => 'Waf.Pullin.CertSaveFailed', 'message' => 'Failed to store the certificate.', 'http_code' => 400, 'description' => 'Failed to store the certificate.'],
['code' => 'Waf.Pullin.ClientCertificateOpened', 'message' => 'Clb Instance port Client Certiticate is opened.', 'http_code' => 400, 'description' => 'Mutual authentication is enabled for the ports of CLB instances. The ports cannot be added to WAF.'],
['code' => 'Waf.Pullin.CloudProductParamEmpty', 'message' => 'The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance.', 'http_code' => 400, 'description' => 'The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance.'],
['code' => 'Waf.Pullin.CloudProductParamNotMarch', 'message' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.', 'http_code' => 400, 'description' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.'],
['code' => 'Waf.Pullin.CloudProductParamNotMatch', 'message' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.', 'http_code' => 400, 'description' => 'The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match.'."\n"],
['code' => 'Waf.Pullin.CloudResourceInvalid', 'message' => 'CloudResourceId parameter is illegal.', 'http_code' => 400, 'description' => 'CloudResourceId parameter is illegal'],
['code' => 'Waf.Pullin.DomainAndDomainIdBothEmpty', 'message' => 'domain and domainId cannot be empty at the same time.', 'http_code' => 400, 'description' => 'The domain name and domain name ID cannot be empty at the same time.'],
['code' => 'Waf.Pullin.DomainAndDomainIdNotMatch', 'message' => 'domain and domainId do not match.', 'http_code' => 400, 'description' => 'The input parameters Domain and DomainId do not match.'],
['code' => 'Waf.Pullin.DomainExistInOldWaf', 'message' => 'Domain name exists in WAF 2.0.', 'http_code' => 400, 'description' => 'The domain name is added to WAF of the earlier version.'],
['code' => 'Waf.Pullin.DomainExistInOldWaf', 'message' => 'The domain name is added to WAF of the earlier version.', 'http_code' => 403, 'description' => 'The domain name is already configured in WAF 2.0.'],
['code' => 'Waf.Pullin.DomainIdIsIllegal', 'message' => 'The input parameter, the domainId is illegal.', 'http_code' => 400, 'description' => 'Illegal entry DomainId'],
['code' => 'Waf.Pullin.DomainNotBeianOrInBlackList', 'message' => 'The domain does not have an ICP filling or has been blacklisted.', 'http_code' => 400, 'description' => 'The domain name is not filed or is on the blacklist.'],
['code' => 'Waf.Pullin.DomainNotBeianOrInBlackList', 'message' => 'Blacklist or Domain Names That Do Not Have ICP Filings', 'http_code' => 400, 'description' => 'The domain name does not have an ICP filing or has committed a penalty.'],
['code' => 'Waf.Pullin.DomainOwnedByOtherUser', 'message' => 'The domain name is already in use by another user.', 'http_code' => 400, 'description' => 'The domain name is used by another user.'],
['code' => 'Waf.Pullin.DomainOwnedByOtherUser', 'message' => 'The domain name is used by other users.', 'http_code' => 400, 'description' => 'The domain name is used by another user.'],
['code' => 'Waf.Pullin.DuplicateCertificateId', 'message' => 'Duplicate certificate ID', 'http_code' => 400, 'description' => 'The ID of the certificate already exists.'],
['code' => 'Waf.Pullin.ExtensiveDomainUsedError', 'message' => 'The generic domain name is already in use by other users.', 'http_code' => 400, 'description' => 'The wildcard domain name is used by another user.'],
['code' => 'Waf.Pullin.ExtensiveDomainUsedError', 'message' => 'The wildcard domain name is used by other users.', 'http_code' => 400, 'description' => 'The wildcard domain name is used by other users.'],
['code' => 'Waf.Pullin.Http2OriginEnabledFocusHttpBackendForbidden', 'message' => 'When HTTP2 origin is enabled, HTTP origin cannot be enabled.', 'http_code' => 400, 'description' => 'When HTTP2 origin is enabled, HTTP origin cannot be enabled.'],
['code' => 'Waf.Pullin.Http2OriginMustOnHttp2Enable', 'message' => 'When HTTP2 origin is enabled, HTTP2 listening must be enabled.', 'http_code' => 400, 'description' => 'When HTTP2 back-to-source is enabled, HTTP2 listening must be enabled.'],
['code' => 'Waf.Pullin.Http2OriginMustOnKeepaliveEnable', 'message' => 'When the HTTP2 origin is turned on, the keepalive must be turned on.', 'http_code' => 400, 'description' => 'When the HTTP2 origin is turned on, the keepalive must be turned on.'],
['code' => 'Waf.Pullin.InsufficientExclusiveVip', 'message' => 'The number of exclusive IP addresses that you have purchased is insufficient. Purchase more on the upgrade page.', 'http_code' => 400, 'description' => 'The number of exclusive IP addresses that you have purchased is insufficient. Purchase more on the upgrade page.'],
['code' => 'Waf.Pullin.InvalidAttachKey', 'message' => 'Invalid parameter name.', 'http_code' => 400, 'description' => 'The name of the parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidAttachKey', 'message' => 'The name of the parameter is invalid.', 'http_code' => 400, 'description' => 'The name of the parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidAttachValue', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => 'The value of the parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidAttachValue', 'message' => 'The value of the parameter is invalid.', 'http_code' => 400, 'description' => 'The value of the parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidBackend', 'message' => 'Invalid return information.', 'http_code' => 400, 'description' => 'The back-to-origin information is invalid.'],
['code' => 'Waf.Pullin.InvalidBackend', 'message' => 'The back-to-origin information is invalid.', 'http_code' => 400, 'description' => 'The back-to-origin information is invalid.'],
['code' => 'Waf.Pullin.InvalidCertByHttpProtocol', 'message' => 'HTTP protocol cannot enter certificate', 'http_code' => 400, 'description' => 'You cannot enter a certificate for the HTTP protocol.'],
['code' => 'Waf.Pullin.InvalidCertByHttpsProtocol', 'message' => 'HTTPS protocol must enter a certificate', 'http_code' => 400, 'description' => 'You must enter a certificate for the HTTPS protocol.'],
['code' => 'Waf.Pullin.InvalidCertFormat', 'message' => 'Certificate format error.', 'http_code' => 400, 'description' => 'The format of the certificate is invalid.'],
['code' => 'Waf.Pullin.InvalidCertFormat', 'message' => 'The format of the certificate is invalid.', 'http_code' => 400, 'description' => 'The format of the certificate is invalid.'],
['code' => 'Waf.Pullin.InvalidCertIdentifier', 'message' => 'Invalid certificate ID, certificate ID:%s.', 'http_code' => 400, 'description' => 'Invalid certificate ID, certificate ID:%s.'],
['code' => 'Waf.Pullin.InvalidCipherSuit', 'message' => 'Invalid CipherSuit', 'http_code' => 400, 'description' => 'The cipher suite is invalid.'],
['code' => 'Waf.Pullin.InvalidClusterPort', 'message' => 'The cluster port is invalid.', 'http_code' => 400, 'description' => 'HybridCloud cluster port is invalid.'],
['code' => 'Waf.Pullin.InvalidCustomCiphers', 'message' => 'Invalid custom cipher suite.', 'http_code' => 400, 'description' => 'Invalid custom cipher suite.'],
['code' => 'Waf.Pullin.InvalidDefaultCert', 'message' => 'Invalid default certificate.', 'http_code' => 400, 'description' => 'The default certificate is invalid.'],
['code' => 'Waf.Pullin.InvalidDomain', 'message' => 'Invalid domain name.', 'http_code' => 400, 'description' => 'The domain name is invalid.'],
['code' => 'Waf.Pullin.InvalidDomain', 'message' => 'The domain name is invalid.', 'http_code' => 400, 'description' => 'The domain name is invalid.'],
['code' => 'Waf.Pullin.InvalidHttp2OriginWithProxyProtocol', 'message' => 'http2Origin and proxyProtocol cannot be opened at the same time.', 'http_code' => 400, 'description' => 'http2Origin and proxyProtocol cannot be opened at the same time.'],
['code' => 'Waf.Pullin.InvalidIncludeSubDomainWithPreload', 'message' => 'The parameter HstsIncludeSubDomain is invalid. When the parameter HstsPreload is true, the HstsIncludeSubDomain must be true.', 'http_code' => 400, 'description' => 'The parameter HstsIncludeSubDomain is invalid. When the parameter HstsPreload is true, the HstsIncludeSubDomain must be true.'],
['code' => 'Waf.Pullin.InvalidMaxAgeWithPreload', 'message' => 'HstsMaxAge the parameter is incorrect, when the HstsPreload is True, the HstsMaxAge must be greater than or equal to 31536000.', 'http_code' => 400, 'description' => 'HstsMaxAge the parameter is incorrect, when the HstsPreload is True, the HstsMaxAge must be greater than or equal to 31536000'],
['code' => 'Waf.Pullin.InvalidProtocolPort', 'message' => 'Protocol port not entered.', 'http_code' => 400, 'description' => 'You must specify the port.'],
['code' => 'Waf.Pullin.InvalidProtocolPort', 'message' => 'The port is not specified.', 'http_code' => 400, 'description' => 'The port is not specified.'],
['code' => 'Waf.Pullin.InvalidPunishScope', 'message' => 'The punish scope parameter is invalid.', 'http_code' => 400, 'description' => 'The penalty dimension parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidRequestHeader', 'message' => 'Invalid Enable Traffic Marker parameter.', 'http_code' => 400, 'description' => 'The Enable Traffic Mark parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidRequestHeader', 'message' => 'The Enable Traffic Mark parameter is invalid.', 'http_code' => 400, 'description' => 'The Enable Traffic Mark parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidResource', 'message' => 'Invalid resource.', 'http_code' => 400, 'description' => 'The resource is invalid.'],
['code' => 'Waf.Pullin.InvalidResource', 'message' => 'The resource is invalid.', 'http_code' => 400, 'description' => 'The resource is invalid.'],
['code' => 'Waf.Pullin.InvalidResourceProduct', 'message' => 'Invalid cloud product type.', 'http_code' => 400, 'description' => 'The cloud service type is invalid.'],
['code' => 'Waf.Pullin.InvalidResourceStatus', 'message' => 'Invalid resource state.', 'http_code' => 400, 'description' => 'The status of the resource is invalid.'],
['code' => 'Waf.Pullin.InvalidResourceStatus', 'message' => 'The status of the resource is invalid.', 'http_code' => 400, 'description' => 'The status of the resource is invalid.'],
['code' => 'Waf.Pullin.InvalidServiceAttachData', 'message' => 'Invalid cloud product parameters.', 'http_code' => 400, 'description' => 'The cloud service parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidServiceAttachData', 'message' => 'The Cloud Service parameter is invalid.', 'http_code' => 400, 'description' => 'The Cloud Service parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidTLS', 'message' => 'invalid TLS', 'http_code' => 400, 'description' => 'The TLS parameter is invalid.'],
['code' => 'Waf.Pullin.InvalidUserStatus', 'message' => 'Invalid user state.', 'http_code' => 400, 'description' => 'The status of the user is invalid.'],
['code' => 'Waf.Pullin.InvalidUserStatus', 'message' => 'The status of the user is invalid.', 'http_code' => 400, 'description' => 'The status of the user is invalid.'],
['code' => 'Waf.Pullin.MaxCertCountLimit', 'message' => 'The number of selected certificate IDs exceeds the maximum number in the system.', 'http_code' => 400, 'description' => 'The number of selected certificate IDs exceeds the maximum number in the system.'],
['code' => 'Waf.Pullin.MaxDomainCountLimit', 'message' => 'Exceeds the maximum number of domain names that can be entered', 'http_code' => 400, 'description' => 'The maximum number of domain names that you can enter is exceeded.'],
['code' => 'Waf.Pullin.MaxProductCountLimit', 'message' => '可接入的云产品数不足', 'http_code' => 400, 'description' => 'The maximum number of instances that you can add to WAF is exceeded.'],
['code' => 'Waf.Pullin.MustListenHTTPS', 'message' => 'The domain name must listen to the HTTPS protocol. Domain:%s.', 'http_code' => 400, 'description' => 'The domain name must listen to the HTTPS protocol. Domain name:%s.'],
['code' => 'Waf.Pullin.OnlyBeOneDefaultCert', 'message' => 'There can be only one default certificate.', 'http_code' => 400, 'description' => 'There can be only one default certificate.'],
['code' => 'Waf.Pullin.OpenExclusiveIpInNotShare', 'message' => 'Turn on exclusive IP, only share cluster can be selected.', 'http_code' => 400, 'description' => 'If you turn on Exclusive IP Address, you can select only a shared cluster.'],
['code' => 'Waf.Pullin.OpenExclusiveIpInNotShare', 'message' => 'If you turn on Exclusive IP Address, you can select only a shared cluster.', 'http_code' => 400, 'description' => 'If you turn on Exclusive IP Address, you can select only a shared cluster.'],
['code' => 'Waf.Pullin.OpenExclusiveIpIPv6', 'message' => 'Exclusive IP and Ipv6, cannot be enabled at the same time.', 'http_code' => 400, 'description' => 'Exclusive IP and Ipv6 cannot be enabled at the same time.'],
['code' => 'Waf.Pullin.OpenIPv6InNotShare', 'message' => 'Turn on IPv6, share cluster is the only option.', 'http_code' => 400, 'description' => 'If you turn on IPv6, you can select only a shared cluster.'],
['code' => 'Waf.Pullin.OpenIPv6InNotShare', 'message' => 'If you turn on IPv6, you can select only a shared cluster.', 'http_code' => 400, 'description' => 'If you turn on IPv6, you can select only a shared cluster.'],
['code' => 'Waf.Pullin.PortProcessing', 'message' => 'Port is processing', 'http_code' => 400, 'description' => 'The port is being processed. Try again later.'],
['code' => 'Waf.Pullin.PortProcessing', 'message' => 'The port is being processed, please try again later.', 'http_code' => 400, 'description' => 'The port is being processed, please try again later.'],
['code' => 'Waf.Pullin.ProtocolNotSet', 'message' => 'Protocol not entered.', 'http_code' => 400, 'description' => 'You must specify the protocol.'],
['code' => 'Waf.Pullin.ProtocolNotSet', 'message' => 'You must specify the protocol.', 'http_code' => 400, 'description' => 'You must specify the protocol.'],
['code' => 'Waf.Pullin.ResourceAllocationFailed', 'message' => 'Failed to allocate resources.', 'http_code' => 400, 'description' => 'Failed to allocate resources.'],
['code' => 'Waf.Pullin.ResourceCreating', 'message' => 'Accessed resources are being created.', 'http_code' => 400, 'description' => 'The resource is being created.'],
['code' => 'Waf.Pullin.ResourceCreating', 'message' => 'The resource is being created.', 'http_code' => 400, 'description' => 'The resource is being created.'],
['code' => 'Waf.Pullin.ResourceExsit', 'message' => 'Accessed resource already exists.', 'http_code' => 400, 'description' => 'The resource exists.'],
['code' => 'Waf.Pullin.ResourceExsit', 'message' => 'The resource exists.', 'http_code' => 400, 'description' => 'The resource exists.'],
['code' => 'Waf.Pullin.ResourceExsit', 'message' => 'Access resource already exists, resource:%s.', 'http_code' => 400, 'description' => 'Access resource already exists, existing resource:%s.'],
['code' => 'Waf.Pullin.ResourceInstanceIdNotExist', 'message' => 'The instance ID does not exist.', 'http_code' => 400, 'description' => 'The instance ID does not exist.'],
['code' => 'Waf.Pullin.ResourceInstanceIpNotMatched', 'message' => 'The instance does not match the Public IP, please click Synchronize and try again.', 'http_code' => 400, 'description' => 'The ID of the instance does not match the IP address of the instance. Click Synchronize Instances and retry.'],
['code' => 'Waf.Pullin.ResourceInstancePortNotExist', 'message' => 'The port of the instance does not exist.', 'http_code' => 400, 'description' => 'The port number does not exist.'],
['code' => 'Waf.Pullin.ResourceNotExist', 'message' => 'Access resource does not exist.', 'http_code' => 400, 'description' => 'The resource does not exist.'],
['code' => 'Waf.Pullin.ResourceNotExist', 'message' => 'The resource does not exist.', 'http_code' => 400, 'description' => 'The resource does not exist.'],
['code' => 'Waf.Pullin.ResourceNotExist', 'message' => 'The accessed resource already exists. Resource:%s.', 'http_code' => 400, 'description' => 'The accessed resource already exists. Resource:%s.'],
['code' => 'Waf.Pullin.ResourceOwnerError', 'message' => 'Resource attribution user is incorrect.', 'http_code' => 400, 'description' => 'The user to which the resource belongs is invalid.'],
['code' => 'Waf.Pullin.ResourceOwnerError', 'message' => 'The user to which the resource belongs is invalid.', 'http_code' => 400, 'description' => 'The user to which the resource belongs is invalid.'],
['code' => 'Waf.Pullin.ResourceProcessing', 'message' => 'The resource is in operation, please try again later.', 'http_code' => 400, 'description' => 'The resource is in operation, please try again later.'],
['code' => 'Waf.Pullin.RiskyDomain', 'message' => 'RT001, sorry, this domain name cannot be added due to security problems. You can appeal through the work order.', 'http_code' => 400, 'description' => 'The domain name you added may be at risk. If you have any questions, please submit a work order.'],
['code' => 'Waf.Pullin.UnderDDoS', 'message' => 'The current WAF instance is in the defense/blackhole state, and it is not allowed to enable the Exclusive IP/GSLB configuration', 'http_code' => 400, 'description' => 'Traffic scrubbing or blackhole filtering is triggered for the WAF instance. You cannot enable Exclusive IP Address or Shared Cluster-based Intelligent Load Balancing.'],
['code' => 'Waf.Pullin.UnSupportedPort', 'message' => 'Return port not supported.', 'http_code' => 400, 'description' => 'The port over which requests are redirected to the origin server is not supported.'],
['code' => 'Waf.Pullin.UnSupportedPort', 'message' => 'The port over which requests are redirected to the origin server is not supported.', 'http_code' => 400, 'description' => 'The port over which requests are redirected to the origin server is not supported.'],
['code' => 'Waf.Report.%s', 'message' => 'Invalid parameter:%s.', 'http_code' => 400, 'description' => 'Invalid parameter:%s'],
['code' => 'Waf.Report.InternalError', 'message' => 'Server error occurred in report service.', 'http_code' => 400, 'description' => 'Report Service Internal Error'],
['code' => 'WafMigrating', 'message' => 'WAF user is migrating, the operation of resource does not support.', 'http_code' => 400, 'description' => 'WAF users are not allowed to access related resources during migration.'],
['code' => 'WxbbOrWxbbJsUsed', 'message' => 'The feature of app protection is being used.', 'http_code' => 400, 'description' => 'The app protection feature is in use.'],
['code' => 'Defense.Control.InvalidDefenseRuleConfig', 'message' => 'Invalid protection rule configuration. %s.', 'http_code' => 400, 'description' => 'Invalid protection rule configuration.'],
],
'changeSet' => [
[
'apis' => [
['description' => 'Request parameters changed, Error codes changed', 'api' => 'ModifyProtectionRuleCacheStatus'],
['description' => 'Request parameters changed, Error codes changed', 'api' => 'ModifyProtectionRuleStatus'],
],
'createdAt' => '2024-06-25T11:40:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed, Error codes changed', 'api' => 'DescribeRules'],
],
'createdAt' => '2024-05-27T11:00:11.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateDomain'],
['description' => 'Request parameters changed', 'api' => 'ModifyDomain'],
],
'createdAt' => '2023-08-28T12:42:52.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeDomain'],
],
'createdAt' => '2023-08-22T06:08:44.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateDomain'],
['description' => 'Response parameters changed, Error codes changed', 'api' => 'DescribeDomain'],
['description' => 'Request parameters changed', 'api' => 'ModifyDomain'],
],
'createdAt' => '2023-05-23T05:46:17.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed, Error codes changed', 'api' => 'DescribeCertificates'],
],
'createdAt' => '2023-04-18T02:30:52.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'DescribeWafSourceIpSegment'],
],
'createdAt' => '2022-09-08T14:06:27.000Z',
'description' => '接口迁移',
],
[
'apis' => [
['description' => 'Request parameters changed, Error codes changed', 'api' => 'DescribeLogServiceStatus'],
],
'createdAt' => '2022-08-23T11:43:54.000Z',
'description' => '修改接口参数的默认值',
],
[
'apis' => [
['description' => 'Request parameters changed, Error codes changed', 'api' => 'CreateDomain'],
['description' => 'Request parameters changed, Error codes changed', 'api' => 'ModifyDomain'],
],
'createdAt' => '2022-08-22T10:01:24.000Z',
'description' => 'WAF2.0,开放超时时间的参数。',
],
[
'apis' => [
['description' => 'Response parameters changed, Error codes changed', 'api' => 'DescribeDomainRuleGroup'],
['description' => 'Request parameters changed, Error codes changed', 'api' => 'SetDomainRuleGroup'],
],
'createdAt' => '2022-01-18T09:08:42.000Z',
'description' => '支持智能规则加白',
],
[
'apis' => [
['description' => 'Request parameters changed, Error codes changed', 'api' => 'DescribeProtectionModuleCodeConfig'],
],
'createdAt' => '2021-12-07T15:36:25.000Z',
'description' => '优化参数说明',
],
[
'apis' => [
['description' => 'Response parameters changed, Error codes changed', 'api' => 'DescribeDomainAdvanceConfigs'],
],
'createdAt' => '2021-10-20T13:22:26.000Z',
'description' => '修改返回值类型',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDomainIpv6Status'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleMode'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyDomain'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyLogRetrievalStatus'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleStatus'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionRuleStatus'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCertificates'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogServiceStatus'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeWafSourceIpSegment'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'MoveResourceGroup'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleStatus'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainRuleGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomain'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCertMatchStatus'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionRuleCacheStatus'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCertificateByCertificateId'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCertificate'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainAdvanceConfigs'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleMode'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRuleGroups'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProtectionModuleRule'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainBasicConfigs'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRules'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetDomainRuleGroup'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDomainNames'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeInstanceInfo'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProtectionModuleRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyLogServiceStatus'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleRules'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDomain'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDomain'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProtectionModuleRule'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProtectionModuleCodeConfig'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteInstance'],
],
],
'ram' => [
'productCode' => 'WAF',
'productName' => 'Web Application Firewall',
'ramCodes' => ['yundun-waf'],
'ramLevel' => 'OPERATION',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'ModifyDomain',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeProtectionModuleRules',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleRules',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomainAdvanceConfigs',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainAdvanceConfigs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeInstanceInfo',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeInstanceInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomainNames',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainNames',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProtectionRuleCacheStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionRuleCacheStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeProtectionModuleStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeRuleGroups',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeRuleGroups',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeInstanceSpecInfo',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeInstanceSpecInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProtectionModuleMode',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleMode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteDomain',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomain',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeRules',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeRules',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeCertMatchStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeCertMatchStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateCertificate',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateCertificate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProtectionRuleStatus',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionRuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteInstance',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteInstance',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateDomain',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateDomain',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MoveResourceGroup',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:MoveResourceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeLogServiceStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeLogServiceStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomainBasicConfigs',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainBasicConfigs',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeProtectionModuleMode',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleMode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomainRuleGroup',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainRuleGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProtectionModuleStatus',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeWafSourceIpSegment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeWafSourceIpSegment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'SetDomainRuleGroup',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:SetDomainRuleGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateProtectionModuleRule',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyLogServiceStatus',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyLogServiceStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateCertificateByCertificateId',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:CreateCertificateByCertificateId',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyLogRetrievalStatus',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyLogRetrievalStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProtectionModuleRule',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyDomainIpv6Status',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:ModifyDomainIpv6Status',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeDomainList',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeDomainList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeCertificates',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'yundun-waf:DescribeCertificates',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteProtectionModuleRule',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'yundun-waf:DeleteProtectionModuleRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeProtectionModuleCodeConfig',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-waf:DescribeProtectionModuleCodeConfig',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'WAF', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:yundun-waf:{#regionId}:{#accountId}:Instance/InstanceId'],
['validationType' => 'always', 'resourceType' => 'Domain', 'arn' => 'acs:yundun-waf:{#regionId}:{#accountId}:Domain/*'],
['validationType' => 'always', 'resourceType' => 'Domain', 'arn' => 'acs:yundun-waf:{#regionId}:{#accountId}:Domain/DomainId'],
['validationType' => 'always', 'resourceType' => 'Certificate', 'arn' => 'acs:yundun-waf:{#regionId}:{#accountId}:Certificate/*'],
],
],
];
|