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
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'Alb', 'version' => '2020-06-16'],
'directories' => [
[
'children' => ['GetLoadBalancerAttribute', 'UpdateLoadBalancerAttribute', 'UpdateLoadBalancerZones', 'UpdateLoadBalancerEdition', 'UpdateLoadBalancerAddressTypeConfig', 'DisableDeletionProtection', 'EnableDeletionProtection', 'StartShiftLoadBalancerZones', 'CancelShiftLoadBalancerZones', 'EnableLoadBalancerIpv6Internet', 'DisableLoadBalancerIpv6Internet', 'LoadBalancerJoinSecurityGroup', 'LoadBalancerLeaveSecurityGroup'],
'type' => 'directory',
'title' => '实例',
'id' => 46794,
],
[
'children' => ['CreateListener', 'GetListenerAttribute', 'DeleteListener', 'ListListeners', 'StartListener', 'StopListener', 'UpdateListenerAttribute', 'UpdateListenerLogConfig', 'GetListenerHealthStatus'],
'type' => 'directory',
'title' => '监听',
'id' => 46835,
],
[
'children' => ['AddServersToServerGroup', 'CreateServerGroup', 'DeleteServerGroup', 'UpdateServerGroupAttribute', 'UpdateServerGroupServersAttribute', 'ListServerGroups', 'ListServerGroupServers', 'RemoveServersFromServerGroup', 'ReplaceServersInServerGroup'],
'type' => 'directory',
'title' => '服务器组',
'id' => 46825,
],
[
'children' => ['CreateRules', 'DeleteRules', 'UpdateRuleAttribute', 'UpdateRulesAttribute'],
'type' => 'directory',
'title' => '转发规则',
'id' => 46845,
],
[
'children' => ['AssociateAdditionalCertificatesWithListener', 'DissociateAdditionalCertificatesFromListener', 'ListListenerCertificates'],
'type' => 'directory',
'title' => '监听器证书',
'id' => 46790,
],
[
'children' => ['DetachCommonBandwidthPackageFromLoadBalancer', 'AttachCommonBandwidthPackageToLoadBalancer'],
'type' => 'directory',
'title' => '共享带宽包',
'id' => 46870,
],
[
'children' => ['DisableLoadBalancerAccessLog', 'EnableLoadBalancerAccessLog'],
'type' => 'directory',
'title' => '访问日志',
'id' => 46787,
],
[
'children' => ['CreateHealthCheckTemplate', 'GetHealthCheckTemplateAttribute', 'DeleteHealthCheckTemplates', 'UpdateHealthCheckTemplateAttribute', 'ListHealthCheckTemplates', 'ApplyHealthCheckTemplateToServerGroup'],
'type' => 'directory',
'title' => '健康检查',
'id' => 46811,
],
[
'children' => ['CreateSecurityPolicy', 'DeleteSecurityPolicy', 'UpdateSecurityPolicyAttribute', 'ListSecurityPolicies', 'ListSecurityPolicyRelations', 'ListSystemSecurityPolicies'],
'type' => 'directory',
'title' => '安全策略',
'id' => 46818,
],
[
'children' => ['AddEntriesToAcl', 'CreateAcl', 'DeleteAcl', 'UpdateAclAttribute', 'ListAcls', 'ListAclEntries', 'AssociateAclsWithListener', 'ListAclRelations', 'DissociateAclsFromListener', 'RemoveEntriesFromAcl'],
'type' => 'directory',
'title' => '访问控制',
'id' => 46859,
],
[
'children' => ['ListAsynJobs'],
'type' => 'directory',
'title' => '异步任务',
'id' => 46780,
],
[
'children' => ['DescribeCapacityReservation'],
'type' => 'directory',
'title' => '资源预留',
'id' => 248737,
],
[
'children' => ['UpdateAScripts', 'CreateAScripts', 'DeleteAScripts', 'ListAScripts'],
'type' => 'directory',
'title' => '可编程脚本',
'id' => 46873,
],
[
'children' => ['CreateLoadBalancer', 'CreateRule', 'DeleteLoadBalancer', 'DeleteRule', 'DescribeRegions', 'DescribeZones', 'ListLoadBalancers', 'ListRules', 'ListTagKeys', 'ListTagResources', 'ListTagValues', 'ModifyCapacityReservation', 'MoveResourceGroup', 'TagResources', 'UnTagResources'],
'title' => '其他',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'AddEntriesToAcl' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'AclId',
'in' => 'query',
'schema' => ['title' => 'AclId', 'description' => 'ACL实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
[
'name' => 'AclEntries',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '条目信息列表',
'description' => '添加的访问控制条目列表。单次调用最多支持20个访问控制条目。',
'type' => 'array',
'items' => [
'description' => '访问控制策略结构。',
'type' => 'object',
'properties' => [
'Description' => ['title' => '描述信息', 'description' => '访问控制条目备注描述,长度为2~256个字符,可包含英文字母、数字、中文、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。'."\n"
."\n"
.'单次调用最多支持20个访问控制条目。', 'type' => 'string', 'required' => false, 'example' => 'test-entry'],
'Entry' => ['title' => '条目', 'description' => '访问控制条目IP地址段。', 'type' => 'string', 'required' => true, 'example' => '10.0.1.0/24'],
],
'required' => false,
],
'required' => true,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会在访问控制策略组中添加IP条目。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '向访问控制策略组中添加IP条目。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => 'job', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceAlreadyExist.AclEntry', 'errorMessage' => 'The specified resource %s already exists.', 'description' => '访问控制策略组中的IP条目已存在。'],
['errorCode' => 'ResourceQuotaExceeded.AclEntriesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
['errorCode' => 'ResourceQuotaExceeded.ListenerAclEntriesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerAclEntriesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
],
],
'title' => '添加访问控制条目',
'summary' => '向访问控制策略组中添加IP条目。',
'description' => '- 每个策略组可包含多个IP地址条目或IP地址段条目,访问控制策略组的条目限制如下: '."\n"
."\n"
.' - 单账号每次可添加的IP地址条目个数:20 '."\n"
.' - 每个访问控制策略组可包含的条目个数:500'."\n"
.'- **AddEntriesToAcl**接口属于异步接口,即系统返回一个请求ID,但该访问控制策略组尚未成功添加IP条目,系统后台的添加任务仍在进行。您可以调用[ListAclEntries](~~213616~~)查询IP条目的添加状态:'."\n"
.' - 当访问控制策略组处于**Adding**状态时,表示IP条目正在添加中。'."\n"
.' - 当访问控制策略组处于**Available**状态时,表示IP条目添加成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AddEntriesToAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34******\\"\\n}","errorExample":""},{"type":"xml","example":"<AddEntriesToAclResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</AddEntriesToAclResponse>","errorExample":""}]',
],
'AddServersToServerGroup' => [
'summary' => '向服务器组中添加后端服务器。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbULKWF1'],
],
'parameters' => [
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '后端服务器Id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-atstuj3rtop****'],
],
[
'name' => 'Servers',
'in' => 'formData',
'style' => 'flat',
'schema' => [
'title' => '后端服务器列表',
'description' => '后端服务器列表, 单次调用最多支持添加200个服务器。',
'type' => 'array',
'items' => [
'description' => '后端服务器组结构体。',
'type' => 'object',
'properties' => [
'Description' => ['title' => '描述信息', 'description' => '后端服务器描述。长度为 2~256 个英文或中文字符,不能以http://和https://开头。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Port' => ['title' => '后端端口号', 'description' => '后端服务器使用的端口。取值范围:**1**~**65535**。 单次调用最多支持添加200个服务器。'."\n"
."\n"
.'> 当**ServerType**取值为**Ecs**、**Eni**、**Eci**、**Ip**时,该参数必传。当**ServerType**取值为**Fc**时,无需配置该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '80'],
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。 单次调用最多支持添加200个服务器。'."\n"
."\n"
.'- 当服务器组为**Instance**类型时,该参数为**Ecs**、**Eni**、**Eci**的资源Id。'."\n"
."\n"
.'- 当服务器组为**Ip**类型时,该参数为IP地址。'."\n"
."\n"
.'- 当服务器组为**Fc**时,该参数为函数计算的ARN标识。', 'type' => 'string', 'required' => false, 'example' => 'i-uf616vu8me******'],
'ServerIp' => ['title' => '后端服务器ip', 'description' => '指定IP地址。 单次调用最多支持添加200个服务器。'."\n"
."\n"
.'当**ServerType**为**Eni**时,支持指定ENI的主私网IP或辅助私网IP。'."\n"
."\n"
.'>**ServerType**取值为**Fc**时,无需配置该参数。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型。 单次调用最多支持添加200个服务器。取值:'."\n"
.'- **Ecs**:ECS实例。'."\n"
.'- **Eni**:ENI弹性网卡实例。'."\n"
.'- **Eci**:ECI弹性容器。'."\n"
.'- **Ip**:IP地址。'."\n"
.'- **Fc**:函数计算。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Ecs'],
'Weight' => ['title' => '后端服务器权重', 'description' => '后端服务器的权重,取值范围:**0**~**100**。默认值为**100**。如果设置权重为**0**,则不会将请求转发给该后端服务器。 单次调用最多支持添加200个服务器。'."\n"
."\n"
.'>**ServerType**取值为**Fc**时,无需配置该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'RemoteIpEnabled' => ['title' => '是否是远端ip', 'description' => '是否开启远端IP功能。 单次调用最多支持添加200个服务器。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
."\n"
.'- **false**:不开启。'."\n"
."\n\n"
.'> 当**ServerType**取值为**Ip**时,该参数有效。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
'title' => '后端服务器',
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会向服务器组中添加后端服务器。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'Conflict.BackendServer', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '服务器冲突,已经存在同配置的后端服务器。'],
['errorCode' => 'OperationDenied.VpcVportNotFound', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '不允许该操作,原因:vpc端口未找到'],
['errorCode' => 'IncorrectStatus.Eni', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
['errorCode' => 'ResourceInUse.IP', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '资源%s正在使用中。'],
['errorCode' => 'OperationDenied.NoAvailableVSwitch', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
['errorCode' => 'OperationDenied.VgwVipNotFound', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
['errorCode' => 'OperationDenied.CloudBox', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
['errorCode' => 'Mismatch.Type', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
['errorCode' => 'DuplicatedParam.BackendServer', 'errorMessage' => 'The param of %s is duplicated.', 'description' => '参数%s是重复的。'],
['errorCode' => 'OperationDenied.EciNotSupportJobType', 'errorMessage' => 'The operation is not allowed because of eci not support job type.', 'description' => '服务器组不支持添加Job优化型ECI实例。'],
['errorCode' => 'IllegalParam.ServerIp', 'errorMessage' => 'The param of ServerIp is illegal.', 'description' => '参数ServerIp非法'],
['errorCode' => 'Mismatch.ServerType', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The request has failed due to a temporary failure of the server.', 'description' => '请求因服务器暂时性故障而失败。'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.Ecs', 'errorMessage' => 'The specified resource %s is not found.', 'description' => 'Ecs服务器不存在。'],
['errorCode' => 'ResourceNotFound.Eci', 'errorMessage' => 'The specified resource %s is not found.', 'description' => 'Eci服务器不存在。'],
['errorCode' => 'ResourceNotFound.Eni', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '添加后端服务器',
'description' => '**AddServersToServerGroup**接口属于异步接口,即系统返回一个请求ID,但该后端服务器尚未添加成功,系统后台的添加任务仍在进行。'."\n"
."\n"
.'1. 您可以调用[ListServerGroups](~~213627~~)查询服务器组的状态:'."\n"
."\n"
.'- 当服务器组处于**Configuring**状态时,表示服务器组正在变配中。'."\n"
.'- 当服务器组处于**Available**状态时,表示服务器组运行中。'."\n"
."\n"
.'2. 您可以调用[ListServerGroupServers](~~213628~~)查询后端服务器的状态:'."\n"
."\n"
.'- 当后端服务器处于**Adding**状态时,表示后端服务器正在加入服务器组。'."\n"
.'- 当后端服务器处于**Available**状态时,表示后端服务器运行中。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AddServersToServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34******\\"\\n}","errorExample":""},{"type":"xml","example":"<AddServersToServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</AddServersToServerGroupResponse>","errorExample":""}]',
],
'ApplyHealthCheckTemplateToServerGroup' => [
'summary' => '将健康检查配置模板应用到后端服务器组,从而将后端服务器组的健康检查配置修改为模板值。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'HealthCheckTemplateId',
'in' => 'query',
'schema' => ['title' => '健康检查模板Id', 'description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'hct-bp1qjwo61pqz3ahltv****'],
],
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '服务器组Id', 'description' => '后端服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-n80wyad08u0tox****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求。取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '向后端服务器组应用健康检查模板。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.HealthCheckTemplate', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.HealthCheckTemplate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '应用健康检查模板到服务组',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:ApplyHealthCheckTemplateToServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthCheckTemplateId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#serverGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF******\\"\\n}","errorExample":""},{"type":"xml","example":"<ApplyHealthCheckTemplateToServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</ApplyHealthCheckTemplateToServerGroupResponse>","errorExample":""}]',
],
'AssociateAclsWithListener' => [
'summary' => '将访问控制关联到监听。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '161',
'abilityTreeNodes' => ['FEATUREslbAYSA83'],
],
'parameters' => [
[
'name' => 'AclIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问控制策略Id',
'description' => 'ACL实例ID,最多支持3个ACL实例ID。',
'type' => 'array',
'items' => ['description' => 'ACL实例ID。', 'type' => 'string', 'required' => false, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'required' => true,
'maxItems' => 20,
],
],
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '监听实例ID', 'type' => 'string', 'required' => true, 'example' => 'lsn-bp1bpn0kn9*******'],
],
[
'name' => 'AclType',
'in' => 'query',
'schema' => ['title' => '绑定类型', 'description' => '访问控制类型:'."\n"
."\n"
.'- **White**: 仅转发来自所选访问控制策略组中设置的IP地址或地址段的请求,白名单适用于只允许特定IP访问的场景。设置白名单存在一定业务风险。一旦设置白名单,就只有白名单中的IP可以访问负载均衡监听。如果开启了白名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。'."\n"
.'- **Black**: 来自所选访问控制策略组中设置的IP地址或地址段的所有请求都不会转发,黑名单适用于只限制某些特定IP访问的场景。如果开启了黑名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。', 'type' => 'string', 'required' => true, 'example' => 'White'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会关联ACL到监听。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '将访问控制关联到监听。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => '请求id', 'description' => '请求ID', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F87******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'QuotaExceeded.AclsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
['errorCode' => 'ResourceQuotaExceeded.ListenerAclEntriesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'OperationDenied.AclNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '因为%s,该操作不被允许。'],
['errorCode' => 'ResourceAlreadyExist.AclEntry', 'errorMessage' => 'The specified resource %s already exists.', 'description' => '访问控制策略组中的IP条目已存在。'],
['errorCode' => 'ResourceInUse.Acl', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '资源%s正在使用中。'],
['errorCode' => 'OperationDenied.LoadBalancerJoinedSecurityGroupNotSupportAcl', 'errorMessage' => 'The operation is not allowed because of loadbalancer joined security group not support acl.', 'description' => '不允许操作,原因是负载均衡实例加入安全组后,不能再绑定访问控制策略'],
],
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '关联访问控制和监听',
'description' => '**AssociateAclsWithListener**接口属于异步接口,即系统返回一个请求ID,但该ACL尚未成功绑定监听器,系统后台的绑定任务仍在进行。您可以调用[ListAclRelations](~~213618~~)查询ACL的绑定状态:'."\n"
.'- 当ACL处于**Associating**状态时,表示ACL正在绑定监听器中。'."\n"
.'- 当ACL处于**Associated**状态时,表示ACL已成功绑定监听器。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AssociateAclsWithListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F87******\\"\\n}","errorExample":""},{"type":"xml","example":"<AssociateAclsWithListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</AssociateAclsWithListenerResponse>","errorExample":""}]',
],
'AssociateAdditionalCertificatesWithListener' => [
'summary' => '将扩展证书关联到监听',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '监听ID。'."\n"
."\n"
.'HTTPS和QUIC监听有效。', 'type' => 'string', 'required' => true, 'example' => 'lsn-5qnirjhpt******'],
],
[
'name' => 'Certificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '证书列表',
'description' => '扩展证书列表。',
'type' => 'array',
'items' => [
'description' => '扩展证书列表。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '证书Id', 'description' => '证书ID,当前仅支持服务器证书。'."\n"
.'> 证书全局ID,以地域ID结尾,例如1011****-cn-hangzhou。', 'type' => 'string', 'required' => true, 'example' => '1011****-cn-hangzhou'],
],
'required' => false,
],
'required' => true,
'maxItems' => 15,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3F******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会为HTTPS和QUIC监听添加扩展证书。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false(默认值)**:发送正常请求,通过检查后返回HTTP `2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '为HTTPS或QUIC监听添加扩展证书。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.DefaultCertificateUsed', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是默认证书不允许解除关联。'],
['errorCode' => 'OperationFailed.DefaultCertificateNotFound', 'errorMessage' => 'The operation failed because of %s.', 'description' => '操作失败,原因是%s。'],
['errorCode' => 'ResourceAlreadyAssociated.Certificate', 'errorMessage' => 'The specified resource %s is already associated.', 'description' => '证书已被关联。'."\n"],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerCertificatesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '实例证书已超额度限制。'],
['errorCode' => 'OperationDenied.HttpListenerNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是不支持HTTP协议监听。'],
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Invalid parameter, please check the parameter input.', 'description' => '无效参数,请检查参数输入。'],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource %s is configuring, please try again later.', 'description' => '资源%s正在变配中,请稍后重试。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication has failed for LoadBalancer.', 'description' => '负载均衡操作鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.Certificate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<AssociateAdditionalCertificatesWithListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</AssociateAdditionalCertificatesWithListenerResponse>","errorExample":""}]',
'title' => '关联扩展证书和监听',
'description' => '**AssociateAdditionalCertificatesWithListener**接口属于异步接口,即系统返回一个请求ID,但该扩展证书尚未添加成功,系统后台的添加任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询扩展证书的添加状态:'."\n"
.' - 当HTTPS和QUIC监听处于**Associating**状态时,表示扩展证书正在添加中。'."\n"
.' - 当HTTPS和QUIC监听处于**Associated**状态时,表示扩展证书添加成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AssociateAdditionalCertificatesWithListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'AttachCommonBandwidthPackageToLoadBalancer' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbZBWWR9'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665*****'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '地域ID', 'description' => '应用型负载均衡实例所在的地域ID。 '."\n"
."\n"
.'您可以通过调用[DescribeRegions](~~448570~~)接口获取地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例ID', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-d676fho813rmu3****'],
],
[
'name' => 'BandwidthPackageId',
'in' => 'query',
'schema' => ['title' => '带宽包ID', 'description' => '绑定的共享带宽包ID。', 'type' => 'string', 'required' => true, 'example' => 'cbwp-bp1pzf0ym72pu3y76****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '是否只预检此次请求', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会将共享带宽包绑定到负载均衡实例。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '将共享带宽包绑定到应用型负载均衡实例。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2EF39708-974B-5E74-AFF5-3445******'],
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectBusinessStatus.CommonBandwidthPackage', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.CommonBandwidthPackage', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.CommonBandwidthPackage', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '实例绑定共享带宽包',
'summary' => '将共享带宽包绑定到应用型负载均衡实例上。',
'description' => '**AttachCommonBandwidthPackageToLoadBalancer**接口属于异步接口,即系统返回一个请求ID,但该负载均衡实例尚未绑定关联共享带宽包,系统后台的绑定任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~2254835~~)查询共享带宽包的绑定状态:'."\n"
.'- 当负载均衡实例处于**Configuring**状态时,表示共享带宽包正在绑定中。'."\n"
.'- 当负载均衡实例处于**Active**状态时,表示共享带宽包绑定成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:AttachCommonBandwidthPackageToLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2EF39708-974B-5E74-AFF5-3445******\\",\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\"\\n}","errorExample":""},{"type":"xml","example":"<AttachCommonBandwidthPackageToLoadBalancerResponse>\\n <RequestId>2EF39708-974B-5E74-AFF5-3445263035A8</RequestId>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n</AttachCommonBandwidthPackageToLoadBalancerResponse>","errorExample":""}]',
],
'CancelShiftLoadBalancerZones' => [
'summary' => '将可用区对应的EIP/VIP加回到域名解析中。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbFTB0NK'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'."\n"],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会加回可用区。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行修改。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'."\n"],
],
[
'name' => 'ZoneMappings',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '可用区及交换机映射列表',
'description' => '可用区及交换机映射列表。'."\n"
."\n"
.'> 一次调用最多支持加回一个可用区。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区默认使用一台交换机和一个子网。', 'type' => 'string', 'required' => true, 'example' => 'vsw-bp1rmcrwg3erh1fh8****'."\n"],
'ZoneId' => ['title' => '可用区', 'description' => '可用区ID,通过调用[DescribeZones](~~189196~~)接口获得。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou-a'],
],
'required' => false,
'description' => '',
],
'required' => true,
'maxItems' => 1,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'."\n"],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectBusinessStatus.Eip', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.ZoneVSwitchChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.ZoneMappingsNotChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是可用区没有变化。'."\n"],
['errorCode' => 'OperationDenied.ZoneVSwitchNotExist', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '实例不包含请求中的可用区和虚拟交换机'],
['errorCode' => 'OperationDenied.EniStatusNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => 'Eni当前状态不支持此操作'],
['errorCode' => 'OperationDenied.OnlyFixedAddressAllocatedModeSupported', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '负载均衡实例的IP模式不支持此操作'],
['errorCode' => 'OperationFailed.CancelShiftLoadBalancerZonesFailed', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '恢复此可用区中IP的DNS A记录失败'],
['errorCode' => 'ResourceNotEnough.VSwitchIp', 'errorMessage' => 'The specified resource %s is not enough.', 'description' => '资源%s不足。'."\n"],
['errorCode' => 'Mismatch.ZoneIdAndVSwitchId', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '%s和%s不匹配。'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.VSwitch', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'."\n"],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '把可用区的EIP/VIP加到DNS中',
'description' => '仅支持固定IP模式的ALB实例。调用本接口时,您已通过StartShiftLoadBalancerZones接口或控制台移除ALB实例的某个可用区。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:CancelShiftLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A2CFF0E-5718-45B5-9D4D-70B3FF3898\\\\n\\"\\n}","type":"json"}]',
],
'CreateAScripts' => [
'summary' => '创建可编程脚本。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '34526',
'abilityTreeNodes' => ['FEATUREslb2Q6O49'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => ' 是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会创建可编程脚本。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听id', 'description' => '监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-6hfq3zs0x04ibn****'],
],
[
'name' => 'AScripts',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '脚本',
'description' => '可编程脚本信息列表。'."\n"
."\n",
'type' => 'array',
'items' => [
'description' => '可编程脚本信息。',
'type' => 'object',
'properties' => [
'AScriptName' => ['title' => '脚本名称', 'description' => '可编程脚本名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => true, 'example' => 'test'],
'Position' => ['title' => '执行位置', 'description' => '可编程脚本执行位置。'."\n"
."\n"
.'- RequestHead(默认值):请求方向规则执行前。'."\n"
."\n"
.'- RequestFoot:请求方向规则执行后。'."\n"
."\n"
.'- ResponseHead:响应方向规则执行前。', 'type' => 'string', 'required' => false, 'example' => 'RequestFoot', 'default' => 'RequestHead'],
'Enabled' => ['title' => '是否启用', 'description' => '是否启用可编程脚本。取值:'."\n"
."\n"
.'- **true**:启用。'."\n"
."\n"
.'- **false**(默认值):不启用。'."\n"
."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'ScriptContent' => ['title' => '脚本内容', 'description' => '可编程脚本内容。', 'type' => 'string', 'required' => true, 'example' => 'if and(match_re($uri, \'^/1.txt$\'), $arg_type) { rewrite(concat(\'/1.\', $arg_type), \'break\') }'],
'ExtAttributes' => [
'title' => '扩展属性',
'description' => '扩展属性。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AttributeKey' => ['title' => '属性名称', 'description' => 'Ascript脚本的属性名称。'."\n"
."\n"
.'仅取值 **EsDebug**:当请求携带_es_dbg参数,且值为此处配置的密钥时,开启相应的调试响应头,以输出规则执行记录。', 'type' => 'string', 'required' => false, 'example' => 'EsDebug'],
'AttributeValue' => ['title' => '属性值', 'description' => '属性值,大小写英文字母或数字,长度为1~128个字符。', 'type' => 'string', 'required' => false, 'example' => 'test123'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'ExtAttributeEnabled' => ['title' => '是否启用扩展属性', 'description' => '是否启用可编程脚本扩展属性。取值:'."\n"
."\n"
.'- true:启用。'."\n"
."\n"
.'- false(默认值):不启用。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '创建可编程脚本。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '5c607642-535e-4e06-9d77-df53049b****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'BF0FE763-9603-558F-A55B-0F4******'],
'AScriptIds' => [
'title' => '可编程脚本列表',
'description' => '可编程脚本ID列表。',
'type' => 'array',
'items' => [
'description' => '可编程脚本ID。',
'type' => 'object',
'properties' => [
'AScriptId' => ['title' => '脚本id', 'description' => '可编程脚本ID。', 'type' => 'string', 'example' => 'as-xvq5igaa7uv6vr****'],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceQuotaExceeded.AScriptsNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.AScriptsTotalLinesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.AScriptLinesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"5c607642-535e-4e06-9d77-df53049b****\\",\\n \\"RequestId\\": \\"BF0FE763-9603-558F-A55B-0F4******\\",\\n \\"AScriptIds\\": [\\n {\\n \\"AScriptId\\": \\"as-xvq5igaa7uv6vr****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<CreateAScriptsResponse>\\n <JobId>5c607642-535e-4e06-9d77-df53049b****</JobId>\\n <RequestId>BF0FE763-9603-558F-A55B-0F4B9A3E3C02</RequestId>\\n <AScriptIds>\\n <AScriptId>as-xvq5igaa7uv6vr****</AScriptId>\\n </AScriptIds>\\n</CreateAScriptsResponse>","errorExample":""}]',
'title' => '创建可编程脚本',
'description' => '### 前提条件'."\n"
."\n"
.'- 已创建标准版或WAF增强版ALB实例。具体操作,请参见[CreateLoadBalancer](~~214358~~)。'."\n"
."\n\n"
.'### 使用说明'."\n"
."\n"
.'**CreateAScripts**接口属于异步接口,即系统返回一个请求ID,但该可编程脚本尚未创建成功,系统后台的创建任务仍在进行。您可以调用[ListAScripts](~~472574~~)查询可编程脚本的创建状态:'."\n"
."\n"
.' - 当可编程脚本处于**Creating**状态时,表示可编程脚本正在创建中。'."\n"
."\n"
.' - 当可编程脚本处于**Available**状态时,表示可编程脚本创建成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'CreateAcl' => [
'summary' => '在指定地域创建访问控制。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '131',
'abilityTreeNodes' => ['FEATUREslbAYSA83'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AclName',
'in' => 'query',
'schema' => ['title' => 'Acl名称', 'description' => 'ACL的名称。必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格,限制长度为2~128个字符。', 'type' => 'string', 'required' => false, 'example' => 'test-acl'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3*****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会创建访问控制策略组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组Id', 'description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
'example' => 'rg-12313',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '创建访问控制。',
'type' => 'object',
'properties' => [
'AclId' => ['title' => 'AclId', 'description' => 'ACL实例ID。', 'type' => 'string', 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'QuotaExceeded.AclsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'NotExist.ResourceGroup', 'errorMessage' => 'ResourceGroup does not exist.', 'description' => '资源组不存在'],
],
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'ACL authentication has failed.', 'description' => '对Acl鉴权失败'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AclId\\": \\"acl-hp34s2h0xx1ht4nwo****\\",\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876******\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateAclResponse>\\n <AclId>nacl-hp34s2h0xx1ht4nwo****</AclId>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</CreateAclResponse>","errorExample":""}]',
'title' => '创建访问控制',
'description' => '**CreateAcl**接口属于异步接口,即系统返回一个实例ID,但该访问控制策略组尚未创建成功,系统后台的创建任务仍在进行。您可以调用[ListAcls](~~213617~~)查询访问控制策略组的创建状态:'."\n"
.'- 当访问控制策略组处于**Creating**状态时,表示访问控制策略组正在创建中。'."\n"
.'- 当访问控制策略组处于**Available**状态时,表示访问控制策略组创建成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/*'],
],
],
],
],
],
'CreateHealthCheckTemplate' => [
'summary' => '在指定地域创建健康检查模板。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '149',
'abilityTreeNodes' => ['FEATUREslb6RAQIN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'HealthCheckTemplateName',
'in' => 'query',
'schema' => ['title' => '名称', 'description' => '健康检查模板名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => true, 'example' => 'HealthCheckTemplate1'],
],
[
'name' => 'HealthCheckConnectPort',
'in' => 'query',
'schema' => ['title' => '端口号', 'description' => '健康检查使用的端口。'."\n"
."\n"
.'取值范围:**0~65535**。'."\n"
."\n"
.'默认值:**0**,表示使用后端服务器的端口进行健康检查。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
[
'name' => 'HealthCheckHost',
'in' => 'query',
'schema' => ['title' => '域名', 'description' => '用于健康检查的域名。取值: '."\n"
."\n"
.'- **$SERVER_IP**:后端服务器的私网IP。当指定了IP或该参数未指定时,负载均衡会使用后端服务器的私网IP当做健康检查使用的域名。'."\n"
."\n"
.'- **domain**:域名长度为1~80字符,只能包含字母、数字、半角句号(.)和短划线(-)。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`设置为**HTTP**或**HTTPS**时该参数生效。', 'type' => 'string', 'required' => false, 'example' => '$SERVER_IP'],
],
[
'name' => 'HealthCheckCodes',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的HTTP状态码。'."\n"
."\n\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http\\_2xx**(默认值)、 **http\\_3xx**、**http\\_4xx**和**http\\_5xx**,多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值,多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'http_2xx'],
'required' => false,
'example' => '5',
],
],
[
'name' => 'HealthCheckInterval',
'in' => 'query',
'schema' => ['title' => '时间间隔', 'description' => '健康检查的时间间隔。'."\n"
."\n"
.'取值范围:**1~50**秒。'."\n"
."\n"
.'默认值:**2**秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'HealthCheckTimeout',
'in' => 'query',
'schema' => ['title' => '超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端服务器在指定的时间内没有正确响应,则判定为健康检查失败。'."\n"
."\n"
.'取值范围:**1~300**秒。'."\n"
."\n"
.'默认值:**5**秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
],
[
'name' => 'HealthCheckPath',
'in' => 'query',
'schema' => ['title' => 'uri', 'description' => '用于健康检查的URL。'."\n"
."\n"
.'长度限制为1~80,支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集`_;~!()*[]@$^:\',+`。URL必须以正斜线(/)开头。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => '/test/index.html'],
],
[
'name' => 'HealthCheckMethod',
'in' => 'query',
'schema' => ['title' => '方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **HEAD**(默认值):HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8KB,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'HEAD'],
],
[
'name' => 'HealthCheckProtocol',
'in' => 'query',
'schema' => ['title' => '协议', 'description' => '健康检查采用的协议。取值:'."\n"
."\n"
.'- **HTTP**(默认值):通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
],
[
'name' => 'HealthCheckHttpVersion',
'in' => 'query',
'schema' => ['title' => '版本', 'description' => '健康检查HTTP协议版本。'."\n"
."\n"
.'取值:**HTTP 1.0**或**HTTP 1.1**。'."\n"
."\n"
.'默认值:**HTTP 1.1**。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'HTTP 1.0'],
],
[
'name' => 'HealthyThreshold',
'in' => 'query',
'schema' => ['title' => '健康阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。'."\n"
."\n"
.'取值范围:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'UnhealthyThreshold',
'in' => 'query',
'schema' => ['title' => '不健康阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。'."\n"
."\n"
.'取值范围:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**http_2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => '资源组ID', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '健康检查模板。',
'type' => 'object',
'properties' => [
'HealthCheckTemplateId' => ['title' => '健康检查模板ID', 'description' => '健康检查模板ID。', 'type' => 'string', 'example' => 'hct-pno8sisi******'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'QuotaExceeded.HealthCheckTemplatesNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
],
403 => [
['errorCode' => 'Forbidden.HealthCheckTemplate', 'errorMessage' => 'Authentication has failed for HealthCheckTemplate.', 'description' => '对HealthCheckTemplate鉴权失败'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"HealthCheckTemplateId\\": \\"hct-pno8sisi******\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34******\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateHealthCheckTemplateResponse>\\n <HealthCheckTemplateId>hct-1224334</HealthCheckTemplateId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</CreateHealthCheckTemplateResponse>","errorExample":""}]',
'title' => '创建健康检查模板',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateHealthCheckTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/*'],
],
],
],
],
],
'CreateListener' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '186',
'abilityTreeNodes' => ['FEATUREslbM7ALO6', 'FEATUREslbK3ZR0L', 'FEATUREslbN5IE4S'],
],
'parameters' => [
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '负载均衡标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-n5qw04uq8vavfe****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建监听。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ListenerProtocol',
'in' => 'query',
'schema' => ['title' => '监听协议', 'description' => '监听协议。'."\n"
."\n"
.'取值:**HTTP**、**HTTPS**或**QUIC**。', 'type' => 'string', 'required' => true, 'example' => 'HTTP'],
],
[
'name' => 'ListenerPort',
'in' => 'query',
'schema' => ['title' => '监听端口', 'description' => '负载均衡实例前端使用的端口。'."\n"
."\n"
.'取值:**1~65535**。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '80'],
],
[
'name' => 'ListenerDescription',
'in' => 'query',
'schema' => ['title' => '监听描述', 'description' => '自定义监听名称。'."\n"
."\n"
.'长度为2~256个字符,必须是中文和无害字符串中的字符,可包含中文、字母、数字、短划线(-)、正斜线(/)、半角句号(.)、下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'HTTP_80'],
],
[
'name' => 'RequestTimeout',
'in' => 'query',
'schema' => ['title' => '请求超时时间', 'description' => '指定请求超时时间。单位:秒。'."\n"
."\n"
.'取值:**1~600**。'."\n"
."\n"
.'默认值:**60**。'."\n"
."\n"
.'如果在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,并给客户端返回` HTTP 504 `错误码。'."\n"
."\n"
.'> 用户可以申请提升配额将请求超时时间提升至最大3600秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '60', 'default' => '60'],
],
[
'name' => 'IdleTimeout',
'in' => 'query',
'schema' => ['title' => '连接空闲超时时间', 'description' => '指定连接空闲超时时间。单位:秒。'."\n"
."\n"
.'取值范围:**1~600**。'."\n"
."\n"
.'默认值:**15**。'."\n"
."\n"
.'如果在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到一下次请求来临时重新建立新的连接。'."\n"
."\n"
.'> 用户可以申请提升配额将连接空闲超时时间提升至最大3600秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '3', 'default' => '15'],
],
[
'name' => 'GzipEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启Gzip压缩', 'description' => '是否开启`Gzip`压缩,对特定文件类型进行压缩。取值:'."\n"
."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'Http2Enabled',
'in' => 'query',
'schema' => ['title' => '是否开启HTTP/2特性', 'description' => '是否开启`HTTP/2`特性。取值:'."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'SecurityPolicyId',
'in' => 'query',
'schema' => ['title' => '安全策略', 'description' => '安全策略ID。支持系统安全策略和自定义安全策略。'."\n"
."\n"
.'默认值:**tls\\_cipher\\_policy\\_1_0**(系统安全策略)。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'tls_cipher_policy_1_0'],
],
[
'name' => 'CaEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启双向认证', 'description' => '是否开启双向认证。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**(默认值):不开启。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'XForwardedForConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'XForward字段相关的配置',
'description' => 'XForward字段配置信息。',
'type' => 'object',
'properties' => [
'XForwardedForClientCertClientVerifyAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertClientVerifyEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertClientVerifyEnabled**的值为**true**的时候,该值才会生效;否则该值不会生效。'."\n"
."\n"
.'取值:1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_client-verify-alias_123456'],
'XForwardedForClientCertClientVerifyEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-clientverify 头字段获取对访问负载均衡实例客户端证书的校验结果。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-clientverify`头字段获取对访问负载均衡实例客户端证书的校验结果。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForClientCertFingerprintAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertFingerprintEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertFingerprintEnabled**的值为**true**时生效。'."\n"
."\n"
.'取值:1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_finger-print-alias_123456'],
'XForwardedForClientCertFingerprintEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-fingerprint 头字段获取访问负载均衡实例客户端证书的指纹取值,HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-fingerprint`头字段获取访问负载均衡实例客户端证书的指纹取值。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForClientCertIssuerDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertIssuerDNEnabled的值为‘On’的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertIssuerDNEnabled**的值为**true**的时候,此值才会生效。'."\n"
."\n"
.'取值:1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_issue-dn-alias_123456'],
'XForwardedForClientCertIssuerDNEnabled' => ['title' => '是否通过 X-Forwarded-Clientcert-issuerdn 头字段获取访问负载均衡实例客户端证书的发行者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-issuerdn`头字段获取访问负载均衡实例客户端证书的发行者信息。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForClientCertSubjectDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertSubjectDNEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertSubjectDNEnabled**的值为**true**时,此值才会生效。'."\n"
."\n"
.'取值:1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_subject-dn-alias_123456'],
'XForwardedForClientCertSubjectDNEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-subjectdn 头字段获取访问负载均衡实例客户端证书的所有者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-subjectdn`头字段获取访问负载均衡实例客户端证书的所有者信息。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForClientSrcPortEnabled' => ['title' => '是否通过X-Forwarded-Client-Port 头字段获取访问负载均衡实例客户端的端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Client-srcport`头字段获取访问负载均衡实例客户端的端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForEnabled' => ['title' => '是否开启通过X-Forwarded-For头字段获取来访者真实 IP', 'description' => '是否通过`X-Forwarded-For`头字段获取来访者真实IP。取值:'."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 1. 配置**true**,**XForwardedForProcessingMode**默认取值**append**,支持修改为**remove**。'."\n"
.'> 2. 配置**false**,ALB将请求发送至后端服务之前保留`X-Forwarded-For`头字段,不做额外处理。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForProcessingMode' => ['description' => '处理`X-Forwarded-For`头字段的模式。只有当**XForwardedForEnabled**为**true**时,此值才会生效。取值:'."\n"
.'- **append**(默认值):附加。'."\n"
.'- **remove**:删除。'."\n"
."\n"
.'> 1. 配置**append**,将请求发送至后端服务之前把最后一跳IP加入`X-Forwarded-For`头字段。'."\n"
.'> 2. 配置**remove**,请求发送至后端服务之前删除`X-Forwarded-For`标头,无论请求是否携带`X-Forwarded-For`头字段。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'append'],
'XForwardedForProtoEnabled' => ['title' => '是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。', 'description' => '是否通过`X-Forwarded-Proto`头字段获取负载均衡实例的监听协议。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForSLBIdEnabled' => ['title' => '是否通过SLB-ID头字段获取负载均衡实例ID。', 'description' => '是否通过`SLB-ID`头字段获取负载均衡实例ID。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForSLBPortEnabled' => ['title' => '是否通过X-Forwarded-Port 头字段获取负载均衡实例的监听端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Port`头字段获取负载均衡实例的监听端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientSourceIpsEnabled' => ['description' => '是否允许ALB从X-Forwarded-For头字段中查找真实客户端IP。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientSourceIpsTrusted' => ['description' => '指定可信的代理IP。'."\n"
."\n"
.'应用型负载均衡ALB会从后往前遍历`X-Forwarded-For`,选取第一个不在可信IP列表中的IP作为真实的客户端IP,该IP会被用于源IP限速。', 'type' => 'string', 'required' => false, 'example' => '10.1.1.0/24'],
'XForwardedForHostEnabled' => ['description' => '是否开启通过`X-Forwarded-Host`头字段获取访问负载均衡实例客户端的域名。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
[
'name' => 'QuicConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'HTTPS启用QUIC时相关属性',
'description' => '配置关联的QUIC监听。',
'type' => 'object',
'properties' => [
'QuicListenerId' => ['title' => '需要关联的QUIC监听ID,HTTPS监听时有效,QuicUpgradeEnabled为true时必选', 'description' => '需要关联的QUIC监听ID,HTTPS监听时有效,当**QuicUpgradeEnabled**为**true**时该参数必选。'."\n"
."\n"
.'> 原始监听和关联的QUIC监听必须属于同一个ALB实例,并且此QUIC监听之前没有被关联过。', 'type' => 'string', 'required' => false, 'example' => 'lsn-o4u54y73wq7b******'],
'QuicUpgradeEnabled' => ['title' => '是否开启quic升级,HTTPS监听时有效', 'description' => '是否开启QUIC升级。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
[
'name' => 'Certificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认服务器证书列表,N当前取值范围为1',
'description' => '证书列表信息。',
'type' => 'array',
'items' => [
'description' => '证书结构体。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => '默认证书ID,目前仅支持添加 1 个默认服务器证书。'."\n"
."\n"
.'> - 当**ListenerProtocol**参数取值为**HTTPS**或**QUIC**的时候,此参数为必填。'."\n"
.'> - 如需更多服务器证书,可在创建监听后调用[AssociateAdditionalCertificatesWithListener](~~2254830~~)配置扩展证书。', 'type' => 'string', 'required' => false, 'example' => '103705*******'],
],
'required' => false,
],
'required' => false,
'maxItems' => 1,
'minItems' => 1,
],
],
[
'name' => 'CaCertificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认CA证书列表,N当前取值范围为1',
'description' => '监听配置的CA证书列表。目前仅支持添加1个CA证书。',
'type' => 'array',
'items' => [
'description' => '监听配置的CA证书结构。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => 'CA证书ID。'."\n"
."\n"
.'> 当**CaEnabled**参数取值为**true**的时候,此参数为必填。', 'type' => 'string', 'required' => false, 'example' => '123157*******'],
],
'required' => false,
],
'required' => false,
'maxItems' => 1,
'minItems' => 1,
],
],
[
'name' => 'DefaultActions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认动作',
'description' => '规则动作列表。',
'type' => 'array',
'items' => [
'description' => '规则动作列表。',
'type' => 'object',
'properties' => [
'ForwardGroupConfig' => [
'title' => '转发组',
'description' => '转发动作对应的配置。最多支持添加20个转发动作对应的配置。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '服务器组列表',
'description' => '转发目标服务器元组。',
'type' => 'array',
'items' => [
'description' => '转发目标服务器元组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-8ilqs4axp6******'],
],
'required' => true,
],
'required' => true,
],
],
'required' => true,
],
'Type' => ['title' => '动作类型', 'description' => '动作类型。最多支持添加1个动作类型。'."\n"
."\n"
.'取值:**ForwardGroup**,表示转发至多个服务器组。', 'type' => 'string', 'required' => true, 'example' => 'ForwardGroup'],
],
'required' => true,
],
'required' => true,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '创建监听。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'ListenerId' => ['title' => '监听标识', 'description' => '监听ID。', 'type' => 'string', 'example' => 'lsn-o4u54y73wq7b******'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876*******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceAlreadyExist.Listener', 'errorMessage' => 'The specified resource %s is already exist.', 'description' => '同端口监听已存在。'."\n"],
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerListenersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'OperationDenied.CrossLoadBalancerQUICListener', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'ResourceAlreadyAssociated.Listener', 'errorMessage' => 'The specified resource %s is already associated.', 'description' => '资源%s已被关联。'],
['errorCode' => 'ResourceQuotaExceeded.SecurityPolicyAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'OperationDenied.ServerGroupProtocolNotSupport', 'errorMessage' => 'The operation is not allowed because of ServerGroupProtocolNotSupport.', 'description' => '操作被拒绝,原因是ServerGroupProtocolNotSupport。'],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndConnectionDrain', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndSlowStartEnable', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Invalid parameter, please check the parameter input.', 'description' => '无效参数,请检查参数输入。'],
['errorCode' => 'OperationDenied.CACertificateCorrupted', 'errorMessage' => 'The CA certificate is corrupted.', 'description' => 'CA证书已经损坏'],
],
403 => [
['errorCode' => 'Forbidden.SecurityPolicy', 'errorMessage' => 'Authentication has failed for SecurityPolicy.', 'description' => '对SecurityPolicy鉴权失败'],
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
['errorCode' => 'Forbidden.Listener', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '监听鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
['errorCode' => 'ResourceNotFound.Certificate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '创建监听',
'summary' => '创建监听。',
'description' => '**CreateListener**接口属于异步接口,即系统返回一个请求ID,但该HTTP、HTTPS或QUIC监听尚未创建成功,系统后台的创建任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询HTTP、HTTPS或QUIC监听的创建状态:'."\n"
.'- 当HTTP、HTTPS或QUIC监听处于**Provisioning**状态时,表示HTTP、HTTPS或QUIC监听正在创建中。'."\n"
.'- 当HTTP、HTTPS或QUIC监听处于**Running**状态时,表示HTTP、HTTPS或QUIC监听创建成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateListener',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:ListenerProtocol', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"ListenerId\\": \\"lsn-o4u54y73wq7b******\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876*******\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</CreateListenerResponse>","errorExample":""}]',
],
'CreateLoadBalancer' => [
'summary' => '在指定地域创建应用型负载均衡实例',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '194',
'abilityTreeNodes' => ['FEATUREslbM7ALO6'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建应用型负载均衡实例。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['title' => '负载均衡实例的专有网络ID。', 'description' => '应用型负载均衡实例的专有网络ID。', 'type' => 'string', 'required' => true, 'example' => 'vpc-bp1b49rqrybk45nio****'],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['title' => '负载均衡的地址类型', 'description' => '应用型负载均衡的地址类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'required' => true, 'example' => 'Internet'],
],
[
'name' => 'LoadBalancerName',
'in' => 'query',
'schema' => ['title' => '名称', 'description' => '应用型负载均衡实例名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'alb1'],
],
[
'name' => 'DeletionProtectionEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启删除保护', 'description' => '是否开启删除保护。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**(默认值):关闭。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ModificationProtectionConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '负载均衡修改保护相关信息',
'description' => '修改保护配置。',
'type' => 'object',
'properties' => [
'Reason' => ['title' => '设置修改保护状态的原因', 'description' => '输入开启修改保护的原因。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。'."\n"
."\n"
.'>仅在**Status**为**ConsoleProtection**时该参数有效且合法。', 'type' => 'string', 'required' => false, 'example' => 'Managed Instance'],
'Status' => ['title' => '负载均衡修改保护状态', 'description' => '应用型负载均衡实例的修改保护状态。取值:'."\n"
."\n"
.'- **NonProtection**:不开启修改保护。如有配置**Reason**,**Reason**会被强制置空。'."\n"
."\n"
.'- **ConsoleProtection**:开启控制台修改保护。如有配置**Reason**,**Reason**可生效。'."\n"
."\n"
.'> 当取值为**ConsoleProtection**,即开启修改保护后,用户不能通过负载均衡控制台修改实例配置,但可以通过调用API修改实例配置。', 'type' => 'string', 'required' => false, 'example' => 'ConsoleProtection'],
],
'required' => false,
],
],
[
'name' => 'ZoneMappings',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '可用区及交换机映射列表',
'description' => '可用区及交换机映射列表,最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。',
'type' => 'array',
'items' => [
'description' => '可用区及交换机映射列表,最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。',
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区只能使用一台交换机和一个子网。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。', 'type' => 'string', 'required' => true, 'example' => 'vsw-sersdf****'],
'ZoneId' => ['title' => '可用区', 'description' => '可用区ID。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。'."\n"
.'您可以通过调用[DescribeZones](~~36064~~)接口获取可用区ID对应的可用区的信息。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou-a'],
'AllocationId' => ['title' => '弹性公网IP实例ID', 'description' => '公网实例绑定的EIP实例ID。', 'type' => 'string', 'required' => false, 'example' => 'eip-bp1aedxso6u80u0qf****'],
'EipType' => ['title' => '弹性公网IP类型', 'description' => '弹性公网IP的类型。取值:'."\n"
."\n"
.'- Common(默认值):弹性公网IP。'."\n"
."\n"
.'- Anycast:任播弹性公网IP。'."\n"
."\n"
.'> ALB支持绑定Anycast EIP的地域,请参见[使用限制](~~460727~~)。', 'type' => 'string', 'required' => false, 'example' => 'Common'],
'IntranetAddress' => ['description' => 'IPv4私网地址。', 'type' => 'string', 'required' => false, 'example' => '192.168.10.1'],
],
'required' => false,
],
'required' => true,
'maxItems' => 10,
'minItems' => 1,
],
],
[
'name' => 'AddressAllocatedMode',
'in' => 'query',
'schema' => ['title' => '地址模式', 'description' => '地址模式。取值 :'."\n"
."\n"
.'- **Fixed**(默认值):固定IP模式,表示每个可用区分配固定IP地址。'."\n"
."\n"
.'- **Dynamic**:动态IP模式,表示每个可用区动态分配IP地址。'."\n"
."\n"
.'>自<props="china">北京时间2025年2月25日00:00:00</props><props="intl">2025年2月25日00:00:00 (UTC+8)</props>起,通过本接口新建实例时,无论您指定何种模式,实际均创建为[ ALB升级实例](~~2864070~~),不再区分IP模式,分配的IP地址具备自动弹性能力;升级前的ALB实例不受影响。', 'type' => 'string', 'required' => false, 'example' => 'Fixed', 'default' => 'Fixed'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组', 'description' => '企业资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
[
'name' => 'LoadBalancerEdition',
'in' => 'query',
'schema' => ['title' => '负载均衡的版本', 'description' => '应用型负载均衡的版本,不同版本有不同功能限制和计费策略。取值:'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
."\n"
.'- **Standard**:标准版。'."\n"
."\n"
.'- **StandardWithWaf**:WAF增强版。'."\n"
."\n", 'type' => 'string', 'required' => true, 'example' => 'Standard'],
],
[
'name' => 'LoadBalancerBillingConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '计费相关配置信息',
'description' => '应用型负载均衡实例计费配置。',
'type' => 'object',
'properties' => [
'PayType' => ['title' => '实例的计费类型', 'description' => '实例的计费类型。'."\n"
."\n"
.'仅取值**PostPay**:表示按量计费。', 'type' => 'string', 'required' => true, 'example' => 'PostPay', 'default' => 'PostPay'],
'BandwidthPackageId' => ['title' => '共享带宽实例ID', 'description' => '公网类型实例关联的共享带宽包ID。', 'type' => 'string', 'required' => false, 'example' => 'cbwp-bp1vevu8h3ieh****'],
],
'required' => true,
],
],
[
'name' => 'AddressIpVersion',
'in' => 'query',
'schema' => ['title' => '协议版本', 'description' => '协议版本。取值:'."\n"
."\n"
.'- **IPv4**:IPv4类型。'."\n"
.'- **DualStack**:双栈类型。', 'type' => 'string', 'required' => false, 'example' => 'IPv4'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'SecurityGroupIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '安全组ID列表',
'description' => '安全组ID列表',
'type' => 'array',
'items' => [
'title' => '安全组ID列表',
'description' => '安全组ID列表',
'type' => 'object',
'properties' => [
'SecurityGroupId' => ['title' => '安全组ID列表中的的ID', 'description' => '安全组ID列表中的的ID', 'type' => 'string', 'required' => false, 'example' => 'sg-gw82chzr7ru23iwbn9mu'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '创建负载均衡实例。',
'type' => 'object',
'properties' => [
'LoadBalancerId' => ['title' => '负载均衡实例标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-o9ulmq5hqn68jk****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotEnough.VSwitchIp', 'errorMessage' => 'The specified resource %s is not enough.', 'description' => '资源%s不足。'."\n"],
['errorCode' => 'QuotaExceeded.LoadBalancersNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'Mismatch.ZoneIdAndVSwitchId', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '%s和%s不匹配。'],
['errorCode' => 'DuplicatedParam.ZoneId', 'errorMessage' => 'The param of ZoneId is duplicated.', 'description' => '参数ZoneId重复'],
['errorCode' => 'OperationDenyed.ServiceLinkedRoleNotExist', 'errorMessage' => 'The service linked role AliyunServiceRoleForAlb does not exist.', 'description' => '用户账号未关联阿里云服务角色 AliyunServiceRoleForAlb'],
],
404 => [
['errorCode' => 'ResourceNotFound.VSwitch', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'."\n"],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"LoadBalancerId\\": \\"alb-o9ulmq5hqn68jk****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateLoadBalancerResponse>\\n <LoadBalancerId>alb-o9ulmq5hgn68jk****</LoadBalancerId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</CreateLoadBalancerResponse>","errorExample":""}]',
'title' => '创建应用型负载均衡实例',
'description' => '**CreateLoadBalancer**接口属于异步接口,即系统返回一个实例ID,但该应用型负载均衡实例尚未创建成功,系统后台的创建任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡实例的创建状态:'."\n"
.'- 当应用型负载均衡实例处于**Provisioning**状态时,表示应用型负载均衡实例正在创建中。'."\n"
.'- 当应用型负载均衡实例处于**Active**状态时,表示应用型负载均衡实例创建成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/*'],
],
],
],
],
],
'CreateRule' => [
'summary' => '在指定监听下创建转发规则。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '417',
'abilityTreeNodes' => ['FEATUREslbM7ALO6'],
],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听标识', 'description' => '应用型负载均衡实例监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-l16uo9y******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'由客户端生成该参数值,要保证在不同请求间唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建转发规则。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'Priority',
'in' => 'query',
'schema' => ['title' => '转发规则优先级', 'description' => '规则优先级,取值范围:**1~10000**。值越小表示优先级越高。'."\n"
."\n"
.'> 同一个监听内规则优先级必须唯一。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
],
[
'name' => 'Direction',
'in' => 'query',
'schema' => ['title' => '转发规则方向', 'description' => '转发规则的方向。取值:'."\n"
."\n"
.'- **Request**(默认值):请求类型,对从客户端发送到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'- **Response**:响应类型,对从后端服务器组返回到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'> 基础版的ALB实例不支持**Response**类型。', 'type' => 'string', 'required' => false, 'example' => 'Request'],
],
[
'name' => 'RuleActions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '转发规则动作',
'description' => '转发规则动作列表。',
'type' => 'array',
'items' => [
'description' => '规则动作列表。',
'type' => 'object',
'properties' => [
'FixedResponseConfig' => [
'title' => '返回固定内容动作配置',
'description' => '固定响应内容配置。'."\n"
."\n",
'type' => 'object',
'properties' => [
'Content' => ['title' => '内容', 'description' => '返回的固定内容。最大支持存储1 KB,只支持ASCII字符。', 'type' => 'string', 'required' => false, 'example' => 'dssacav'],
'ContentType' => ['title' => '内容类型', 'description' => '返回固定内容的格式。'."\n"
."\n"
.'取值:**text/plain**、**text/css**、**text/html**、**application/javascript**或**application/json**。', 'type' => 'string', 'required' => false, 'example' => 'text/plain'],
'HttpCode' => ['title' => 'HTTP响应码', 'description' => '返回的HTTP响应码,仅支持**2xx**、**4xx**、**5xx**数字型字符串,**x**为任意数字。', 'type' => 'string', 'required' => false, 'example' => '200'],
],
'required' => false,
],
'ForwardGroupConfig' => [
'title' => '转发组动作配置',
'description' => '转发到的目的服务器组列表。一条转发规则中最多支持添加5个目的服务器组。'."\n",
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '转发到的目的服务器组列表',
'description' => '转发到的目的服务器组列表。一条转发规则中最多支持添加5个目的服务器组。'."\n"
."\n",
'type' => 'array',
'items' => [
'description' => '转发到的目的服务器组结构。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组标识', 'description' => '转发到的目的服务器组。', 'type' => 'string', 'required' => false, 'example' => 'sgp-k86c1ov501id6p****'],
'Weight' => ['title' => '权重', 'description' => '权重。取值越大,权重越大,表示转发的访问请求更多。取值范围:**0**~**100**。'."\n"
."\n"
.'- 目的服务器组数为1时,未指定权重时默认值为**100**。'."\n"
."\n"
.'- 目的服务器组数大于1时,需要用户指定权重值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '100'],
],
'required' => false,
],
'required' => false,
],
'ServerGroupStickySession' => [
'title' => '服务器组之间会话保持',
'description' => '服务器组之间会话保持。',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '是否开启会话保持', 'description' => '是否开启会话保持。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**(默认值):不开启。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'Timeout' => ['title' => '超时时间', 'description' => '超时时间。单位:秒。取值范围:**1**~**86400**。默认值:**1000**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
],
'required' => false,
],
'InsertHeaderConfig' => [
'title' => '插入头部动作配置',
'description' => '写入头字段配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头', 'description' => '插入的头字段名称,长度为1\\~40个字符,支持大小写字母a\\~z、数字、下划线(_)和短划线(-)。**InsertHeaderConfig**中的头字段名称不能重复。'."\n"
."\n"
.'> 不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`、`x-forwarded-host`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'HTTP标头内容', 'description' => '插入的头字段内容。'."\n"
."\n"
.'- **ValueType**取值为**SystemDefined**时取值如下:'."\n"
.' - **ClientSrcPort**:客户端端口。'."\n"
.' - **ClientSrcIp**:客户端IP地址。'."\n"
.' - **Protocol**:客户端请求的协议(HTTP或HTTPS)。'."\n"
.' - **SLBId**:应用型负载均衡实例ID。'."\n"
.' - **SLBPort**:应用型负载均衡实例监听端口。'."\n"
.'- **ValueType**取值为**UserDefined**时:您可自定义头字段内容,限制长度为1~128个字符,支持通配符星号(*)、半角问号(?)和ASCII码值`ch >= 32 && ch < 127`范围内的可打印字符,不支持`"`。开头和结尾不能为空格。结尾不能为`\\`。'."\n"
.'- **ValueType**取值为**ReferenceHeader**时:您可以引用请求头字段中的某一个字段,限制长度限制为1\\~128个字符,支持小写字母a\\~z、数字、短划线(-)和下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'UserDefined'],
'ValueType' => ['title' => '取值类型', 'description' => '头字段内容类型。取值:'."\n"
."\n"
.'- **UserDefined**:您自定义头字段内容。'."\n"
."\n"
.'- **ReferenceHeader**:引用请求头中的某一个头字段内容。'."\n"
."\n"
.'- **SystemDefined**:系统定义头字段内容。', 'type' => 'string', 'required' => false, 'example' => 'UserDefined'],
],
'required' => false,
],
'Order' => ['title' => '优先级', 'description' => '转发规则动作执行的顺序,取值范围:**1~50000**,按值从小到大执行动作。值不能为空,不能重复。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'RedirectConfig' => [
'title' => '重定向动作配置',
'description' => '重定向配置。'."\n"
."\n"
.'> **RedirectConfig**的参数,除了**httpCode**外,不能都使用默认值。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '要跳转的主机地址', 'description' => '要跳转的主机地址。取值:'."\n"
.'- **${host}**(默认值):取此值时不支持和其他字符拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。'."\n"
.' - 通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => '${host}'],
'HttpCode' => ['title' => '跳转方式', 'description' => '跳转方式。取值:**301**、**302**、**303**、**307**或**308**。', 'type' => 'string', 'required' => false, 'example' => '301'],
'Path' => ['title' => '要跳转的路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符,大小写敏感,支持通配符星号(*)和半角问号(?)作为通配符使用。'."\n"
.' - 必须以正斜线(/)开头,支持大小写字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/test'],
'Port' => ['title' => '要跳转的端口', 'description' => '要跳转的端口。'."\n"
.'- **${port}**(默认值):该取值不支持和其他字符同时使用。'."\n"
.'- 其他取值:**1~63335**。', 'type' => 'string', 'required' => false, 'example' => '10'],
'Protocol' => ['title' => '要跳转的协议', 'description' => '要跳转的协议。取值:'."\n"
.'- **${protocol}**(默认值):取该值时仅支持单独使用,不支持修改或与其他字符拼接使用。'."\n"
.'- **HTTP**'."\n"
.'- **HTTPS**'."\n"
.'> '."\n"
.'> - HTTPS监听仅支持跳转HTTPS协议。'."\n"
.'> - HTTP监听支持跳转HTTP和HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
'Query' => ['title' => '要跳转的查询字符串', 'description' => '要跳转的查询字符串。'."\n"
.'- **${query}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'RewriteConfig' => [
'title' => '内部重定向动作配置',
'description' => '重写配置。'."\n"
."\n"
.'> 同一个转发规则配置多个动作时,**RewriteConfig**动作使用时必须配置**ForwardGroup**的动作类型。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '主机名', 'description' => '内部跳转的目的主机地址。取值:'."\n"
.'- **${host}**(默认值):该取值不支持和其他字符拼接。'."\n"
."\n"
.'- 其他取值,字符格式限制如下:'."\n"
."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'Path' => ['title' => '路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符,大小写敏感,支持通配符星号(*)和半角问号(?)作为通配符使用。'."\n"
.' - 必须以正斜线(/)开头,支持大小写字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/tsdf'],
'Query' => ['title' => '查询', 'description' => '内部跳转的查询字符串。'."\n"
.'- **${query}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'Type' => ['title' => '转发规则动作类型', 'description' => '动作类型。取值:'."\n"
."\n"
.'- **ForwardGroup**:转发至多个虚拟服务器组。'."\n"
."\n"
.'- **Redirect**:重定向。'."\n"
."\n"
.'- **FixedResponse**:返回固定内容。'."\n"
."\n"
.'- **Rewrite**:重写。'."\n"
."\n"
.'- **InsertHeader**:写入头字段。'."\n"
."\n"
.'- **RemoveHeader**:删除头字段。'."\n"
."\n"
.'- **TrafficLimit**:流量限速。'."\n"
."\n"
.'- **TrafficMirror**:流量镜像。'."\n"
."\n"
.'- **Cors**:跨域。'."\n"
."\n\n"
.'> 一个转发规则必须包含有一条**ForwardGroup**(转发至)、**Redirect**(重定向)或**FixedResponse**(返回固定响应)转发动作,与其他类型转发动作并存时,必须放在最后执行。', 'type' => 'string', 'required' => true, 'example' => 'ForwardGroup'],
'TrafficLimitConfig' => [
'title' => '流量限速',
'description' => '流量限速。',
'type' => 'object',
'properties' => [
'QPS' => ['description' => '每秒请求次数。取值范围:**1~1000000**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'PerIpQps' => ['description' => '单IP每秒请求次数。 取值范围:**1 ~ 1000000**。'."\n"
."\n"
.'> 如果同时配置**QPS**参数,**PerIpQps**参数的取值必须小于**QPS**参数的取值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
'required' => false,
],
'TrafficMirrorConfig' => [
'title' => '流量镜像',
'description' => '流量镜像。',
'type' => 'object',
'properties' => [
'TargetType' => ['title' => '镜像目标类型', 'description' => '镜像的目标类型。取值:'."\n"
.'- **ForwardGroupMirror**:表示镜像至服务器组。', 'type' => 'string', 'required' => false, 'example' => 'ForwardGroupMirror'],
'MirrorGroupConfig' => [
'title' => '镜像至服务器组',
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'description' => '流量镜像至服务器组。',
'type' => 'array',
'items' => [
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['description' => '服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sgp-00mkgijak0w4qgz9****'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RemoveHeaderConfig' => [
'title' => '去除HTTP标头',
'description' => '去除HTTP头部配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '去除的头字段名称,长度为1~40个字符,支持大小写字母a~z、数字、下划线(_)和短划线(-)。头字段名称不能重复用于RemoveHeader中。'."\n"
."\n"
.'- 请求方向(Direction取值为Request):不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`、`x-forwarded-host`。'."\n"
.'- 响应方向(Direction取值为Response):响应方向不允许将头名称设置为以下字段(不区分大小写):`connection`、`upgrade`、`content-length`、`transfer-encoding`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'CorsConfig' => [
'title' => '跨域',
'description' => '跨域。',
'type' => 'object',
'properties' => [
'AllowOrigin' => [
'title' => '允许的访问来源',
'description' => '允许的访问来源列表。支持只配置一个元素`*`,或配置一个或多个值。'."\n"
.'- 单个值必须以`http://`或者`https://`开头,后边加一个正确的域名或一级泛域名。(例:`http://*.test.abc.example.com`)'."\n"
.'- 单个值可以不加端口,也可以指定端口,端口范围:**1**~**65535**。',
'type' => 'array',
'items' => ['description' => '允许访问的来源。', 'type' => 'string', 'required' => false, 'example' => 'http://example.com'],
'required' => false,
],
'AllowMethods' => [
'title' => '选择跨域访问时允许的HTTP方法',
'description' => '选择跨域访问时允许的HTTP方法。',
'type' => 'array',
'items' => ['description' => '选择跨域访问时允许的HTTP方法。取值:'."\n"
."\n"
.'- **GET**。'."\n"
.'- **POST**。'."\n"
.'- **PUT**。'."\n"
.'- **DELETE**。'."\n"
.'- **HEAD**。'."\n"
.'- **OPTIONS**。'."\n"
.'- **PATCH**。', 'type' => 'string', 'required' => false, 'example' => 'GET'],
'required' => false,
],
'AllowHeaders' => [
'title' => '允许跨域的Header列表',
'description' => '允许跨域的Header列表。',
'type' => 'array',
'items' => ['description' => '允许跨域的Header。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'test_123'],
'required' => false,
],
'ExposeHeaders' => [
'title' => '允许暴露的Header列表',
'description' => '允许暴露的Header列表。',
'type' => 'array',
'items' => ['description' => '允许暴露的Header。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'test_123'],
'required' => false,
],
'AllowCredentials' => ['title' => '是否允许携带凭证信息', 'description' => '是否允许携带凭证信息。取值:'."\n"
."\n"
.'- **on**:是。'."\n"
.'- **off**:否。', 'type' => 'string', 'required' => false, 'example' => 'on'],
'MaxAge' => ['title' => '预检请求在浏览器的最大缓存时间', 'description' => '预检请求在浏览器的最大缓存时间,单位:秒。'."\n"
."\n"
.'取值范围:**-1**~**172800**。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
],
'required' => false,
],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
],
[
'name' => 'RuleConditions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '转发规则条件',
'description' => '转发规则条件列表。',
'type' => 'array',
'items' => [
'description' => '转发规则条件。',
'type' => 'object',
'properties' => [
'CookieConfig' => [
'title' => 'Cookie条件配置',
'description' => 'Cookie配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'Cookie键值对列表',
'description' => 'Cookie值列表。',
'type' => 'array',
'items' => [
'description' => 'Cookie值结构体。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'Cookie条件键', 'description' => 'Cookie键。'."\n"
.'- 支持1\\~100个字符。'."\n"
.'- 支持可见字符和通配符星号(*)和半角问号(?),如果是字母必须为小写字母。'."\n"
.'- 不支持空格和`;#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Value' => ['title' => 'Cookie条件值', 'description' => 'Cookie值。'."\n"
."\n"
.'- 支持1\\~100个字符。'."\n"
.'- 支持可见字符和通配符星号(*)和半角问号(?),如果是字母必须为小写字母。'."\n"
.'- 不支持空格和`;#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'HeaderConfig' => [
'title' => 'HTTP标头条件配置',
'description' => '头字段配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '头字段键。'."\n"
."\n"
.'- 支持1\\~40个字符。'."\n"
.'- 支持字母a~z、数字、短划线(-)和下划线(_)。'."\n"
.'- 不支持Cookie和Host。', 'type' => 'string', 'required' => false, 'example' => 'Port'],
'Values' => [
'title' => 'HTTP标头值列表',
'description' => '头字段值列表。',
'type' => 'array',
'items' => ['description' => 'HTTP标头值列表。同一个转发规则条件内头字段值不能重复。'."\n"
.'- 支持1\\~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => '5006'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'HostConfig' => [
'title' => '主机名条件配置',
'description' => '主机配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '主机名列表',
'description' => '主机名列表。',
'type' => 'array',
'items' => ['description' => '主机名。一个转发规则条件中只能有一个主机名,并且取值不能重复。'."\n"
."\n"
.'- 主机名长度为3\\~128个字符,支持小写字母a~z、数字0~9、短划线(-)、半角句号(.)、星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
."\n"
.'- 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.'- 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
."\n"
.'- 短划线(-)不能出现在其它域标签的开头或结尾。通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。'."\n"
."\n"
.'- 对于<精确匹配和通配符>的输入框,首字符不可以为波浪线(~)。'."\n"
.'- 对于正则的输入框(<正则匹配(不区分大小写)>,首字符不可以为星号(*)。', 'type' => 'string', 'required' => false, 'example' => 'www.example.edu'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'MethodConfig' => [
'title' => 'HTTP请求方法条件配置',
'description' => '请求方法配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'HTTP请求方法列表',
'description' => '请求方法列表。',
'type' => 'array',
'items' => ['description' => '请求方法。'."\n"
."\n"
.'取值:**HEAD**、**GET**、**POST**、**OPTIONS**、**PUT**、**PATCH**、**DELETE**。', 'type' => 'string', 'required' => false, 'example' => 'PUT'],
'required' => false,
'maxItems' => 10,
],
],
'required' => false,
],
'PathConfig' => [
'title' => '路径条件配置',
'description' => '转发路径配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '路径条件列表',
'description' => '转发路径列表。',
'type' => 'array',
'items' => ['description' => '转发路径。取值范围:'."\n"
.'- 长度为1\\~128个字符,大小写敏感,支持星号(*)和半角问号(?)作为通配符使用。'."\n"
."\n"
.'- 非正则表达式的URL ,必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,支持星号(*)和半角问号(?)作为通配符使用。'."\n"
."\n"
.'- 正则表达式的URL ,必须以~开头,支持大小写字母、数字和特殊字符`.-_/=?~^*$:()[]+|`。', 'type' => 'string', 'required' => false, 'example' => '/test'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'QueryStringConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '查询字符串条件键值对列表',
'description' => '查询字符串列表。',
'type' => 'array',
'items' => [
'description' => '查询字符串。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '查询字符串条件键', 'description' => '查询字符串键。'."\n"
."\n"
.'- 长度为1\\~100个字符。'."\n"
.'- 支持可见字符、通配符星号(*)和半角问号(?),如果是字母则必须为小写字母。不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Value' => ['title' => '查询字符串条件值', 'description' => '查询字符串值。'."\n"
."\n"
.'- 长度为1\\~128个字符。'."\n"
.'- 支持小写字母、可见字符和通配符星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'ResponseStatusCodeConfig' => [
'title' => '返回状态码条件',
'description' => '响应状态码配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '返回状态码条件',
'description' => '响应状态码列表。',
'type' => 'array',
'items' => ['description' => '响应状态码。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'required' => false,
],
],
'required' => false,
],
'ResponseHeaderConfig' => [
'title' => '返回HTTP标头',
'description' => '标头条件配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '返回HTTP标头键', 'description' => '头字段键。'."\n"
.'- 长度为1~40个字符。'."\n"
.'- 支持字母a~z、数字、短划线(-)和下划线(_)。'."\n"
.'- 不支持Cookie和Host。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Values' => [
'title' => '返回HTTP标头值',
'description' => '头字段值列表。',
'type' => 'array',
'items' => ['description' => '头字段值。'."\n"
."\n"
.'- 长度为1~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、小写字母以及通配符星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => '50006'],
'required' => false,
],
],
'required' => false,
],
'Type' => ['title' => '条件类型', 'description' => '转发规则类型。取值:'."\n"
."\n"
.'- **Host**:主机。'."\n"
."\n"
.'- **Path**:路径。'."\n"
."\n"
.'- **Header**:HTTP头字段。'."\n"
."\n"
.'- **QueryString**:查询字符串。'."\n"
."\n"
.'- **Method**:请求方法。'."\n"
."\n"
.'- **Cookie**:Cookie。'."\n"
."\n"
.'- **SourceIp**:源IP。'."\n"
."\n"
.'- **ResponseHeader**:响应HTTP头字段。'."\n"
."\n"
.'- **ResponseStatusCode**: 响应状态码。', 'type' => 'string', 'required' => true, 'example' => 'Host'],
'SourceIpConfig' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配配置。当**Type**为**SourceIP**时必选且有效。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配列表。',
'type' => 'array',
'items' => ['description' => '添加一个或多个IP地址或者IP地址段。'."\n", 'type' => 'string', 'required' => false, 'example' => '192.168.0.0/32'],
'required' => false,
],
],
'required' => false,
],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['title' => '转发规则名称', 'description' => '转发规则名称。 '."\n"
.'- 长度为2\\~128个英文或中文字符。'."\n"
.'- 必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => true, 'example' => 'rule-doc'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签列表。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540750'],
'RuleId' => ['title' => '转发规则标识', 'description' => '转发规则ID。', 'type' => 'string', 'example' => 'rule-a3x3pg1yohq3lq****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.SameGroupForForwardAndMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.IpGroupCanNotUsedForMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'Conflict.Priority', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '优先级冲突,已经存在相同配置'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerRulesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '转发规则数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'QuotaExceeded.RuleWildcardsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'QuotaExceeded.RuleMatchEvaluationsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '转发规则条件数已超额度限制。'."\n"],
['errorCode' => 'QuotaExceeded.RuleActionsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'Mismatch.Protocol', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'OperationDenied.RewriteMissingForwardGroup', 'errorMessage' => 'The operation is not allowed because of RewriteMissingForwardGroup.', 'description' => '操作被拒绝,原因是RewriteMissingForwardGroup。'],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified listener is being configured, please try again later.', 'description' => '资源正在变配中,请稍后重试。'],
['errorCode' => 'OperationDenied.MirrorActionSupportHttpGroupOnly', 'errorMessage' => 'The operation is not allowed because of MirrorActionSupportHttpGroupOnly.', 'description' => '操作被拒绝,原因是流量镜像动作只支持HTTP类型的服务器组。'],
['errorCode' => 'OperationDenied.ProtocolMustSameForForwardGroupAction', 'errorMessage' => 'The operation is not allowed because of ProtocolMustSameForForwardGroupAction.', 'description' => '操作被禁止,原因:必须是相同的协议'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '创建转发规则',
'description' => '调用该接口创建转发规则时,请注意以下事项:'."\n"
.'- 配置**Redirect**转发动作时,除了**HttpCode**参数外,其余参数不能全部配置为默认值。'."\n"
.'- 同一个转发规则配置多个转发动作时,**Rewrite**转发动作必须配置**ForwardGroup**的动作类型。'."\n"
."\n"
.'- **CreateRule**接口属于异步接口,即系统返回一个实例ID,但该转发规则尚未创建成功,系统后台的创建任务仍在进行。您可以调用[ListRules](~~214379~~)查询转发规则的创建状态:'."\n"
.' - 当转发规则处于**Provisioning**状态时,表示转发规则正在创建中。'."\n"
.' - 当转发规则处于**Available**状态时,表示转发规则创建成功。'."\n"
."\n"
.'- 一条转发规则最多支持添加的条件数(**RuleConditions**)和动作数(**RuleActions**)如下:'."\n"
.' - 条件数:基础版5条,标准版10条,WAF增强版10条。'."\n"
.' - 动作数:基础版3条,标准版5条,WAF增强版5条。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540750\\",\\n \\"RuleId\\": \\"rule-a3x3pg1yohq3lq****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateRuleResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540750</RequestId>\\n <RuleId>rule-a3x3pg1yohq3lq****</RuleId>\\n</CreateRuleResponse>","errorExample":""}]',
],
'CreateRules' => [
'summary' => '批量创建转发规则。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '170',
'abilityTreeNodes' => ['FEATUREslbBIWWMH', 'FEATUREslbTXOYED', 'FEATUREslbQCCQ6L', 'FEATUREslb4T90LL', 'FEATUREslbIT4IYN', 'FEATUREslbA51OGD', 'FEATUREslbUBPZWI', 'FEATUREslbGVK35E', 'FEATUREslbYG3GCF', 'FEATUREslbRBR9GZ', 'FEATUREslbMWZQWL', 'FEATUREslbJCYSIV', 'FEATUREslbY93SFN', 'FEATUREslbVUMBEO', 'FEATUREslbZ4XFTS', 'FEATUREslb2Q6O49'],
'autoTest' => true,
],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听标识', 'description' => '应用型负载均衡实例监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-l16uo9y******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建多条转发规则。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行创建。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'Rules',
'in' => 'formData',
'style' => 'flat',
'schema' => [
'title' => '转发规则列表',
'description' => '转发规则列表。',
'type' => 'array',
'items' => [
'description' => '转发规则。',
'type' => 'object',
'properties' => [
'Priority' => ['title' => '转发规则优先级', 'description' => '转发规则优先级。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'RuleActions' => [
'title' => '转发规则动作',
'description' => '转发规则动作列表。',
'type' => 'array',
'items' => [
'description' => '转发规则动作。',
'type' => 'object',
'properties' => [
'FixedResponseConfig' => [
'title' => '返回固定内容动作配置',
'description' => '返回固定内容动作配置。',
'type' => 'object',
'properties' => [
'Content' => ['title' => '内容', 'description' => '返回的固定内容。最大支持存储1 KB,只支持ASCII字符。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'ContentType' => ['title' => '内容类型', 'description' => '返回固定内容的格式。'."\n"
."\n"
.'取值:**text/plain**、**text/css**、**text/html**、**application/javascript**或**application/json**。', 'type' => 'string', 'required' => false, 'example' => 'text/plain'],
'HttpCode' => ['title' => 'HTTP响应码', 'description' => '返回的HTTP响应码,仅支持**2xx**、**4xx**、**5xx**数字型字符串,**x**为任意数字。', 'type' => 'string', 'required' => false, 'example' => '200'],
],
'required' => false,
],
'ForwardGroupConfig' => [
'title' => '转发组动作配置',
'description' => '转发组动作配置。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '转发到的目的服务器组列表',
'description' => '转发到的目的服务器组列表。',
'type' => 'array',
'items' => [
'description' => '转发到的目的服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组标识', 'description' => '服务器组标识。', 'type' => 'string', 'required' => false, 'example' => 'sgp-ffm94ovy7lqw******'],
'Weight' => ['title' => '权重', 'description' => '权重。取值越大,权重越大,表示转发的访问请求更多。取值范围:**0**~**100**。'."\n"
."\n"
.'- 目的服务器组数为1时,未指定权重时默认值为**100**。'."\n"
."\n"
.'- 目的服务器组数大于1时,需要用户指定权重值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '100'],
],
'required' => false,
],
'required' => false,
],
'ServerGroupStickySession' => [
'title' => '服务器组之间会话保持',
'description' => '服务器组之间会话保持。',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '是否开启会话保持', 'description' => '是否开启会话保持。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**(默认值):不开启。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'Timeout' => ['title' => '超时时间', 'description' => '超时时间。单位:秒。取值范围:**1**~**86400**。默认值:**1000**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
'required' => false,
],
],
'required' => false,
],
'InsertHeaderConfig' => [
'title' => '插入头部动作配置',
'description' => '插入头部动作配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头', 'description' => '插入的头字段名称,长度为1\\~40个字符,支持大小写字母a\\~z、数字、下划线(_)和短划线(-)。**InsertHeaderConfig**中的头字段名称不能重复。'."\n"
."\n"
.'> 不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`、`x-forwarded-host`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'HTTP标头内容', 'description' => '插入的头字段内容。'."\n"
."\n"
.'- **ValueType**取值为**SystemDefined**时取值如下:'."\n"
.' - **ClientSrcPort**:客户端端口。'."\n"
.' - **ClientSrcIp**:客户端IP地址。'."\n"
.' - **Protocol**:客户端请求的协议(HTTP或HTTPS)。'."\n"
.' - **SLBId**:应用型负载均衡实例ID。'."\n"
.' - **SLBPort**:应用型负载均衡实例监听端口。'."\n"
.'- **ValueType**取值为**UserDefined**时:您可自定义头字段内容,限制长度为1~128个字符,支持通配符星号(*)、半角问号(?)和ASCII码值`ch >= 32 && ch < 127`范围内的可打印字符,不支持`"`。开头和结尾不能为空格。结尾不能为`\\`。'."\n"
.'- **ValueType**取值为**ReferenceHeader**时:您可以引用请求头字段中的某一个字段,限制长度限制为1\\~128个字符,支持小写字母a\\~z、数字、短划线(-)和下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'value'],
'ValueType' => ['title' => '取值类型', 'description' => '头字段内容类型。取值:'."\n"
."\n"
.'- **UserDefined**:您自定义头字段内容。'."\n"
."\n"
.'- **ReferenceHeader**:引用请求头中的某一个头字段内容。'."\n"
."\n"
.'- **SystemDefined**:系统定义头字段内容。', 'type' => 'string', 'required' => false, 'example' => 'SystemDefined'],
],
'required' => false,
],
'Order' => ['title' => '优先级', 'description' => '转发规则动作执行的顺序,取值范围:**1~50000**,按值从小到大执行动作。值不能为空,不能重复。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'RedirectConfig' => [
'title' => '重定向动作配置',
'description' => '重定向配置。'."\n"
."\n"
.'> **RedirectConfig**的参数,除了**httpCode**外,不能都使用默认值。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '要跳转的主机地址', 'description' => '要跳转的主机地址。取值:'."\n"
.'- **${host}**(默认值):取此值时不支持和其他字符拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。'."\n"
.' - 通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => '${host}'],
'HttpCode' => ['title' => '跳转方式', 'description' => '跳转方式。取值:**301**、**302**、**303**、**307**或**308**。', 'type' => 'string', 'required' => false, 'example' => '301'],
'Path' => ['title' => '要跳转的路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符,大小写敏感,支持通配符星号(*)和半角问号(?)作为通配符使用。'."\n"
.' - 必须以正斜线(/)开头,支持大小写字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/'],
'Port' => ['title' => '要跳转的端口', 'description' => '要跳转的端口。'."\n"
.'- **${port}**(默认值):该取值不支持和其他字符同时使用。'."\n"
.'- 其他取值:**1~63335**。', 'type' => 'string', 'required' => false, 'example' => '443'],
'Protocol' => ['title' => '要跳转的协议', 'description' => '要跳转的协议。取值:'."\n"
.'- **${protocol}**(默认值):取该值时仅支持单独使用,不支持修改或与其他字符拼接使用。'."\n"
.'- **HTTP**'."\n"
.'- **HTTPS**'."\n"
.'> '."\n"
.'> - HTTPS监听仅支持跳转HTTPS协议。'."\n"
.'> - HTTP监听支持跳转HTTP和HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTPS'],
'Query' => ['title' => '要跳转的查询字符串', 'description' => '要跳转的查询字符串。'."\n"
.'- **${query}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'RewriteConfig' => [
'title' => '内部重定向动作配置',
'description' => '重写配置。'."\n"
."\n"
.'> 同一个转发规则配置多个动作时,**RewriteConfig**动作使用时必须配置**ForwardGroup**的动作类型。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '主机名', 'description' => '内部跳转的目的主机地址。取值:'."\n"
.'- **${host}**(默认值):该取值不支持和其他字符拼接。'."\n"
."\n"
.'- 其他取值,字符格式限制如下:'."\n"
."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => 'www.rewrite.alb'],
'Path' => ['title' => '路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符,大小写敏感,支持通配符星号(*)和半角问号(?)作为通配符使用。'."\n"
.' - 必须以正斜线(/)开头,支持大小写字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/tea'],
'Query' => ['title' => '查询', 'description' => '内部跳转的查询字符串。'."\n"
.'- **${query}**(默认值):可以引用 **${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1\\~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'Type' => ['title' => '转发规则动作类型', 'description' => '动作类型。取值:'."\n"
."\n"
.'- **ForwardGroup**:转发至多个虚拟服务器组。'."\n"
."\n"
.'- **Redirect**:重定向。'."\n"
."\n"
.'- **FixedResponse**:返回固定内容。'."\n"
."\n"
.'- **Rewrite**:重写。'."\n"
."\n"
.'- **InsertHeader**:写入头字段。'."\n"
."\n"
.'- **RemoveHeader**:删除头字段。'."\n"
."\n"
.'- **TrafficLimit**:流量限速。'."\n"
."\n"
.'- **TrafficMirror**:流量镜像。'."\n"
."\n"
.'- **Cors**:跨域。'."\n"
."\n"
.'> 一个转发规则必须包含有一条**ForwardGroup**(转发至)、**Redirect**(重定向)或**FixedResponse**(返回固定响应)转发动作,与其他类型转发动作并存时,必须放在最后执行。', 'type' => 'string', 'required' => true, 'example' => 'ForwardGroup'],
'TrafficLimitConfig' => [
'title' => '流量限速',
'description' => '流量限速。',
'type' => 'object',
'properties' => [
'QPS' => ['description' => '每秒请求次数。取值范围:**1**~**1000000**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5000'],
'PerIpQps' => ['description' => '单IP每秒请求次数。 取值范围:**1 ~ 1000000**。'."\n"
."\n"
.'> 如果同时配置**QPS**参数,**PerIpQps**参数的取值必须小于**QPS**参数的取值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
'TrafficMirrorConfig' => [
'title' => '流量镜像',
'description' => '流量镜像。',
'type' => 'object',
'properties' => [
'TargetType' => ['title' => '镜像目标类型', 'description' => '镜像的目标类型。取值:'."\n"
.'- **ForwardGroupMirror**:表示镜像至服务器组。', 'type' => 'string', 'required' => false, 'example' => 'ForwardGroupMirror'],
'MirrorGroupConfig' => [
'title' => '镜像至服务器组',
'description' => '镜像至服务器组',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'description' => '流量镜像至服务器组。',
'type' => 'array',
'items' => [
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['description' => '服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sgp-u9cmf16iu69******'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RemoveHeaderConfig' => [
'title' => '去除HTTP标头',
'description' => '去除HTTP标头',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '去除的头字段名称,长度为1~40个字符,支持大小写字母a~z、数字、下划线(_)和短划线(-)。头字段名称不能重复用于RemoveHeader中。'."\n"
."\n"
.'- 请求方向(Direction取值为Request):不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`、`x-forwarded-host`。'."\n"
.'- 响应方向(Direction取值为Response):响应方向不允许将头名称设置为以下字段(不区分大小写):`connection`、`upgrade`、`content-length`、`transfer-encoding`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
],
'required' => false,
],
'CorsConfig' => [
'title' => '跨域',
'description' => '跨域。',
'type' => 'object',
'properties' => [
'AllowOrigin' => [
'title' => '允许的访问来源',
'description' => '允许的访问来源。',
'type' => 'array',
'items' => ['description' => '允许的访问来源列表。支持只配置一个元素`*`,或配置一个或多个值。'."\n"
.'- 单个值必须以`http://`或者`https://`开头,后边加一个正确的域名或一级泛域名。(例:`http://*.test.abc.example.com`)'."\n"
.'- 单个值可以不加端口,也可以指定端口,端口范围:**1**~**65535**。', 'type' => 'string', 'required' => false, 'example' => 'http://www.test.com'],
'required' => false,
],
'AllowMethods' => [
'title' => '选择跨域访问时允许的HTTP方法',
'description' => '选择跨域访问时允许的HTTP方法。',
'type' => 'array',
'items' => ['description' => '选择跨域访问时允许的HTTP方法。取值:'."\n"
.'- **GET**。'."\n"
.'- **POST**。'."\n"
.'- **PUT**。'."\n"
.'- **DELETE**。'."\n"
.'- **HEAD**。'."\n"
.'- **OPTIONS**。'."\n"
.'- **PATCH**。', 'type' => 'string', 'required' => false, 'example' => 'GET'],
'required' => false,
],
'AllowHeaders' => [
'title' => '允许跨域的Header列表',
'description' => '允许跨域的Header列表。',
'type' => 'array',
'items' => ['description' => '允许跨域的Header列表。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'AllowHeader'],
'required' => false,
],
'ExposeHeaders' => [
'title' => '允许暴露的Header列表',
'description' => '允许暴露的Header列表。',
'type' => 'array',
'items' => ['description' => '允许暴露的Header。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'ExposeHeader'],
'required' => false,
],
'AllowCredentials' => [
'title' => '是否允许携带凭证信息',
'description' => '是否允许携带凭证信息。取值:'."\n"
."\n"
.'- **on**:是。'."\n"
.'- **off**:否。',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['off' => 'off', 'on' => 'on'],
'example' => 'on',
],
'MaxAge' => ['title' => '预检请求在浏览器的最大缓存时间', 'description' => '预检请求在浏览器的最大缓存时间,单位:秒。'."\n"
."\n"
.'取值范围:**-1**~**172800**。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '600'],
],
'required' => false,
],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
'RuleConditions' => [
'title' => '转发规则条件',
'description' => '转发规则条件列表。',
'type' => 'array',
'items' => [
'description' => '转发规则条件。',
'type' => 'object',
'properties' => [
'CookieConfig' => [
'title' => 'Cookie条件配置',
'description' => 'Cookie条件配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'Cookie键值对列表',
'description' => 'Cookie键值对列表。',
'type' => 'array',
'items' => [
'description' => 'Cookie键值对。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'Cookie条件键', 'description' => 'Cookie条件键。'."\n"
."\n"
.'- 支持 1~100 个字符。'."\n"
."\n"
.'- 支持可见字符和通配符星号(*)和半角问号(?),如果是字母必须为小写字母。'."\n"
."\n"
.'- 不支持空格和`;#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'Cookie条件值', 'description' => 'Cookie条件值。'."\n"
."\n"
.'- 支持 1~100 个字符。'."\n"
."\n"
.'- 支持可见字符和通配符星号(*)和半角问号(?),如果是字母必须为小写字母。'."\n"
."\n"
.'- 不支持空格和`;#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'value'],
],
'required' => false,
],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'HeaderConfig' => [
'title' => 'HTTP标头条件配置',
'description' => 'HTTP标头条件配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => 'HTTP标头键。'."\n"
."\n"
.'- 支持 1~40 个字符。'."\n"
."\n"
.'- 支持字母 a~z、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'- 不支持 Cookie 和 Host。', 'type' => 'string', 'required' => false, 'example' => 'port'],
'Values' => [
'title' => 'HTTP标头值列表',
'description' => 'HTTP标头值列表。',
'type' => 'array',
'items' => ['description' => 'HTTP标头值。同一个转发规则条件内头字段值不能重复。'."\n"
.'- 支持1\\~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => '5006'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'HostConfig' => [
'title' => '主机名条件配置',
'description' => '主机名条件配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '主机名列表',
'description' => '主机名列表。',
'type' => 'array',
'items' => ['description' => '主机名。一个转发规则条件中只能有一个主机名,并且取值不能重复。'."\n"
."\n"
.'- 主机名长度为3\\~128个字符,支持小写字母a~z、数字0~9、短划线(-)、半角句号(.)、星号(*)、等号(=)、波浪线(~)、下划线(_)、加号(+)、反斜线(\\)、脱字号(^)、感叹号(!)、美元符号($)、and(&)、竖线(|)、半角圆括号(())、方括号(\\[\\])和半角问号(?)。'."\n"
."\n"
.'- 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.'- 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-),最左侧`domainlable`允许是星号(*)。'."\n"
."\n"
.'- 短划线(-)不能出现在其它域标签的开头或结尾。通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。'."\n"
."\n"
.'- 对于<精确匹配和通配符>的输入框,首字符不可以为波浪线(~)。'."\n"
.'- 对于正则的输入框(<正则匹配(不区分大小写)>,首字符不可以为星号(*)。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'MethodConfig' => [
'title' => 'HTTP请求方法条件配置',
'description' => 'HTTP请求方法条件配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'HTTP请求方法列表',
'description' => 'HTTP请求方法列表。',
'type' => 'array',
'items' => ['description' => '请求方法。'."\n"
."\n"
.'取值:**HEAD**、**GET**、**POST**、**OPTIONS**、**PUT**、**PATCH**或**DELETE**。', 'type' => 'string', 'required' => false, 'example' => 'PUT'],
'required' => false,
'maxItems' => 10,
],
],
'required' => false,
],
'PathConfig' => [
'title' => '路径条件配置',
'description' => '路径条件配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '路径条件列表',
'description' => '路径条件列表。',
'type' => 'array',
'items' => ['description' => '转发路径。取值范围:'."\n"
.'- 长度为1\\~128个字符,大小写敏感,支持星号(*)和半角问号(?)作为通配符使用。'."\n"
."\n"
.'- 非正则表达式的URL ,必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:\'*?`,不支持`“%#;!()[]^,”\\"`,支持星号(*)和半角问号(?)作为通配符使用。'."\n"
."\n"
.'- 正则表达式的URL ,必须以~开头,支持大小写字母、数字和特殊字符`.-_/=?~^*$:()[]+|`。', 'type' => 'string', 'required' => false, 'example' => '/test'],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'QueryStringConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串条件配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '查询字符串条件键值对列表',
'description' => '查询字符串条件键值对列表。',
'type' => 'array',
'items' => [
'description' => '查询字符串条件键值对。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '查询字符串条件键', 'description' => '查询字符串条件键。'."\n"
.'- 长度为1\\~100个字符。'."\n"
.'- 支持可见字符、通配符星号(*)和半角问号(?),如果是字母则必须为小写字母。不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => '查询字符串条件值', 'description' => '查询字符串条件值。'."\n"
."\n"
.'- 长度为1\\~128个字符。'."\n"
.'- 支持小写字母、可见字符和通配符星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'value'],
],
'required' => false,
],
'required' => false,
'maxItems' => 50,
],
],
'required' => false,
],
'ResponseHeaderConfig' => [
'title' => '返回HTTP标头',
'description' => '响应HTTP标头配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '返回HTTP标头键', 'description' => '响应HTTP标头键。'."\n"
.'- 长度为1~40个字符。'."\n"
.'- 支持字母a~z、数字、短划线(-)和下划线(_)。'."\n"
.'- 不支持Cookie和Host。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Values' => [
'title' => '返回HTTP标头值',
'description' => '响应HTTP标头值列表。',
'type' => 'array',
'items' => ['description' => '响应HTTP标头值。'."\n"
.'- 长度为1~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、小写字母以及通配符星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => 'value'],
'required' => false,
],
],
'required' => false,
],
'ResponseStatusCodeConfig' => [
'title' => '返回状态码条件',
'description' => '响应状态码配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '返回状态码条件',
'description' => '响应状态码列表。',
'type' => 'array',
'items' => ['description' => '响应状态码。', 'type' => 'string', 'required' => false, 'example' => '200'],
'required' => false,
],
],
'required' => false,
],
'Type' => [
'title' => '条件类型',
'description' => '转发条件类型。取值:'."\n"
."\n"
.'- Host:主机。'."\n"
."\n"
.'- Path:路径。'."\n"
."\n"
.'- Header:HTTP头字段。'."\n"
."\n"
.'- QueryString:查询字符串。'."\n"
."\n"
.'- Method:请求方法。'."\n"
."\n"
.'- Cookie:Cookie。'."\n"
."\n"
.'- SourceIp:源IP。'."\n"
."\n"
.'- ResponseHeader:响应HTTP头字段。'."\n"
."\n"
.'- ResponseStatusCode:响应状态码。',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['Cookie' => 'Cookie', 'Path' => 'Path', 'ResponseHeader' => 'ResponseHeader', 'SourceIp' => 'SourceIp', 'Header' => 'Header', 'ResponseStatusCode' => 'ResponseStatusCode', 'QueryString' => 'QueryString', 'Host' => 'Host', 'Method' => 'Method'],
'example' => 'SourceIp',
],
'SourceIpConfig' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配。',
'type' => 'array',
'items' => ['description' => '添加一个或多个IP地址或者IP地址段。'."\n"
."\n"
.'一条转发规则中最多支持添加5条源IP。', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/32'],
'required' => false,
],
],
'required' => false,
],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
'RuleName' => ['title' => '转发规则名称', 'description' => '转发规则名称。', 'type' => 'string', 'required' => true, 'example' => 'rule-443-64'],
'Direction' => [
'title' => '转发规则方向',
'description' => '转发规则方向。',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Response' => 'Response', 'Request' => 'Request'],
'example' => 'Request',
],
'Tag' => [
'description' => '标签列表。',
'type' => 'array',
'items' => [
'description' => '标签。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'test_tag_key'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'test_tag_value'],
],
'required' => false,
],
'required' => false,
],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '创建多条转发规则。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
'RuleIds' => [
'title' => '转发规则标识列表',
'description' => '转发规则列表。',
'type' => 'array',
'items' => [
'description' => '转发规则列表。',
'type' => 'object',
'properties' => [
'RuleId' => ['title' => '转发规则标识', 'description' => '转发规则ID。', 'type' => 'string', 'example' => 'rule-a3x3pg1yohq3lq****'],
'Priority' => ['title' => '转发规则优先级', 'description' => '转发规则优先级,取值范围:**1~10000**。值越小表示优先级越高。'."\n"
."\n"
.'> 同一个监听内规则优先级必须唯一。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.IpGroupCanNotUsedForMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.SameGroupForForwardAndMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'Conflict.Priority', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '优先级冲突,已经存在相同配置'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerRulesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '转发规则数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'QuotaExceeded.RuleWildcardsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'QuotaExceeded.RuleMatchEvaluationsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '转发规则条件数已超额度限制。'."\n"],
['errorCode' => 'QuotaExceeded.RuleActionsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'Mismatch.Protocol', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'OperationDenied.RewriteMissingForwardGroup', 'errorMessage' => 'The operation is not allowed because of RewriteMissingForwardGroup.', 'description' => '操作被拒绝,原因是RewriteMissingForwardGroup。'],
['errorCode' => 'OperationDenied.MirrorActionSupportHttpGroupOnly', 'errorMessage' => 'The operation is not allowed because of MirrorActionSupportHttpGroupOnly.', 'description' => '操作被拒绝,原因是流量镜像动作只支持HTTP类型的服务器组。'],
['errorCode' => 'OperationDenied.ProtocolMustSameForForwardGroupAction', 'errorMessage' => 'The operation is not allowed because of ProtocolMustSameForForwardGroupAction.', 'description' => '操作被禁止,原因:必须是相同的协议'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'staticInfo' => ['returnType' => 'asynchronous', 'callback' => 'Alb::2020-06-16::ListAsynJobs', 'callbackInterval' => 1000, 'maxCallbackTimes' => 60],
'title' => '批量创建转发规则',
'description' => '调用该接口创建转发规则时,请注意以下事项:'."\n"
.'- 配置**Redirect**转发动作时,除了**HttpCode**参数外,其余参数不能都配置默认值。'."\n"
.'- 同一个转发规则配置多个转发动作时,**Rewrite**转发动作必须配置**ForwardGroup**的动作类型。'."\n"
.'- **CreateRules**接口属于异步接口,即系统返回一个实例ID,但该多条转发规则尚未创建成功,系统后台的创建任务仍在进行。您可以调用[ListRules](~~214379~~)查询多条转发规则的创建状态:'."\n"
.' - 当多条转发规则处于**Provisioning**状态时,表示多条转发规则正在创建中。'."\n"
.' - 当多条转发规则处于**Available**状态时,表示多条转发规则创建成功。'."\n"
.'- 一条转发规则最多支持添加的条件数(**RuleConditions**)和动作数(**RuleActions**)如下:'."\n"
.' - 条件数:基础版5条,标准版10条,WAF增强版10条。'."\n"
.' - 动作数:基础版3条,标准版5条,WAF增强版5条。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\",\\n \\"RuleIds\\": [\\n {\\n \\"RuleId\\": \\"rule-a3x3pg1yohq3lq****\\",\\n \\"Priority\\": 10\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<CreateRulesResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <RuleIds>\\n <RuleId>rule-a3x3pg1yohq3lq****</RuleId>\\n <Priority>10</Priority>\\n </RuleIds>\\n</CreateRulesResponse>","errorExample":""}]',
],
'CreateSecurityPolicy' => [
'summary' => '在指定地域创建自定义安全策略。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '172',
'abilityTreeNodes' => ['FEATUREslbAYSA83'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP_2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'TLSVersions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'tls版本',
'description' => '支持的TLS协议版本列表',
'type' => 'array',
'items' => ['description' => '支持的TLS协议版本,取值:**TLSv1.0**、**TLSv1.1**、**TLSv1.2**和**TLSv1.3**。', 'type' => 'string', 'required' => true, 'example' => 'TLSv1.0'],
'required' => true,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组id', 'description' => '资源组ID', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
[
'name' => 'SecurityPolicyName',
'in' => 'query',
'schema' => ['title' => '安全策略名称', 'description' => '安全策略名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => true, 'example' => 'test-secrity'],
],
[
'name' => 'Ciphers',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '加密套件',
'description' => '支持的加密套件列表',
'type' => 'array',
'items' => ['description' => '支持的加密套件,具体依赖**TLSVersions**的取值。'."\n"
."\n"
.'Cipher只要被任何一个传入的**TLSVersions**支持即可。'."\n"
."\n"
.'> 选择了TLSv1.3,那么Cipher列表必须包含TLSv1.3支持的Cipher。'."\n"
."\n"
.'- TLSv1.0和TLSv1.1 支持:'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
."\n"
.'- TLSv1.2支持'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
.' - ECDHE-ECDSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-ECDSA-AES128-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-SHA384'."\n"
.' - ECDHE-RSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-RSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-RSA-AES128-SHA256'."\n"
.' - ECDHE-RSA-AES256-SHA384 '."\n"
.' - AES128-GCM-SHA256'."\n"
.' - AES256-GCM-SHA384'."\n"
.' - AES128-SHA256'."\n"
.' - AES256-SHA256'."\n"
.' - ECDHE-RSA-CHACHA20-POLY1305'."\n"
.' - ECDHE-ECDSA-CHACHA20-POLY1305'."\n"
."\n"
.'- TLSv1.3支持: '."\n"
.' - TLS_AES_128_GCM_SHA256'."\n"
.' - TLS_AES_256_GCM_SHA384'."\n"
.' - TLS_CHACHA20_POLY1305_SHA256'."\n"
.' - TLS_AES_128_CCM_SHA256'."\n"
.' - TLS_AES_128_CCM_8_SHA256', 'type' => 'string', 'required' => true, 'example' => ' ECDHE-ECDSA-AES128-SHA'],
'required' => true,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
'SecurityPolicyId' => ['title' => '安全策略id', 'description' => '安全策略ID', 'type' => 'string', 'example' => 'sp-9cdjz6o8ha70******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'QuotaExceeded.SecurityPoliciesNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0******\\",\\n \\"SecurityPolicyId\\": \\"sp-9cdjz6o8ha70******\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateSecurityPolicyResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <SecurityPolicyId>scp-bp1bpn0kn9****</SecurityPolicyId>\\n</CreateSecurityPolicyResponse>","errorExample":""}]',
'title' => '创建自定义安全策略',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateSecurityPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/*'],
],
],
],
],
],
'CreateServerGroup' => [
'summary' => '在指定地域创建服务器组。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '163',
'abilityTreeNodes' => ['FEATUREslbULKWF1'],
],
'parameters' => [
[
'name' => 'ServerGroupName',
'in' => 'query',
'schema' => ['title' => '服务器组名称', 'description' => '服务器组名称。长度为2~128个字符,必须以大小写字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
[
'name' => 'ServerGroupType',
'in' => 'query',
'schema' => ['title' => '服务器组类型', 'description' => '服务器组类型。取值:'."\n"
."\n"
.'- **Instance**(默认值):服务器类型,该类型服务器组支持添加**Ecs**、**Eni**、**Eci**实例。'."\n"
."\n"
.'- **Ip**:IP地址类型,该类型服务器组支持添加IP地址类型的后端服务器。'."\n"
."\n"
.'- **Fc**:函数计算类型,该类型支持添加函数计算类型的后端服务器。', 'type' => 'string', 'required' => false, 'example' => 'Instance'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['title' => 'VpcId', 'description' => 'VPC实例ID。只有该VPC下的服务器可以加入到该服务器组。'."\n"
."\n"
.'> **ServerGroupType**取值为**Instance**或**Ip**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp15zdkdt37pq72zv****'],
],
[
'name' => 'Scheduler',
'in' => 'query',
'schema' => ['title' => '调度策略', 'description' => '调度算法。取值:'."\n"
."\n"
.'- **Wrr**(默认值):加权轮询,权重值越高的后端服务器,被轮询到的概率也越高。'."\n"
."\n"
.'- **Wlc**:加权最小连接数,除了根据每台后端服务器设定的权重值来进行轮询,同时还考虑后端服务器的实际负载(即连接数)。当权重值相同时,当前连接数越小的后端服务器被轮询到的概率也越高。'."\n"
."\n"
.'- **Sch**:一致性哈希,相同哈希因子计算结果的请求将会调度到相同的后端服务器。不配置**UchConfig**参数时,默认哈希因子为源IP,相同源IP地址的请求会分发到同一台后端服务器;配置了**UchConfig**参数时,哈希因子为URL参数,相同URL参数的请求会分发到同一台后端服务器。'."\n"
."\n\n"
.'> **ServerGroupType**取值为**Instance**或**Ip**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'Wrr'],
],
[
'name' => 'Protocol',
'in' => 'query',
'schema' => ['title' => '后端协议类型', 'description' => '后端协议。取值:'."\n"
."\n"
.'- **HTTP**(默认值):支持关联HTTPS、HTTP和QUIC监听。'."\n"
."\n"
.'- **HTTPS**:支持关联HTTPS监听。'."\n"
."\n"
.'- **gRPC**:关联HTTPS和QUIC监听。'."\n"
."\n"
.'> **ServerGroupType**取值为**Fc**时,无需配置后端协议。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组id', 'description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rsop****'],
],
[
'name' => 'HealthCheckConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '健康检查配置',
'description' => '健康检查相关配置。',
'type' => 'object',
'properties' => [
'HealthCheckConnectPort' => ['title' => '健康检查端口', 'description' => '健康检查的后端服务器的端口。'."\n"
."\n"
.'取值范围: **0**~**65535**。'."\n"
."\n"
.'默认值:**0**,表示使用后端服务器的端口进行健康检查。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '65535', 'minimum' => '0', 'example' => '80', 'default' => '0'],
'HealthCheckEnabled' => ['title' => '是否启用健康检查', 'description' => '是否开启健康检查,取值:'."\n"
."\n"
.'- **true**:开启'."\n"
."\n"
.'- **false**:不开启'."\n"
."\n"
.'> **ServerGroupType**取值为**Instance**或**Ip**时,默认开启健康检查。**ServerGroupType**取值为**Fc**时,默认不开启健康检查。', 'type' => 'boolean', 'required' => true, 'example' => 'true'],
'HealthCheckHost' => ['title' => '健康检查域名', 'description' => '健康检查域名。'."\n"
."\n"
.'- **使用后端服务器的内网IP**(默认):使用后端服务器的内网IP地址作为健康检查的域名。'."\n"
."\n"
.'- **指定特定域名**:输入一个域名。'."\n"
."\n"
.' - 长度限制为1~80个字符。'."\n"
."\n"
.' - 可包含小写字母、数字、短划线(-)和半角句号(.)。'."\n"
."\n"
.' - 至少包含一个半角句号(.),半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签,只能包含字母,不能包含数字或短划线(-)。'."\n"
."\n"
.' - 短划线(-)不能出现在开头或结尾。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**、**HTTPS**或**gRPC**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'HealthCheckCodes' => [
'title' => '健康检查正常的状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['title' => '健康检查正常的状态码', 'description' => '健康检查正常的状态码。'."\n"
."\n\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http\\_2xx**(默认值)、 **http\\_3xx**、**http\\_4xx**和**http\\_5xx**。多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值。多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> **HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'http_2xx'],
'required' => false,
],
'HealthCheckHttpVersion' => ['title' => '健康检查HTTP协议版本', 'description' => '健康检查HTTP协议版本,取值:**HTTP1.0**或**HTTP1.1**(默认值)。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'HTTP1.1', 'default' => 'HTTP1.1'],
'HealthCheckInterval' => ['title' => '健康检查间隔', 'description' => '健康检查的时间间隔。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**50**。'."\n"
."\n"
.'默认值:**2**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '50', 'minimum' => '1', 'example' => '2', 'default' => '2'],
'HealthCheckMethod' => ['title' => '健康检查方法', 'description' => '健康检查方法,取值:'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n"
.'- **HEAD**(默认值):HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**或**gRPC**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'HEAD'],
'HealthCheckPath' => ['title' => '健康检查Path', 'description' => '健康检查的转发规则路径。'."\n"
."\n"
.'长度为1~80个字符,只能使用字母、数字、字符`-/.%?#&=`以及扩展字符`_;~!()*[]@$^:\',+`。 URL必须以正斜线(/)开头。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => '/test/index.html'],
'HealthCheckProtocol' => ['title' => '健康检查协议类型', 'description' => '健康检查协议,取值:'."\n"
."\n"
.'- **HTTP**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'required' => false, 'example' => 'HTTP', 'default' => 'HTTP'],
'HealthCheckTimeout' => ['title' => '健康检查超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端服务器在指定的时间内没有正确响应,则判定为健康检查失败。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**300**。'."\n"
."\n"
.'默认值:**5**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '300', 'minimum' => '1', 'example' => '5', 'default' => '5'],
'HealthyThreshold' => ['title' => '健康检查成功判定阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。'."\n"
."\n"
.'取值范围:**2**~**10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10', 'minimum' => '2', 'example' => '3', 'default' => '3'],
'UnhealthyThreshold' => ['title' => '健康检查不成功判定阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。'."\n"
."\n"
.'取值范围:**2**~**10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10', 'minimum' => '2', 'example' => '3', 'default' => '3'],
],
'required' => true,
'example' => 'rg-123',
],
],
[
'name' => 'StickySessionConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '会话保持配置',
'description' => '会话保持配置结构体。'."\n"
."\n"
.'> **ServerGroupType**取值为**Instance**或**Ip**时,该参数生效。',
'type' => 'object',
'properties' => [
'Cookie' => ['title' => '服务器上配置的Cookie', 'description' => '服务器上配置的Cookie。'."\n"
."\n"
.'长度为1~200个字符,只能包含ASCII英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。'."\n"
."\n"
.'> 当**StickySessionEnabled**为**true**且**StickySessionType**为**server**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'B490B6EBF6F3CD402E515D22BCDA****'],
'CookieTimeout' => ['title' => '服务器上配置的Cookie', 'description' => 'Cookie超时时间。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**86400**。'."\n"
."\n"
.'默认值:**1000**。'."\n"
."\n"
.'> 当**StickySessionEnabled**为**true**且**StickySessionType**为**Insert**时,该参数生效。'."\n"
."\n\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '86400', 'minimum' => '1', 'example' => '1000', 'default' => '1000'],
'StickySessionEnabled' => ['title' => '是否启用会话保持', 'description' => '是否启用会话保持,取值:'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:不开启。'."\n"
."\n"
.'> **ServerGroupType**取值为**Instance**或**Ip**时,该参数生效。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'StickySessionType' => ['title' => '会话保持类型', 'description' => 'Cookie的处理方式。取值:'."\n"
."\n"
.'- **Insert**(默认值):植入Cookie。'."\n"
.'客户端第一次访问时,负载均衡会在返回请求中植入Cookie(即在HTTP或HTTPS响应报文中插入SERVERID),下次客户端携带此Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器上。'."\n"
."\n"
.'- **Server**:重写Cookie。'."\n"
.'负载均衡发现用户自定义了Cookie,将会对原来的Cookie进行重写,下次客户端携带新的Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器。'."\n"
."\n"
.'> 当**StickySessionEnabled**的值为**true**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'Insert', 'default' => 'Insert'],
],
'required' => false,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CAF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建服务器组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'Ipv6Enabled',
'in' => 'query',
'schema' => ['title' => '是否开启Ipv6', 'description' => '是否开启Ipv6', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'UpstreamKeepaliveEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启后端长链接', 'description' => '是否开启后端长链接。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**(默认值):不开启。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['title' => '服务器名称', 'description' => '仅适用于ALB Ingress场景,表示服务器组对应的`K8s Service`名称。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'UchConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'url一致性hash参数配置',
'description' => 'url一致性hash参数配置。',
'type' => 'object',
'properties' => [
'Type' => ['title' => '参数类型', 'description' => '参数类型。只能填**QueryString**。', 'type' => 'string', 'required' => true, 'example' => 'QueryString'],
'Value' => ['title' => '一致性hash参数值', 'description' => '一致性hash参数值。', 'type' => 'string', 'required' => true, 'example' => 'abc'],
],
'required' => false,
],
],
[
'name' => 'ConnectionDrainConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '连接优雅中断相关配置。'."\n"
."\n"
.'开启连接优雅中断,在移除后端服务器或者健康检查失败后,负载均衡使现有连接在一定时间内正常传输。'."\n"
."\n"
.'>'."\n"
.'> - 基础版实例不支持开启连接优雅中断,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持连接优雅中断,函数计算类型不支持。',
'type' => 'object',
'properties' => [
'ConnectionDrainEnabled' => ['description' => '是否开启连接优雅中断。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭(默认值)', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'ConnectionDrainTimeout' => ['description' => '连接优雅中断超时时间。'."\n"
."\n"
.'取值范围:**0**~**900**。'."\n"
."\n"
.'默认值:**300**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '300'],
],
'required' => false,
],
],
[
'name' => 'SlowStartConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '慢启动相关配置。'."\n"
."\n"
.'开启慢启动后,将会在设定的时间段内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。'."\n"
."\n"
.'> '."\n"
.'> - 基础版实例不支持开启慢启动,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持配置慢启动,函数计算类型不支持。'."\n"
.'> - 慢启动仅在后端调度算法是加权轮询算法时可开启。',
'type' => 'object',
'properties' => [
'SlowStartEnabled' => ['description' => '是否开启慢启动。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭(默认值)', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'SlowStartDuration' => ['description' => '慢启动持续时间。'."\n"
."\n"
.'取值范围:**30**~**900**。'."\n"
."\n"
.'默认值:**30**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
'required' => false,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'CrossZoneEnabled',
'in' => 'query',
'schema' => ['description' => '服务器组是否开启跨AZ负载均衡。取值:'."\n"
."\n"
.'- **true**:开启(默认值)'."\n"
."\n"
.'- **false**:关闭'."\n"
."\n"
.'> '."\n"
.'> - 基础版实例不支持绑定关闭跨AZ负载均衡的服务器组,仅标准版、WAF 增强版实例支持。'."\n"
.'> - 服务器类型、IP 类型服务器组支持关闭跨AZ负载均衡,函数计算类型不支持。'."\n"
.'> - 关闭跨AZ负载均衡时,不支持开启会话保持。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'IpVersionAffinityMode',
'in' => 'query',
'schema' => ['title' => 'IP版本亲和模式', 'description' => 'IP版本亲和模式', 'type' => 'string', 'required' => false, 'example' => 'Affinity'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF******'],
'ServerGroupId' => ['title' => '服务器组id', 'description' => '服务器组ID。', 'type' => 'string', 'example' => 'sgp-8ilqs4axp6******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'QuotaExceeded.ServerGroupsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndSlowStartEnable', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'Mismatch.ServerGroupSchedulerAndSlowStartEnable', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'QuotaExceeded.SlowStartDuration', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['errorCode' => 'UnsupportedFeature.SlowStart', 'errorMessage' => 'The feature of %s is not supported.', 'description' => '不支持%s特性。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndConnectionDrain', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'QuotaExceeded.ConnectionDrainTimeout', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['errorCode' => 'UnsupportedFeature.ConnectionDrain', 'errorMessage' => 'The feature of %s is not supported.', 'description' => '不支持%s特性。'],
['errorCode' => 'NotExist.ResourceGroup', 'errorMessage' => 'ResourceGroup does not exist.', 'description' => '资源组不存在'],
['errorCode' => 'OperationDenied.VpcNotSupportIpv6', 'errorMessage' => 'The operation is not allowed because of VpcNotSupportIpv6.', 'description' => '不允许该操作,原因:当前VPC未开启IPv6功能'],
['errorCode' => 'UnsupportedFeature.FcServerGroup', 'errorMessage' => 'Server groups of type FC are not supported.', 'description' => '不支持FC类型的服务器组'],
],
404 => [
['errorCode' => 'ResourceNotFound.Vpc', 'errorMessage' => 'The specified resource %s is not found.', 'description' => 'VPC不存在。'],
],
],
'title' => '创建服务器组',
'description' => '**CreateServerGroup**接口属于异步接口,即系统返回一个请求ID,但该服务器组尚未创建成功,系统后台的创建任务仍在进行。您可以调用[ListServerGroups](~~213627~~)查询服务器组的创建状态:'."\n"
.'- 当服务器组处于**Creating**状态时,表示服务器组正在创建中。'."\n"
.'- 当服务器组处于**Available**状态时,表示服务器组创建成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateServerGroup',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:ServerGroupProtocol', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF******\\",\\n \\"ServerGroupId\\": \\"sgp-8ilqs4axp6******\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <ServerGroupId>sg-atstuj3rtoptyui****</ServerGroupId>\\n</CreateServerGroupResponse>","errorExample":""}]',
],
'DeleteAScripts' => [
'summary' => '删除可编程脚本。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => 'f516e84e-fc0c-4c2d-a461-6cd77******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会删除可编程脚本。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'AScriptIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'title' => '脚本id列表',
'description' => '可编程脚本ID列表。',
'type' => 'array',
'items' => ['description' => '可编程脚本ID。'."\n"
."\n"
.'一次最多支持删除4个可编程脚本。', 'type' => 'string', 'required' => true, 'example' => 'as-59hl7uu******'],
'required' => true,
'maxItems' => 10,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除可编程脚本。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '03cf3fe1-ab37-479b-92a6-b481d762****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '1B7B7695-3596-50C8-B739-030C******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.AScript', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.CrossListenerAScripts', 'errorMessage' => 'The operation is not allowed because of %s', 'description' => '操作被拒绝,原因是%s。'],
],
],
'title' => '删除可编程脚本',
'description' => '**DeleteAScripts**接口属于异步接口,即系统返回一个请求ID,但可编程脚本尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListAScripts](~~472574~~)查询可编程脚本的删除状态:'."\n"
."\n"
.'- 当可编程脚本处于**Deleting**状态时,表示可编程脚本正在删除中。'."\n"
."\n"
.'- 当查询不到该可编程脚本时,表示该可编程脚本删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"03cf3fe1-ab37-479b-92a6-b481d762****\\",\\n \\"RequestId\\": \\"1B7B7695-3596-50C8-B739-030C******\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteAScriptsResponse>\\n <JobId>03cf3fe1-ab37-479b-92a6-b481d762****</JobId>\\n <RequestId>1B7B7695-3596-50C8-B739-030C6C685E61</RequestId>\\n</DeleteAScriptsResponse>","errorExample":""}]',
],
'DeleteAcl' => [
'summary' => '删除指定的访问控制。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'AclId',
'in' => 'query',
'schema' => ['title' => '访问控制策略id', 'description' => 'ACL实例ID。', 'type' => 'string', 'required' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'DryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除访问控制。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除访问控制。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceInUse.Acl', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '资源%s正在使用中。'],
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
],
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '访问控制鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
],
],
'title' => '删除访问控制',
'description' => '**DeleteAcl**接口属于异步接口,即系统返回一个请求ID,但该访问控制尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListAcls](~~213617~~)查询访问控制的删除状态:'."\n"
.'- 当访问控制处于**Deleting**状态时,表示访问控制正在删除中。'."\n"
.'- 当查询不到该访问控制实例的状态时,表示访问控制删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876******\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteAclResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</DeleteAclResponse>","errorExample":""}]',
],
'DeleteHealthCheckTemplates' => [
'summary' => '批量删除指定的健康检查模板。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'HealthCheckTemplateIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '健康检查模板Id列表',
'description' => '健康检查模板ID列表,列表最多10条。',
'type' => 'array',
'items' => ['description' => '删除指定的健康检查模板ID。', 'type' => 'string', 'required' => false, 'example' => 'hct-bp1qjwo61pqz3ahltv****'],
'required' => true,
'example' => 'acl-123',
'maxItems' => 10,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**http_2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除健康检查模板。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.HealthCheckTemplate', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteHealthCheckTemplatesResponse>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</DeleteHealthCheckTemplatesResponse>","errorExample":""}]',
'title' => '批量删除健康检查模板',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteHealthCheckTemplates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#HealthCheckTemplatesId}'],
],
],
],
],
],
'DeleteListener' => [
'summary' => '删除指定的监听。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听id', 'description' => '应用型负载均衡实例的监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除应用型负载均衡的监听。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除监听。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceInUse.Listener', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '资源%s正在使用中。'."\n"],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource is being configured, please try again later.', 'description' => '资源正在变配中,请稍后重试。'],
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</DeleteListenerResponse>","errorExample":""}]',
'title' => '删除监听',
'description' => '**DeleteListener**接口属于异步接口,即系统返回一个请求ID,但该监听尚未删除成功,系统后台的删除任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询监听的删除状态:'."\n"
.'- 当监听器处于**Deleting**状态时,表示监听正在删除中。'."\n"
.'- 当查询不到该监听时,表示监听删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'DeleteLoadBalancer' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbM7ALO6'],
],
'parameters' => [
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除应用型负载均衡实例。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'RetainResourceType',
'in' => 'query',
'style' => 'flat',
'schema' => [
'type' => 'array',
'items' => ['type' => 'string', 'example' => 'eip'],
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除应用型负载均衡实例。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.DeletionProtectionEnabled', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication has failed for LoadBalancer.', 'description' => '负载均衡操作鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '删除负载均衡实例',
'summary' => '删除指定的负载均衡实例。',
'description' => '**DeleteLoadBalancer**接口属于异步接口,即系统返回一个请求ID,但该应用型负载均衡实例尚未删除成功,系统后台的删除任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡实例的删除状态:'."\n"
.'- 当应用型负载均衡实例处于**Deleting**状态时,表示应用型负载均衡实例正在删除中。'."\n"
.'- 当查询不到指定的应用型负载均衡实例时,表示应用型负载均衡实例删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteLoadBalancerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</DeleteLoadBalancerResponse>","errorExample":""}]',
],
'DeleteRule' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除一条转发规则。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['title' => '转发规则标识', 'description' => '转发规则ID。', 'type' => 'string', 'required' => true, 'example' => 'rule-doc****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除一条转发规则。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Rule', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '转发规则的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified listener is being configured, please try again later.', 'description' => '资源正在变配中,请稍后重试。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Rule', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '删除转发规则',
'summary' => '删除指定的转发规则。',
'description' => '**DeleteRule**接口属于异步接口,即系统返回一个请求ID,但该转发规则尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListRules](~~214379~~)查询转发规则的删除状态:'."\n"
.'- 当转发规则处于**Deleting**状态时,表示转发规则正在删除中。'."\n"
.'- 当查询不到转发规则状态时,表示转发规则删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteRule',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'acs:ResourceTag', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteRuleResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</DeleteRuleResponse>","errorExample":""}]',
],
'DeleteRules' => [
'summary' => '批量删除同一监听下的转发规则。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '185',
'abilityTreeNodes' => ['FEATUREslbBIWWMH', 'FEATUREslbTXOYED', 'FEATUREslbQCCQ6L', 'FEATUREslb4T90LL', 'FEATUREslbIT4IYN', 'FEATUREslbA51OGD', 'FEATUREslbUBPZWI', 'FEATUREslbGVK35E', 'FEATUREslbYG3GCF', 'FEATUREslbRBR9GZ', 'FEATUREslbMWZQWL', 'FEATUREslbJCYSIV', 'FEATUREslbY93SFN', 'FEATUREslbVUMBEO', 'FEATUREslbZ4XFTS', 'FEATUREslb2Q6O49'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除多条转发规则。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'RuleIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'title' => '同一个监听下的转发规则标识列表',
'description' => '转发规则列表。一次最多不能超过100条。',
'type' => 'array',
'items' => ['description' => '转发规则ID。', 'type' => 'string', 'required' => false, 'example' => 'rule-a3x3pg1yohq3lq****'],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除多条转发规则。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '7BED4F62-3E6E-5E4F-8C53-2D8CCE77F2ED'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Rule', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '转发规则的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.CrossLoadBalancerRules', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Rule', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'staticInfo' => ['returnType' => 'asynchronous', 'callback' => 'Alb::2020-06-16::ListAsynJobs', 'callbackInterval' => 1000, 'maxCallbackTimes' => 60],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '批量删除转发规则',
'description' => '**DeleteRules**接口属于异步接口,即系统返回一个请求ID,但该多条转发规则尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListRules](~~214379~~)查询多条转发规则的删除状态:'."\n"
.'- 当多条转发规则处于**Deleting**状态时,表示多条转发规则正在删除中。'."\n"
.'- 当查询不到多条转发规则的状态时,表示多条转发规则删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"7BED4F62-3E6E-5E4F-8C53-2D8CCE77F2ED\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteRulesResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>7BED4F62-3E6E-5E4F-8C53-2D8CCE77F2ED</RequestId>\\n</DeleteRulesResponse>","errorExample":""}]',
],
'DeleteSecurityPolicy' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'SecurityPolicyId',
'in' => 'query',
'schema' => ['title' => '安全策略Id', 'description' => '安全策略ID。', 'type' => 'string', 'required' => true, 'example' => 'sp-n0kn923****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.SecurityPolicy', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
['errorCode' => 'ResourceInUse.SecurityPolicy', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '自定义安全策略正在使用中。'],
],
403 => [
['errorCode' => 'Forbidden.SecurityPolicy', 'errorMessage' => 'Authentication has failed for SecurityPolicy.', 'description' => '对SecurityPolicy鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '删除安全策略',
'summary' => '删除指定的自定义安全策略。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteSecurityPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteSecurityPolicyResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</DeleteSecurityPolicyResponse>","errorExample":""}]',
],
'DeleteServerGroup' => [
'summary' => '删除指定的服务器组。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '服务器组id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-cige6j****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '是否DryRun', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会删除服务器组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2XX状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => 'job', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'ResourceInUse.ServerGroup', 'errorMessage' => 'The specified resource %s is in use.', 'description' => '资源%s正在使用中。'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '删除服务器组',
'description' => '**DeleteServerGroup**接口属于异步接口,即系统返回一个请求ID,但该服务器组尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListServerGroups](~~213627~~)查询服务器组的删除状态:'."\n"
.'- 当服务器组处于**Deleting**状态时,表示服务器组正在删除中。'."\n"
.'- 当查询不到指定的服务器组时,表示服务器组删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</DeleteServerGroupResponse>","errorExample":""}]',
],
'DescribeCapacityReservation' => [
'summary' => '查询资源预留。',
'path' => '',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbEUW2CG'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '应用型负载均衡实例ID。', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'."\n"],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '请求id', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
'CapacityReservationState' => [
'title' => '容量预留状态',
'description' => '容量预留状态。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AvailabilityZone' => ['title' => '资源可用区', 'description' => '可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-k'],
'EffectiveCapacityUnits' => ['title' => '有效的LCU容量', 'description' => '每小时有效预留LCU数量。', 'type' => 'number', 'format' => 'double', 'example' => '50.0'],
'Status' => [
'description' => '资源预留状态。例如:'."\n"
."\n"
.'* **Pending**:预留中'."\n"
.'* **Provisioned**:预留完成'."\n"
.'* **Failed**:预留失败'."\n"
.'* **Rebalancing**:重新平衡',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'Provisioned',
],
'Reason' => ['description' => '当预留状态为Failed的时候,反馈失败原因。', 'type' => 'string', 'example' => 'INSUFFICIENT_CAPACITY'],
],
'description' => '',
],
],
'DecreaseRequestsRemaining' => ['title' => '剩余降配、取消资源预留的次数', 'description' => '剩余降配、取消资源预留的次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'LastModifiedTime' => ['title' => '容量预留最后修改时间,格式为yyyy-MM-ddTHH:mm:ssZ。', 'description' => '上次资源预留的修改时间,格式为yyyy-MM-dd HH:mm:ss。', 'type' => 'string', 'example' => '2025-08-22 05:06:58'],
'MinimumLoadBalancerCapacity' => [
'title' => '负载均衡请求的最小预留容量',
'description' => '负载均衡请求的最小预留容量。',
'type' => 'object',
'properties' => [
'CapacityUnits' => ['title' => 'LCU数量', 'description' => 'LCU数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
],
],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => '资源%s不存在。'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询资源预留',
'changeSet' => [],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\",\\n \\"CapacityReservationState\\": [\\n {\\n \\"AvailabilityZone\\": \\"cn-hangzhou-k\\",\\n \\"EffectiveCapacityUnits\\": 50,\\n \\"Status\\": \\"Provisioned\\",\\n \\"Reason\\": \\"INSUFFICIENT_CAPACITY\\"\\n }\\n ],\\n \\"DecreaseRequestsRemaining\\": 2,\\n \\"LastModifiedTime\\": \\"2025-08-22 05:06:58\\",\\n \\"MinimumLoadBalancerCapacity\\": {\\n \\"CapacityUnits\\": 100\\n }\\n}","type":"json"}]',
],
'DescribeRegions' => [
'summary' => '查询ALB可用地域。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '203',
'abilityTreeNodes' => ['FEATUREslbRXTOWD'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AcceptLanguage',
'in' => 'query',
'schema' => ['title' => '语言', 'description' => '支持的语言。取值:'."\n"
."\n"
.'- **zh-CN**(默认):中文'."\n"
."\n"
.'- **en-US**:英文'."\n"
."\n"
.'- **ja**:日文', 'type' => 'string', 'required' => false, 'example' => 'zh-CN', 'default' => 'zh-CN'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据的结构。',
'type' => 'object',
'properties' => [
'Regions' => [
'title' => 'Region列表',
'description' => '地域列表。',
'type' => 'array',
'items' => [
'description' => '地域信息结构。',
'type' => 'object',
'properties' => [
'LocalName' => ['title' => '名称', 'description' => '地域名称。', 'type' => 'string', 'example' => 'China (Hangzhou)'],
'RegionEndpoint' => ['title' => 'endpoint', 'description' => '地域服务的Endpoint地址。', 'type' => 'string', 'example' => 'alb.cn-hangzhou.aliyuncs.com'],
'RegionId' => ['title' => 'RegionId', 'description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
],
],
],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Regions\\": [\\n {\\n \\"LocalName\\": \\"China (Hangzhou)\\",\\n \\"RegionEndpoint\\": \\"alb.cn-hangzhou.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3\\"\\n}","errorExample":""},{"type":"xml","example":"<DescribeRegionsResponse>\\n <Regions>\\n <LocalName>华东1(杭州)</LocalName>\\n <RegionEndpoint>alb.cn-hangzhou.aliyuncs.com</RegionEndpoint>\\n <RegionId>cn-hangzhou</RegionId>\\n </Regions>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</DescribeRegionsResponse>","errorExample":""}]',
'title' => '查询地域',
'changeSet' => [],
'ramActions' => [],
],
'DescribeZones' => [
'summary' => '查询ALB一个地域下的可用区列表。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '204',
'abilityTreeNodes' => ['FEATUREslbRXTOWD'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AcceptLanguage',
'in' => 'query',
'schema' => ['description' => '支持的语言。取值:'."\n"
."\n"
.'- **zh-CN**(默认):中文'."\n"
."\n"
.'- **en-US**:英文'."\n"
."\n"
.'- **ja**:日文', 'type' => 'string', 'required' => false, 'example' => 'zh-CN', 'default' => 'zh-CN'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据的结构。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
'Zones' => [
'title' => '可用区列表',
'description' => '可用区列表。',
'type' => 'array',
'items' => [
'description' => '可用区信息结构。',
'type' => 'object',
'properties' => [
'LocalName' => ['title' => '可用区名称', 'description' => '可用区名称。', 'type' => 'string', 'example' => 'Hangzhou Zone G'],
'ZoneId' => ['title' => '可用区id', 'description' => '可用区ID。', 'type' => 'string', 'example' => 'cn-hangzhou-g'],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3\\",\\n \\"Zones\\": [\\n {\\n \\"LocalName\\": \\"Hangzhou Zone G\\",\\n \\"ZoneId\\": \\"cn-hangzhou-g\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeZonesResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <Zones>\\n <LocalName>华东 1 可用区G</LocalName>\\n <ZoneId>cn-hangzhou-g</ZoneId>\\n </Zones>\\n</DescribeZonesResponse>","errorExample":""}]',
'title' => '查询可用区',
'changeSet' => [],
'ramActions' => [],
],
'DetachCommonBandwidthPackageFromLoadBalancer' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-4266******'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '地域ID', 'description' => '应用型负载均衡实例所在的地域ID。 '."\n"
."\n"
.'您可以通过调用[DescribeRegions](~~36063~~)接口获取地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例ID', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-d676fho813rmu3****'],
],
[
'name' => 'BandwidthPackageId',
'in' => 'query',
'schema' => ['title' => '带宽包ID', 'description' => '移除的共享带宽包ID。', 'type' => 'string', 'required' => true, 'example' => 'cbwp-bp1pzf0ym72pu3y76****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '预校验', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会将共享带宽包从负载均衡实例中移除。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '将共享带宽包从负载均衡实例中移除。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2EF39708-974B-5E74-AFF5-344******'],
'JobId' => ['title' => '异步任务ID', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectBusinessStatus.CommonBandwidthPackage', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.CommonBandwidthPackage', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '实例解绑共享带宽包',
'summary' => '将共享带宽包从负载均衡实例中移除。',
'description' => '**DetachCommonBandwidthPackageFromLoadBalancer**接口属于异步接口,即系统返回一个请求ID,但该负载均衡实例尚未解除关联共享带宽包,系统后台的解除任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214359~~)查询共享带宽包的解除状态:'."\n"
.'- 当负载均衡实例处于**Configuring**状态时,表示共享带宽包正在解除中。'."\n"
.'- 当负载均衡实例处于**Active**状态时,表示共享带宽包解除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DetachCommonBandwidthPackageFromLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2EF39708-974B-5E74-AFF5-344******\\",\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\"\\n}","errorExample":""},{"type":"xml","example":"<DetachCommonBandwidthPackageFromLoadBalancerResponse>\\n <RequestId>2EF39708-974B-5E74-AFF5-3445263035A8</RequestId>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n</DetachCommonBandwidthPackageFromLoadBalancerResponse>","errorExample":""}]',
],
'DisableDeletionProtection' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '资源ID,此处为ALB实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '关闭删除保护。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '关闭删除保护',
'summary' => '关闭指定负载均衡实例的删除保护。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableDeletionProtection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<DisableDeletionProtectionResponse>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</DisableDeletionProtectionResponse>","errorExample":""}]',
],
'DisableLoadBalancerAccessLog' => [
'summary' => '关闭指定负载均衡实例的访问日志。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'>若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '负载均衡实例ID', 'type' => 'string', 'required' => true, 'example' => 'alb-bp1b6c719dfa08ex*****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.AccessLogDisabled', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,实例未开启访问日志。'."\n"],
['errorCode' => 'ResourceInConfiguring.LoadBalancer', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '关闭访问日志',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableLoadBalancerAccessLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF******\\"\\n}","errorExample":""},{"type":"xml","example":"<DisableLoadBalancerAccessLogResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</DisableLoadBalancerAccessLogResponse>","errorExample":""}]',
],
'DisableLoadBalancerIpv6Internet' => [
'summary' => '将双栈应用型负载均衡实例的IPv6公网变更为IPv6私网。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '预校验', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会关闭应用型负载均衡实例的IPv6公网。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例ID', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-chugtlrj1iusjh****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '7D866E37-1123-5160-AFF1-BDAF5EB86A8A'],
'JobId' => ['title' => '异步任务ID', 'description' => '异步任务ID。', 'type' => 'string', 'example' => 'd12871a6-ebb2-41f3-8d74-d9f452bb****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'],
['errorCode' => 'OperationDenied.NonDualStackInstance', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
['errorCode' => 'OperationDenied.Ipv6IntranetInstance', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '关闭负载均衡IPv6公网',
'description' => '### 前提条件'."\n"
."\n"
.'已创建双栈ALB实例,调用[CreateLoadBalancer](~~214358~~)接口将**AddressIpVersion**设置为**DualStack**。'."\n"
."\n"
.'> **AddressIpVersion**设置为**DualStack**时:'."\n"
.' - **AddressType**设置为**Internet**表示ALB实例拥有IPv4公网和IPv6私网访问能力。'."\n"
.' - **AddressType**设置为**Intranet**表示ALB实例拥有IPv4私网和IPv6私网访问能力。'."\n"
."\n"
.'### 使用说明'."\n"
."\n"
.'- 变更成功后,**Ipv6AddressType**类型将变为**Intranet**,ALB实例IPv6地址即具备私网能力,后续该ALB实例下变配或者弹性产生的新的弹性网卡ENI(Elastic Network Interface)也会默认具备私网能力。您可以通过调用[GetLoadBalancerAttribute](~~214362~~)接口查看**Ipv6AddressType**的取值。'."\n"
."\n"
.'- **DisableLoadBalancerIpv6Internet**接口属于异步接口,即系统返回一个请求ID,但该ALB实例的IPv6公网尚未变更为IPv6私网,系统后台的变更任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询ALB实例IPv6网络的变更状态:'."\n"
."\n"
.' - 当应用型负载均衡处于**Configuring**状态时,表示ALB实例的IPv6公网正在变更为IPv6私网。'."\n"
."\n"
.' - 当应用型负载均衡处于**Active**状态时,表示ALB实例的IPv6公网变更IPv6私网成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableLoadBalancerIpv6Internet',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7D866E37-1123-5160-AFF1-BDAF5EB86A8A\\",\\n \\"JobId\\": \\"d12871a6-ebb2-41f3-8d74-d9f452bb****\\"\\n}","errorExample":""},{"type":"xml","example":"<DisableLoadBalancerIpv6InternetResponse>\\n <RequestId>7D866E37-1123-5160-AFF1-BDAF5EB86A8A</RequestId>\\n <JobId>d12871a6-ebb2-41f3-8d74-d9f452bb****</JobId>\\n</DisableLoadBalancerIpv6InternetResponse>","errorExample":""}]',
],
'DissociateAclsFromListener' => [
'summary' => '将访问控制从监听上解除关联。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'AclIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问控制策略Id',
'description' => 'ACL实例ID列表。一次最多支持将3个ACL实例与监听解除关联。',
'type' => 'array',
'items' => ['description' => 'ACL实例ID。', 'type' => 'string', 'required' => false, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'required' => true,
'maxItems' => 20,
],
],
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '监听实例ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-bpn0kn908w4nbw****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会将ACL与监听解除关联。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '将访问控制从监听上解除关联。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => '请求id', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
['errorCode' => 'LockFailed', 'errorMessage' => 'The specified resource lock failed.', 'description' => '指定的资源锁定失败。'],
],
404 => [
['errorCode' => 'ResourceNotAssociated.Acl', 'errorMessage' => 'The specified resource %s is not associated.', 'description' => '资源%s未被关联。'],
],
],
'title' => '解除关联访问控制和监听',
'description' => '**DissociateAclsFromListener**接口属于异步接口,即系统返回一个请求ID,但该ACL尚未成功解绑监听器,系统后台的解绑任务仍在进行。您可以调用[ListAclRelations](~~213618~~)查询ACL的解绑状态:'."\n"
.'- 当ACL处于**Dissociating**状态时,表示ACL正在解绑监听器中。'."\n"
.'- 当ACL处于**Dissociated**状态时,表示ACL已成功解绑监听器。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DissociateAclsFromListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876******\\"\\n}","errorExample":""},{"type":"xml","example":"<DissociateAclsFromListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</DissociateAclsFromListenerResponse>","errorExample":""}]',
],
'DissociateAdditionalCertificatesFromListener' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '监听ID。HTTPS和QUIC监听有效。', 'type' => 'string', 'required' => true, 'example' => 'lsn-5qnirjhpt7******'],
],
[
'name' => 'Certificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '证书列表',
'description' => '扩展证书列表。当前仅支持服务器证书。最多支持20个证书。',
'type' => 'array',
'items' => [
'description' => '扩展证书。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '证书Id', 'description' => '证书ID。', 'type' => 'string', 'required' => true, 'example' => '103705******'],
],
'required' => false,
],
'required' => true,
'maxItems' => 15,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会从HTTPS和QUIC监听移除扩展证书。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**HTTP 2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '从HTTPS和QUIC监听移除扩展证书。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.HttpListenerNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是不支持HTTP协议监听。'],
['errorCode' => 'OperationDenied.DefaultCertificateUsed', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是默认证书不允许解除关联。'],
['errorCode' => 'ResourceNotAssociated.Certificate', 'errorMessage' => 'The specified resource %s is not associated.', 'description' => '资源%s未被关联。'],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '解除监听和扩展证书关联',
'summary' => '将扩展证书与监听解除关联。',
'description' => '**DissociateAdditionalCertificatesFromListener**接口属于异步接口,即系统返回一个请求ID,但该扩展证书尚未解绑成功,系统后台的解绑任务仍在进行。您可以调用[ListListenerCertificates](~~214354~~)查询扩展证书的解绑状态:'."\n"
."\n"
.'- 当扩展证书状态处于**Dissociating**状态时,表示扩展证书正在解绑中。'."\n"
."\n"
.'- 当扩展证书状态处于**Dissociated**状态时,表示扩展证书解绑成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DissociateAdditionalCertificatesFromListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B******\\"\\n}","errorExample":""},{"type":"xml","example":"<DissociateAdditionalCertificatesFromListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</DissociateAdditionalCertificatesFromListenerResponse>","errorExample":""}]',
],
'EnableDeletionProtection' => [
'summary' => '开启指定资源的删除保护。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '资源ID,此处为ALB实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '开启删除保护功能。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '开启删除保护',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableDeletionProtection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<EnableDeletionProtectionResponse>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</EnableDeletionProtectionResponse>","errorExample":""}]',
],
'EnableLoadBalancerAccessLog' => [
'summary' => '开启指定负载均衡实例的访问日志。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '205',
'abilityTreeNodes' => ['FEATUREslb4A6LP3'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-bd6oylbckp6k9x****'],
],
[
'name' => 'LogProject',
'in' => 'query',
'schema' => ['title' => '日志Project', 'description' => '访问日志投递的日志项目。', 'type' => 'string', 'required' => true, 'example' => 'sls-setter'],
],
[
'name' => 'LogStore',
'in' => 'query',
'schema' => ['title' => '日志Store', 'description' => '访问日志投递的日志库。', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
'JobId' => ['title' => 'jobId of the request', 'description' => '异步任务ID。', 'type' => 'string', 'example' => 'ff7713ca-5818-4120-85e3-0bf9******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.AccessLogEnabled', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因访问日志已开启。'],
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '开启访问日志',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableLoadBalancerAccessLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0******\\",\\n \\"JobId\\": \\"ff7713ca-5818-4120-85e3-0bf9******\\"\\n}","errorExample":""},{"type":"xml","example":"<EnableLoadBalancerAccessLogResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</EnableLoadBalancerAccessLogResponse>","errorExample":""}]',
],
'EnableLoadBalancerIpv6Internet' => [
'summary' => '将双栈应用型负载均衡实例的IPv6私网变更为IPv6公网。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '预校验', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会开启负载均衡ALB的IPv6公网。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例ID', 'description' => '应用型负载均衡实例的ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o2cvudgo6rlqz7****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'BB920797-D70E-567F-8098-55A861DD7912'],
'JobId' => ['title' => '异步任务ID', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '4a6e3ad4-ef08-4ab1-b332-fa621cfe****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'],
['errorCode' => 'OperationDenied.NonDualStackInstance', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
['errorCode' => 'OperationDenied.Ipv6InternetInstance', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '开启负载均衡IPv6公网',
'description' => '### 前提条件'."\n"
."\n"
.'已创建双栈ALB实例,调用[CreateLoadBalancer](~~214358~~)接口将**AddressIpVersion**设置为**DualStack**。'."\n"
."\n"
.'> **AddressIpVersion**设置为**DualStack**时:'."\n"
.'> - **AddressType**设置为**Internet**表示ALB实例拥有IPv4公网和IPv6私网访问能力。'."\n"
.'> - **AddressType**设置为**Intranet**表示ALB实例拥有IPv4私网和IPv6私网访问能力。'."\n"
."\n"
.'### 使用说明'."\n"
.'- 变更成功后,**Ipv6AddressType**类型将变为**Internet**,ALB实例IPv6地址即具备公网能力,后续该ALB实例下变配或者弹性产生的新的弹性网卡ENI(Elastic Network Interface)也会自动开启公网能力,您可以通过调用[GetLoadBalancerAttribute](~~214362~~)接口查看**Ipv6AddressType**的取值。'."\n"
."\n"
.'- **EnableLoadBalancerIpv6Internet**接口属于异步接口,即系统返回一个请求ID,但该ALB实例的IPv6私网尚未变更为IPv6公网,系统后台的变更任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询ALB实例IPv6网络的变更状态:'."\n"
."\n"
.' - 当应用型负载均衡处于**Configuring**状态时,表示ALB实例的IPv6私网正在变更为IPv6公网。'."\n"
."\n"
.' - 当应用型负载均衡处于**Active**状态时,表示ALB实例的IPv6私网变更IPv6公网成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableLoadBalancerIpv6Internet',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"BB920797-D70E-567F-8098-55A861DD7912\\",\\n \\"JobId\\": \\"4a6e3ad4-ef08-4ab1-b332-fa621cfe****\\"\\n}","errorExample":""},{"type":"xml","example":"<EnableLoadBalancerIpv6InternetResponse>\\n <RequestId>BB920797-D70E-567F-8098-55A861DD7912</RequestId>\\n <JobId>4a6e3ad4-ef08-4ab1-b332-fa621cfe****</JobId>\\n</EnableLoadBalancerIpv6InternetResponse>","errorExample":""}]',
],
'GetHealthCheckTemplateAttribute' => [
'summary' => '查询指定健康检查模板详细信息。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '160',
'abilityTreeNodes' => ['FEATUREslb6RAQIN'],
],
'parameters' => [
[
'name' => 'HealthCheckTemplateId',
'in' => 'query',
'schema' => ['title' => '健康检查模板Id', 'description' => '健康检查模板ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hct-x4jazoyi6tvsq9****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'HealthCheckConnectPort' => ['title' => '端口', 'description' => '健康检查使用的端口。'."\n"
."\n"
.'取值范围: **0**~**65535**。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'HealthCheckHost' => ['title' => '域名', 'description' => '用于健康检查的域名。取值: '."\n"
."\n"
.'- **$SERVER_IP**:后端服务器的私网IP。当指定了IP或该参数未指定时,负载均衡会使用后端服务器的私网IP当做健康检查使用的域名。'."\n"
."\n"
.'- **domain**:域名长度为1~80字符,只能包含字母、数字、半角句号(.)和短划线(-)。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`设置为**HTTP**或**HTTPS**时该参数生效。', 'type' => 'string', 'example' => '$SERVER_IP'],
'HealthCheckCodes' => [
'title' => '状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的HTTP状态码。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http_2xx**(默认值)、 **http_3xx**、**http_4xx**和**http_5xx**,多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值,多个范围值使用半角逗号(,)隔开。'."\n"
."\n\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时该参数生效。', 'type' => 'string', 'example' => 'http_2xx'],
],
'HealthCheckHttpVersion' => ['title' => '版本', 'description' => '健康检查HTTP协议版本。'."\n"
."\n"
.'取值:**HTTP1.0**或**HTTP1.1**。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时该参数生效。', 'type' => 'string', 'example' => 'HTTP1.0'],
'HealthCheckTemplateId' => ['title' => '健康检查模板Id', 'description' => '健康检查模板ID。', 'type' => 'string', 'example' => 'hct-x4jazoyi6tvsq9****'],
'HealthCheckInterval' => ['title' => '间隔时间', 'description' => '健康检查的时间间隔。单位:秒。取值范围:**1~50**。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'HealthCheckMethod' => ['title' => '方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **HEAD**(默认值):HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时该参数生效。', 'type' => 'string', 'example' => 'GET'],
'HealthCheckPath' => ['title' => 'uri', 'description' => '用于健康检查的URL。'."\n"
."\n"
.'长度限制为1~80,只能使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)、and(&)这些字符以及扩展字符集`_;~!()*[]@$^:\',+`。'."\n"
.'URL必须以正斜线(/)开头。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时该参数生效。', 'type' => 'string', 'example' => '/test/index.html'],
'HealthCheckProtocol' => ['title' => '协议', 'description' => '健康检查采用的协议。取值:'."\n"
."\n"
.'- **HTTP**(默认值):通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'example' => 'HTTP'],
'HealthCheckTemplateName' => ['title' => '名称', 'description' => '健康检查模板名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。'."\n", 'type' => 'string', 'example' => 'HealthCheckTemplate1'],
'HealthCheckTimeout' => ['title' => '超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端服务器在指定的时间内没有正确响应,则判定为健康检查失败。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**300**。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'HealthyThreshold' => ['title' => '健康阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。'."\n"
."\n"
.'取值范围:**2**~**10**。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'DB1AFC33-DAE8-528E-AA4D-4A6A******'],
'UnhealthyThreshold' => ['title' => '不健康阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。'."\n"
."\n"
.'取值范围:**2**~**10**。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'example' => 'product'],
],
],
],
'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.HealthCheckTemplate', 'errorMessage' => 'Authentication has failed for HealthCheckTemplate.', 'description' => '对HealthCheckTemplate鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.HealthCheckTemplate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"HealthCheckConnectPort\\": 80,\\n \\"HealthCheckHost\\": \\"$SERVER_IP\\",\\n \\"HealthCheckCodes\\": [\\n \\"http_2xx\\"\\n ],\\n \\"HealthCheckHttpVersion\\": \\"HTTP1.0\\",\\n \\"HealthCheckTemplateId\\": \\"hct-x4jazoyi6tvsq9****\\",\\n \\"HealthCheckInterval\\": 3,\\n \\"HealthCheckMethod\\": \\"GET\\",\\n \\"HealthCheckPath\\": \\"/test/index.html\\",\\n \\"HealthCheckProtocol\\": \\"HTTP\\",\\n \\"HealthCheckTemplateName\\": \\"HealthCheckTemplate1\\",\\n \\"HealthCheckTimeout\\": 200,\\n \\"HealthyThreshold\\": 5,\\n \\"RequestId\\": \\"DB1AFC33-DAE8-528E-AA4D-4A6A******\\",\\n \\"UnhealthyThreshold\\": 5,\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ],\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\"\\n}","errorExample":""},{"type":"xml","example":"<GetHealthCheckTemplateAttributeResponse>\\n <HealthCheckConnectPort>80</HealthCheckConnectPort>\\n <HealthCheckHost>$SERVER_IP</HealthCheckHost>\\n <HealthCheckCodes>http_2xx,http_3xx</HealthCheckCodes>\\n <HealthCheckHttpVersion>HTTP1.0</HealthCheckHttpVersion>\\n <HealthCheckTemplateId>hct-x4jazoyi6tvsq9****</HealthCheckTemplateId>\\n <HealthCheckInterval>3</HealthCheckInterval>\\n <HealthCheckMethod>GET</HealthCheckMethod>\\n <HealthCheckPath>/test/index.html</HealthCheckPath>\\n <HealthCheckProtocol>HTTP</HealthCheckProtocol>\\n <HealthCheckTemplateName>HealthCheckTemplate1</HealthCheckTemplateName>\\n <HealthCheckTimeout>200</HealthCheckTimeout>\\n <HealthyThreshold>5</HealthyThreshold>\\n <RequestId>DB1AFC33-DAE8-528E-AA4D-4A6AABE71945</RequestId>\\n <UnhealthyThreshold>5</UnhealthyThreshold>\\n</GetHealthCheckTemplateAttributeResponse>","errorExample":""}]',
'title' => '查询健康检查模板详细信息',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetHealthCheckTemplateAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthchecktemplateId}'],
],
],
],
],
],
'GetListenerAttribute' => [
'summary' => '查询监听的详细信息。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '189',
'abilityTreeNodes' => ['FEATUREslbM7ALO6', 'FEATUREslbK3ZR0L', 'FEATUREslbN5IE4S'],
],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听标识', 'description' => '监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '查询监听的详细信息。',
'type' => 'object',
'properties' => [
'AclConfig' => [
'title' => 'ACL相关配置信息',
'description' => 'ACL配置结构。',
'type' => 'object',
'properties' => [
'AclRelations' => [
'title' => '监听绑定的访问策略组',
'description' => '监听绑定的访问策略组ID列表。',
'type' => 'array',
'items' => [
'description' => '监听绑定的访问策略组结构。',
'type' => 'object',
'properties' => [
'AclId' => ['title' => 'ACL标识', 'description' => '监听绑定的访问策略组ID。', 'type' => 'string', 'example' => 'acl-doc****'],
'Status' => ['title' => 'ACL与监听关联的状态', 'description' => 'ACL与监听关联的状态。取值:'."\n"
."\n"
.'- **Associating**:关联中。'."\n"
."\n"
.'- **Associated**:已关联。'."\n"
."\n"
.'- **Dissociating**:解关联中。', 'type' => 'string', 'example' => 'Associating'],
],
],
],
'AclType' => ['title' => '访问控制类型', 'description' => '访问控制类型。取值:'."\n"
."\n"
.'- **White**:仅转发来自所选访问控制策略组中设置的IP地址或地址段的请求,白名单适用于应用只允许特定IP访问的场景。设置白名单存在一定业务风险。一旦设置白名单,就只有白名单中的IP可以访问负载均衡监听。'."\n"
."\n"
.' 如果开启了白名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。'."\n"
."\n"
.'- **Black**:来自所选访问控制策略组中设置的IP地址或地址段的所有请求都不会转发,黑名单适用于应用只限制某些特定IP访问的场景。'."\n"
."\n"
.' 如果开启了黑名单访问,但访问策略组中没有添加任何IP,则负载均衡监听会转发全部请求。', 'type' => 'string', 'example' => 'White'],
],
],
'Certificates' => [
'title' => '监听默认服务器证书列表,N当前取值范围为1',
'description' => '证书列表。',
'type' => 'array',
'items' => [
'description' => '证书结构。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => '证书ID,当前仅支持服务器证书。', 'type' => 'string', 'example' => '123157*******'],
],
],
],
'CaCertificates' => [
'title' => '监听默认CA证书列表,N当前取值范围为1',
'description' => 'CA证书列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => 'CA证书ID。', 'type' => 'string', 'example' => '139a00*****'],
'Status' => ['title' => '证书状态', 'description' => '证书状态。', 'type' => 'string', 'example' => 'Associated'],
'IsDefault' => ['title' => '是否为默认证书', 'description' => '是否为默认证书。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
'CaEnabled' => ['title' => '是否开启双向认证', 'description' => '是否开启双向认证。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'false'],
'DefaultActions' => [
'title' => '默认动作',
'description' => '默认规则动作列表。',
'type' => 'array',
'items' => [
'description' => '默认规则动作结构。',
'type' => 'object',
'properties' => [
'ForwardGroupConfig' => [
'title' => '转发到服务器组',
'description' => '转发动作对应的配置,类型为**ForwardGroup**时有效。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '服务器组列表',
'description' => '转发目标服务器组。',
'type' => 'array',
'items' => [
'description' => '转发目标服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'example' => 'sgp-i5qt20******'],
],
],
],
],
],
'Type' => ['title' => '类型', 'description' => '动作类型。'."\n"
."\n"
.'取值:**ForwardGroup**,表示转发至多个服务器组。', 'type' => 'string', 'example' => 'ForwardGroup'],
],
],
],
'GzipEnabled' => ['title' => '是否开启Gzip压缩', 'description' => '是否开启Gzip压缩,对特定文件类型进行压缩。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
'Http2Enabled' => ['title' => '是否开启HTTP/2特性', 'description' => '是否开启HTTP/2特性。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'IdleTimeout' => ['title' => '连接空闲超时时间', 'description' => '指定连接空闲超时时间。单位:秒。'."\n"
."\n"
.'如果在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到下一次请求来临时重新建立新的连接。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ListenerDescription' => ['title' => '监听描述', 'description' => '自定义监听名称。', 'type' => 'string', 'example' => 'HTTP_80'],
'ListenerId' => ['title' => '监听标识', 'description' => '监听ID。', 'type' => 'string', 'example' => 'lsn-o4u54y73wq7b******'],
'ListenerPort' => ['title' => '监听端口', 'description' => '负载均衡实例前端使用的端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ListenerProtocol' => ['title' => '监听协议', 'description' => '监听协议。取值:**HTTP**、**HTTPS**或**QUIC**。', 'type' => 'string', 'example' => 'HTTP'],
'ListenerStatus' => ['title' => '监听状态', 'description' => '当前监听的状态。取值:'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Running**:运行中。'."\n"
."\n"
.'- **Configuring**:配置中。'."\n"
."\n"
.'- **Stopped**:已停止。', 'type' => 'string', 'example' => 'Running'],
'LoadBalancerId' => ['title' => '负载均衡标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-bd6oylbckp6k9x****'],
'LogConfig' => [
'title' => '监听访问日志相关配置',
'description' => '日志配置信息。',
'type' => 'object',
'properties' => [
'AccessLogRecordCustomizedHeadersEnabled' => ['title' => '访问日志是否开启携带自定义Header', 'description' => '访问日志是否开启携带自定义头字段。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
'AccessLogTracingConfig' => [
'title' => '访问日志Xtrace相关的配置',
'description' => '访问日志Xtrace相关的配置信息。',
'type' => 'object',
'properties' => [
'TracingEnabled' => ['title' => 'Xtrace功能状态', 'description' => 'Xtrace功能状态。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 只有实例访问日志开关(AccessLogEnabled)打开时,才能设置为**true**。', 'type' => 'boolean', 'example' => 'true'],
'TracingSample' => ['title' => 'Xtrace功能状态', 'description' => 'Xtrace的采样率。取值:1~10000。'."\n"
."\n"
.'> **TracingEnabled**为**true**时,此值有效。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'TracingType' => ['title' => 'xtrace的类型', 'description' => 'xtrace的类型。合法取值为**Zipkin**。'."\n"
."\n"
.'> **TracingEnabled**为**true**时,此值有效。', 'type' => 'string', 'example' => 'Zipkin'],
],
],
],
],
'QuicConfig' => [
'title' => 'HTTPS启用QUIC时相关属性',
'description' => '启用关联QUIC监听时的配置信息。',
'type' => 'object',
'properties' => [
'QuicListenerId' => ['title' => '需要关联的QUIC监听ID,HTTPS监听时有效,QuicUpgradeEnabled为true时必选', 'description' => '需要关联的QUIC监听ID。**QuicUpgradeEnabled**为**true**时必选。HTTPS监听时有效。'."\n"
."\n"
.'> 原始监听和关联的QUIC监听必须属于同一个ALB实例,并且此QUIC监听之前没有被关联过。', 'type' => 'string', 'example' => 'lsn-ek6ad66t****'],
'QuicUpgradeEnabled' => ['title' => '是否开启quic升级,HTTPS监听时有效', 'description' => '是否开启QUIC升级。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听时有效。', 'type' => 'boolean', 'example' => 'true'],
],
],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF******'],
'RequestTimeout' => ['title' => '请求超时时间', 'description' => '指定请求超时时间。单位:秒。'."\n"
."\n"
.'如果在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,给客户端返回`HTTP 504`错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '34'],
'SecurityPolicyId' => ['title' => '安全策略', 'description' => '安全策略。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'tls_cipher_policy_1_1'],
'XForwardedForConfig' => [
'title' => 'XForward字段相关的配置',
'description' => 'XForward字段配置信息。',
'type' => 'object',
'properties' => [
'XForwardedForClientCertClientVerifyAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertClientVerifyEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称。只有当**XForwardedForClientCertClientVerifyEnabled**的值为**true**的时候,此值才会生效,否则该值不会生效。'."\n"
."\n"
.'取值限制:长度为1\\~40字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_client-verify-alias_123456'],
'XForwardedForClientCertClientVerifyEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-clientverify 头字段获取对访问负载均衡实例客户端证书的校验结果。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-clientverify`头字段获取访问负载均衡实例客户端证书的校验结果。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertFingerprintAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertFingerprintEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertFingerprintEnabled**的值为**true**时生效。'."\n"
."\n"
.'取值限制:长度为1\\~40字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_finger-print-alias_123456'],
'XForwardedForClientCertFingerprintEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-fingerprint 头字段获取访问负载均衡实例客户端证书的指纹取值,HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-fingerprint`头字段获取访问负载均衡实例客户端证书的指纹取值。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertIssuerDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertIssuerDNEnabled的值为‘On’的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertIssuerDNEnabled**的值为**true**的时候,此值才会生效。'."\n"
."\n"
.'取值限制:长度为1\\~40字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_issue-dn-alias_123456'],
'XForwardedForClientCertIssuerDNEnabled' => ['title' => '是否通过 X-Forwarded-Clientcert-issuerdn 头字段获取访问负载均衡实例客户端证书的发行者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-issuerdn`头字段获取访问负载均衡实例客户端证书的发行者信息。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertSubjectDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertSubjectDNEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertSubjectDNEnabled的**值为**true**时,此值才会生效。'."\n"
."\n"
.'取值限制:长度为1\\~40字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_subject-dn-alias_123456'],
'XForwardedForClientCertSubjectDNEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-subjectdn 头字段获取访问负载均衡实例客户端证书的所有者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-subjectdn`头字段获取访问负载均衡实例客户端证书的所有者信息。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientSrcPortEnabled' => ['title' => '是否通过X-Forwarded-Client-Port 头字段获取访问负载均衡实例客户端的端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Client-Port`头字段获取访问负载均衡实例客户端的端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForEnabled' => ['title' => '是否开启通过X-Forwarded-For头字段获取来访者真实 IP', 'description' => '是否通过`X-Forwarded-For`头字段获取来访者真实IP。取值:'."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 1. 配置**true**,**XForwardedForProcessingMode**默认取值**append**,支持修改为**remove**。'."\n"
.'> 2. 配置**false**,将请求发送至后端服务之前保留`X-Forwarded-For`头字段,不做额外处理。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForProcessingMode' => ['description' => '处理`X-Forwarded-For`头字段的模式。只有当**XForwardedForEnabled**为**true**时,此值才会生效。取值:'."\n"
.'- **append**(默认值):附加。'."\n"
.'- **remove**:删除。'."\n"
."\n"
.'> 1. 配置**append**,将请求发送至后端服务之前把最后一跳IP加入`X-Forwarded-For`头字段。'."\n"
.'> 2. 配置**remove**,将请求发送至后端服务之前删除`X-Forwarded-For`标头,无论请求是否携带`X-Forwarded-For`头字段。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'append'],
'XForwardedForProtoEnabled' => ['title' => '是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。', 'description' => '是否通过`X-Forwarded-Proto`头字段获取负载均衡实例的监听协议。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForSLBIdEnabled' => ['title' => '是否通过SLB-ID头字段获取负载均衡实例ID。', 'description' => '是否通过`SLB-ID`头字段获取负载均衡实例ID。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForSLBPortEnabled' => ['title' => '是否通过X-Forwarded-Port 头字段获取负载均衡实例的监听端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Port`头字段获取负载均衡实例的监听端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientSourceIpsEnabled' => ['description' => '是否允许ALB从X-Forwarded-For头字段中查找真实客户端IP。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'false'],
'XForwardedForClientSourceIpsTrusted' => ['description' => '指定可信的代理IP。'."\n"
."\n"
.'应用型负载均衡ALB会从后往前遍历`X-Forwarded-For`,选取第一个不在可信IP列表中的IP作为真实的客户端IP,该IP会被用于源IP限速。', 'type' => 'string', 'example' => '10.1.1.0/24'],
'XForwardedForHostEnabled' => ['description' => '是否开启通过`X-Forwarded-Host`头字段获取访问负载均衡实例客户端的域名。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'false'],
],
],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '查询监听器的属性',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetListenerAttribute',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'acs:ResourceTag', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AclConfig\\": {\\n \\"AclRelations\\": [\\n {\\n \\"AclId\\": \\"acl-doc****\\",\\n \\"Status\\": \\"Associating\\"\\n }\\n ],\\n \\"AclType\\": \\"White\\"\\n },\\n \\"Certificates\\": [\\n {\\n \\"CertificateId\\": \\"123157*******\\"\\n }\\n ],\\n \\"CaCertificates\\": [\\n {\\n \\"CertificateId\\": \\"139a00*****\\",\\n \\"Status\\": \\"Associated\\",\\n \\"IsDefault\\": true\\n }\\n ],\\n \\"CaEnabled\\": false,\\n \\"DefaultActions\\": [\\n {\\n \\"ForwardGroupConfig\\": {\\n \\"ServerGroupTuples\\": [\\n {\\n \\"ServerGroupId\\": \\"sgp-i5qt20******\\"\\n }\\n ]\\n },\\n \\"Type\\": \\"ForwardGroup\\"\\n }\\n ],\\n \\"GzipEnabled\\": true,\\n \\"Http2Enabled\\": true,\\n \\"IdleTimeout\\": 2,\\n \\"ListenerDescription\\": \\"HTTP_80\\",\\n \\"ListenerId\\": \\"lsn-o4u54y73wq7b******\\",\\n \\"ListenerPort\\": 80,\\n \\"ListenerProtocol\\": \\"HTTP\\",\\n \\"ListenerStatus\\": \\"Running\\",\\n \\"LoadBalancerId\\": \\"alb-bd6oylbckp6k9x****\\",\\n \\"LogConfig\\": {\\n \\"AccessLogRecordCustomizedHeadersEnabled\\": true,\\n \\"AccessLogTracingConfig\\": {\\n \\"TracingEnabled\\": true,\\n \\"TracingSample\\": 100,\\n \\"TracingType\\": \\"Zipkin\\"\\n }\\n },\\n \\"QuicConfig\\": {\\n \\"QuicListenerId\\": \\"lsn-ek6ad66t****\\",\\n \\"QuicUpgradeEnabled\\": true\\n },\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF******\\",\\n \\"RequestTimeout\\": 34,\\n \\"SecurityPolicyId\\": \\"tls_cipher_policy_1_1\\",\\n \\"XForwardedForConfig\\": {\\n \\"XForwardedForClientCertClientVerifyAlias\\": \\"test_client-verify-alias_123456\\",\\n \\"XForwardedForClientCertClientVerifyEnabled\\": true,\\n \\"XForwardedForClientCertFingerprintAlias\\": \\"test_finger-print-alias_123456\\",\\n \\"XForwardedForClientCertFingerprintEnabled\\": true,\\n \\"XForwardedForClientCertIssuerDNAlias\\": \\"test_issue-dn-alias_123456\\",\\n \\"XForwardedForClientCertIssuerDNEnabled\\": true,\\n \\"XForwardedForClientCertSubjectDNAlias\\": \\"test_subject-dn-alias_123456\\",\\n \\"XForwardedForClientCertSubjectDNEnabled\\": true,\\n \\"XForwardedForClientSrcPortEnabled\\": true,\\n \\"XForwardedForEnabled\\": true,\\n \\"XForwardedForProcessingMode\\": \\"append\\",\\n \\"XForwardedForProtoEnabled\\": true,\\n \\"XForwardedForSLBIdEnabled\\": true,\\n \\"XForwardedForSLBPortEnabled\\": true,\\n \\"XForwardedForClientSourceIpsEnabled\\": false,\\n \\"XForwardedForClientSourceIpsTrusted\\": \\"10.1.1.0/24\\",\\n \\"XForwardedForHostEnabled\\": false\\n },\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetListenerAttributeResponse>\\n <AclConfig>\\n <AclRelations>\\n <AclId>acl-doc****</AclId>\\n <Status>Associating</Status>\\n </AclRelations>\\n <AclType>White</AclType>\\n </AclConfig>\\n <Certificates>\\n <CertificateId>12315790212_166f8204689_1714763408_70998****</CertificateId>\\n </Certificates>\\n <CaCertificates>\\n <CertificateId>139a00604bd-cn-east-hangzho****</CertificateId>\\n <Status>Associated</Status>\\n <IsDefault>true</IsDefault>\\n </CaCertificates>\\n <CaEnabled>false</CaEnabled>\\n <DefaultActions>\\n <ForwardGroupConfig>\\n <ServerGroupTuples>\\n <ServerGroupId>rsp-cige6j****</ServerGroupId>\\n </ServerGroupTuples>\\n </ForwardGroupConfig>\\n <Type>ForwardGroup</Type>\\n </DefaultActions>\\n <GzipEnabled>true</GzipEnabled>\\n <Http2Enabled>true</Http2Enabled>\\n <IdleTimeout>2</IdleTimeout>\\n <ListenerDescription>HTTP_80</ListenerDescription>\\n <ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>\\n <ListenerPort>80</ListenerPort>\\n <ListenerProtocol>HTTP</ListenerProtocol>\\n <ListenerStatus>Running</ListenerStatus>\\n <LoadBalancerId>alb-bd6oylbckp6k9x****</LoadBalancerId>\\n <LogConfig>\\n <AccessLogRecordCustomizedHeadersEnabled>true</AccessLogRecordCustomizedHeadersEnabled>\\n <AccessLogTracingConfig>\\n <TracingEnabled>true</TracingEnabled>\\n <TracingSample>100</TracingSample>\\n <TracingType>Zipkin</TracingType>\\n </AccessLogTracingConfig>\\n </LogConfig>\\n <QuicConfig>\\n <QuicListenerId>lsn-333</QuicListenerId>\\n <QuicUpgradeEnabled>true</QuicUpgradeEnabled>\\n </QuicConfig>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <RequestTimeout>34</RequestTimeout>\\n <SecurityPolicyId>tls_cipher_policy_1_1</SecurityPolicyId>\\n <XForwardedForConfig>\\n <XForwardedForClientCertClientVerifyAlias>test_client-verify-alias_123456</XForwardedForClientCertClientVerifyAlias>\\n <XForwardedForClientCertClientVerifyEnabled>true</XForwardedForClientCertClientVerifyEnabled>\\n <XForwardedForClientCertFingerprintAlias>test_finger-print-alias_123456</XForwardedForClientCertFingerprintAlias>\\n <XForwardedForClientCertFingerprintEnabled>true</XForwardedForClientCertFingerprintEnabled>\\n <XForwardedForClientCertIssuerDNAlias>test_issue-dn-alias_123456</XForwardedForClientCertIssuerDNAlias>\\n <XForwardedForClientCertIssuerDNEnabled>true</XForwardedForClientCertIssuerDNEnabled>\\n <XForwardedForClientCertSubjectDNAlias>test_subject-dn-alias_123456</XForwardedForClientCertSubjectDNAlias>\\n <XForwardedForClientCertSubjectDNEnabled>true</XForwardedForClientCertSubjectDNEnabled>\\n <XForwardedForClientSrcPortEnabled>true</XForwardedForClientSrcPortEnabled>\\n <XForwardedForEnabled>true</XForwardedForEnabled>\\n <XForwardedForProtoEnabled>true</XForwardedForProtoEnabled>\\n <XForwardedForSLBIdEnabled>true</XForwardedForSLBIdEnabled>\\n <XForwardedForSLBPortEnabled>true</XForwardedForSLBPortEnabled>\\n <XForwardedForClientSourceIpsEnabled>false</XForwardedForClientSourceIpsEnabled>\\n <XForwardedForClientSourceIpsTrusted>10.1.1.0/24</XForwardedForClientSourceIpsTrusted>\\n </XForwardedForConfig>\\n</GetListenerAttributeResponse>","errorExample":""}]',
],
'GetListenerHealthStatus' => [
'summary' => '查询监听及其转发规则的健康检查状态。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslb6RAQIN', 'FEATUREslb52757O', 'FEATUREslbH8SCXY', 'FEATUREslbR7E3ND'],
],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '实例的监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'IncludeRule',
'in' => 'query',
'schema' => ['title' => '是否包含转发规则健康检查结果', 'description' => '是否包含转发规则的检查结果。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => '分批次查询时每次显示的最大条目数。取值范围:**1**~**30**,默认值为**20**。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '查询监听及其相应配置的转发规则的健康检查状态。',
'type' => 'object',
'properties' => [
'ListenerHealthStatus' => [
'title' => '监听健康检查结果',
'description' => '监听的服务器组健康检查状态列表。',
'type' => 'array',
'items' => [
'description' => '监听的服务器组健康检查状态结构。',
'type' => 'object',
'properties' => [
'ListenerId' => ['title' => '监听Id', 'description' => '实例的监听ID。', 'type' => 'string', 'example' => 'lsn-o4u54y73wq7b******'],
'ListenerPort' => ['title' => '监听的端口号', 'description' => '监听的端口号。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ListenerProtocol' => ['title' => '监听的协议', 'description' => '监听的协议。', 'type' => 'string', 'example' => 'http'],
'ServerGroupInfos' => [
'title' => '服务器组健康检查结果',
'description' => '服务器组信息。',
'type' => 'array',
'items' => [
'description' => '服务器组信息。',
'type' => 'object',
'properties' => [
'HealthCheckEnabled' => ['title' => '健康检查开启/关闭', 'description' => '健康检查开启状态。取值: **on**,表示开启健康检查。', 'type' => 'string', 'example' => 'on'],
'NonNormalServers' => [
'title' => '处于非正常状态的后端服务器',
'description' => '非正常状态的后端服务器列表。',
'type' => 'array',
'items' => [
'description' => '非正常状态的后端服务器列表。',
'type' => 'object',
'properties' => [
'Port' => ['title' => '后端服务器端口', 'description' => '后端服务器端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
'Reason' => [
'title' => 'status为非正常状态时的详细异常原因',
'description' => '非正常状态的原因。',
'type' => 'object',
'properties' => [
'ActualResponse' => ['title' => '后端实际的返回码信息', 'description' => '后端服务器实际的返回码信息,例如,**302**。'."\n"
."\n"
.'> **ReasonCode**为**RESPONSE_MISMATCH**才该返回值。', 'type' => 'string', 'example' => '302'],
'ExpectedResponse' => ['title' => '用户预期的后端返回码信息', 'description' => '用户预期的后端服务器返回码信息。'."\n"
."\n"
.'取值:**HTTP\\_2xx**、**HTTP\\_3xx**、**HTTP\\_4xx**和**HTTP\\_5xx**。多个返回码之间用半角逗号(,)分隔。'."\n"
."\n"
.'> **ReasonCode**为**RESPONSE_MISMATCH**才返回该值。', 'type' => 'string', 'example' => 'HTTP_2xx'],
'ReasonCode' => ['title' => '失败reasonCode', 'description' => '**Status**为异常状态时的详细原因。'."\n"
.'目前仅HTTP和HTTPS的监听与转发规则支持查看异常状态原因:'."\n"
.'- **CONNECT_TIMEOUT**:负载均衡健康检查时向后端服务器建立连接超时。'."\n"
."\n"
.'- **CONNECT_FAILED**:负载均衡健康检查时向后端服务器建立连接失败。'."\n"
."\n"
.'- **RECV_RESPONSE_FAILED**:负载均衡健康检查时从后端服务器接收响应失败。'."\n"
."\n"
.'- **RECV_RESPONSE_TIMEOUT**:负载均衡健康检查时从后端服务器接收响应超时。'."\n"
."\n"
.'- **SEND_REQUEST_FAILED**:负载均衡健康检查时向后端服务器发送请求失败。'."\n"
."\n"
.'- **SEND_REQUEST_TIMEOUT**:负载均衡健康检查时向后端服务器发送请求超时。'."\n"
."\n"
.'- **RESPONSE_FORMAT_ERROR**:负载均衡健康检查时从后端服务器接收响应格式错误。'."\n"
."\n"
.'- **RESPONSE_MISMATCH**:负载均衡健康检查时从后端服务器接收的响应码与预期配置返回码不一致。', 'type' => 'string', 'example' => 'RESPONSE_MISMATCH'],
],
],
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。', 'type' => 'string', 'example' => 'i-uf62h8v******'],
'ServerIp' => ['title' => '后端服务器Ip', 'description' => '后端服务器IP。', 'type' => 'string', 'example' => '192.168.8.10'],
'Status' => ['title' => '健康检查状态', 'description' => '健康检查状态。取值:'."\n"
."\n"
.'- **Initial**:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。'."\n"
."\n"
.'- **Unhealthy**:异常,表示连续上报不健康的状态。'."\n"
."\n"
.'- **Unused**:未使用,表示后端服务器的权重为 0 或当您设置关闭跨 AZ 负载均衡,且后端服务器与 ALB 不在相同可用区。'."\n"
."\n"
.'- **Unavailable**:未开启,表示未开启健康检查。', 'type' => 'string', 'example' => 'Initial'],
],
],
],
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '关联的服务器组ID。', 'type' => 'string', 'example' => 'sgp-8ilqs4axp6******'],
'ActionType' => ['title' => '服务器组使用类型', 'description' => '服务器组使用类型。取值:'."\n"
."\n"
.'- **ForwardGroup**:转发至服务器组。'."\n"
.'- **TrafficMirror**:流量镜像至服务器组。', 'type' => 'string', 'example' => 'TrafficMirror'],
],
],
],
],
],
],
'RequestId' => ['title' => '请求Id', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876F******'],
'RuleHealthStatus' => [
'title' => '转发规则健康检查结果',
'description' => '转发规则的健康状态列表。',
'type' => 'array',
'items' => [
'description' => '转发规则的健康状态结构。',
'type' => 'object',
'properties' => [
'RuleId' => ['title' => '转发规则ID', 'description' => '转发规则ID。', 'type' => 'string', 'example' => 'rule-hp34s2h0xx1ht4nwo****'],
'ServerGroupInfos' => [
'title' => '服务器组健康检查结果',
'description' => '服务器组列表。',
'type' => 'array',
'items' => [
'description' => '服务器组结构。',
'type' => 'object',
'properties' => [
'HealthCheckEnabled' => ['title' => '健康检查开启/关闭', 'description' => '健康检查开启状态。取值: **on**,表示开启健康检查。', 'type' => 'string', 'example' => 'on'],
'NonNormalServers' => [
'title' => '处于非正常状态的后端服务器',
'description' => '非正常状态的后端服务器列表。',
'type' => 'array',
'items' => [
'description' => '非正常状态的后端服务器列表。',
'type' => 'object',
'properties' => [
'Port' => ['title' => '后端服务器端口', 'description' => '后端服务器端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
'Reason' => [
'title' => 'status为非正常状态时的详细异常原因',
'description' => '非正常状态的原因。',
'type' => 'object',
'properties' => [
'ActualResponse' => ['title' => '后端实际的返回码信息', 'description' => '后端服务器实际的返回码信息,例如,**302**。'."\n"
."\n"
.'> **ReasonCode**为**RESPONSE_MISMATCH**才有值。', 'type' => 'string', 'example' => '302'],
'ExpectedResponse' => ['title' => '用户预期的后端返回码信息', 'description' => '用户预期的后端服务器返回码信息。'."\n"
."\n"
.'取值:**HTTP\\_2xx**、**HTTP\\_3xx**、**HTTP\\_4xx**和**HTTP\\_5xx**。多个返回码之间用半角逗号(,)分隔。'."\n"
."\n"
.'> **ReasonCode**为**RESPONSE_MISMATCH**才有值。', 'type' => 'string', 'example' => 'HTTP_2xx'],
'ReasonCode' => ['title' => '失败reasonCode', 'description' => '**Status**为异常状态时的详细原因。'."\n"
.'目前仅HTTP和HTTPS的监听与转发规则支持查看异常状态原因:'."\n"
.'- **CONNECT_TIMEOUT**:负载均衡健康检查时向后端服务器建立连接超时。'."\n"
."\n"
.'- **CONNECT_FAILED**:负载均衡健康检查时向后端服务器建立连接失败。'."\n"
."\n"
.'- **RECV_RESPONSE_FAILED**:负载均衡健康检查时从后端服务器接收响应失败。'."\n"
."\n"
.'- **RECV_RESPONSE_TIMEOUT**:负载均衡健康检查时从后端服务器接收响应超时。'."\n"
."\n"
.'- **SEND_REQUEST_FAILED**:负载均衡健康检查时向后端服务器发送请求失败。'."\n"
."\n"
.'- **SEND_REQUEST_TIMEOUT**:负载均衡健康检查时向后端服务器发送请求超时。'."\n"
."\n"
.'- **RESPONSE_FORMAT_ERROR**:负载均衡健康检查时从后端服务器接收响应格式错误。'."\n"
."\n"
.'- **RESPONSE_MISMATCH**:负载均衡健康检查时从后端服务器接收的响应码与预期配置返回码不一致。', 'type' => 'string', 'example' => 'RESPONSE_MISMATCH'],
],
],
'ServerId' => ['title' => '后端服务器Id', 'description' => '后端服务器ID。', 'type' => 'string', 'example' => 'i-uf62h8v******'],
'ServerIp' => ['title' => '后端服务器ID', 'description' => '后端服务器组IP。', 'type' => 'string', 'example' => '192.168.2.11'],
'Status' => ['title' => '健康检查状态', 'description' => '健康检查状态。取值:'."\n"
."\n"
.'- **Initial**:初始化中,表示负载均衡实例配置了健康检查,但查不到数据。'."\n"
."\n"
.'- **Unhealthy**:异常,表示连续上报不健康的状态。'."\n"
."\n"
.'- **Unused**:未使用,表示后端服务器的权重为0或当您设置关闭跨AZ负载均衡,且后端服务器与ALB不在相同可用区。'."\n"
."\n"
.'- **Unavailable**:未开启,表示未开启健康检查。', 'type' => 'string', 'example' => 'Initial'],
],
],
],
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '关联的服务器组ID。', 'type' => 'string', 'example' => 'sgp-8ilqs4axp6******'],
'ActionType' => ['title' => '服务器组使用类型', 'description' => '服务器组使用类型。', 'type' => 'string', 'example' => 'TrafficMirror'],
],
],
],
],
],
],
'NextToken' => ['title' => '下一页标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ListenerHealthStatus\\": [\\n {\\n \\"ListenerId\\": \\"lsn-o4u54y73wq7b******\\",\\n \\"ListenerPort\\": 80,\\n \\"ListenerProtocol\\": \\"http\\",\\n \\"ServerGroupInfos\\": [\\n {\\n \\"HealthCheckEnabled\\": \\"on\\",\\n \\"NonNormalServers\\": [\\n {\\n \\"Port\\": 90,\\n \\"Reason\\": {\\n \\"ActualResponse\\": \\"302\\",\\n \\"ExpectedResponse\\": \\"HTTP_2xx\\",\\n \\"ReasonCode\\": \\"RESPONSE_MISMATCH\\"\\n },\\n \\"ServerId\\": \\"i-uf62h8v******\\",\\n \\"ServerIp\\": \\"192.168.8.10\\",\\n \\"Status\\": \\"Initial\\"\\n }\\n ],\\n \\"ServerGroupId\\": \\"sgp-8ilqs4axp6******\\",\\n \\"ActionType\\": \\"TrafficMirror\\"\\n }\\n ]\\n }\\n ],\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876F******\\",\\n \\"RuleHealthStatus\\": [\\n {\\n \\"RuleId\\": \\"rule-hp34s2h0xx1ht4nwo****\\",\\n \\"ServerGroupInfos\\": [\\n {\\n \\"HealthCheckEnabled\\": \\"on\\",\\n \\"NonNormalServers\\": [\\n {\\n \\"Port\\": 90,\\n \\"Reason\\": {\\n \\"ActualResponse\\": \\"302\\",\\n \\"ExpectedResponse\\": \\"HTTP_2xx\\",\\n \\"ReasonCode\\": \\"RESPONSE_MISMATCH\\"\\n },\\n \\"ServerId\\": \\"i-uf62h8v******\\",\\n \\"ServerIp\\": \\"192.168.2.11\\",\\n \\"Status\\": \\"Initial\\"\\n }\\n ],\\n \\"ServerGroupId\\": \\"sgp-8ilqs4axp6******\\",\\n \\"ActionType\\": \\"TrafficMirror\\"\\n }\\n ]\\n }\\n ],\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\"\\n}","errorExample":""},{"type":"xml","example":"<GetListenerHealthStatusResponse>\\n <ListenerHealthStatus>\\n <ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>\\n <ListenerPort>80</ListenerPort>\\n <ListenerProtocol>http</ListenerProtocol>\\n <ServerGroupInfos>\\n <HealthCheckEnabled>on</HealthCheckEnabled>\\n <NonNormalServers>\\n <Port>90</Port>\\n <Reason>\\n <ActualResponse>302</ActualResponse>\\n <ExpectedResponse>HTTP_2xx</ExpectedResponse>\\n <ReasonCode>RESPONSE_MISMATCH</ReasonCode>\\n </Reason>\\n <ServerId>rg-bp1bfa08ex*****</ServerId>\\n <ServerIp>192.168.8.10</ServerIp>\\n <Status>Initial</Status>\\n </NonNormalServers>\\n <ServerGroupId>vsp-bp1qjwo61pqz3ahltv****</ServerGroupId>\\n <ActionType>TrafficMirror</ActionType>\\n </ServerGroupInfos>\\n </ListenerHealthStatus>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n <RuleHealthStatus>\\n <RuleId>rule-hp34s2h0xx1ht4nwo****</RuleId>\\n <ServerGroupInfos>\\n <HealthCheckEnabled>on</HealthCheckEnabled>\\n <NonNormalServers>\\n <Port>90</Port>\\n <Reason>\\n <ActualResponse>302</ActualResponse>\\n <ExpectedResponse>HTTP_2xx</ExpectedResponse>\\n <ReasonCode>RESPONSE_MISMATCH</ReasonCode>\\n </Reason>\\n <ServerId>rg-bp1bfa08ex****</ServerId>\\n <ServerIp>192.168.2.11</ServerIp>\\n <Status>Initial</Status>\\n </NonNormalServers>\\n <ServerGroupId>vsp-bp1qjwo61pqz3ahlt****</ServerGroupId>\\n <ActionType>TrafficMirror</ActionType>\\n </ServerGroupInfos>\\n </RuleHealthStatus>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n</GetListenerHealthStatusResponse>","errorExample":""}]',
'title' => '查询健康检查',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetListenerHealthStatus',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'GetLoadBalancerAttribute' => [
'summary' => '查询指定负载均衡实例的详细信息。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '200',
'abilityTreeNodes' => ['FEATUREslbM7ALO6', 'FEATUREslbK3ZR0L', 'FEATUREslbN5IE4S'],
],
'parameters' => [
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '应用型负载均衡实例详细配置信息。',
'type' => 'object',
'properties' => [
'AccessLogConfig' => [
'title' => '访问日志属性',
'description' => '访问日志配置。',
'type' => 'object',
'properties' => [
'LogProject' => ['title' => '访问日志投递的logProject', 'description' => '日志项目。', 'type' => 'string', 'example' => 'sls-setter'],
'LogStore' => ['title' => '删除保护开启时间', 'description' => '日志存储。'."\n"
."\n", 'type' => 'string', 'example' => 'test'],
],
],
'AddressAllocatedMode' => ['title' => '地址分配方式', 'description' => '地址模式。取值 :'."\n"
."\n"
.'- **Fixed**:固定IP模式,表示使用固定的IP地址。'."\n"
."\n"
.'- **Dynamic**:动态IP模式,表示在每个可用区动态分配IP地址。', 'type' => 'string', 'example' => 'Dynamic'],
'AddressType' => ['title' => '地址类型', 'description' => '应用型负载均衡实例的网络地址类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。'."\n"
."\n", 'type' => 'string', 'example' => 'Intranet'],
'BandwidthPackageId' => ['title' => '带宽包ID', 'description' => '公网类型实例关联的共享带宽包ID。', 'type' => 'string', 'example' => 'cbwp-bp1vevu8h3ieh****'],
'CreateTime' => ['title' => '资源创建时间', 'description' => '资源创建时间,使用格林威治时间,格式为`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'example' => '2022-07-02T02:49:05Z'],
'DNSName' => ['title' => 'DNS域名', 'description' => 'DNS域名。', 'type' => 'string', 'example' => 'alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com'],
'DeletionProtectionConfig' => [
'title' => '负载均衡删除保护相关信息',
'description' => '删除保护配置。',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '删除保护状态', 'description' => '删除保护状态,取值:'."\n"
."\n"
.'- **true**:开启状态。'."\n"
."\n"
.'- **false**:关闭状态。', 'type' => 'boolean', 'example' => 'true'],
'EnabledTime' => ['title' => '删除保护开启时间', 'description' => '删除保护开启时间,使用格林威治时间,格式为`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'example' => '2022-08-02T02:49:05Z'],
],
],
'LoadBalancerBillingConfig' => [
'title' => '计费相关属性',
'description' => '应用型负载均衡实例计费配置。',
'type' => 'object',
'properties' => [
'PayType' => ['title' => '实例的计费类型', 'description' => '计费类型。'."\n"
."\n"
.'取值: **PostPay**表示按量计费。', 'type' => 'string', 'example' => 'PostPay', 'default' => 'PostPay'],
],
],
'LoadBalancerBussinessStatus' => ['title' => '实例业务状态', 'description' => '应用型负载均衡的业务状态。取值:'."\n"
."\n"
.'- **Abnormal**:异常状态。'."\n"
."\n"
.'- **Normal**:正常状态。', 'type' => 'string', 'example' => 'Normal'],
'LoadBalancerEdition' => ['title' => '负载均衡的版本', 'description' => '应用型负载均衡的版本,不同版本有不同功能限制和计费策略。取值:'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
."\n"
.'- **Standard**:标准版。'."\n"
."\n"
.'- **StandardWithWaf**:WAF增强版。', 'type' => 'string', 'example' => 'Standard'],
'LoadBalancerId' => ['title' => '负载均衡标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-o9ulmq5hgn68jk****'],
'LoadBalancerName' => ['title' => '实例名称', 'description' => '实例名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。', 'type' => 'string', 'example' => 'alb1'],
'LoadBalancerOperationLocks' => [
'title' => '锁定原因',
'description' => '应用型负载均衡操作锁配置。',
'type' => 'array',
'items' => [
'description' => '应用型负载均衡操作锁配置。',
'type' => 'object',
'properties' => [
'LockReason' => ['title' => '锁定原因', 'description' => '锁定的原因。在**LoadBalancerBussinessStatus**为**异常**时有效。', 'type' => 'string', 'example' => '欠费'],
'LockType' => ['title' => '锁定类型', 'description' => '锁定的类型。取值 :'."\n"
."\n"
.'- **SecurityLocked**:安全锁定。'."\n"
."\n"
.'- **RelatedResourceLocked**:关联锁定。'."\n"
."\n"
.'- **FinancialLocked**:欠费锁定。'."\n"
."\n"
.'- **ResidualLocked**:残留锁定。', 'type' => 'string', 'example' => 'FinancialLocked'],
],
],
],
'LoadBalancerStatus' => ['title' => '实例状态', 'description' => '应用型负载均衡实例状态。取值:'."\n"
."\n"
.'- **Inactive**: 已停止,表示实例监听不会再转发流量。'."\n"
."\n"
.'- **Active**: 运行中。'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Configuring**:变配中。'."\n"
."\n"
.'- **CreateFailed**:创建失败,此时不会产生费用,实例只能被删除。', 'type' => 'string', 'example' => 'Active'],
'ModificationProtectionConfig' => [
'title' => '负载均衡修改保护相关信息',
'description' => '修改保护配置。',
'type' => 'object',
'properties' => [
'Reason' => ['title' => '设置修改保护状态的原因', 'description' => '开启修改保护的原因。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。'."\n"
."\n"
.'仅在**Status**为**ConsoleProtection**时返回。', 'type' => 'string', 'example' => 'Managed instance'],
'Status' => ['title' => '负载均衡修改保护状态', 'description' => '应用型负载均衡实例的修改保护状态。取值:'."\n"
."\n"
.'- **NonProtection**:未开启修改保护。如有配置**Reason**,**Reason**会被强制置空。'."\n"
."\n"
.'- **ConsoleProtection**:已开启控制台修改保护。如有配置**Reason**,**Reason**可生效。'."\n"
."\n"
.'> 当取值为**ConsoleProtection**,即开启修改保护后,用户不能通过负载均衡控制台修改实例配置,但可以通过调用API修改实例配置。', 'type' => 'string', 'example' => 'ConsoleProtection'],
],
],
'RegionId' => ['title' => '地域', 'description' => '应用型负载均衡实例的地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
'ResourceGroupId' => ['title' => '企业资源组ID', 'description' => '企业资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
'Tags' => [
'title' => '标签列表',
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '实例的标签键', 'description' => '实例的标签键。'."\n"
."\n"
.'最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'FinanceDept'],
'Value' => ['title' => '实例的标签值', 'description' => '实例的标签值。'."\n"
."\n"
.'最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'FinanceJoshua'],
],
],
],
'VpcId' => ['title' => 'Vpc网络ID', 'description' => '实例的专有网络ID。', 'type' => 'string', 'example' => 'vpc-bp1b49rqrybk45nio****'],
'ZoneMappings' => [
'title' => '负载均衡的可用区资源',
'description' => '可用区及交换机映射列表,最多返回10个可用区。若当前地域支持2个及以上可用区,至少返回2个及以上可用区。',
'type' => 'array',
'items' => [
'description' => '可用区及交换机映射列表,最多返回10个可用区。若当前地域支持2个及以上可用区,至少返回2个及以上可用区。',
'type' => 'object',
'properties' => [
'LoadBalancerAddresses' => [
'title' => '固定VIP模式下,负载均衡在此可用区中的地址列表',
'description' => '实例地址。',
'type' => 'array',
'items' => [
'description' => '实例地址。',
'type' => 'object',
'properties' => [
'Address' => ['title' => 'IP地址', 'description' => '标识IPv4类型的IP地址。'."\n"
."\n"
.'**AddressIPVersion**为**IPv4**和**DualStack**均生效,公网或私网IP地址由**AddressType**决定。', 'type' => 'string', 'example' => '10.1.0.61'],
'Ipv6Address' => ['title' => 'Ipv6地址', 'description' => '标识IPv6类型的IP地址。'."\n"
."\n"
.'仅在**AddressIPVersion**为**DualStack**时有效,公网或私网IP地址由**Ipv6AddressType**决定。', 'type' => 'string', 'example' => '2408:xxxx:249:dd01:6f4:750f:xxxx:bcd9'],
'IntranetAddress' => ['title' => '私网地址', 'description' => 'IPv4私网地址。', 'type' => 'string', 'example' => '10.1.0.61'],
'AllocationId' => ['description' => '弹性公网IP标识。', 'type' => 'string', 'example' => 'eip-uf6wm****1zj9'],
'EipType' => ['description' => '公网EIP的类型。取值:'."\n"
."\n"
.'- **Common**:弹性公网IP,简称EIP。'."\n"
.'- **Anycast**:任播弹性公网IP,简称Anycast EIP。'."\n"
."\n"
.'> ALB支持绑定Anycast EIP的地域,请参见[使用限制](~~460727~~)。', 'type' => 'string', 'example' => 'Common'],
'IntranetAddressHcStatus' => ['description' => '应用型负载均衡实例私网IPv4地址探测状态。'."\n"
."\n"
.'只有可用区的状态为Active时才返回。取值:'."\n"
."\n"
.'- **Healthy**:健康。'."\n"
.'- **Unhealthy**:异常。', 'type' => 'string', 'example' => 'Healthy'],
'Ipv6AddressHcStatus' => ['description' => '应用型负载均衡实例IPv6地址探测状态。'."\n"
."\n"
.'只有可用区的状态为Active时才返回。取值:'."\n"
."\n"
.'- **Healthy**:健康。'."\n"
.'- **Unhealthy**:异常。', 'type' => 'string', 'example' => 'Healthy'],
'Ipv4LocalAddresses' => [
'description' => 'IPv4 Local地址列表。ALB与后端服务交互使用的地址列表。',
'type' => 'array',
'items' => ['description' => 'IPv4 Local地址。', 'type' => 'string', 'example' => '10.1.0.62'],
],
'Ipv6LocalAddresses' => [
'description' => 'IPv6 Local地址列表。ALB与后端服务交互使用的地址列表。',
'type' => 'array',
'items' => ['description' => ' IPv6 Local地址。', 'type' => 'string', 'example' => '2408:xxxx:249:dd01:6f4:750f:xxxx:bcda'],
],
],
],
],
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区只能使用一台交换机和一个子网。', 'type' => 'string', 'example' => 'vsw-bp12mw1f8k3jgy****'],
'ZoneId' => ['title' => '可用区标识', 'description' => '应用型负载均衡实例的可用区ID。'."\n"
."\n"
.'您可以通过调用[DescribeZones](~~189196~~)接口获取可用区ID对应的可用区的信息。', 'type' => 'string', 'example' => 'cn-hangzhou-a'],
'Status' => ['description' => '可用区状态。取值:'."\n"
."\n"
.'- **Active**:运行中。'."\n"
.'- **Stopped**:已停止。'."\n"
.'- **Shifted**:已移除。'."\n"
.'- **Starting**:启动中。'."\n"
.'- **Stopping**:停止中。', 'type' => 'string', 'example' => 'Active'],
],
],
],
'AddressIpVersion' => ['title' => '协议版本', 'description' => '协议版本。取值:'."\n"
."\n"
.'- **IPv4**:IPv4类型'."\n"
.'- **DualStack**:双栈类型', 'type' => 'string', 'example' => 'DualStack'],
'Ipv6AddressType' => ['title' => 'IPV6地址类型', 'description' => '应用型负载均衡IPv6的网络地址类型。取值:'."\n"
."\n"
.'- **Internet**:公网。负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
.'- **Intranet**:私网。负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'example' => 'Intranet'],
'SecurityGroupIds' => [
'description' => '应用型负载均衡实例绑定的安全组ID集合。',
'type' => 'array',
'items' => ['description' => '应用型负载均衡实例绑定的安全组ID。', 'type' => 'string', 'example' => 'sg-uf63j385dzwlm6cy****'],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication has failed for LoadBalancer.', 'description' => ''],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AccessLogConfig\\": {\\n \\"LogProject\\": \\"sls-setter\\",\\n \\"LogStore\\": \\"test\\"\\n },\\n \\"AddressAllocatedMode\\": \\"Dynamic\\",\\n \\"AddressType\\": \\"Intranet\\",\\n \\"BandwidthPackageId\\": \\"cbwp-bp1vevu8h3ieh****\\",\\n \\"CreateTime\\": \\"2022-07-02T02:49:05Z\\",\\n \\"DNSName\\": \\"alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com\\",\\n \\"DeletionProtectionConfig\\": {\\n \\"Enabled\\": true,\\n \\"EnabledTime\\": \\"2022-08-02T02:49:05Z\\"\\n },\\n \\"LoadBalancerBillingConfig\\": {\\n \\"PayType\\": \\"PostPay\\"\\n },\\n \\"LoadBalancerBussinessStatus\\": \\"Normal\\",\\n \\"LoadBalancerEdition\\": \\"Standard\\",\\n \\"LoadBalancerId\\": \\"alb-o9ulmq5hgn68jk****\\",\\n \\"LoadBalancerName\\": \\"alb1\\",\\n \\"LoadBalancerOperationLocks\\": [\\n {\\n \\"LockReason\\": \\"欠费\\",\\n \\"LockType\\": \\"FinancialLocked\\"\\n }\\n ],\\n \\"LoadBalancerStatus\\": \\"Active\\",\\n \\"ModificationProtectionConfig\\": {\\n \\"Reason\\": \\"Managed instance\\",\\n \\"Status\\": \\"ConsoleProtection\\"\\n },\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\",\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"FinanceDept\\",\\n \\"Value\\": \\"FinanceJoshua\\"\\n }\\n ],\\n \\"VpcId\\": \\"vpc-bp1b49rqrybk45nio****\\",\\n \\"ZoneMappings\\": [\\n {\\n \\"LoadBalancerAddresses\\": [\\n {\\n \\"Address\\": \\"10.1.0.61\\",\\n \\"Ipv6Address\\": \\"2408:xxxx:249:dd01:6f4:750f:xxxx:bcd9\\",\\n \\"IntranetAddress\\": \\"10.1.0.61\\",\\n \\"AllocationId\\": \\"eip-uf6wm****1zj9\\",\\n \\"EipType\\": \\"Common\\",\\n \\"IntranetAddressHcStatus\\": \\"Healthy\\",\\n \\"Ipv6AddressHcStatus\\": \\"Healthy\\",\\n \\"Ipv4LocalAddresses\\": [\\n \\"10.1.0.62\\"\\n ],\\n \\"Ipv6LocalAddresses\\": [\\n \\"2408:xxxx:249:dd01:6f4:750f:xxxx:bcda\\"\\n ]\\n }\\n ],\\n \\"VSwitchId\\": \\"vsw-bp12mw1f8k3jgy****\\",\\n \\"ZoneId\\": \\"cn-hangzhou-a\\",\\n \\"Status\\": \\"Active\\"\\n }\\n ],\\n \\"AddressIpVersion\\": \\"DualStack\\",\\n \\"Ipv6AddressType\\": \\"Intranet\\",\\n \\"SecurityGroupIds\\": [\\n \\"sg-uf63j385dzwlm6cy****\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetLoadBalancerAttributeResponse>\\n <AccessLogConfig>\\n <LogProject>sls-setter</LogProject>\\n <LogStore>test</LogStore>\\n </AccessLogConfig>\\n <AddressAllocatedMode>Dynamic</AddressAllocatedMode>\\n <AddressType>Intranet</AddressType>\\n <BandwidthPackageId>cbwp-bp1vevu8h3ieh****</BandwidthPackageId>\\n <CreateTime>2022-07-02T02:49:05Z</CreateTime>\\n <DNSName>alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com</DNSName>\\n <DeletionProtectionConfig>\\n <Enabled>true</Enabled>\\n <EnabledTime>2022-08-02T02:49:05Z</EnabledTime>\\n </DeletionProtectionConfig>\\n <LoadBalancerBillingConfig>\\n <PayType>PostPay</PayType>\\n </LoadBalancerBillingConfig>\\n <LoadBalancerBussinessStatus>Normal</LoadBalancerBussinessStatus>\\n <LoadBalancerEdition>Standard</LoadBalancerEdition>\\n <LoadBalancerId>alb-o9ulmq5hgn68jk****</LoadBalancerId>\\n <LoadBalancerName>alb1</LoadBalancerName>\\n <LoadBalancerOperationLocks>\\n <LockReason>欠费</LockReason>\\n <LockType>FinancialLocked</LockType>\\n </LoadBalancerOperationLocks>\\n <LoadBalancerStatus>Active</LoadBalancerStatus>\\n <ModificationProtectionConfig>\\n <Reason>托管实例</Reason>\\n <Status>ConsoleProtection</Status>\\n </ModificationProtectionConfig>\\n <RegionId>cn-hangzhou</RegionId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <ResourceGroupId>rg-atstuj3rtop****</ResourceGroupId>\\n <Tags>\\n <Key>FinanceDept</Key>\\n <Value>FinanceJoshua</Value>\\n </Tags>\\n <VpcId>vpc-bp1b49rqrybk45nio****</VpcId>\\n <ZoneMappings>\\n <LoadBalancerAddresses>\\n <Address>192.168.10.1</Address>\\n <Ipv6Address>2408:XXXX:39d:eb00::/56</Ipv6Address>\\n </LoadBalancerAddresses>\\n <VSwitchId>vsw-bp12mw1f8k3jgy****</VSwitchId>\\n <ZoneId>cn-hangzhou-a</ZoneId>\\n </ZoneMappings>\\n <AddressIpVersion>DualStack</AddressIpVersion>\\n <Ipv6AddressType>Intranet</Ipv6AddressType>\\n</GetLoadBalancerAttributeResponse>","errorExample":""}]',
'title' => '查询负载均衡实例的详细信息',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetLoadBalancerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'ListAScripts' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['title' => '标记当前开始读取的位置,置空表示从头开始', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['title' => '本次读取的最大数据记录数量', 'description' => '本次读取的最大数据记录数。'."\n"
."\n"
.'取值:**1**~**100**。'."\n"
."\n"
.'默认值:**20**,表示用户没有传入数据。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
[
'name' => 'ListenerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '监听ID列表。一次最多支持查询20个监听。',
'type' => 'array',
'items' => ['description' => '监听ID。', 'type' => 'string', 'required' => false, 'example' => 'lsn-9v9b8576m2laih****'],
'required' => false,
],
],
[
'name' => 'AScriptIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '可编程脚本ID列表。一次最多支持查询20个ID。',
'type' => 'array',
'items' => ['description' => '可编程脚本ID。', 'type' => 'string', 'required' => false, 'example' => 'as-aznwocxofkakf7****'],
'required' => false,
],
],
[
'name' => 'AScriptNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '可编程脚本名称列表。一次最多支持查询10个名称。',
'type' => 'array',
'items' => ['description' => '可编程脚本名称。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'TotalCount' => ['title' => 'TotalCount本次请求条件下的数据总量,此参数为可选参数,默认可不返回', 'description' => '本次请求条件下返回的总数据记录数。'."\n"
."\n"
.'> 此参数为可选,默认可不返回。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '2CA81429-F160-593A-8AB5-A2A9617845B9'],
'NextToken' => ['title' => '表示当前调用返回读取到的位置,空代表数据已经读取完毕', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'required' => true, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'MaxResults' => ['title' => 'MaxResults本次请求所返回的最大记录条数', 'description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'AScripts' => [
'title' => '可编程脚本列表',
'description' => '可编程脚本信息列表。',
'type' => 'array',
'items' => [
'description' => '可编程脚本信息。',
'type' => 'object',
'properties' => [
'AScriptId' => ['title' => '脚本id', 'description' => '可编程脚本ID。', 'type' => 'string', 'example' => 'as-aznwocxofkakf7****'],
'AScriptName' => ['title' => '脚本名称', 'description' => '可编程脚本名称。', 'type' => 'string', 'example' => 'test'],
'Enabled' => ['title' => '是否启用', 'description' => '可编程脚本是否启用。取值:'."\n"
."\n"
.'- **true**:启用。'."\n"
."\n"
.'- **false**:不启用。', 'type' => 'boolean', 'example' => 'true'],
'ScriptContent' => ['title' => '脚本内容', 'description' => '可编程脚本内容。', 'type' => 'string', 'example' => '{test}'],
'AScriptStatus' => ['title' => '脚本状态', 'description' => '可编程脚本状态。取值:'."\n"
."\n"
.'- **Creating**:表示创建中。'."\n"
."\n"
.'- **Available**:表示创建或变配成功。'."\n"
."\n"
.'- **Configuring**:表示变配中。'."\n"
."\n"
.'- **Deleting**:表示删除中。', 'type' => 'string', 'example' => 'Available'],
'ListenerId' => ['title' => '监听id', 'description' => '监听ID。', 'type' => 'string', 'example' => 'lsn-t0w1m9r6suiwmc****'],
'LoadBalancerId' => ['title' => '实例id', 'description' => '应用型负载均衡实例的ID。', 'type' => 'string', 'example' => 'alb-vv9rg2ub31tyec****'],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication has failed for LoadBalancer.', 'description' => ''],
],
],
'title' => '查询可编程脚本列表',
'summary' => '查询可编程脚本列表。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 1000,\\n \\"RequestId\\": \\"2CA81429-F160-593A-8AB5-A2A9617845B9\\",\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"MaxResults\\": 50,\\n \\"AScripts\\": [\\n {\\n \\"AScriptId\\": \\"as-aznwocxofkakf7****\\",\\n \\"AScriptName\\": \\"test\\",\\n \\"Enabled\\": true,\\n \\"ScriptContent\\": \\"{test}\\",\\n \\"AScriptStatus\\": \\"Available\\",\\n \\"ListenerId\\": \\"lsn-t0w1m9r6suiwmc****\\",\\n \\"LoadBalancerId\\": \\"alb-vv9rg2ub31tyec****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListAScriptsResponse>\\n <TotalCount>1000</TotalCount>\\n <RequestId>2CA81429-F160-593A-8AB5-A2A9617845B9</RequestId>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <MaxResults>50</MaxResults>\\n <AScripts>\\n <AScriptId>as-aznwocxofkakf7****</AScriptId>\\n <AScriptName>test</AScriptName>\\n <Enabled>true</Enabled>\\n <ScriptContent>{test}</ScriptContent>\\n <AScriptStatus>Available</AScriptStatus>\\n <ListenerId>lsn-t0w1m9r6suiwmc****</ListenerId>\\n <LoadBalancerId>alb-vv9rg2ub31tyec****</LoadBalancerId>\\n </AScripts>\\n</ListAScriptsResponse>","errorExample":""}]',
],
'ListAclEntries' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'AclId',
'in' => 'query',
'schema' => ['title' => '访问控制策略Id', 'description' => 'ACL实例ID', 'type' => 'string', 'required' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'AclEntries' => [
'title' => '访问控制列表',
'description' => '访问控制条目列表。',
'type' => 'array',
'items' => [
'description' => '访问控制条目结构。',
'type' => 'object',
'properties' => [
'Description' => ['title' => '描述信息', 'description' => '访问控制条目备注描述,长度限制为1~256个字符,允许包含字母、数字、短划线(-)、正斜线(/)、半角句号(.)和下划线(_),支持中文字符。', 'type' => 'string', 'example' => 'test-entry'],
'Entry' => ['title' => 'IP条目', 'description' => '访问控制条目IP地址段。', 'type' => 'string', 'example' => '10.0.1.1/24'],
'Status' => ['title' => '状态', 'description' => 'ACL条目状态,取值:'."\n"
.'- **Adding**:添加中。'."\n"
.'- **Available**:添加成功,可用状态。'."\n"
.'- **Removing**:移除中。', 'type' => 'string', 'example' => 'Available'],
],
],
],
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F87******'],
'TotalCount' => ['title' => '总记录数', 'description' => '本次请求条件下返回的总数据记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'ACL authentication has failed.', 'description' => '对Acl鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
],
],
'title' => '查询访问控制条目',
'summary' => '查询指定访问控制的条目。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAclEntries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AclEntries\\": [\\n {\\n \\"Description\\": \\"test-entry\\",\\n \\"Entry\\": \\"10.0.1.1/24\\",\\n \\"Status\\": \\"Available\\"\\n }\\n ],\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F87******\\",\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListAclEntriesResponse>\\n <AclEntries>\\n <Description>test-entry</Description>\\n <Entry>10.0.1.1/24</Entry>\\n <Status>Available</Status>\\n </AclEntries>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n <TotalCount>1000</TotalCount>\\n</ListAclEntriesResponse>","errorExample":""}]',
],
'ListAclRelations' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AclIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问控制策略Id',
'description' => 'ACL实例ID列表。一次最多支持查询5个ACL实例ID。',
'type' => 'array',
'items' => ['description' => 'ACL实例ID。', 'type' => 'string', 'required' => false, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'required' => true,
'maxItems' => 5,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构',
'type' => 'object',
'properties' => [
'AclRelations' => [
'title' => '访问控制列表',
'description' => 'ACL与监听关系列表',
'type' => 'array',
'items' => [
'description' => 'ACL与监听关系结构',
'type' => 'object',
'properties' => [
'AclId' => ['title' => '访问控制策略id', 'description' => 'ACL ID', 'type' => 'string', 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'RelatedListeners' => [
'title' => '关联的监听',
'description' => '关联的监听列表',
'type' => 'array',
'items' => [
'description' => '关联的监听信息结构',
'type' => 'object',
'properties' => [
'ListenerId' => ['title' => '监听ID', 'description' => '监听ID', 'type' => 'string', 'example' => 'lsn-bpn0kn908w4nbw****'],
'ListenerPort' => ['title' => '监听端口', 'description' => '监听端口', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ListenerProtocol' => ['title' => '监听协议', 'description' => '监听协议', 'type' => 'string', 'example' => 'HTTPS'],
'LoadBalancerId' => ['title' => '实例ID', 'description' => '负载均衡实例ID', 'type' => 'string', 'example' => 'alb-bp1b6c719dfa08ex****'],
'Status' => ['title' => '关联状态', 'description' => 'ACL与监听关联的状态:'."\n"
."\n"
.'- **Associating**:关联中'."\n"
.'- **Associated**:已关联'."\n"
.'- **Dissociating**:解除关联中', 'type' => 'string', 'example' => 'Associated'],
],
],
],
],
],
],
'RequestId' => ['title' => '请求id', 'description' => '请求ID', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '访问控制鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
],
],
'title' => '查询访问控制关联关系',
'summary' => '查询访问控制关联的监听。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAclRelations',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AclRelations\\": [\\n {\\n \\"AclId\\": \\"acl-hp34s2h0xx1ht4nwo****\\",\\n \\"RelatedListeners\\": [\\n {\\n \\"ListenerId\\": \\"lsn-bpn0kn908w4nbw****\\",\\n \\"ListenerPort\\": 80,\\n \\"ListenerProtocol\\": \\"HTTPS\\",\\n \\"LoadBalancerId\\": \\"alb-bp1b6c719dfa08ex****\\",\\n \\"Status\\": \\"Associated\\"\\n }\\n ]\\n }\\n ],\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0******\\"\\n}","errorExample":""},{"type":"xml","example":"<ListAclRelationsResponse>\\n <AclRelations>\\n <AclId>nacl-hp34s2h0xx1ht4nwo****</AclId>\\n <RelatedListeners>\\n <ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>\\n <ListenerPort>80</ListenerPort>\\n <ListenerProtocol>HTTPS</ListenerProtocol>\\n <LoadBalancerId>lb-bp1b6c719dfa08ex****</LoadBalancerId>\\n <Status>Associated</Status>\\n </RelatedListeners>\\n </AclRelations>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</ListAclRelationsResponse>","errorExample":""}]',
],
'ListAcls' => [
'summary' => '查询某一个地域的访问控制列表。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'AclIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问控制策略Id',
'description' => '根据ACL ID来过滤查找ACL列表。一次最多支持查询20个ACL ID。',
'type' => 'array',
'items' => ['description' => 'ACL ID。', 'type' => 'string', 'required' => false, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'AclNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问控制策略名称',
'description' => 'ACL名称列表。一次最多支持查询10个ACL名称。',
'type' => 'array',
'items' => ['description' => 'ACL名称。', 'type' => 'string', 'required' => false, 'example' => 'test-acl'],
'required' => false,
'maxItems' => 10,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组ID', 'description' => '资源组ID,根据设置的资源组ID来过滤。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtopty****'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的NextToken值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '本次读取的最大数据记录数量,此参数为可选参数。取值范围:**1**~**100**。默认值:**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构',
'type' => 'object',
'properties' => [
'Acls' => [
'title' => '访问控制列表',
'description' => 'ACL列表。',
'type' => 'array',
'items' => [
'description' => 'ACL结构。',
'type' => 'object',
'properties' => [
'AclId' => ['title' => '访问控制策略id', 'description' => 'ACL ID。', 'type' => 'string', 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
'AclName' => ['title' => '访问控制策略名称', 'description' => 'ACL名称。', 'type' => 'string', 'example' => 'test-acl'],
'AclStatus' => ['title' => '状态', 'description' => 'ACL状态。取值:'."\n"
.'- **Creating**:创建中。'."\n"
.'- **Available**:正常可用状态。'."\n"
.'- **Configuring**:配置中。', 'type' => 'string', 'example' => 'Available'],
'AddressIPVersion' => ['title' => 'IP版本', 'description' => 'ACL IP版本。取值:**IPv4**。'."\n", 'type' => 'string', 'example' => 'IPv4'],
'ResourceGroupId' => ['title' => '资源组ID', 'description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtopty****'],
'ConfigManagedEnabled' => ['title' => '配置管理', 'description' => '配置管理开关。取值:'."\n"
."\n"
.'- **true**:开启配置管理。'."\n"
."\n"
.'- **false**:未开启配置管理。', 'type' => 'boolean', 'example' => 'false'],
'CreateTime' => ['description' => 'ACL创建时间,格式为:`YYYY-MM-DDThh:mm:ssZ`。', 'type' => 'string', 'example' => '2023-02-15T07:37:33Z'],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '本次读取的最大数据记录数量,此参数为可选参数,取值**1**~**100**。参数传入为空时,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70t****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
'TotalCount' => ['title' => '总记录数', 'description' => '本次请求条件下的数据总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'ACL authentication has failed.', 'description' => '对Acl鉴权失败'],
],
],
'title' => '查询访问控制列表',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListAcls',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Acls\\": [\\n {\\n \\"AclId\\": \\"acl-hp34s2h0xx1ht4nwo****\\",\\n \\"AclName\\": \\"test-acl\\",\\n \\"AclStatus\\": \\"Available\\",\\n \\"AddressIPVersion\\": \\"IPv4\\",\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtopty****\\",\\n \\"ConfigManagedEnabled\\": false,\\n \\"CreateTime\\": \\"2023-02-15T07:37:33Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ]\\n }\\n ],\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70t****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF******\\",\\n \\"TotalCount\\": 10\\n}","errorExample":""},{"type":"xml","example":"<ListAclsResponse>\\n <Acls>\\n <AclId>nacl-hp34s2h0xx1ht4nwo****</AclId>\\n <AclName>test-acl</AclName>\\n <AclStatus>Available</AclStatus>\\n <AddressIPVersion>IPv4</AddressIPVersion>\\n <ResourceGroupId>rg-atstuj3rtopty****</ResourceGroupId>\\n <ConfigManagedEnabled>false</ConfigManagedEnabled>\\n <CreateTime>2023-02-15T07:37:33Z</CreateTime>\\n </Acls>\\n <MaxResults>20</MaxResults>\\n <NextToken>FFmyTO70t****</NextToken>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <TotalCount>10</TotalCount>\\n</ListAclsResponse>","errorExample":""}]',
],
'ListAsynJobs' => [
'summary' => '查询指定地域的异步任务。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'JobIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '任务ID列表',
'description' => '任务ID列表。',
'type' => 'array',
'items' => ['description' => '异步任务ID。', 'type' => 'string', 'required' => false, 'example' => 'bfb728bf-53a8-4886-84cb-829******'],
'required' => false,
'maxItems' => 10,
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型类型', 'description' => '关联的资源类型。取值:'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
.'- **listener**:监听。'."\n"
.'- **rule**:转发规则。'."\n"
.'- **acl**:访问控制。'."\n"
.'- **securitypolicy**:安全策略。'."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => false, 'example' => 'loadbalancer'],
],
[
'name' => 'ResourceIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '资源实例ID列表',
'description' => '资源实例ID列表。',
'type' => 'array',
'items' => ['description' => '资源实例ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-o8mszt95oamfjy****'],
'required' => false,
'maxItems' => 10,
],
],
[
'name' => 'ApiName',
'in' => 'query',
'schema' => ['title' => '操作接口名', 'description' => '操作接口名称。', 'type' => 'string', 'required' => false, 'example' => 'CreateLoadBalancer'],
],
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['title' => '任务过滤时间范围-开始时间', 'description' => '任务开始时间戳。单位:毫秒。'."\n"
."\n"
.'时间戳的格式采用Unix时间戳,表示从格林威治时间1970年01月01日00时00分00秒至开始查询异步任务状态时的总时长。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2134663231234'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['title' => '任务过滤时间范围-结束时间', 'description' => '任务结束时间戳。单位:毫秒。'."\n"
."\n"
.'时间戳的格式采用Unix时间戳,表示从格林威治时间1970年01月01日00时00分00秒至查询异步任务状态结束时的总时长。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2144663233315'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '下一个查询开始Token', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '本次读取的最大数据记录数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值:**20**。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '任务列表。',
'type' => 'object',
'properties' => [
'Jobs' => [
'title' => '任务列表',
'description' => '任务列表。',
'type' => 'array',
'items' => [
'description' => '任务列表。',
'type' => 'object',
'properties' => [
'ApiName' => ['title' => 'openapi名称', 'description' => '操作接口名称。', 'type' => 'string', 'example' => 'CreateLoadBalancer'],
'CreateTime' => ['title' => '任务开始时间戳', 'description' => '任务开始时间戳。单位:毫秒。'."\n"
."\n"
.'时间戳的格式采用Unix时间戳,表示从格林威治时间1970年01月01日00时00分00秒至开始查询异步任务状态时的总时长。', 'type' => 'integer', 'format' => 'int64', 'example' => '2134663231234'],
'ErrorCode' => ['title' => '如果Status为失败,则为错误码', 'description' => '如果**Status**为失败,则为错误码。', 'type' => 'string', 'example' => '506'],
'ErrorMessage' => ['title' => '如果Status为失败,则为错误信息', 'description' => '如果**Status**为失败,则为错误信息。', 'type' => 'string', 'example' => 'AllocateEipAddress Failed'],
'Id' => ['title' => '任务ID', 'description' => '任务ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B5****'],
'ModifyTime' => ['title' => '任务结束时间戳', 'description' => '任务结束时间戳。单位:毫秒。'."\n"
."\n"
.'时间戳的格式采用Unix时间戳,表示从格林威治时间1970年01月01日00时00分00秒至查询异步任务状态结束时的总时长。', 'type' => 'integer', 'format' => 'int64', 'example' => '2144663233315'],
'OperateType' => ['title' => '操作类型', 'description' => '操作类型,取值:'."\n"
."\n"
.'- **Create**:创建。'."\n"
."\n"
.'- **Update**:修改。'."\n"
."\n"
.'- **Delete**: 删除。', 'type' => 'string', 'example' => 'Create'],
'ResourceId' => ['title' => '关联的资源实例ID', 'description' => '关联的资源实例ID。', 'type' => 'string', 'example' => 'alb-o8mszt95oamfjy****'],
'ResourceType' => ['title' => '关联的资源类型', 'description' => '关联的资源类型。取值:'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
.'- **listener**:监听。'."\n"
.'- **rule**:转发规则。'."\n"
.'- **acl**:访问控制。'."\n"
.'- **securitypolicy**:安全策略。'."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'example' => 'loadbalancer'],
'Status' => ['title' => '任务状态', 'description' => '任务状态,取值:'."\n"
."\n"
.'- **Succeeded**:成功。'."\n"
."\n"
.'- **Failed**:失败。'."\n"
."\n"
.'- **Processing**:执行。', 'type' => 'string', 'example' => 'Succeeded'],
],
],
],
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
'TotalCount' => ['title' => '总记录数 ', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
],
],
],
],
'title' => '查询异步任务',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAsynJobs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Jobs\\": [\\n {\\n \\"ApiName\\": \\"CreateLoadBalancer\\",\\n \\"CreateTime\\": 2134663231234,\\n \\"ErrorCode\\": \\"506\\",\\n \\"ErrorMessage\\": \\"AllocateEipAddress Failed\\",\\n \\"Id\\": \\"365F4154-92F6-4AE4-92F8-7FF34B5****\\",\\n \\"ModifyTime\\": 2144663233315,\\n \\"OperateType\\": \\"Create\\",\\n \\"ResourceId\\": \\"alb-o8mszt95oamfjy****\\",\\n \\"ResourceType\\": \\"loadbalancer\\",\\n \\"Status\\": \\"Succeeded\\"\\n }\\n ],\\n \\"MaxResults\\": 10,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\",\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListAsynJobsResponse>\\n <Jobs>\\n <ApiName>CreateLoadBalancer</ApiName>\\n <CreateTime>2134663231234</CreateTime>\\n <ErrorCode>506</ErrorCode>\\n <ErrorMessage>AllocateEipAddress Failed</ErrorMessage>\\n <Id>365F4154-92F6-4AE4-92F8-7FF34B5****</Id>\\n <ModifyTime>2144663233315</ModifyTime>\\n <OperateType>Create</OperateType>\\n <ResourceId>alb-o8mszt95oamfjy****</ResourceId>\\n <ResourceType>acl</ResourceType>\\n <Status>Succeeded</Status>\\n </Jobs>\\n <MaxResults>10</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <TotalCount>1000</TotalCount>\\n</ListAsynJobsResponse>","errorExample":""}]',
],
'ListHealthCheckTemplates' => [
'summary' => '查询指定地域的健康检查模板。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'abilityTreeCode' => '151',
'abilityTreeNodes' => ['FEATUREslb6RAQIN'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'HealthCheckTemplateIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '健康检查模板ID列表',
'description' => '健康检查模版ID列表。',
'type' => 'array',
'items' => ['description' => '健康检查模版ID。最多支持20个健康检查模板ID。如果传入则根据模板ID过滤。', 'type' => 'string', 'required' => false, 'example' => 'hct-bp1qjwo61pqz3ahltv****'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'HealthCheckTemplateNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '健康检查模板名称列表',
'description' => '健康检查模板名称列表。',
'type' => 'array',
'items' => ['description' => '健康检查模版名称。最多支持10个健康检查模板名称。如果传入则根据模板名称过滤。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => '资源组ID,根据设置的资源组ID来过滤。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '健康检查模板信息。',
'type' => 'object',
'properties' => [
'HealthCheckTemplates' => [
'title' => '健康检查模板',
'description' => '健康检查模板列表。',
'type' => 'array',
'items' => [
'description' => '健康检查模板结构。',
'type' => 'object',
'properties' => [
'HealthCheckConnectPort' => ['title' => '端口', 'description' => '健康检查使用的端口。'."\n"
."\n"
.'取值:** 0~65535**。'."\n"
."\n"
.'默认值:**0**,表示使用后端服务器的端口进行健康检查。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'HealthCheckHost' => ['title' => '域名', 'description' => '用于健康检查的域名,取值:'."\n"
."\n"
.'- **$SERVER_IP**(默认值): 后端服务器的私网IP。当指定了IP或该参数未指定时,负载均衡会使用各后端服务器的私网IP当做健康检查使用的域名。'."\n"
."\n"
.'- **domain**:域名长度为1~80字符,只能包含字母、数字、半角句号(.)和短划线(-)。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时才有效。', 'type' => 'string', 'example' => '$SERVER_IP'],
'HealthCheckCodes' => [
'title' => '状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的HTTP状态码。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http_2xx**(默认值)、 **http_3xx**、**http_4xx**和**http_5xx**,多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值,多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'example' => 'http_2xx'],
],
'HealthCheckHttpVersion' => ['title' => '版本', 'description' => '健康检查HTTP协议版本。'."\n"
."\n"
.'取值:**HTTP 1.0**或**HTTP 1.1**。'."\n"
."\n"
.'默认值:**HTTP 1.1**。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时才有效。', 'type' => 'string', 'example' => 'HTTP 1.0'],
'HealthCheckInterval' => ['title' => '间隔时间', 'description' => '健康检查的时间间隔。单位:秒。取值范围:**1~50**。默认值:**2**秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'HealthCheckMethod' => ['title' => '方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **HEAD**(默认值):HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP** 或**HTTPS**或**gRPC**时才有效。', 'type' => 'string', 'example' => 'HEAD'],
'HealthCheckPath' => ['title' => 'uri', 'description' => '用于健康检查的URL。'."\n"
."\n"
.'长度限制为1~80,只能使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)、and(&)这些字符以及扩展字符集`_;~!()*[]@$^:\',+`。URL必须以正斜线(/)开头。', 'type' => 'string', 'example' => '/test/index.html'],
'HealthCheckProtocol' => ['title' => '协议', 'description' => '健康检查采用的协议。取值:'."\n"
."\n"
.'- **HTTP**(默认值):通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'example' => 'HTTP'],
'HealthCheckTemplateId' => ['title' => '健康检查模板Id', 'description' => '健康检查模板ID。', 'type' => 'string', 'example' => 'hct-bp1qjwo61pqz3ahltv****'],
'HealthCheckTemplateName' => ['title' => '名称', 'description' => '健康检查模板名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。', 'type' => 'string', 'example' => 'HealthCheckTemplate1'],
'HealthCheckTimeout' => ['title' => '超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端ECS在指定的时间内没有正确响应,则判定为健康检查失败。'."\n"
."\n"
.'取值:**1~300**秒。'."\n"
."\n"
.'默认值:**5**秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'HealthyThreshold' => ['title' => '健康阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。'."\n"
."\n"
.'取值:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'UnhealthyThreshold' => ['title' => '不健康阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。'."\n"
."\n"
.'取值:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'example' => 'product'],
],
],
],
'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
],
],
],
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
'TotalCount' => ['title' => '总记录数', 'description' => '本次请求条件下返回的总数据记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.HealthCheckTemplate', 'errorMessage' => 'Authentication has failed for HealthCheckTemplate.', 'description' => '对HealthCheckTemplate鉴权失败'],
],
],
'title' => '查询健康检查模板',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListHealthCheckTemplates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"HealthCheckTemplates\\": [\\n {\\n \\"HealthCheckConnectPort\\": 80,\\n \\"HealthCheckHost\\": \\"$SERVER_IP\\",\\n \\"HealthCheckCodes\\": [\\n \\"http_2xx\\"\\n ],\\n \\"HealthCheckHttpVersion\\": \\"HTTP 1.0\\",\\n \\"HealthCheckInterval\\": 5,\\n \\"HealthCheckMethod\\": \\"HEAD\\",\\n \\"HealthCheckPath\\": \\"/test/index.html\\",\\n \\"HealthCheckProtocol\\": \\"HTTP\\",\\n \\"HealthCheckTemplateId\\": \\"hct-bp1qjwo61pqz3ahltv****\\",\\n \\"HealthCheckTemplateName\\": \\"HealthCheckTemplate1\\",\\n \\"HealthCheckTimeout\\": 3,\\n \\"HealthyThreshold\\": 4,\\n \\"UnhealthyThreshold\\": 4,\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ],\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\"\\n }\\n ],\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\",\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListHealthCheckTemplatesResponse>\\n <HealthCheckTemplates>\\n <HealthCheckConnectPort>80</HealthCheckConnectPort>\\n <HealthCheckHost>$_ip</HealthCheckHost>\\n <HealthCheckCodes>http_2xx,http_3xx</HealthCheckCodes>\\n <HealthCheckHttpVersion>HTTP 1.0</HealthCheckHttpVersion>\\n <HealthCheckInterval>5</HealthCheckInterval>\\n <HealthCheckMethod>HEAD</HealthCheckMethod>\\n <HealthCheckPath>/test/index.html</HealthCheckPath>\\n <HealthCheckProtocol>HTTP</HealthCheckProtocol>\\n <HealthCheckTemplateId>hct-bp1qjwo61pqz3ahltv****</HealthCheckTemplateId>\\n <HealthCheckTemplateName>HealthCheckTemplate1</HealthCheckTemplateName>\\n <HealthCheckTimeout>3</HealthCheckTimeout>\\n <HealthyThreshold>4</HealthyThreshold>\\n <UnhealthyThreshold>4</UnhealthyThreshold>\\n </HealthCheckTemplates>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <TotalCount>1000</TotalCount>\\n</ListHealthCheckTemplatesResponse>","errorExample":""}]',
],
'ListListenerCertificates' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '本次读取的最大数据记录。取值范围:**1~100**。入参为空时,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听Id', 'description' => '监听ID。HTTPS和QUIC监听有效。', 'type' => 'string', 'required' => true, 'example' => 'lsn-5qnirjhpt******'],
],
[
'name' => 'CertificateType',
'in' => 'query',
'schema' => ['title' => '证书类型', 'description' => '证书类型。取值:**Ca**或**Server**。'."\n", 'type' => 'string', 'required' => false, 'example' => 'Server'],
],
[
'name' => 'CertificateIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '证书id列表',
'description' => '证书ID列表',
'type' => 'array',
'items' => ['description' => '证书ID', 'type' => 'string', 'required' => false, 'example' => '1416****-cn-hangzhou'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '监听证书结构。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
'TotalCount' => ['title' => '总记录数', 'description' => '本次请求条件下的数据总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'Certificates' => [
'title' => '监听SSL证书列表',
'description' => '证书列表。',
'type' => 'array',
'items' => [
'description' => '证书结构。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '证书Id', 'description' => '证书ID,当前仅支持服务器证书。', 'type' => 'string', 'example' => '123157******'],
'IsDefault' => ['title' => '是否为默认证书', 'description' => '是否为监听默认证书。取值:'."\n"
."\n"
.'- **true**:默认证书。'."\n"
."\n"
.'- **false**:扩展证书。', 'type' => 'boolean', 'example' => 'true'],
'Status' => ['title' => '证书状态', 'description' => '证书与监听关联的状态。取值:'."\n"
."\n"
.'- **Associating**:关联中。'."\n"
."\n"
.'- **Associated**:已关联。'."\n"
."\n"
.'- **Diassociating**:解除关联中。', 'type' => 'string', 'example' => 'Associating'],
'CertificateType' => ['title' => '证书类型', 'description' => '证书类型。', 'type' => 'string', 'example' => 'Server'],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.HttpListenerNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是不支持HTTP协议监听。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '查询监听证书',
'summary' => '查询指定监听关联的证书,包含扩展证书和默认证书。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListListenerCertificates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\",\\n \\"TotalCount\\": 1000,\\n \\"Certificates\\": [\\n {\\n \\"CertificateId\\": \\"123157******\\",\\n \\"IsDefault\\": true,\\n \\"Status\\": \\"Associating\\",\\n \\"CertificateType\\": \\"Server\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListListenerCertificatesResponse>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <TotalCount>1000</TotalCount>\\n <Certificates>\\n <CertificateId>12315790343_166f8204689_1714763408_70998****</CertificateId>\\n <IsDefault>true</IsDefault>\\n <Status>Associating</Status>\\n <CertificateType>Server</CertificateType>\\n </Certificates>\\n</ListListenerCertificatesResponse>","errorExample":""}]',
],
'ListListeners' => [
'summary' => '查询指定地域的监听。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '190',
'abilityTreeNodes' => ['FEATUREslbM7ALO6', 'FEATUREslbK3ZR0L', 'FEATUREslbN5IE4S'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '用来标记当前开始读取的位置,置空表示从头开始。', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I4FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '本次读取的最大数据记录数量,此参数为可选参数,取值1-100,用户传入为空时,默认为20。', 'description' => '本次读取的最大数据记录数量,此参数为可选参数。取值范围:**1~100**。入参为空时,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
[
'name' => 'ListenerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听ID列表,N最大支持20',
'description' => '监听实例ID列表。最多支持20个监听ID。',
'type' => 'array',
'items' => ['description' => '监听实例ID。', 'type' => 'string', 'required' => false, 'example' => 'lsn-o4u54y73wq7b******'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'LoadBalancerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '实例ID列表,N最大支持20',
'description' => '应用型负载均衡实例ID。最多支持20个实例ID。',
'type' => 'array',
'items' => ['description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-bd6oylbckp6k9x****'],
'required' => false,
'maxItems' => 21,
'minItems' => 1,
],
],
[
'name' => 'ListenerProtocol',
'in' => 'query',
'schema' => ['title' => '监听协议', 'description' => '需要过滤的监听协议。取值:'."\n"
."\n"
.'- **HTTP**:协议类型为HTTP。'."\n"
.'- **HTTPS**:协议类型为HTTPS。'."\n"
.'- **QUIC**:协议类型为QUIC。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '应用型负载均衡监听信息。',
'type' => 'object',
'properties' => [
'Listeners' => [
'title' => '监听列表',
'description' => '应用型负载均衡监听列表。',
'type' => 'array',
'items' => [
'description' => '应用型负载均衡监听结构。',
'type' => 'object',
'properties' => [
'DefaultActions' => [
'title' => '默认动作',
'description' => '默认规则动作列表。',
'type' => 'array',
'items' => [
'description' => '默认规则动作结构。',
'type' => 'object',
'properties' => [
'ForwardGroupConfig' => [
'title' => '转发到服务器组',
'description' => '转发规则动作对应的配置。动作类型为**ForwardGroup**时有效。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '服务器组列表',
'description' => '转发目标服务器组。',
'type' => 'array',
'items' => [
'description' => '转发目标服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'example' => 'sgp-i5qt20******'],
],
],
],
],
],
'Type' => ['title' => '类型', 'description' => '动作类型。取值:**ForwardGroup**,表示转发至多个服务器组。', 'type' => 'string', 'example' => 'ForwardGroup'],
],
],
],
'GzipEnabled' => ['title' => '是否开启Gzip压缩', 'description' => '是否开启Gzip压缩,对特定文件类型进行压缩。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n", 'type' => 'boolean', 'example' => 'false'],
'Http2Enabled' => ['title' => '是否开启HTTP/2特性', 'description' => '是否开启HTTP/2特性。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'false'],
'IdleTimeout' => ['title' => '连接空闲超时时间', 'description' => '指定连接空闲超时时间。单位:秒。取值范围:**1~60**。'."\n"
."\n"
.'如果在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到接收到下一次请求时重新建立新的连接。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'ListenerDescription' => ['title' => '监听描述', 'description' => '自定义监听名称。', 'type' => 'string', 'example' => 'HTTP_80'],
'ListenerId' => ['title' => '监听标识', 'description' => '监听ID。', 'type' => 'string', 'example' => 'lsn-o4u34y73wq7b******'],
'ListenerPort' => ['title' => '监听端口', 'description' => '应用型负载均衡实例前端使用的端口。取值:**1~65535**。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ListenerProtocol' => ['title' => '监听协议', 'description' => '监听协议。取值:'."\n"
."\n"
.'- **HTTP**:协议类型为HTTP。'."\n"
.'- **HTTPS**:协议类型为HTTPS。'."\n"
.'- **QUIC**:协议类型为QUIC。', 'type' => 'string', 'example' => 'HTTP'],
'ListenerStatus' => ['title' => '监听状态', 'description' => '当前监听的状态,取值:'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Running**:运行中。'."\n"
."\n"
.'- **Configuring**:配置中。'."\n"
."\n"
.'- **Stopped**:已停止。', 'type' => 'string', 'example' => 'Running'],
'LoadBalancerId' => ['title' => '负载均衡标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-bd6oylbckp6k9x****'],
'LogConfig' => [
'title' => '监听访问日志相关配置',
'description' => '日志配置。',
'type' => 'object',
'properties' => [
'AccessLogRecordCustomizedHeadersEnabled' => ['title' => '访问日志是否开启携带自定义Header', 'description' => '访问日志是否开启携带自定义头。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n", 'type' => 'boolean', 'example' => 'true'],
'AccessLogTracingConfig' => [
'title' => '访问日志Xtrace相关的配置',
'description' => '访问日志Xtrace相关的配置信息。',
'type' => 'object',
'properties' => [
'TracingEnabled' => ['title' => 'Xtrace功能状态', 'description' => '是否开启Xtrace功能。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 只有实例访问日志开关**AccessLogEnabled**打开时,才能设置此参数为**true**。', 'type' => 'boolean', 'example' => 'true'],
'TracingSample' => ['title' => 'Xtrace功能状态', 'description' => 'Xtrace的采样率。取值:**1~10000**。'."\n"
."\n"
.'> **TracingEnabled**为**true**时,此值有效。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'TracingType' => ['title' => 'xtrace的类型', 'description' => 'Xtrace类型,合法取值为**Zipkin**。'."\n"
."\n"
.'> **TracingEnabled**为**true**时,此值有效。', 'type' => 'string', 'example' => 'Zipkin'],
],
],
],
],
'QuicConfig' => [
'title' => 'HTTPS启用QUIC时相关属性',
'description' => '启用关联QUIC监听时的配置信息。',
'type' => 'object',
'properties' => [
'QuicListenerId' => ['title' => '需要关联的QUIC监听ID,HTTPS监听时有效,QuicUpgradeEnabled为true时必选', 'description' => '需要关联的QUIC监听ID。**QuicUpgradeEnabled**为**true**时必选。HTTPS监听时有效。'."\n"
."\n"
.'> 原始监听和关联的QUIC监听必须属于同一个ALB实例,并且此QUIC监听之前没有被关联过。', 'type' => 'string', 'example' => 'lsn-o4u54y73wq7b******'],
'QuicUpgradeEnabled' => ['title' => '是否开启quic升级,HTTPS监听时有效', 'description' => '是否开启QUIC升级。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听时有效。', 'type' => 'boolean', 'example' => 'true'],
],
],
'RequestTimeout' => ['title' => '请求超时时间', 'description' => '指定请求超时时间。单位:秒。取值:**1~180**。'."\n"
."\n"
.'如果在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,给客户端返回`HTTP 504`错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '34'],
'SecurityPolicyId' => ['title' => '安全策略', 'description' => '安全策略。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'tls_cipher_policy_1_1'],
'XForwardedForConfig' => [
'title' => 'XForward字段相关的配置',
'description' => '`XForward`头字段配置信息。',
'type' => 'object',
'properties' => [
'XForwardedForClientCertClientVerifyAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertClientVerifyEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头字段名称,只有当**XForwardedForClientCertClientVerifyEnabled**的值为**true**的时候,此值才会生效;否则该值不会生效。'."\n"
."\n"
.'取值限制:长度为1~40字符。支持字母a-z、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_client-verify-alias_123456'],
'XForwardedForClientCertClientVerifyEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-clientverify 头字段获取对访问负载均衡实例客户端证书的校验结果。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-clientverify`头字段获取对访问负载均衡实例客户端证书的校验结果。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertFingerprintAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertFingerprintEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertFingerprintEnabled**的值为**true**时生效。'."\n"
."\n"
.'取值限制:长度为1~40字符。支持字母a-z、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_finger-print-alias_123456'],
'XForwardedForClientCertFingerprintEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-fingerprint 头字段获取访问负载均衡实例客户端证书的指纹取值,HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-fingerprint`头字段获取访问负载均衡实例客户端证书的指纹取值。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertIssuerDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertIssuerDNEnabled的值为‘On’的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertIssuerDNEnabled**的值为**true**的时候,此值才会生效。'."\n"
."\n"
.'取值限制:长度为1~40字符。支持字母a-z、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_issue-dn-alias_123456'],
'XForwardedForClientCertIssuerDNEnabled' => ['title' => '是否通过 X-Forwarded-Clientcert-issuerdn 头字段获取访问负载均衡实例客户端证书的发行者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-issuerdn`头字段获取访问负载均衡实例客户端证书的发行者信息。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientCertSubjectDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertSubjectDNEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头名称,只有当**XForwardedForClientCertSubjectDNEnabled**的值为**true**时,此值才会生效。'."\n"
."\n"
.'取值限制:长度为1~40字符。支持字母a-z、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'test_subject-dn-alias_123456'],
'XForwardedForClientCertSubjectDNEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-subjectdn 头字段获取访问负载均衡实例客户端证书的所有者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-subjectdn`头字段获取访问负载均衡实例客户端证书的所有者信息。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientSrcPortEnabled' => ['title' => '是否通过X-Forwarded-Client-Port 头字段获取访问负载均衡实例客户端的端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Client-Port`头字段获取访问负载均衡实例客户端的端口。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForEnabled' => ['title' => '是否开启通过X-Forwarded-For头字段获取来访者真实 IP', 'description' => '是否通过`X-Forwarded-For`头字段获取来访者真实IP。取值:'."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 1. 配置**true**,**XForwardedForProcessingMode**默认取值**append**,支持修改为**remove**。'."\n"
.'> 2. 配置**false**,将请求发送至后端服务之前保留`X-Forwarded-For`头字段,不做额外处理。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForProcessingMode' => ['description' => '处理`X-Forwarded-For`头字段的模式。只有当**XForwardedForEnabled**为**true**时,此值才会生效。取值:'."\n"
.'- **append**(默认值):附加。'."\n"
.'- **remove**:删除。'."\n"
."\n"
.'> 1. 配置**append**,将请求发送至后端服务之前把最后一跳IP加入`X-Forwarded-For`头字段。'."\n"
.'> 2. 配置**remove**,将请求发送至后端服务之前删除`X-Forwarded-For`标头,无论请求是否携带`X-Forwarded-For`头字段。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'string', 'example' => 'append'],
'XForwardedForProtoEnabled' => ['title' => '是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。', 'description' => '是否通过`X-Forwarded-Proto`头字段获取负载均衡实例的监听协议。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForSLBIdEnabled' => ['title' => '是否通过SLB-ID头字段获取负载均衡实例ID。', 'description' => '是否通过`SLB-ID`头字段获取负载均衡实例ID。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForSLBPortEnabled' => ['title' => '是否通过X-Forwarded-Port 头字段获取负载均衡实例的监听端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Port`头字段获取负载均衡实例的监听端口。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'true'],
'XForwardedForClientSourceIpsEnabled' => ['description' => '是否允许ALB从X-Forwarded-For头字段中查找真实客户端IP。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS监听支持此参数。', 'type' => 'boolean', 'example' => 'false'],
'XForwardedForClientSourceIpsTrusted' => ['description' => '指定可信的代理IP。'."\n"
."\n"
.'应用型负载均衡ALB会从后往前遍历`X-Forwarded-For`,选取第一个不在可信IP列表中的IP作为真实的客户端IP,该IP会被用于源IP限速。', 'type' => 'string', 'example' => '10.1.1.0/24'],
'XForwardedForHostEnabled' => ['description' => '是否开启通过`X-Forwarded-Host`头字段获取访问负载均衡实例客户端的域名。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'example' => 'false'],
],
],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
'MaxResults' => ['title' => '本次请求所返回的最大记录条数。', 'description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '用来表示当前调用返回读取到的位置,空代表数据已经读取完毕。', 'description' => '当前调用返回读取到的位置,设置为空代表数据已经读取完毕。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
'TotalCount' => ['title' => '本次请求条件下的数据总量。', 'description' => '本次请求条件下的数据总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
],
'title' => '查询监听',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListListeners',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Listeners\\": [\\n {\\n \\"DefaultActions\\": [\\n {\\n \\"ForwardGroupConfig\\": {\\n \\"ServerGroupTuples\\": [\\n {\\n \\"ServerGroupId\\": \\"sgp-i5qt20******\\"\\n }\\n ]\\n },\\n \\"Type\\": \\"ForwardGroup\\"\\n }\\n ],\\n \\"GzipEnabled\\": false,\\n \\"Http2Enabled\\": false,\\n \\"IdleTimeout\\": 3,\\n \\"ListenerDescription\\": \\"HTTP_80\\",\\n \\"ListenerId\\": \\"lsn-o4u34y73wq7b******\\",\\n \\"ListenerPort\\": 80,\\n \\"ListenerProtocol\\": \\"HTTP\\",\\n \\"ListenerStatus\\": \\"Running\\",\\n \\"LoadBalancerId\\": \\"alb-bd6oylbckp6k9x****\\",\\n \\"LogConfig\\": {\\n \\"AccessLogRecordCustomizedHeadersEnabled\\": true,\\n \\"AccessLogTracingConfig\\": {\\n \\"TracingEnabled\\": true,\\n \\"TracingSample\\": 100,\\n \\"TracingType\\": \\"Zipkin\\"\\n }\\n },\\n \\"QuicConfig\\": {\\n \\"QuicListenerId\\": \\"lsn-o4u54y73wq7b******\\",\\n \\"QuicUpgradeEnabled\\": true\\n },\\n \\"RequestTimeout\\": 34,\\n \\"SecurityPolicyId\\": \\"tls_cipher_policy_1_1\\",\\n \\"XForwardedForConfig\\": {\\n \\"XForwardedForClientCertClientVerifyAlias\\": \\"test_client-verify-alias_123456\\",\\n \\"XForwardedForClientCertClientVerifyEnabled\\": true,\\n \\"XForwardedForClientCertFingerprintAlias\\": \\"test_finger-print-alias_123456\\",\\n \\"XForwardedForClientCertFingerprintEnabled\\": true,\\n \\"XForwardedForClientCertIssuerDNAlias\\": \\"test_issue-dn-alias_123456\\",\\n \\"XForwardedForClientCertIssuerDNEnabled\\": true,\\n \\"XForwardedForClientCertSubjectDNAlias\\": \\"test_subject-dn-alias_123456\\",\\n \\"XForwardedForClientCertSubjectDNEnabled\\": true,\\n \\"XForwardedForClientSrcPortEnabled\\": true,\\n \\"XForwardedForEnabled\\": true,\\n \\"XForwardedForProcessingMode\\": \\"append\\",\\n \\"XForwardedForProtoEnabled\\": true,\\n \\"XForwardedForSLBIdEnabled\\": true,\\n \\"XForwardedForSLBPortEnabled\\": true,\\n \\"XForwardedForClientSourceIpsEnabled\\": false,\\n \\"XForwardedForClientSourceIpsTrusted\\": \\"10.1.1.0/24\\",\\n \\"XForwardedForHostEnabled\\": false\\n },\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ]\\n }\\n ],\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\",\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListListenersResponse>\\n <Listeners>\\n <DefaultActions>\\n <ForwardGroupConfig>\\n <ServerGroupTuples>\\n <ServerGroupId>rsp-cige6j****</ServerGroupId>\\n </ServerGroupTuples>\\n </ForwardGroupConfig>\\n <Type>ForwardGroup</Type>\\n </DefaultActions>\\n <GzipEnabled>false</GzipEnabled>\\n <Http2Enabled>false</Http2Enabled>\\n <IdleTimeout>3</IdleTimeout>\\n <ListenerDescription>HTTP_80</ListenerDescription>\\n <ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>\\n <ListenerPort>80</ListenerPort>\\n <ListenerProtocol>HTTP</ListenerProtocol>\\n <ListenerStatus>Running</ListenerStatus>\\n <LoadBalancerId>alb-bd6oylbckp6k9x****</LoadBalancerId>\\n <LogConfig>\\n <AccessLogRecordCustomizedHeadersEnabled>true</AccessLogRecordCustomizedHeadersEnabled>\\n <AccessLogTracingConfig>\\n <TracingEnabled>true</TracingEnabled>\\n <TracingSample>100</TracingSample>\\n <TracingType>Zipkin</TracingType>\\n </AccessLogTracingConfig>\\n </LogConfig>\\n <QuicConfig>\\n <QuicListenerId>lsr-bp1bpn908w4nbw****</QuicListenerId>\\n <QuicUpgradeEnabled>true</QuicUpgradeEnabled>\\n </QuicConfig>\\n <RequestTimeout>34</RequestTimeout>\\n <SecurityPolicyId>tls_cipher_policy_1_1</SecurityPolicyId>\\n <XForwardedForConfig>\\n <XForwardedForClientCertClientVerifyAlias>test_client-verify-alias_123456</XForwardedForClientCertClientVerifyAlias>\\n <XForwardedForClientCertClientVerifyEnabled>true</XForwardedForClientCertClientVerifyEnabled>\\n <XForwardedForClientCertFingerprintAlias>test_finger-print-alias_123456</XForwardedForClientCertFingerprintAlias>\\n <XForwardedForClientCertFingerprintEnabled>true</XForwardedForClientCertFingerprintEnabled>\\n <XForwardedForClientCertIssuerDNAlias>test_issue-dn-alias_123456</XForwardedForClientCertIssuerDNAlias>\\n <XForwardedForClientCertIssuerDNEnabled>true</XForwardedForClientCertIssuerDNEnabled>\\n <XForwardedForClientCertSubjectDNAlias>test_subject-dn-alias_123456</XForwardedForClientCertSubjectDNAlias>\\n <XForwardedForClientCertSubjectDNEnabled>true</XForwardedForClientCertSubjectDNEnabled>\\n <XForwardedForClientSrcPortEnabled>true</XForwardedForClientSrcPortEnabled>\\n <XForwardedForEnabled>true</XForwardedForEnabled>\\n <XForwardedForProtoEnabled>true</XForwardedForProtoEnabled>\\n <XForwardedForSLBIdEnabled>true</XForwardedForSLBIdEnabled>\\n <XForwardedForSLBPortEnabled>true</XForwardedForSLBPortEnabled>\\n <XForwardedForClientSourceIpsEnabled>false</XForwardedForClientSourceIpsEnabled>\\n <XForwardedForClientSourceIpsTrusted>10.1.1.0/24</XForwardedForClientSourceIpsTrusted>\\n </XForwardedForConfig>\\n </Listeners>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <TotalCount>1000</TotalCount>\\n</ListListenersResponse>","errorExample":""}]',
],
'ListLoadBalancers' => [
'summary' => '查询实例配置',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslb6TP8T4'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '用来标记当前开始读取的位置,置空表示从头开始。', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '本次读取的最大数据记录数量,此参数为可选参数,取值1-100,用户传入为空时,默认为20。', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值:**20**。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => ['title' => '可用区ID', 'description' => '应用型负载均衡实例所在的可用区ID。'."\n"
."\n"
.'您可以通过调用[DescribeZones](~~189196~~)接口获取可用区ID对应的可用区信息。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-a'],
],
[
'name' => 'LoadBalancerStatus',
'in' => 'query',
'schema' => ['title' => '实例状态', 'description' => '应用型负载均衡实例状态。取值:'."\n"
."\n"
.'- **Inactive**: 已停止,监听不再转发流量。'."\n"
."\n"
.'- **Active**::运行中。'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Configuring**:变配中。'."\n"
."\n"
.'- **CreateFailed**:创建失败,此时不会产生费用,实例只能被删除。系统默认清理最近1天创建失败的实例。', 'type' => 'string', 'required' => false, 'example' => 'Active'],
],
[
'name' => 'LoadBalancerBussinessStatus',
'in' => 'query',
'schema' => ['title' => '实例业务状态', 'description' => '应用型负载均衡的业务状态。取值:'."\n"
."\n"
.'- **Abnormal**:异常。'."\n"
."\n"
.'- **Normal**:正常。', 'type' => 'string', 'required' => false, 'example' => 'Normal'],
],
[
'name' => 'LoadBalancerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '实例ID列表,N最大支持20',
'description' => '实例ID列表。最多支持20个应用型负载均衡实例ID。',
'type' => 'array',
'items' => ['description' => '实例的ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-o9ulmq5hgn68jk****'],
'required' => false,
'maxItems' => 21,
'minItems' => 1,
],
],
[
'name' => 'LoadBalancerNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '实例Name列表,N最大支持10',
'description' => '实例名称列表。最多支持10个实例名称。',
'type' => 'array',
'items' => ['description' => '实例名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小写英文字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。', 'type' => 'string', 'required' => false, 'example' => 'alb-instance-test'],
'required' => false,
'maxItems' => 11,
'minItems' => 1,
],
],
[
'name' => 'VpcIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'vpcId列表',
'description' => '应用型负载均衡实例所属的VPC ID。最多支持10个VPC ID。',
'type' => 'array',
'items' => ['description' => '应用型负载均衡实例所属的VPC ID。', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1b49rqrybk45nio****'],
'required' => false,
'maxItems' => 11,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'tag列表',
'description' => '实例标签。',
'type' => 'array',
'items' => [
'description' => '实例标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '实例的标签键', 'description' => '实例的标签键。最多支持输入20个标签键。一旦输入该值,则不允许为空字符串。'."\n"
."\n"
.'最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'KeyTest'],
'Value' => ['title' => '实例的标签值', 'description' => '实例的标签值。最多支持输入20个标签值。一旦输入该值,可以为空字符串。'."\n"
."\n"
.'最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'alueTest'],
],
'required' => false,
],
'required' => false,
'maxItems' => 21,
'minItems' => 1,
],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['title' => '负载均衡的地址类型', 'description' => '实例地址类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'required' => false, 'example' => 'Intranet'],
],
[
'name' => 'PayType',
'in' => 'query',
'schema' => ['title' => '付费类型', 'description' => '实例的计费类型。取值:'."\n"
."\n"
.'**PostPay**(默认值):表示按量计费。', 'type' => 'string', 'required' => false, 'example' => 'PostPay'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组ID', 'description' => '企业资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmxazb4ph****'],
],
[
'name' => 'AddressIpVersion',
'in' => 'query',
'schema' => ['title' => '需要过滤的协议版本', 'description' => '协议版本。取值:'."\n"
."\n"
.'- **IPv4**:IPv4类型。'."\n"
.'- **DualStack**:双栈类型。', 'type' => 'string', 'required' => false, 'example' => 'IPv4'],
],
[
'name' => 'Ipv6AddressType',
'in' => 'query',
'schema' => ['title' => 'IPV6的地址网络类型', 'description' => '应用型负载均衡的IPv6地址类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'required' => false, 'example' => 'Intranet'],
],
[
'name' => 'DNSName',
'in' => 'query',
'schema' => ['description' => 'DNS域名。', 'type' => 'string', 'required' => false, 'example' => 'alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '应用型负载均衡实例配置信息。',
'type' => 'object',
'properties' => [
'LoadBalancers' => [
'title' => '实例列表',
'description' => '应用型负载均衡实例列表。',
'type' => 'array',
'items' => [
'description' => '应用型负载均衡实例结构。',
'type' => 'object',
'properties' => [
'AccessLogConfig' => [
'title' => '访问日志属性',
'description' => '访问日志配置结构。',
'type' => 'object',
'properties' => [
'LogProject' => ['title' => '访问日志投递的logProject', 'description' => '日志项目。', 'type' => 'string', 'example' => 'sls-setter'],
'LogStore' => ['title' => '删除保护开启时间', 'description' => '日志存储。', 'type' => 'string', 'example' => 'test'],
],
],
'AddressAllocatedMode' => ['title' => '地址模式', 'description' => '地址模式。取值 :'."\n"
."\n"
.'- **Fixed**:固定IP模式,表示使用固定IP地址。'."\n"
."\n"
.'- **Dynamic**:动态IP模式,表示每个可用区动态分配IP地址。', 'type' => 'string', 'example' => 'Fixed'],
'AddressType' => ['title' => '地址类型', 'description' => '负载均衡的地址类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'example' => 'Intranet'],
'BandwidthPackageId' => ['title' => '带宽包ID', 'description' => '公网类型实例关联的共享带宽包ID。', 'type' => 'string', 'example' => 'cbwp-bp1vevu8h3ieh****'],
'CreateTime' => ['title' => '资源创建时间', 'description' => '资源创建时间。', 'type' => 'string', 'example' => '2022-07-02T02:49:05Z'],
'DNSName' => ['title' => 'DNS域名', 'description' => 'DNS域名。', 'type' => 'string', 'example' => 'alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com'],
'DeletionProtectionConfig' => [
'title' => '负载均衡删除保护相关信息',
'description' => '删除保护配置。',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '删除保护状态', 'description' => '删除保护状态,取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
."\n"
.'- **false**:关闭。', 'type' => 'boolean', 'example' => 'true'],
'EnabledTime' => ['title' => '删除保护开启时间', 'description' => '开启删除保护时间。', 'type' => 'string', 'example' => '2022-08-02T02:49:05Z'],
],
],
'LoadBalancerBillingConfig' => [
'title' => '计费相关属性',
'description' => '负载均衡实例计费配置。',
'type' => 'object',
'properties' => [
'PayType' => ['title' => '实例的计费类型', 'description' => '计费类型。取值:'."\n"
."\n"
.'**PostPay**:按量计费。', 'type' => 'string', 'example' => 'PostPay', 'default' => 'PostPay'],
],
],
'LoadBalancerBussinessStatus' => ['title' => '实例业务状态', 'description' => '负载均衡的业务状态。取值:'."\n"
."\n"
.'- **Abnormal**:异常。'."\n"
."\n"
.'- **Normal**:正常。', 'type' => 'string', 'example' => 'Normal'],
'LoadBalancerEdition' => ['title' => '负载均衡的版本', 'description' => '负载均衡的版本,不同版本有不同功能限制和计费策略。取值:'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
."\n"
.'- **Standard**:标准版。'."\n"
."\n"
.'- **StandardWithWaf**:WAF增强版。'."\n"
."\n", 'type' => 'string', 'example' => 'Standard'],
'LoadBalancerId' => ['title' => '负载均衡标识', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-o9ulmq5hgn68jk****'],
'LoadBalancerName' => ['title' => '实例名称', 'description' => '负载均衡实例名称。', 'type' => 'string', 'example' => 'alb-instance-test'],
'LoadBalancerOperationLocks' => [
'title' => '锁定的原因',
'description' => '负载均衡操作锁配置。',
'type' => 'array',
'items' => [
'description' => '负载均衡操作锁结构。',
'type' => 'object',
'properties' => [
'LockReason' => ['title' => '锁定的原因', 'description' => '锁定的原因。在**LoadBalancerBussinessStatus**为**异常**时有效。', 'type' => 'string'],
'LockType' => ['title' => '锁定的类型', 'description' => '锁定的类型。取值 :'."\n"
."\n"
.'- **SecurityLocked**:安全锁定。'."\n"
."\n"
.'- **RelatedResourceLocked**:关联锁定。'."\n"
."\n"
.'- **FinancialLocked**:欠费锁定。'."\n"
."\n"
.'- **ResidualLocked**:残留锁定。', 'type' => 'string', 'example' => 'FinancialLocked'],
],
],
],
'LoadBalancerStatus' => ['title' => '实例状态', 'description' => '应用型负载均衡实例状态。取值:'."\n"
."\n"
.'- **Inactive**: 已停止,表示实例监听不会再转发流量。'."\n"
."\n"
.'- **Active**: 运行中。'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Configuring**:变配中。'."\n"
."\n"
.'- **CreateFailed**:创建失败。', 'type' => 'string', 'example' => 'Active'],
'ModificationProtectionConfig' => [
'title' => '负载均衡修改保护相关信息',
'description' => '修改保护配置。',
'type' => 'object',
'properties' => [
'Reason' => ['title' => '设置修改保护状态的原因', 'description' => '开启修改保护的原因。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小写英文字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。'."\n"
."\n"
.'仅在**Status**为**ConsoleProtection**时返回。', 'type' => 'string', 'example' => 'Managed Instance'],
'Status' => ['title' => '负载均衡修改保护状态', 'description' => '应用型负载均衡实例的修改保护状态。取值:'."\n"
."\n"
.'- **NonProtection**:未开启修改保护。如有配置**Reason**,**Reason**会被强制置空。'."\n"
."\n"
.'- **ConsoleProtection**:已开启控制台修改保护。如有配置**Reason**,**Reason**可生效。'."\n"
."\n"
.'> 当取值为**ConsoleProtection**,即开启修改保护后,用户不能通过负载均衡控制台修改实例配置,但可以通过调用API修改实例配置。', 'type' => 'string', 'example' => 'ConsoleProtection'],
],
],
'ResourceGroupId' => ['title' => '企业资源组ID', 'description' => '企业资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
'Tags' => [
'title' => '标签列表',
'description' => '标签列表。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '实例的标签键', 'description' => '实例的标签键。', 'type' => 'string', 'example' => 'KeyTest'],
'Value' => ['title' => '实例的标签值', 'description' => '实例的标签值。', 'type' => 'string', 'example' => 'alueTest'],
],
],
],
'VpcId' => ['title' => 'Vpc网络ID', 'description' => '应用型负载均衡实例的专有网络ID。', 'type' => 'string', 'example' => 'vpc-bp1b49rqryhk45nio****'],
'AddressIpVersion' => ['title' => '协议版本', 'description' => '协议版本。取值:'."\n"
."\n"
.'- **IPv4**:IPv4类型。'."\n"
."\n"
.'- **DualStack**:双栈类型。', 'type' => 'string', 'example' => 'DualStack'],
'Ipv6AddressType' => ['title' => 'IPV6地址类型', 'description' => '应用型负载均衡IPv6的网络地址类型。取值:'."\n"
."\n"
.'- **Internet**:公网。负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:私网。负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'example' => 'Intranet'],
'SecurityGroupIds' => [
'description' => '应用型负载均衡实例加入的安全组。',
'type' => 'array',
'items' => ['description' => '应用型负载均衡实例加入的安全组。', 'type' => 'string', 'example' => 'sg-2zejdtxxpu8c9tny****'],
],
],
],
],
'MaxResults' => ['title' => '本次请求所返回的最大记录条数。', 'description' => '分批次查询时每次显示的条目数。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['title' => '用来表示当前调用返回读取到的位置,空代表数据已经读取完毕。', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
'TotalCount' => ['title' => '本次请求条件下的数据总量。', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
],
],
],
],
'title' => '查询负载均衡',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListLoadBalancers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/*'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"LoadBalancers\\": [\\n {\\n \\"AccessLogConfig\\": {\\n \\"LogProject\\": \\"sls-setter\\",\\n \\"LogStore\\": \\"test\\"\\n },\\n \\"AddressAllocatedMode\\": \\"Fixed\\",\\n \\"AddressType\\": \\"Intranet\\",\\n \\"BandwidthPackageId\\": \\"cbwp-bp1vevu8h3ieh****\\",\\n \\"CreateTime\\": \\"2022-07-02T02:49:05Z\\",\\n \\"DNSName\\": \\"alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com\\",\\n \\"DeletionProtectionConfig\\": {\\n \\"Enabled\\": true,\\n \\"EnabledTime\\": \\"2022-08-02T02:49:05Z\\"\\n },\\n \\"LoadBalancerBillingConfig\\": {\\n \\"PayType\\": \\"PostPay\\"\\n },\\n \\"LoadBalancerBussinessStatus\\": \\"Normal\\",\\n \\"LoadBalancerEdition\\": \\"Standard\\",\\n \\"LoadBalancerId\\": \\"alb-o9ulmq5hgn68jk****\\",\\n \\"LoadBalancerName\\": \\"alb-instance-test\\",\\n \\"LoadBalancerOperationLocks\\": [\\n {\\n \\"LockReason\\": \\"\\",\\n \\"LockType\\": \\"FinancialLocked\\"\\n }\\n ],\\n \\"LoadBalancerStatus\\": \\"Active\\",\\n \\"ModificationProtectionConfig\\": {\\n \\"Reason\\": \\"Managed Instance\\",\\n \\"Status\\": \\"ConsoleProtection\\"\\n },\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"KeyTest\\",\\n \\"Value\\": \\"alueTest\\"\\n }\\n ],\\n \\"VpcId\\": \\"vpc-bp1b49rqryhk45nio****\\",\\n \\"AddressIpVersion\\": \\"DualStack\\",\\n \\"Ipv6AddressType\\": \\"Intranet\\",\\n \\"SecurityGroupIds\\": [\\n \\"sg-2zejdtxxpu8c9tny****\\"\\n ]\\n }\\n ],\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\",\\n \\"TotalCount\\": 100\\n}","errorExample":""},{"type":"xml","example":"<ListLoadBalancersResponse>\\n <LoadBalancers>\\n <AccessLogConfig>\\n <LogProject>sls-setter</LogProject>\\n <LogStore>test</LogStore>\\n </AccessLogConfig>\\n <AddressAllocatedMode>Fixed</AddressAllocatedMode>\\n <AddressType>Intranet</AddressType>\\n <BandwidthPackageId>cbwp-bp1vevu8h3ieh****</BandwidthPackageId>\\n <CreateTime>2022-07-02T02:49:05Z</CreateTime>\\n <DNSName>alb-95qnr2itwu9orb****.cn-hangzhou.alb.aliyuncs.com</DNSName>\\n <DeletionProtectionConfig>\\n <Enabled>true</Enabled>\\n <EnabledTime>2022-08-02T02:49:05Z</EnabledTime>\\n </DeletionProtectionConfig>\\n <LoadBalancerBillingConfig>\\n <PayType>PostPay</PayType>\\n </LoadBalancerBillingConfig>\\n <LoadBalancerBussinessStatus>Normal</LoadBalancerBussinessStatus>\\n <LoadBalancerEdition>Standard</LoadBalancerEdition>\\n <LoadBalancerId>alb-o9ulmq5hgn68jk****</LoadBalancerId>\\n <LoadBalancerName>alb-instance-test</LoadBalancerName>\\n <LoadBalancerOperationLocks>\\n <LockReason>欠费</LockReason>\\n <LockType>FinancialLocked</LockType>\\n </LoadBalancerOperationLocks>\\n <LoadBalancerStatus>Active</LoadBalancerStatus>\\n <ModificationProtectionConfig>\\n <Reason>托管实例</Reason>\\n <Status>ConsoleProtection</Status>\\n </ModificationProtectionConfig>\\n <ResourceGroupId>rg-atstuj3rtop****</ResourceGroupId>\\n <Tags>\\n <Key>KeyTest</Key>\\n <Value>alueTest</Value>\\n </Tags>\\n <VpcId>vpc-bp1b49rqrybk45nio****</VpcId>\\n <AddressIpVersion>DualStack</AddressIpVersion>\\n <Ipv6AddressType>Intranet</Ipv6AddressType>\\n </LoadBalancers>\\n <MaxResults>20</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <TotalCount>100</TotalCount>\\n</ListLoadBalancersResponse>","errorExample":""}]',
],
'ListRules' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbM7ALO6'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '用来标记当前开始读取的位置,置空表示从头开始。', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '本次读取的最大数据记录数量,此参数为可选参数,取值1-100,用户传入为空时,默认为20。', 'description' => '本次读取的最大数据记录数。'."\n"
."\n"
.'取值:**1~100**。'."\n"
."\n"
.'默认值:**20**,表示用户没有传入数据。'."\n"
."\n"
.'> 此参数为可选。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
[
'name' => 'RuleIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '转发规则ID列表,N最大支持20',
'description' => '转发规则列表,一次最多支持查询20个转发规则。',
'type' => 'array',
'items' => ['description' => '转发规则ID。', 'type' => 'string', 'required' => false, 'example' => 'rule-sada******'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'ListenerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听ID列表',
'description' => '监听ID列表。一次最多支持查询20个监听。',
'type' => 'array',
'items' => ['description' => '监听ID。', 'type' => 'string', 'required' => false, 'example' => 'lsn-i35udpz3pxsmnf****'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'LoadBalancerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '实例ID列表',
'description' => '负载均衡实例ID列表。一次最多支持查询20个实例。',
'type' => 'array',
'items' => ['description' => '负载均衡实例ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-x30o38azsuj0sx****'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'Direction',
'in' => 'query',
'schema' => ['title' => '转发规则方向', 'description' => '转发规则的方向。取值:'."\n"
."\n"
.'- **Request**(默认值):请求类型,对从客户端发送到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'- **Response**:响应类型,对从后端服务器组返回到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'>基础版的ALB实例不支持Response类型.', 'type' => 'string', 'required' => false, 'example' => 'Request'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
'maxItems' => 20,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '转发规则。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次请求所返回的最大记录条数。', 'description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '用来表示当前调用返回读取到的位置,空代表数据已经读取完毕。', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876F******'],
'Rules' => [
'title' => '转发规则列表',
'description' => '转发规则列表。',
'type' => 'array',
'items' => [
'description' => '转发规则结构。',
'type' => 'object',
'properties' => [
'ListenerId' => ['title' => '监听ID', 'description' => '转发规则所属监听ID。', 'type' => 'string', 'example' => 'lsn-i35udpz3pxsmnf****'],
'LoadBalancerId' => ['title' => '实例ID', 'description' => '转发规则所属负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-x30o38azsuj0sx****'],
'Priority' => ['title' => '转发规则优先级', 'description' => '规则优先级,取值为**1~10000**。值越小表示优先级越高。'."\n"
."\n"
.'> 同一个监听内规则优先级必须唯一。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RuleActions' => [
'title' => '转发规则动作',
'description' => '转发规则动作列表。',
'type' => 'array',
'items' => [
'description' => '转发规则动作结构。',
'type' => 'object',
'properties' => [
'FixedResponseConfig' => [
'title' => '返回固定内容动作配置',
'description' => '固定响应内容配置。',
'type' => 'object',
'properties' => [
'Content' => ['title' => '内容', 'description' => '返回的固定内容。最大1 KB字节,只支持ASCII字符。', 'type' => 'string', 'example' => 'dssacav'],
'ContentType' => ['title' => '内容类型', 'description' => '返回固定内容的格式。'."\n"
."\n"
.'取值:**text/plain**、**text/css**、**text/html**、**application/javascript**或**application/json**。', 'type' => 'string', 'example' => 'text/plain'],
'HttpCode' => ['title' => 'HTTP响应码', 'description' => '返回的HTTP响应码,仅支持**HTTP_2xx**、**HTTP_4xx**、**HTTP_5xx**数字型字符串,**x**为任意数字。', 'type' => 'string', 'example' => 'HTTP_2xx'],
],
],
'ForwardGroupConfig' => [
'title' => '转发组动作配置',
'description' => '转发组配置。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '转发到的目的服务器组列表',
'description' => '转发到的目的服务器组列表。',
'type' => 'array',
'items' => [
'description' => '转发到的目的服务器组列表。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组标识', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'example' => 'sgp-atstuj3rtoptyui****'],
'Weight' => ['title' => '当ServerGroupTuple.N数量大于1时,可配置每个服务器组的权重', 'description' => '权重。取值范围:**0**~**100**。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
],
],
'ServerGroupStickySession' => [
'title' => '服务器组间会话保持配置',
'description' => '服务器组间会话保持配置',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '当ServerGroupTuple.N数量大于1时,可选是否开启在服务器组间的会话保持', 'description' => '当ServerGroupTuple.N数量大于1时,可选是否开启在服务器组间的会话保持', 'type' => 'boolean'],
'Timeout' => ['title' => '当Enabled=True时,可以配置会话保持的超时时间', 'description' => '当Enabled=True时,可以配置会话保持的超时时间', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
],
],
],
],
'InsertHeaderConfig' => [
'title' => '插入头部动作配置',
'description' => '写入头字段配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头', 'description' => '插入的头字段名称,长度为1\\~40个字符,支持大小写字母a\\~z、数字、下划线(_)和短划线(-)。头字段名称不能重复用于`InsertHeader`中。'."\n"
."\n"
.'> 不允许用户在头字段名称中使用**Cookie**和**Host**。', 'type' => 'string', 'example' => 'key'],
'Value' => ['title' => 'HTTP标头内容', 'description' => '插入的头字段内容。'."\n"
."\n"
.'- **ValueType**取值为**SystemDefined**时取值如下:'."\n"
.' - **ClientSrcPort**:客户端端口。'."\n"
.' - **ClientSrcIp**:客户端IP地址。'."\n"
.' - **Protocol**:客户端请求的协议(HTTP或HTTPS)。'."\n"
.' - **SLBId**:应用型负载均衡实例ID。'."\n"
.' - **SLBPort**:应用型负载均衡实例监听端口。'."\n"
.'- **ValueType**取值为**UserDefined**时:您可自定义头字段内容,限制长度为1\\~128个字符,支持通配符星号(*)、半角问号(?)和ASCII码值`ch >= 32 && ch < 127`范围内的可打印字符,开头和结尾不能为空格。'."\n"
.'- **ValueType**取值为**ReferenceHeader**时:您可以引用请求头字段中的某一个字段,限制长度限制为1\\~128个字符,支持小写字母a\\~z、数字、短划线(-)和下划线(_)。', 'type' => 'string', 'example' => 'ClientSrcPort'],
'ValueType' => ['title' => '取值类型', 'description' => '头字段内容类型。取值:'."\n"
."\n"
.'- **UserDefined**:用户指定。'."\n"
."\n"
.'- **ReferenceHeader**:引用用户请求头中的某一个字段。'."\n"
."\n"
.'- **SystemDefined**:系统定义。', 'type' => 'string', 'example' => 'SystemDefined'],
],
],
'Order' => ['title' => '优先级', 'description' => '转发规则动作执行的顺序,取值为**1~50000**,按值从小到大执行动作。值不能为空,不能重复。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RedirectConfig' => [
'title' => '重定向动作配置',
'description' => '重定向配置。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '要跳转的主机地址', 'description' => '要跳转的主机地址。取值:'."\n"
.'- **${host}**(默认值):取此值时不支持和其他字符拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)和半角问号(?)。'."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-)。'."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。'."\n"
.' - 通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'example' => 'www.example.com'],
'HttpCode' => ['title' => '跳转方式', 'description' => '跳转方式,取值为**301**、**302**、**303**、**307**或**308**。', 'type' => 'string', 'example' => '301'],
'Path' => ['title' => '要跳转的路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用**${host}**、**${protocol}**和**${port}**,由**${host}**、**${protocol}**和**${port}**组成,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1~128个字符。'."\n"
.' - 必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:`,不支持`“%#;!()[]^,” `,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'example' => '/test'],
'Port' => ['title' => '要跳转的端口', 'description' => '要跳转的端口。取值:'."\n"
.'- **${port}**(默认值):该取值不支持和其他字符同时使用。'."\n"
.'- 其他取值:**1~63335**。', 'type' => 'string', 'example' => '10'],
'Protocol' => ['title' => '要跳转的协议', 'description' => '要跳转的协议。取值:'."\n"
.'- **${protocol}**(默认值):取该值时不支持和其他字符拼接使用。'."\n"
.'- **HTTP**或**HTTPS**。'."\n"
."\n"
.' '."\n"
.'> HTTPS监听仅支持跳转HTTPS协议。', 'type' => 'string', 'example' => 'HTTP'],
'Query' => ['title' => '要跳转的查询字符串', 'description' => '要跳转的查询字符串。长度为1~128个字符,支持小写字母和可见字符,不支持 `#[]{}\\|<>&`。'."\n", 'type' => 'string', 'example' => 'quert'],
],
],
'RemoveHeaderConfig' => [
'title' => '去除HTTP标头',
'description' => '去除HTTP头部配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头', 'description' => '去除的头字段名称,长度为1\\~40个字符,支持大小写字母a~z、数字、下划线(_)和短划线(-)。头字段名称不能重复用于RemoveHeader中。'."\n"
."\n"
.'* 请求方向(Direction取值为Request):不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`。'."\n"
.'* 响应方向(Direction取值为Response):响应方向不允许将头名称设置为以下字段(不区分大小写):`connection`、`upgrade`、`content-length`、`transfer-encoding`。', 'type' => 'string', 'example' => 'key'],
],
],
'RewriteConfig' => [
'title' => '内部重定向动作配置',
'description' => '重写配置。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '主机名', 'description' => '要跳转的主机地址。取值:'."\n"
.'- **${host}**(默认值):取此值时不支持和其他字符拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)和半角问号(?)。'."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-)。'."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。'."\n"
.' - 通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'example' => 'www.example.com'],
'Path' => ['title' => '路径', 'description' => '内部跳转的目的路径。长度为1~128个字符,以正斜线(/)开头,支持字母、数字、星号(*)、半角问号(?)和`$-_.+/&~@:`,不支持`“%#;!()[]^,” `。', 'type' => 'string', 'example' => '/tsdf'],
'Query' => ['title' => '查询', 'description' => '内部跳转的查询字符串。长度为1~128个字符,支持小写字母和可见字符,不支持 `#[]{}\\|<>&`。'."\n"
."\n", 'type' => 'string', 'example' => 'quedsa'],
],
],
'TrafficMirrorConfig' => [
'title' => '流量镜像Action对应的配置,type为TrafficMirror时必填且有效',
'description' => '流量镜像。',
'type' => 'object',
'properties' => [
'TargetType' => ['title' => '流量镜像的目的,可以是服务器组', 'description' => '流量镜像的目的,可以是服务器组', 'type' => 'string', 'example' => 'ForwardGroupMirror'],
'MirrorGroupConfig' => [
'title' => 'TargetType为服务器组时必选,目标服务器组',
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'description' => '流量镜像至服务器组。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ServerGroupId' => ['description' => '服务器组ID。', 'type' => 'string', 'example' => 'sgp-00mkgijak0w4qgz9****'],
'Weight' => ['description' => '权重。取值范围:**0**~**100**。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
'description' => '',
],
],
],
],
],
],
'TrafficLimitConfig' => [
'description' => '流量限速。',
'type' => 'object',
'properties' => [
'QPS' => ['description' => '每秒请求次数。取值范围:**1**~**100000**。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'PerIpQps' => ['description' => '单IP每秒请求次数。 取值范围:**1 ~ 100000**。'."\n"
."\n"
.'> 如果同时配置**QPS**参数,**PerIpQps**参数的取值必须小于**QPS**参数的取值。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
],
],
'Type' => ['title' => '转发规则动作类型', 'description' => '动作类型。取值:'."\n"
."\n"
.'- **ForwardGroup**:转发至多个虚拟服务器组。'."\n"
."\n"
.'- **Redirect**:重定向。'."\n"
."\n"
.'- **FixedResponse**:返回固定内容。'."\n"
."\n"
.'- **Rewrite**:重写。'."\n"
."\n"
.'- **InsertHeader**:写入头字段。'."\n"
."\n"
.'- **RemoveHeaderConfig**:删除头字段。'."\n"
."\n"
.'- **TrafficLimitConfig**:流量限速。'."\n"
."\n"
.'- **TrafficMirrorConfig**:流量镜像。'."\n"
."\n"
.'- **CorsConfig**:跨域。', 'type' => 'string', 'example' => 'ForwardGroup'],
'CorsConfig' => [
'title' => '跨域',
'description' => '跨域。',
'type' => 'object',
'properties' => [
'AllowOrigin' => [
'title' => '允许的访问来源',
'description' => '允许的访问来源。',
'type' => 'array',
'items' => ['description' => '允许访问的来源。支持配置为`*`或配置为一个或多个value值。value的值不能为`*`。'."\n"
."\n"
.'- 单个value值必须以`http://`或者`https://`开头,后面加一个正确的域名或者一级的泛域名(例如,`*.test.abc.example.com`)。'."\n"
.'- 单个value值可以不加端口,也可以指定端口,端口范围:**1**~**65535**。', 'type' => 'string', 'example' => 'http://test.com'],
],
'AllowMethods' => [
'title' => '选择跨域访问时允许的HTTP方法',
'description' => '选择跨域访问时允许的HTTP方法。',
'type' => 'array',
'items' => ['description' => '选择跨域访问时允许的HTTP方法。取值:'."\n"
.'- **GET**。'."\n"
.'- **POST**。'."\n"
.'- **PUT**。'."\n"
.'- **DELETE**。'."\n"
.'- **HEAD**。'."\n"
.'- **OPTIONS**。'."\n"
.'- **PATCH**。', 'type' => 'string', 'example' => 'GET'],
],
'AllowHeaders' => [
'title' => '允许跨域的Header列表',
'description' => '允许跨域的Header列表。',
'type' => 'array',
'items' => ['description' => '允许跨域的Header列表。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'example' => 'test_123'],
],
'ExposeHeaders' => [
'title' => '允许暴露的Header列表',
'description' => '允许暴露的Header列表。',
'type' => 'array',
'items' => ['description' => '允许跨域的Header列表。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'example' => 'test_123'],
],
'AllowCredentials' => ['title' => '是否允许携带凭证信息', 'description' => '是否允许携带凭证信息。取值:'."\n"
."\n"
.'- **on**:是。'."\n"
.'- **off**:否。', 'type' => 'string', 'example' => 'on'],
'MaxAge' => ['title' => '预检请求在浏览器的最大缓存时间', 'description' => '预检请求在浏览器的最大缓存时间,单位:秒。'."\n"
."\n"
.'取值范围:**-1**~**172800**。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
],
],
],
],
],
'RuleConditions' => [
'title' => '转发规则条件',
'description' => '转发规则条件列表。',
'type' => 'array',
'items' => [
'description' => '转发规则条件结构。',
'type' => 'object',
'properties' => [
'CookieConfig' => [
'title' => 'Cookie条件配置',
'description' => 'Cookie配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'Cookie键值对列表',
'description' => 'Cookie值。',
'type' => 'array',
'items' => [
'description' => 'Cookie值。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'Cookie条件键', 'description' => 'Cookie键。长度为1~100个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&`。', 'type' => 'string', 'example' => 'test'],
'Value' => ['title' => 'Cookie条件值', 'description' => 'Cookie值。长度为1~128个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&`。', 'type' => 'string', 'example' => 'test'],
],
],
],
],
],
'HeaderConfig' => [
'title' => 'HTTP标头条件配置',
'description' => '头字段配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '头字段键。长度为1\\~40个字符。支持字母a\\~z、数字、短划线(-)和下划线(_)。不支持Cookie和Host。', 'type' => 'string', 'example' => 'Port'],
'Values' => [
'title' => 'HTTP标头值列表',
'description' => '头字段值。',
'type' => 'array',
'items' => ['description' => '头字段值。长度为1\\~128个字符。支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、小写字母、星号(*)和半角问号(?)。开头和结尾不能为空格。', 'type' => 'string', 'example' => '5006'],
],
],
],
'HostConfig' => [
'title' => '主机名条件配置',
'description' => '主机配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '主机名列表',
'description' => '主机名。',
'type' => 'array',
'items' => ['description' => '主机名。命名规则:'."\n"
."\n"
.'- 域名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)、星号(*)和半角问号(?)。'."\n"
."\n"
.'- 域名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.'- 最右侧的域标签只能包含字母、星号(*)和半角问号(?),不能包含数字或短划线(-)。'."\n"
."\n"
.'- 短划线(-)不能出现在其它域标签的开头或结尾。星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'example' => 'www.example.com'],
],
],
],
'MethodConfig' => [
'title' => 'HTTP请求方法条件配置',
'description' => '请求方法配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'HTTP请求方法列表',
'description' => '请求方法。',
'type' => 'array',
'items' => ['description' => '请求方法。'."\n"
."\n"
.'取值:**HEAD**、**GET**、**POST**、**OPTIONS**、**PUT**、**PATCH**或**DELETE**。', 'type' => 'string', 'example' => 'PUT'],
],
],
],
'PathConfig' => [
'title' => '路径条件配置',
'description' => '转发路径配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '路径条件列表',
'description' => '转发路径。',
'type' => 'array',
'items' => ['description' => '转发路径。长度为1~128个字符,以正斜线(/)开头,支持字母、数字、星号(*)、半角问号(?)和`$-_.+/&~@:`,不支持`“%#;!()[]^,” `。', 'type' => 'string', 'example' => '/test'],
],
],
],
'QueryStringConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '查询字符串条件键值对列表',
'description' => '查询字符串。',
'type' => 'array',
'items' => [
'description' => '查询字符串。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '查询字符串条件键', 'description' => '查询字符串键。长度为1~100个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&`。', 'type' => 'string', 'example' => 'test'],
'Value' => ['title' => '查询字符串条件值', 'description' => '查询字符串值。长度为1~128个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&`。', 'type' => 'string', 'example' => 'test'],
],
],
],
],
],
'SourceIpConfig' => [
'title' => '源IP业务流量匹配',
'description' => '基于源IP业务流量匹配。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '需要匹配的源IP列表',
'description' => '需要匹配的源IP列表。',
'type' => 'array',
'items' => ['description' => '添加一个或多个IP地址或者IP地址段。'."\n"
."\n"
.'一条转发规则中最多支持添加5条源IP。', 'type' => 'string', 'example' => '192.168.XX.XX/32'],
],
],
],
'ResponseStatusCodeConfig' => [
'title' => '返回状态码条件',
'description' => '响应状态码配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '返回状态码条件列表',
'description' => '响应状态码列表。',
'type' => 'array',
'items' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'],
],
],
],
'ResponseHeaderConfig' => [
'title' => '返回HTTP标头',
'description' => '响应HTTP头部配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '返回HTTP标头键', 'description' => '响应HTTP头部键。长度为1\\~40个字符。支持字母a~z、数字、短划线(-)和下划线(_)。不支持Cookie和Host。', 'type' => 'string', 'example' => 'key'],
'Values' => [
'title' => '返回HTTP标头值',
'description' => '响应HTTP头部值列表。',
'type' => 'array',
'items' => ['description' => '响应HTTP头部值。长度为1~128个字符。', 'type' => 'string', 'example' => 'value'],
],
],
],
'Type' => ['title' => '条件类型', 'description' => '转发规则类型。取值:'."\n"
."\n"
.'- **Host**:主机。'."\n"
."\n"
.'- **Path**:路径。'."\n"
."\n"
.'- **Header**:HTTP头字段。'."\n"
."\n"
.'- **QueryString**:查询字符串。'."\n"
."\n"
.'- **Method**:请求方法。'."\n"
."\n"
.'- **Cookie**:Cookie。'."\n"
."\n"
.'- **SourceIp**:源IP。', 'type' => 'string', 'example' => 'Host'],
],
'required' => true,
],
],
'RuleId' => ['title' => '转发规则标识', 'description' => '转发规则ID。', 'type' => 'string', 'example' => 'rule-bpn0kn908w4nbw****'],
'RuleName' => ['title' => '转发规则名称', 'description' => '转发规则名称。 长度为2~128个英文或中文字符,必须以大小字母或中文开头,可包含数字,半角句号(.),下划线(_)和短划线(-)。', 'type' => 'string', 'example' => 'rule-instance-test'],
'RuleStatus' => ['title' => '转发规则状态', 'description' => '转发规则状态。取值:'."\n"
."\n"
.'- **Provisioning**:创建中。'."\n"
."\n"
.'- **Configuring**:变配中。'."\n"
."\n"
.'- **Available**:运行中。', 'type' => 'string', 'example' => 'Available'],
'Direction' => ['title' => '转发规则方向', 'description' => '转发规则的方向。取值:'."\n"
."\n"
.'* Request(默认值):请求类型,对从客户端发送到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'* Response:响应类型,对从后端服务器组返回到ALB的报文进行条件匹配并进行相应的处理。'."\n"
."\n"
.'> 基础版的ALB实例不支持Response类型。', 'type' => 'string', 'example' => 'Request'],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
'TotalCount' => ['title' => '本次请求条件下的数据总量。', 'description' => '本次请求条件下返回的总数据记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
],
'title' => '查询转发规则',
'summary' => '查询指定地域的转发规则。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876F******\\",\\n \\"Rules\\": [\\n {\\n \\"ListenerId\\": \\"lsn-i35udpz3pxsmnf****\\",\\n \\"LoadBalancerId\\": \\"alb-x30o38azsuj0sx****\\",\\n \\"Priority\\": 1,\\n \\"RuleActions\\": [\\n {\\n \\"FixedResponseConfig\\": {\\n \\"Content\\": \\"dssacav\\",\\n \\"ContentType\\": \\"text/plain\\",\\n \\"HttpCode\\": \\"HTTP_2xx\\"\\n },\\n \\"ForwardGroupConfig\\": {\\n \\"ServerGroupTuples\\": [\\n {\\n \\"ServerGroupId\\": \\"sgp-atstuj3rtoptyui****\\",\\n \\"Weight\\": 2\\n }\\n ],\\n \\"ServerGroupStickySession\\": {\\n \\"Enabled\\": true,\\n \\"Timeout\\": 100\\n }\\n },\\n \\"InsertHeaderConfig\\": {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"ClientSrcPort\\",\\n \\"ValueType\\": \\"SystemDefined\\"\\n },\\n \\"Order\\": 1,\\n \\"RedirectConfig\\": {\\n \\"Host\\": \\"www.example.com\\",\\n \\"HttpCode\\": \\"301\\",\\n \\"Path\\": \\"/test\\",\\n \\"Port\\": \\"10\\",\\n \\"Protocol\\": \\"HTTP\\",\\n \\"Query\\": \\"quert\\"\\n },\\n \\"RemoveHeaderConfig\\": {\\n \\"Key\\": \\"key\\"\\n },\\n \\"RewriteConfig\\": {\\n \\"Host\\": \\"www.example.com\\",\\n \\"Path\\": \\"/tsdf\\",\\n \\"Query\\": \\"quedsa\\"\\n },\\n \\"TrafficMirrorConfig\\": {\\n \\"TargetType\\": \\"ForwardGroupMirror\\",\\n \\"MirrorGroupConfig\\": {\\n \\"ServerGroupTuples\\": [\\n {\\n \\"ServerGroupId\\": \\"sgp-00mkgijak0w4qgz9****\\",\\n \\"Weight\\": 2\\n }\\n ]\\n }\\n },\\n \\"TrafficLimitConfig\\": {\\n \\"QPS\\": 4,\\n \\"PerIpQps\\": 80\\n },\\n \\"Type\\": \\"ForwardGroup\\",\\n \\"CorsConfig\\": {\\n \\"AllowOrigin\\": [\\n \\"http://test.com\\"\\n ],\\n \\"AllowMethods\\": [\\n \\"GET\\"\\n ],\\n \\"AllowHeaders\\": [\\n \\"test_123\\"\\n ],\\n \\"ExposeHeaders\\": [\\n \\"test_123\\"\\n ],\\n \\"AllowCredentials\\": \\"on\\",\\n \\"MaxAge\\": 1000\\n }\\n }\\n ],\\n \\"RuleConditions\\": [\\n {\\n \\"CookieConfig\\": {\\n \\"Values\\": [\\n {\\n \\"Key\\": \\"test\\",\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n },\\n \\"HeaderConfig\\": {\\n \\"Key\\": \\"Port\\",\\n \\"Values\\": [\\n \\"5006\\"\\n ]\\n },\\n \\"HostConfig\\": {\\n \\"Values\\": [\\n \\"www.example.com\\"\\n ]\\n },\\n \\"MethodConfig\\": {\\n \\"Values\\": [\\n \\"PUT\\"\\n ]\\n },\\n \\"PathConfig\\": {\\n \\"Values\\": [\\n \\"/test\\"\\n ]\\n },\\n \\"QueryStringConfig\\": {\\n \\"Values\\": [\\n {\\n \\"Key\\": \\"test\\",\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n },\\n \\"SourceIpConfig\\": {\\n \\"Values\\": [\\n \\"192.168.XX.XX/32\\"\\n ]\\n },\\n \\"ResponseStatusCodeConfig\\": {\\n \\"Values\\": [\\n \\"200\\"\\n ]\\n },\\n \\"ResponseHeaderConfig\\": {\\n \\"Key\\": \\"key\\",\\n \\"Values\\": [\\n \\"value\\"\\n ]\\n },\\n \\"Type\\": \\"Host\\"\\n }\\n ],\\n \\"RuleId\\": \\"rule-bpn0kn908w4nbw****\\",\\n \\"RuleName\\": \\"rule-instance-test\\",\\n \\"RuleStatus\\": \\"Available\\",\\n \\"Direction\\": \\"Request\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ]\\n }\\n ],\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListRulesResponse>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n <Rules>\\n <ListenerId>lsn-i35udpz3pxsmnf****</ListenerId>\\n <LoadBalancerId>alb-x30o38azsuj0sx****</LoadBalancerId>\\n <Priority>1</Priority>\\n <RuleActions>\\n <FixedResponseConfig>\\n <Content>dssacav</Content>\\n <ContentType>text/plain</ContentType>\\n <HttpCode>HTTP_2xx</HttpCode>\\n </FixedResponseConfig>\\n <ForwardGroupConfig>\\n <ServerGroupTuples>\\n <ServerGroupId>sg-atstuj3rtoptyui****</ServerGroupId>\\n <Weight>2</Weight>\\n </ServerGroupTuples>\\n </ForwardGroupConfig>\\n <InsertHeaderConfig>\\n <Key>key</Key>\\n <Value>ClientSrcPort</Value>\\n <ValueType>SystemDefined</ValueType>\\n </InsertHeaderConfig>\\n <Order>1</Order>\\n <RedirectConfig>\\n <Host>www.example.com</Host>\\n <HttpCode>301</HttpCode>\\n <Path>/test</Path>\\n <Port>10</Port>\\n <Protocol>HTTP</Protocol>\\n <Query>quert</Query>\\n </RedirectConfig>\\n <RewriteConfig>\\n <Host>www.example.com</Host>\\n <Path>/tsdf</Path>\\n <Query>quedsa</Query>\\n </RewriteConfig>\\n <TrafficMirrorConfig>\\n <MirrorGroupConfig>\\n <ServerGroupTuples>\\n <ServerGroupId>srg-00mkgijak0w4qgz9****</ServerGroupId>\\n <Weight>2</Weight>\\n </ServerGroupTuples>\\n </MirrorGroupConfig>\\n </TrafficMirrorConfig>\\n <TrafficLimitConfig>\\n <QPS>4</QPS>\\n <PerIpQps>80</PerIpQps>\\n </TrafficLimitConfig>\\n <Type>ForwardGroup</Type>\\n <CorsConfig>\\n <AllowOrigin>http://test.com</AllowOrigin>\\n <AllowMethods>GET</AllowMethods>\\n <AllowHeaders>test_123</AllowHeaders>\\n <ExposeHeaders>test_123</ExposeHeaders>\\n <AllowCredentials>on</AllowCredentials>\\n <MaxAge>1000</MaxAge>\\n </CorsConfig>\\n </RuleActions>\\n <RuleConditions>\\n <CookieConfig>\\n <Values>\\n <Key>test</Key>\\n <Value>test</Value>\\n </Values>\\n </CookieConfig>\\n <HeaderConfig>\\n <Key>Port</Key>\\n <Values>5006</Values>\\n </HeaderConfig>\\n <HostConfig>\\n <Values>www.example.com</Values>\\n </HostConfig>\\n <MethodConfig>\\n <Values>PUT</Values>\\n </MethodConfig>\\n <PathConfig>\\n <Values>/test</Values>\\n </PathConfig>\\n <QueryStringConfig>\\n <Values>\\n <Key>test</Key>\\n <Value>test</Value>\\n </Values>\\n </QueryStringConfig>\\n <SourceIpConfig>\\n <Values>192.168.XX.XX/32</Values>\\n </SourceIpConfig>\\n <Type>Host</Type>\\n </RuleConditions>\\n <RuleId>rule-bpn0kn908w4nbw****</RuleId>\\n <RuleName>rule-instance-test</RuleName>\\n <RuleStatus>Available</RuleStatus>\\n </Rules>\\n <TotalCount>1000</TotalCount>\\n</ListRulesResponse>","errorExample":""}]',
],
'ListSecurityPolicies' => [
'summary' => '查询指定地域的自定义安全策略。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组ID', 'description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'SecurityPolicyNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '安全策略名称',
'description' => '安全策略名称列表,最多支持10个。',
'type' => 'array',
'items' => ['description' => '安全策略名称,查询指定名称的安全策略。最多支持10个安全策略名称。', 'type' => 'string', 'required' => false, 'example' => 'test-secrity'],
'required' => false,
'maxItems' => 10,
'minItems' => 1,
],
],
[
'name' => 'SecurityPolicyIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '安全策略id',
'description' => '安全策略ID列表,最多20个。',
'type' => 'array',
'items' => ['description' => '安全策略ID,查询指定ID的安全策略。最多支持20个安全策略ID。', 'type' => 'string', 'required' => false, 'example' => 'sp-bp1bpn0kn9****'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
'SecurityPolicies' => [
'title' => '安全策略',
'description' => '支持的安全策略列表。',
'type' => 'array',
'items' => [
'description' => '安全策略数据结构。',
'type' => 'object',
'properties' => [
'Ciphers' => [
'title' => '加密套件',
'description' => '支持的加密算法列表。',
'type' => 'array',
'items' => ['description' => '支持的加密套件,具体依赖**TLSVersions**的取值。'."\n"
."\n"
.'- TLSv1.0和TLSv1.1 支持:'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
."\n"
.'- TLSv1.2支持'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
.' - ECDHE-ECDSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-ECDSA-AES128-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-SHA384'."\n"
.' - ECDHE-RSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-RSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-RSA-AES128-SHA256'."\n"
.' - ECDHE-RSA-AES256-SHA384 '."\n"
.' - AES128-GCM-SHA256'."\n"
.' - AES256-GCM-SHA384'."\n"
.' - AES128-SHA256'."\n"
.' - AES256-SHA256'."\n"
.' - ECDHE-RSA-CHACHA20-POLY1305'."\n"
.' - ECDHE-ECDSA-CHACHA20-POLY1305'."\n"
."\n"
.'- TLSv1.3支持: '."\n"
.' - TLS_AES_128_GCM_SHA256'."\n"
.' - TLS_AES_256_GCM_SHA384'."\n"
.' - TLS_CHACHA20_POLY1305_SHA256'."\n"
.' - TLS_AES_128_CCM_SHA256'."\n"
.' - TLS_AES_128_CCM_8_SHA256', 'type' => 'string', 'example' => 'ECDHE-ECDSA-AES128-SHA'],
],
'ResourceGroupId' => ['title' => '资源组id', 'description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
'SecurityPolicyId' => ['title' => '安全策略id', 'description' => '安全策略ID。', 'type' => 'string', 'example' => 'sp-9cdjz6o******'],
'SecurityPolicyName' => ['title' => '安全策略名称', 'description' => '安全策略名称。', 'type' => 'string', 'example' => 'test-secrity'],
'SecurityPolicyStatus' => ['title' => '状态', 'description' => '策略的状态,取值:'."\n"
."\n"
.'- **Configuring**:配置中。'."\n"
.'- **Available**:正常可用。', 'type' => 'string', 'example' => 'Available'],
'TLSVersions' => [
'title' => 'TLS策略',
'description' => '支持的TLS协议版本列表。',
'type' => 'array',
'items' => ['description' => '支持的TLS协议版本,取值:**TLSv1.0**、**TLSv1.1**、**TLSv1.2**和**TLSv1.3**。', 'type' => 'string', 'example' => 'TLSv1.1'],
],
'CreateTime' => ['description' => 'ACL创建时间,格式为:`YYYY-MM-DDThh:mm:ssZ`。', 'type' => 'string', 'example' => '2023-02-15T07:37:33Z'],
'Tags' => [
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '标签键。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'env'],
'Value' => ['description' => '标签值。最多支持128个字符,不能以aliyun或acs:开头,不能包含http://或https://。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
'TotalCount' => ['title' => '总记录数', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.SecurityPolicy', 'errorMessage' => 'Authentication has failed for SecurityPolicy.', 'description' => '对SecurityPolicy鉴权失败'],
],
],
'title' => '查询自定义安全策略',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListSecurityPolicies',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\",\\n \\"SecurityPolicies\\": [\\n {\\n \\"Ciphers\\": [\\n \\"ECDHE-ECDSA-AES128-SHA\\"\\n ],\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\",\\n \\"SecurityPolicyId\\": \\"sp-9cdjz6o******\\",\\n \\"SecurityPolicyName\\": \\"test-secrity\\",\\n \\"SecurityPolicyStatus\\": \\"Available\\",\\n \\"TLSVersions\\": [\\n \\"TLSv1.1\\"\\n ],\\n \\"CreateTime\\": \\"2023-02-15T07:37:33Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"env\\",\\n \\"Value\\": \\"product\\"\\n }\\n ]\\n }\\n ],\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListSecurityPoliciesResponse>\\n <MaxResults>50</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <SecurityPolicies>\\n <Ciphers>ECDHE-ECDSA-AES128-SHA</Ciphers>\\n <ResourceGroupId>rg-atstuj3rtop****</ResourceGroupId>\\n <SecurityPolicyId>rg-atstuj3rtop****</SecurityPolicyId>\\n <SecurityPolicyName>test-secrity</SecurityPolicyName>\\n <SecurityPolicyStatus>Available</SecurityPolicyStatus>\\n <TLSVersions>TLSv1.1</TLSVersions>\\n <CreateTime>2023-02-15T07:37:33Z</CreateTime>\\n </SecurityPolicies>\\n <TotalCount>1000</TotalCount>\\n</ListSecurityPoliciesResponse>","errorExample":""}]',
],
'ListSecurityPolicyRelations' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'SecurityPolicyIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '安全策略id',
'description' => '安全策略实例ID列表,最多支持5个。',
'type' => 'array',
'items' => ['description' => '安全策略ID。', 'type' => 'string', 'required' => false, 'example' => 'sp-n0kn923****'],
'required' => true,
'maxItems' => 5,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
'SecrityPolicyRelations' => [
'title' => '安全策略关联关系',
'description' => '安全策略与监听的关联关系列表。',
'type' => 'array',
'items' => [
'description' => '安全策略与监听的关联关系。',
'type' => 'object',
'properties' => [
'RelatedListeners' => [
'title' => '关联的监听列表',
'description' => '关联的监听列表。',
'type' => 'array',
'items' => [
'description' => '关联的监听结构。',
'type' => 'object',
'properties' => [
'ListenerId' => ['title' => '监听id', 'description' => '监听ID。', 'type' => 'string', 'example' => 'lsn-0bfuc****'],
'ListenerPort' => ['title' => '监听端口', 'description' => '监听端口。', 'type' => 'integer', 'format' => 'int64', 'example' => '80'],
'ListenerProtocol' => ['title' => '监听协议', 'description' => '监听协议。', 'type' => 'string', 'example' => 'HTTPS'],
'LoadBalancerId' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'example' => 'alb-umwzbz6******'],
],
],
],
'SecurityPolicyId' => ['title' => '安全策略id', 'description' => '安全策略实例ID。', 'type' => 'string', 'example' => 'sp-bp1bpn0kn9****'],
],
],
],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '查询安全策略关联关系',
'summary' => '查询安全策略关联的监听列表。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListSecurityPolicyRelations',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicy}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF******\\",\\n \\"SecrityPolicyRelations\\": [\\n {\\n \\"RelatedListeners\\": [\\n {\\n \\"ListenerId\\": \\"lsn-0bfuc****\\",\\n \\"ListenerPort\\": 80,\\n \\"ListenerProtocol\\": \\"HTTPS\\",\\n \\"LoadBalancerId\\": \\"alb-umwzbz6******\\"\\n }\\n ],\\n \\"SecurityPolicyId\\": \\"sp-bp1bpn0kn9****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListSecurityPolicyRelationsResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <SecrityPolicyRelations>\\n <RelatedListeners>\\n <ListenerId>lsn-0bfuc****</ListenerId>\\n <ListenerPort>80</ListenerPort>\\n <ListenerProtocol>HTTPS</ListenerProtocol>\\n <LoadBalancerId>lb-bp1o94dp5i6ea****</LoadBalancerId>\\n </RelatedListeners>\\n <SecurityPolicyId>scp-bp1bpn0kn9****</SecurityPolicyId>\\n </SecrityPolicyRelations>\\n</ListSecurityPolicyRelationsResponse>","errorExample":""}]',
],
'ListServerGroupServers' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '167',
'abilityTreeNodes' => ['FEATUREslbULKWF1'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXG****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '本次读取的最大数据记录数量。取值范围:**1**~**100**,入参为空时,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'example' => '50', 'default' => '20'],
],
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '服务器组id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sgp-cb25e2i2vr******'],
],
[
'name' => 'ServerIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '服务器ID列表。',
'type' => 'array',
'items' => ['description' => '服务器ID。单次调用最多支持展示40个服务器。'."\n"
."\n"
.'- 当服务器组为**Instance**类型时,该参数为Ecs、Eni、Eci的资源Id。'."\n"
.'- 当服务器组为**Ip**类型时,该参数为IP地址。'."\n"
.'- 当服务器组为**Fc**时,该参数为函数计算的ARN标识。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'i-bp1e0u8f10by57wl****'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '服务器组绑定的标签列表。一次请求中,绑定的标签列表中最多支持10个标签。',
'type' => 'array',
'items' => [
'description' => '服务器组绑定的标签列表。一次请求中,绑定的标签列表中最多支持10个标签。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '标签键。最多支持10个标签键。'."\n"
."\n"
.'最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'Test'],
'Value' => ['title' => '标签值', 'description' => '标签值。最多支持10个标签值。'."\n"
."\n"
.'最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'Test'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'caeba0bbb2be03f8****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF*****'],
'Servers' => [
'title' => '后端服务器',
'description' => '服务器列表。',
'type' => 'array',
'items' => [
'description' => '后端服务器描述结构体。',
'type' => 'object',
'properties' => [
'Description' => ['title' => '描述信息', 'description' => '后端服务器描述。', 'type' => 'string', 'example' => 'test'],
'Port' => ['title' => '端口', 'description' => '后端服务器使用的端口。取值范围:**1**~**65535**。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ServerId' => ['title' => '服务器id', 'description' => '后端服务器ID。'."\n"
."\n"
.'>当**ServerType**为**Fc**时,**ServerId**为函数计算的ARN标识。', 'type' => 'string', 'example' => 'i-bp1f9kdprbgy9uiu****'],
'ServerIp' => ['title' => '服务器ip', 'description' => '指定的IP地址。', 'type' => 'string', 'example' => '192.168.XX.XX'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型。', 'type' => 'string', 'example' => 'Ecs'],
'Status' => ['title' => '状态', 'description' => '后端服务器的添加状态。取值:'."\n"
."\n"
.'- **Adding**:添加中。'."\n"
.'- **Available**:正常可用状态。'."\n"
.'- **Configuring**:配置中。'."\n"
.'- **Removing**:移除中。', 'type' => 'string', 'example' => 'Available'],
'Weight' => ['title' => '权重', 'description' => '后端服务器的权重。权重越高的服务器将被分配到更多的访问请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'ServerGroupId' => ['title' => '服务器组id', 'description' => '服务器组ID。', 'type' => 'string', 'example' => 'sgp-qy042e1jabmprh****'],
'RemoteIpEnabled' => ['title' => '是否是远端ip', 'description' => '是否开启远端IP。取值:'."\n"
.' '."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
'TotalCount' => ['title' => '总记录数', 'description' => '本次请求条件下的数据总量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
],
],
'title' => '查询服务器',
'summary' => '查询服务器组中的服务器。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListServerGroupServers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"caeba0bbb2be03f8****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF*****\\",\\n \\"Servers\\": [\\n {\\n \\"Description\\": \\"test\\",\\n \\"Port\\": 80,\\n \\"ServerId\\": \\"i-bp1f9kdprbgy9uiu****\\",\\n \\"ServerIp\\": \\"192.168.XX.XX\\",\\n \\"ServerType\\": \\"Ecs\\",\\n \\"Status\\": \\"Available\\",\\n \\"Weight\\": 100,\\n \\"ServerGroupId\\": \\"sgp-qy042e1jabmprh****\\",\\n \\"RemoteIpEnabled\\": true\\n }\\n ],\\n \\"TotalCount\\": 3\\n}","errorExample":""},{"type":"xml","example":"<ListServerGroupServersResponse>\\n <MaxResults>50</MaxResults>\\n <NextToken>caeba0bbb2be03f8****</NextToken>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n <Servers>\\n <Description>test</Description>\\n <Port>80</Port>\\n <ServerId>i-bp1f9kdprbgy9uiu****</ServerId>\\n <ServerIp>192.168.XX.XX</ServerIp>\\n <ServerType>Ecs</ServerType>\\n <Status>Available</Status>\\n <Weight>100</Weight>\\n <ServerGroupId>sgp-qy042e1jabmprh****</ServerGroupId>\\n <RemoteIpEnabled>true</RemoteIpEnabled>\\n </Servers>\\n <TotalCount>3</TotalCount>\\n</ListServerGroupServersResponse>","errorExample":""}]',
],
'ListServerGroups' => [
'summary' => '查询服务器组列表。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '166',
'abilityTreeNodes' => ['FEATUREslbULKWF1', 'FEATUREslbVRSQEA'],
],
'parameters' => [
[
'name' => 'ServerGroupIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '服务器组Id列表',
'description' => '服务器组ID列表。',
'type' => 'array',
'items' => ['description' => '服务器组ID,一次最多支持查询20个服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sgp-atstuj3rtop****'],
'required' => false,
'maxItems' => 20,
],
],
[
'name' => 'ServerGroupNames',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '服务器组名称',
'description' => '服务器组名称列表,最多10个。',
'type' => 'array',
'items' => ['description' => '服务器组名称,一次最多支持查询10个服务器组名称。', 'type' => 'string', 'required' => false, 'example' => 'Group3'],
'required' => false,
'maxItems' => 10,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组ID', 'description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-atstuj3rtop****'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXG****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '20', 'default' => '20'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['title' => 'VpcId', 'description' => 'VPC实例ID。', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp15zckdt37pq72zv****'],
],
[
'name' => 'ServerGroupType',
'in' => 'query',
'schema' => ['title' => '服务器组类型', 'description' => '服务器组类型。取值:'."\n"
."\n"
.'- **Instance**:服务器类型,包括Ecs、Eni、Eci实例。'."\n"
."\n"
.'- **Ip**:IP地址类型。'."\n"
."\n"
.'- **Fc**:函数计算类型。'."\n"
."\n"
.'- 不填则查询所有类型。', 'type' => 'string', 'required' => false, 'example' => 'Instance'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'Tag列表',
'description' => '服务器组绑定的标签列表。一次请求中,绑定的标签列表中最多支持10个标签。',
'type' => 'array',
'items' => [
'description' => '服务器组绑定的标签,单次支持传入10个标签。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '标签键。最多支持10个标签键。'."\n"
."\n"
.'最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'Test'],
'Value' => ['title' => '标签值', 'description' => '标签值。最多支持10个标签值。'."\n"
."\n"
.'最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'Test'],
],
'required' => false,
],
'required' => false,
'example' => 'Instance',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => ' 返回数据结构体。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'caeba0bbb2be03f8****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876******'],
'ServerGroups' => [
'title' => '服务器组',
'description' => '后端服务器组列表。',
'type' => 'array',
'items' => [
'description' => '后端服务器组列表。',
'type' => 'object',
'properties' => [
'HealthCheckConfig' => [
'title' => '健康检查配置',
'description' => '健康检查配置。',
'type' => 'object',
'properties' => [
'HealthCheckConnectPort' => ['title' => '端口', 'description' => '健康检查的后端服务器的端口。取值范围:**0**~**65535**。'."\n"
."\n"
.'返回为**0**时代表使用后端服务器的端口进行健康检查。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'HealthCheckEnabled' => ['title' => '是否启用健康检查', 'description' => '是否启用健康检查,取值:'."\n"
.'- **true**:启用。'."\n"
.'- **false**:不启用。', 'type' => 'boolean', 'example' => 'true'],
'HealthCheckHost' => ['title' => '域名', 'description' => '健康检查域名。'."\n"
."\n"
.'- **使用后端服务器的内网IP**(默认):使用后端服务器的内网IP地址作为健康检查的域名。'."\n"
."\n"
.'- **指定特定域名**:输入一个域名。'."\n"
."\n"
.' - 长度限制为1~80个字符。'."\n"
."\n"
.' - 可包含小写字母、数字、短划线(-)和半角句号(.)。'."\n"
."\n"
.' - 至少包含一个半角句号(.),半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签,只能包含字母,不能包含数字或短划线(-)。'."\n"
."\n"
.' - 短划线(-)不能出现在开头或结尾。'."\n"
."\n"
.'> '."\n"
.'> 只有HealthCheckProtocol设置为HTTP、HTTPS或gRPC时,该参数生效。', 'type' => 'string', 'example' => 'www.example.com'],
'HealthCheckCodes' => [
'title' => '状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的状态码。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http\\_2xx**、 **http\\_3xx**、**http\\_4xx**和**http\\_5xx**。多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**。支持范围输入,最多支持20个范围值,多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> **HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时,该参数生效。', 'type' => 'string', 'example' => 'http_2xx'],
],
'HealthCheckHttpVersion' => ['title' => '版本', 'description' => '健康检查HTTP协议版本。'."\n"
."\n"
.'取值:**HTTP1.0**或**HTTP1.1**。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时,该参数生效。', 'type' => 'string', 'example' => 'HTTP1.1'],
'HealthCheckInterval' => ['title' => '间隔时间', 'description' => '健康检查的时间间隔。单位:秒。取值范围:**1**~**50**。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'HealthCheckMethod' => ['title' => '方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n"
.'- **HEAD**:HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**或**gRPC**时,该参数生效。', 'type' => 'string', 'example' => 'HEAD'],
'HealthCheckPath' => ['title' => 'uri', 'description' => '健康检查的转发规则路径。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时,该参数生效。', 'type' => 'string', 'example' => '/test/index.html'],
'HealthCheckProtocol' => ['title' => '协议', 'description' => '健康检查协议。取值:'."\n"
."\n"
.'- **HTTP**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'example' => 'HTTP'],
'HealthCheckTimeout' => ['title' => '超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端服务器在指定的时间内没有正确响应,则判定为健康检查失败。单位:秒。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'HealthyThreshold' => ['title' => '健康阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'UnhealthyThreshold' => ['title' => '不健康阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
],
],
'Protocol' => ['title' => '服务器组协议', 'description' => '后端协议类型。取值:'."\n"
."\n"
.'- **HTTP**:支持关联HTTPS、HTTP和QUIC监听。'."\n"
.'- **HTTPS**:支持关联HTTPS监听。'."\n"
."\n"
.'- **GRPC**:关联HTTPS和QUIC监听。'."\n", 'type' => 'string', 'example' => 'HTTP'],
'RelatedLoadBalancerIds' => [
'title' => '关联的实例id',
'description' => '关联的实例id',
'type' => 'array',
'items' => ['description' => '关联的负载均衡实例id', 'type' => 'string', 'example' => 'alb-n5qw04uq8savfe****'],
],
'ResourceGroupId' => ['title' => '资源组id', 'description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-atstuj3rtop****'],
'Scheduler' => ['title' => '调度策略', 'description' => '调度算法。取值:'."\n"
."\n"
.'- **Wrr**:加权轮询,权重值越高的后端服务器,被轮询到的概率也越高。'."\n"
.'- **Wlc**:加权最小连接数,除了根据每台后端服务器设定的权重值来进行轮询,同时还考虑后端服务器的实际负载(即连接数)。当权重值相同时,当前连接数越小的后端服务器被轮询到的概率也越高。'."\n"
.'- **Sch**:一致性哈希,相同哈希因子计算结果的请求将会调度到相同的后端服务器。不配置UchConfig参数时,默认哈希因子为源IP,相同源IP地址的请求会分发到同一台后端服务器;配置了UchConfig参数时,哈希因子为URL参数,相同URL参数的请求会分发到同一台后端服务器。', 'type' => 'string', 'example' => 'Wrr'],
'ServerGroupId' => ['title' => '服务器组Id', 'description' => '服务器组ID。', 'type' => 'string', 'example' => 'sgp-cige6j****'],
'ServerGroupName' => ['title' => '服务器组名称', 'description' => '服务器组名称。', 'type' => 'string', 'example' => 'Group3'],
'ServerGroupStatus' => ['title' => '服务器组状态', 'description' => '服务器组状态。取值:'."\n"
.'- **Creating**:创建中。'."\n"
."\n"
.'- **Available**:可用。'."\n"
."\n"
.'- **Configuring**:变配中。', 'type' => 'string', 'example' => 'Available'],
'ServerGroupType' => ['title' => '服务器组类型', 'description' => '服务器组类型。取值:'."\n"
."\n"
.'- **Instance**:服务器类型,包括Ecs、Eni、Eci实例。'."\n"
."\n"
.'- **Ip**:IP类型。'."\n"
."\n"
.'- **Fc**:函数计算类型。', 'type' => 'string', 'example' => 'Instance'],
'StickySessionConfig' => [
'title' => '会话保持配置',
'description' => '会话保持配置结构体。',
'type' => 'object',
'properties' => [
'Cookie' => ['title' => 'Cookie', 'description' => '服务器上配置的Cookie。', 'type' => 'string', 'example' => 'B490B5EBF6F3CD402E515D22BCDA****'],
'CookieTimeout' => ['title' => 'Cookie超时时间', 'description' => 'Cookie超时时间。单位:秒。取值范围:**1**~**86400**。'."\n"
."\n"
.'> 当**StickySessionEnabled**为**true**且**StickySessionType**为**Insert**时,该参数生效。'."\n"
."\n\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'StickySessionEnabled' => ['title' => '是否开启会话保持', 'description' => '是否启用会话保持。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**:关闭。'."\n", 'type' => 'boolean', 'example' => 'false'],
'StickySessionType' => ['title' => '会话保持类型', 'description' => 'Cookie的处理方式。取值:'."\n"
."\n"
.'- **Insert**:植入Cookie。'."\n"
.'客户端第一次访问时,负载均衡会在返回请求中植入Cookie(即在HTTP或HTTPS响应报文中插入SERVERID),下次客户端携带此Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器上。'."\n"
.'- **Server**:重写Cookie。'."\n"
.'负载均衡发现用户自定义了Cookie,将会对原来的Cookie进行重写,下次客户端携带新的Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器。', 'type' => 'string', 'example' => 'Insert'],
],
],
'VpcId' => ['title' => '服务器组所在VpcId', 'description' => 'VPC实例ID。', 'type' => 'string', 'example' => 'vpc-bp15zckdt37pq72zv****'],
'Tags' => [
'title' => '标签列表',
'description' => '服务器组绑定的标签列表。',
'type' => 'array',
'items' => [
'description' => '服务器组绑定的标签列表。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '标签键。', 'type' => 'string', 'example' => 'Test'],
'Value' => ['title' => '标签值', 'description' => '标签值。', 'type' => 'string', 'example' => 'Test'],
],
],
],
'ConfigManagedEnabled' => ['title' => '是否开启配置管理', 'description' => '是否开启配置管理。取值:'."\n"
.'- **true**:开启。'."\n"
.'- **false**:关闭。', 'type' => 'boolean', 'example' => 'false'],
'UpstreamKeepaliveEnabled' => ['title' => '是否开启后端长链接', 'description' => '是否开启后端长链接。取值:'."\n"
.'- **true**:开启。'."\n"
.'- **false**:关闭。', 'type' => 'boolean', 'example' => 'false'],
'Ipv6Enabled' => ['title' => '是否支持Ipv6', 'description' => '是否支持IPv6。取值:'."\n"
.'- **true**:支持。'."\n"
.'- **false**:不支持。', 'type' => 'boolean', 'example' => 'false'],
'ServerCount' => ['title' => '服务器组内服务器数量', 'description' => '服务器组内服务器数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ServiceName' => ['title' => '服务器名称', 'description' => '服务名称。', 'type' => 'string', 'example' => 'test'],
'UchConfig' => [
'title' => 'url一致性hash参数配置',
'description' => 'url一致性hash参数配置。',
'type' => 'object',
'properties' => [
'Type' => ['title' => '参数类型', 'description' => '参数类型。只能填QueryString。', 'type' => 'string', 'example' => 'QueryString'],
'Value' => ['title' => '一致性hash参数值', 'description' => '一致性hash参数值。', 'type' => 'string', 'example' => 'abc'],
],
],
'CreateTime' => ['description' => '资源创建时间。', 'type' => 'string', 'example' => '2022-07-02T02:49:05Z'],
'ConnectionDrainConfig' => [
'description' => '连接优雅中断相关配置。'."\n"
."\n"
.'开启连接优雅中断,在移除后端服务器或者健康检查失败后,负载均衡使现有连接在一定时间内正常传输。'."\n"
.'>'."\n"
.'> - 基础版实例不支持开启连接优雅中断,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持连接优雅中断,函数计算类型不支持。',
'type' => 'object',
'properties' => [
'ConnectionDrainEnabled' => ['description' => '是否开启连接优雅中断。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭', 'type' => 'boolean', 'example' => 'false'],
'ConnectionDrainTimeout' => ['description' => '连接优雅中断超时时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
],
],
'SlowStartConfig' => [
'title' => '慢启动配置',
'description' => '慢启动相关配置。'."\n"
."\n"
.'开启慢启动后,将会在设定的时间段内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。'."\n"
.'>'."\n"
.'> - 基础版实例不支持开启慢启动,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持配置慢启动,函数计算类型不支持。'."\n"
.'> - 慢启动仅在后端调度算法是加权轮询算法时可开启。',
'type' => 'object',
'properties' => [
'SlowStartEnabled' => ['description' => '是否开启慢启动。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭', 'type' => 'boolean', 'example' => 'false'],
'SlowStartDuration' => ['description' => '慢启动持续时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
],
],
'CrossZoneEnabled' => ['description' => '服务器组是否开启跨AZ负载均衡。取值:'."\n"
."\n"
.'- **true**:开启(默认值)'."\n"
."\n"
.'- **false**:关闭', 'type' => 'boolean', 'example' => 'true'],
'IpVersionAffinityMode' => ['title' => '服务器组IP版本亲和模式', 'type' => 'string', 'example' => 'Affinity'],
],
],
],
'TotalCount' => ['title' => '总记录数', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '查询服务器组',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListServerGroups',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"caeba0bbb2be03f8****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876******\\",\\n \\"ServerGroups\\": [\\n {\\n \\"HealthCheckConfig\\": {\\n \\"HealthCheckConnectPort\\": 80,\\n \\"HealthCheckEnabled\\": true,\\n \\"HealthCheckHost\\": \\"www.example.com\\",\\n \\"HealthCheckCodes\\": [\\n \\"http_2xx\\"\\n ],\\n \\"HealthCheckHttpVersion\\": \\"HTTP1.1\\",\\n \\"HealthCheckInterval\\": 5,\\n \\"HealthCheckMethod\\": \\"HEAD\\",\\n \\"HealthCheckPath\\": \\"/test/index.html\\",\\n \\"HealthCheckProtocol\\": \\"HTTP\\",\\n \\"HealthCheckTimeout\\": 3,\\n \\"HealthyThreshold\\": 4,\\n \\"UnhealthyThreshold\\": 4\\n },\\n \\"Protocol\\": \\"HTTP\\",\\n \\"RelatedLoadBalancerIds\\": [\\n \\"alb-n5qw04uq8savfe****\\"\\n ],\\n \\"ResourceGroupId\\": \\"rg-atstuj3rtop****\\",\\n \\"Scheduler\\": \\"Wrr\\",\\n \\"ServerGroupId\\": \\"sgp-cige6j****\\",\\n \\"ServerGroupName\\": \\"Group3\\",\\n \\"ServerGroupStatus\\": \\"Available\\",\\n \\"ServerGroupType\\": \\"Instance\\",\\n \\"StickySessionConfig\\": {\\n \\"Cookie\\": \\"B490B5EBF6F3CD402E515D22BCDA****\\",\\n \\"CookieTimeout\\": 1000,\\n \\"StickySessionEnabled\\": false,\\n \\"StickySessionType\\": \\"Insert\\"\\n },\\n \\"VpcId\\": \\"vpc-bp15zckdt37pq72zv****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"Test\\",\\n \\"Value\\": \\"Test\\"\\n }\\n ],\\n \\"ConfigManagedEnabled\\": false,\\n \\"UpstreamKeepaliveEnabled\\": false,\\n \\"Ipv6Enabled\\": false,\\n \\"ServerCount\\": 1,\\n \\"ServiceName\\": \\"test\\",\\n \\"UchConfig\\": {\\n \\"Type\\": \\"QueryString\\",\\n \\"Value\\": \\"abc\\"\\n },\\n \\"CreateTime\\": \\"2022-07-02T02:49:05Z\\",\\n \\"ConnectionDrainConfig\\": {\\n \\"ConnectionDrainEnabled\\": false,\\n \\"ConnectionDrainTimeout\\": 300\\n },\\n \\"SlowStartConfig\\": {\\n \\"SlowStartEnabled\\": false,\\n \\"SlowStartDuration\\": 30\\n },\\n \\"CrossZoneEnabled\\": true,\\n \\"IpVersionAffinityMode\\": \\"Affinity\\"\\n }\\n ],\\n \\"TotalCount\\": 1000\\n}","errorExample":""},{"type":"xml","example":"<ListServerGroupsResponse>\\n <MaxResults>50</MaxResults>\\n <NextToken>caeba0bbb2be03f8****</NextToken>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n <ServerGroups>\\n <HealthCheckConfig>\\n <HealthCheckConnectPort>80</HealthCheckConnectPort>\\n <HealthCheckEnabled>true</HealthCheckEnabled>\\n <HealthCheckHost>www.example.com</HealthCheckHost>\\n <HealthCheckCodes>http_2xx</HealthCheckCodes>\\n <HealthCheckHttpVersion>HTTP1.1</HealthCheckHttpVersion>\\n <HealthCheckInterval>5</HealthCheckInterval>\\n <HealthCheckMethod>HEAD</HealthCheckMethod>\\n <HealthCheckPath>/test/index.html</HealthCheckPath>\\n <HealthCheckProtocol>HTTP</HealthCheckProtocol>\\n <HealthCheckTimeout>3</HealthCheckTimeout>\\n <HealthyThreshold>4</HealthyThreshold>\\n <UnhealthyThreshold>4</UnhealthyThreshold>\\n </HealthCheckConfig>\\n <Protocol>HTTP</Protocol>\\n <ResourceGroupId>rg-atstuj3rtop****</ResourceGroupId>\\n <Scheduler>Wrr</Scheduler>\\n <ServerGroupId>sgp-cige6j****</ServerGroupId>\\n <ServerGroupName>Group3</ServerGroupName>\\n <ServerGroupStatus>Available</ServerGroupStatus>\\n <ServerGroupType>Instance</ServerGroupType>\\n <StickySessionConfig>\\n <Cookie>B490B5EBF6F3CD402E515D22BCDA****</Cookie>\\n <CookieTimeout>1000</CookieTimeout>\\n <StickySessionEnabled>false</StickySessionEnabled>\\n <StickySessionType>Insert</StickySessionType>\\n </StickySessionConfig>\\n <VpcId>vpc-bp15zckdt37pq72zv****</VpcId>\\n <Tags>\\n <Key>Test</Key>\\n <Value>Test</Value>\\n </Tags>\\n <ConfigManagedEnabled>false</ConfigManagedEnabled>\\n <UpstreamKeepaliveEnabled>false</UpstreamKeepaliveEnabled>\\n <Ipv6Enabled>false</Ipv6Enabled>\\n <ServerCount>1</ServerCount>\\n <ServiceName>test</ServiceName>\\n <CreateTime>2023-03-21T07:43:10Z</CreateTime>\\n </ServerGroups>\\n <TotalCount>1000</TotalCount>\\n</ListServerGroupsResponse>","errorExample":""}]',
],
'ListSystemSecurityPolicies' => [
'summary' => '查询指定地域下的系统安全策略。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'abilityTreeCode' => '272',
'abilityTreeNodes' => ['FEATUREslb39XGK4'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
'SecurityPolicies' => [
'title' => '安全策略',
'description' => '安全策略列表。',
'type' => 'array',
'items' => [
'description' => '安全策略结构。',
'type' => 'object',
'properties' => [
'Ciphers' => [
'title' => '加密套件',
'description' => '支持的加密算法。',
'type' => 'array',
'items' => ['description' => '支持的加密套件,具体依赖**TLSVersions**的取值。'."\n"
.'- TLSv1.0和TLSv1.1 支持:'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
."\n"
.'- TLSv1.2支持'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
.' - ECDHE-ECDSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-ECDSA-AES128-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-SHA384'."\n"
.' - ECDHE-RSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-RSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-RSA-AES128-SHA256'."\n"
.' - ECDHE-RSA-AES256-SHA384 '."\n"
.' - AES128-GCM-SHA256'."\n"
.' - AES256-GCM-SHA384'."\n"
.' - AES128-SHA256'."\n"
.' - AES256-SHA256'."\n"
."\n"
.'- TLSv1.3支持: '."\n"
.' - TLS_AES_128_GCM_SHA256'."\n"
.' - TLS_AES_256_GCM_SHA384'."\n"
.' - TLS_CHACHA20_POLY1305_SHA256'."\n"
.' - TLS_AES_128_CCM_SHA256'."\n"
.' - TLS_AES_128_CCM_8_SHA256', 'type' => 'string', 'example' => 'ECDHE-ECDSA-AES128-SHA'],
],
'SecurityPolicyId' => ['title' => '安全策略Id', 'description' => '安全策略实例ID。', 'type' => 'string', 'example' => 'tls_cipher_policy_1_0'],
'TLSVersions' => [
'title' => '协议版本',
'description' => '支持的TLS协议版本列表。',
'type' => 'array',
'items' => ['description' => '支持的TLS协议版本,取值:**TLSv1.0**、**TLSv1.1**、**TLSv1.2**和**TLSv1.3**。', 'type' => 'string', 'example' => 'TLSv1.0'],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\",\\n \\"SecurityPolicies\\": [\\n {\\n \\"Ciphers\\": [\\n \\"ECDHE-ECDSA-AES128-SHA\\"\\n ],\\n \\"SecurityPolicyId\\": \\"tls_cipher_policy_1_0\\",\\n \\"TLSVersions\\": [\\n \\"TLSv1.0\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListSystemSecurityPoliciesResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <SecurityPolicies>\\n <Ciphers>ECDHE-ECDSA-AES128-SHA</Ciphers>\\n <SecurityPolicyId>spy-n0kn923****</SecurityPolicyId>\\n <TLSVersions>TLSv1.0</TLSVersions>\\n </SecurityPolicies>\\n</ListSystemSecurityPoliciesResponse>","errorExample":""}]',
'title' => '查询系统安全策略',
'changeSet' => [],
'ramActions' => [],
],
'ListTagKeys' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '20', 'default' => '20'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => true, 'example' => 'loadbalancer'],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['title' => '标签类型', 'description' => '标签类型。'."\n"
."\n"
.'取值:**Custom**、**System**或**All**。'."\n"
."\n"
.'默认值:**All**。', 'type' => 'string', 'required' => false, 'example' => 'System'],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['title' => '具体的标签Key', 'description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '标签键。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
'TagKeys' => [
'title' => '标签Key列表',
'description' => '标签键列表。',
'type' => 'array',
'items' => [
'description' => '标签键结构。',
'type' => 'object',
'properties' => [
'Category' => ['title' => '标签类型', 'description' => '标签类型。'."\n"
."\n"
.'取值:**Custom**、**System**或**All**。'."\n"
."\n"
.'默认值:**All**。', 'type' => 'string', 'example' => 'System'],
'TagKey' => ['title' => '标签Key', 'description' => '返回满足所有筛选条件的标签。', 'type' => 'string', 'example' => 'test'],
],
],
],
'TotalCount' => ['title' => '总记录数', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
],
],
'title' => '查询标签键',
'summary' => '查询指定标签的键。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListTagKeys',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3\\",\\n \\"TagKeys\\": [\\n {\\n \\"Category\\": \\"System\\",\\n \\"TagKey\\": \\"test\\"\\n }\\n ],\\n \\"TotalCount\\": 10\\n}","errorExample":""},{"type":"xml","example":"<ListTagKeysResponse>\\n <MaxResults>20</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <TagKeys>\\n <Category>System</Category>\\n <TagKey>test</TagKey>\\n </TagKeys>\\n <TotalCount>10</TotalCount>\\n</ListTagKeysResponse>","errorExample":""}]',
],
'ListTagResources' => [
'summary' => '查询指定资源标签。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**。默认值:**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '20', 'default' => '20'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => true, 'example' => 'loadbalancer'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '资源实例Id',
'description' => '资源ID。',
'type' => 'array',
'items' => ['description' => '资源ID。'."\n"
."\n"
.'> **ResourceId**和**Tag**参数至少填写其中一个。', 'type' => 'string', 'required' => false, 'example' => 'alb-gws76zi******'],
'required' => false,
'example' => 'acl-123',
'maxItems' => 50,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '标签列表',
'description' => '标签。'."\n"
."\n"
.'> **ResourceId**和**Tag**参数至少填写其中一个。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['title' => '标签值', 'description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
'example' => 'test',
'maxItems' => 20,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '标签资源信息。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FD******'],
'TagResources' => [
'title' => '标签值列表',
'description' => '返回符合标签键和标签值的标签。',
'type' => 'array',
'items' => [
'description' => '返回符合标签键和标签值的标签。',
'type' => 'object',
'properties' => [
'ResourceId' => ['title' => '资源ID', 'description' => '资源ID。', 'type' => 'string', 'example' => 'alb-gws76zijb0******'],
'ResourceType' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'example' => 'loadbalancer'],
'TagKey' => ['title' => '标签Key', 'description' => '标签键。', 'type' => 'string', 'example' => 'env'],
'TagValue' => ['title' => '标签Value', 'description' => '标签值。', 'type' => 'string', 'example' => 'product'],
],
],
],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '查询资源标签',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securityPolicyId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FD******\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceId\\": \\"alb-gws76zijb0******\\",\\n \\"ResourceType\\": \\"loadbalancer\\",\\n \\"TagKey\\": \\"env\\",\\n \\"TagValue\\": \\"product\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListTagResourcesResponse>\\n <MaxResults>20</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <TagResources>\\n <ResourceId>d-2ze1ot4ah7xjyv0d****</ResourceId>\\n <ResourceType>loadbalancer</ResourceType>\\n <TagKey>env</TagKey>\\n <TagValue>product</TagValue>\\n </TagResources>\\n</ListTagResourcesResponse>","errorExample":""}]',
],
'ListTagValues' => [
'summary' => '查询指定标签的值。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 第一次查询和没有下一次查询时,均无需填写。'."\n"
.'- 如果有下一次查询,取值为上一次API调用返回的**NextToken**值。', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['title' => '查询数量', 'description' => '分批次查询时每次显示的条目数。取值范围:**1**~**100**,默认值为**20**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '20', 'default' => '20'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => false, 'example' => 'loadbalancer'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['title' => '资源实例Id', 'description' => '资源实例ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-gws76zijb0******'],
],
[
'name' => 'TagKey',
'in' => 'query',
'schema' => ['title' => '具体的标签Key', 'description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '查询标签值。',
'type' => 'object',
'properties' => [
'MaxResults' => ['title' => '本次查询返回记录数量', 'description' => '分批次查询时每次显示的条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['title' => '分页查询标识', 'description' => '是否拥有下一次查询的令牌(Token)。取值:'."\n"
.'- 如果**NextToken**为空表示没有下一次查询。'."\n"
.'- 如果**NextToken**有返回值,该取值表示下一次查询开始的令牌。', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
'TagValues' => [
'title' => '标签值列表',
'description' => '标签值。',
'type' => 'array',
'items' => ['description' => '返回满足所有筛选条件的标签。', 'type' => 'string', 'example' => 'owner'],
],
'TotalCount' => ['title' => '总记录数', 'description' => '列表条目数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '查询标签值',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListTagValues',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\",\\n \\"TagValues\\": [\\n \\"owner\\"\\n ],\\n \\"TotalCount\\": 10\\n}","errorExample":""},{"type":"xml","example":"<ListTagValuesResponse>\\n <MaxResults>20</MaxResults>\\n <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <TagValues>owner</TagValues>\\n <TotalCount>10</TotalCount>\\n</ListTagValuesResponse>","errorExample":""}]',
],
'LoadBalancerJoinSecurityGroup' => [
'summary' => '为应用型负载均衡实例绑定已创建的安全组。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '171521',
'abilityTreeNodes' => ['FEATUREslbKS6M4D', 'FEATUREslb39XGK4'],
],
'parameters' => [
[
'name' => 'SecurityGroupIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '安全组ID集合。',
'type' => 'array',
'items' => ['description' => '安全组ID。', 'type' => 'string', 'required' => false, 'example' => 'sg-m5e7xkprgt1pi1ik****'],
'required' => true,
'maxItems' => 10,
],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-h7kcw4g4nnvtqp****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '创建结果',
'description' => '创建结果',
'type' => 'object',
'properties' => [
'JobId' => ['description' => '异步任务ID', 'type' => 'string', 'example' => '8fe81f25-79a0-4fa0-9036-f2601fda****'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceAlreadyAssociated.SecurityGroup', 'errorMessage' => 'The specified resource of %s is already associated.', 'description' => '安全组已经绑定了此负载均衡实例'],
['errorCode' => 'ResourceQuotaExceeded.SecurityGroupNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '实例绑定的安全组数目超限'],
['errorCode' => 'OperationDenied.SecurityGroupNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '不支持绑定安全组'],
['errorCode' => 'OperationDenied.LbAssociatedAclCanNotJoinSecurityGroup', 'errorMessage' => 'The operation is not allowed because of loadBalancer associated acl can not join security group.', 'description' => '不允许该操作,原因是负载均衡实例下的监听已经绑定过访问控制策略,则不允许再加入安全组'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '找不到安全组资源'],
],
],
'staticInfo' => ['returnType' => 'asynchronous', 'callback' => 'Alb::2020-06-16::ListAsynJobs', 'callbackInterval' => 3000, 'maxCallbackTimes' => 20],
'title' => '负载均衡实例加入安全组',
'description' => '- 安全组功能默认不开放,如需使用,请向商务经理申请。'."\n"
."\n"
.'- 请确保您已创建安全组。创建安全组,请参见[CreateSecurityGroup](~~2679843~~)。'."\n"
."\n"
.'- 一个应用型负载均衡实例最多支持加入 4 个安全组。'."\n"
."\n"
.'- 您可以通过[GetLoadBalancerAttribute](~~2254835~~)接口查询实例绑定的安全组。'."\n"
."\n"
.'- LoadBalancerJoinSecurityGroup 属于异步接口,即系统返回一个请求 ID,但该应用型负载均衡实例绑定安全组尚未成功,系统后台的绑定任务仍在进行。您可以调用 [ListAsynJobs](~~2254893~~) 查询安全组的绑定状态:'."\n"
."\n"
.' - 当任务状态处于 Succeeded 时,表示安全组绑定成功。'."\n"
."\n"
.' - 当任务状态处于 Processing 时,表示安全组正在绑定中,在该状态下,您只能执行查询操作,不能执行其他操作。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alb:LoadBalancerJoinSecurityGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"JobId\\": \\"8fe81f25-79a0-4fa0-9036-f2601fda****\\",\\n \\"RequestId\\": \\"D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****\\"\\n}","type":"json"}]',
],
'LoadBalancerLeaveSecurityGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '171520',
'abilityTreeNodes' => ['FEATUREslbKS6M4D', 'FEATUREslb39XGK4'],
],
'parameters' => [
[
'name' => 'SecurityGroupIds',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '安全组ID集合。',
'type' => 'array',
'items' => ['description' => '安全组ID。', 'type' => 'string', 'required' => false, 'example' => 'sg-1nmf15kvwj37g2g1****'],
'required' => true,
'maxItems' => 10,
],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-iv9gj3spak6fbj****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式和业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**http_2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '创建结果',
'description' => '创建结果',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'EC0C96E4-7CCB-599C-9329-3A5DB6FF****'],
'JobId' => ['description' => '异步任务ID', 'type' => 'string', 'example' => '51c5b627-3500-487c-b17d-5cc583f0****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.SecurityGroupNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '不支持绑定安全组'],
['errorCode' => 'ResourceNotAssociated.SecurityGroup', 'errorMessage' => 'The specified resource of %s is not associated.', 'description' => '安全组没有绑定此负载均衡实例'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '找不到安全组资源'],
],
],
'staticInfo' => ['returnType' => 'asynchronous', 'callback' => 'Alb::2020-06-16::ListAsynJobs', 'callbackInterval' => 3000, 'maxCallbackTimes' => 20],
'title' => '负载均衡实例移出安全组',
'summary' => '为应用型负载均衡实例解绑安全组。',
'description' => '- LoadBalancerLeaveSecurityGroup 接口属于异步接口,即系统返回一个请求 ID,但该应用型负载均衡实例的安全组尚未解绑成功,系统后台的解绑任务仍在进行。您可以调用 [ListAsynJobs](~~2254893~~) 查询安全组的解绑状态:'."\n"
."\n"
.' - 当任务状态处于 Succeeded 时,表示安全组解绑成功。'."\n"
."\n"
.' - 当任务状态处于 Processing 时,表示安全组正在解绑中,在该状态下,您只能执行查询操作,不能执行其他操作。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alb:LoadBalancerLeaveSecurityGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EC0C96E4-7CCB-599C-9329-3A5DB6FF****\\",\\n \\"JobId\\": \\"51c5b627-3500-487c-b17d-5cc583f0****\\"\\n}","type":"json"}]',
],
'ModifyCapacityReservation' => [
'summary' => '创建和修改资源预留。',
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATUREslbEUW2CG'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '应用型负载均衡实例ID。', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-iv9gj3spak6fbj****'],
],
[
'name' => 'ResetCapacityReservation',
'in' => 'query',
'schema' => [
'title' => '是否取消资源预留',
'description' => '是否取消资源预留。取值:'."\n"
.'* **true**:取消资源预留。'."\n"
.'* **false**(默认值):不取消资源预留。创建、修改资源预留时可不填写此属性。',
'type' => 'boolean',
'required' => false,
'enumValueTitles' => [],
'example' => 'false',
'default' => 'false',
'enum' => ['true', 'false'],
],
],
[
'name' => 'MinimumLoadBalancerCapacity',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '预留的最小负载均衡器容量',
'description' => '预留的最小负载均衡器容量。',
'type' => 'object',
'properties' => [
'CapacityUnits' => ['title' => 'LCU数量', 'description' => '每小时预留LCU数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => [
'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会预留资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。',
'type' => 'boolean',
'required' => false,
'enumValueTitles' => [],
'example' => 'false',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => '保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.ListenerNotFound', 'errorMessage' => 'The operation is not allowed because of ListenerNotFound.', 'description' => ''],
['errorCode' => 'OperationDenied.CapacityReservationNotSupport', 'errorMessage' => 'Resource reservation is not supported.', 'description' => ''],
['errorCode' => 'OperationDenied.CapacityUnitsBelowMinimum', 'errorMessage' => 'The operation is not allowed because of CapacityUnitsBelowMinimum.', 'description' => ''],
['errorCode' => 'OperationDenied.CapacityDecreaseRequestLimitExceeded', 'errorMessage' => 'The operation is not allowed because of CapacityDecreaseRequestLimitExceeded.', 'description' => ''],
['errorCode' => 'OperationDenied.PriorRequestNotComplete', 'errorMessage' => 'The operation is not allowed because of PriorRequestNotComplete.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetExists', 'errorMessage' => 'The operation is not allowed because of OperationDenied.DeploymentSetExists.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetIsEmpty', 'errorMessage' => 'The operation is not allowed because of OperationDenied.DeploymentSetIsEmpty.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetsConflicts', 'errorMessage' => 'The operation is not allowed because of OperationDenied.DeploymentSetsConflicts.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetsNotSupport', 'errorMessage' => 'The operation is not allowed because of OperationDenied.DeploymentSetsNotSupport.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetsStrategyNotMatch', 'errorMessage' => 'The operation is not allowed because of DeploymentSetsStrategyNotMatch.', 'description' => ''],
['errorCode' => 'QuotaExceeded.ReservationMaxLcuPerLb', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => ''],
['errorCode' => 'QuotaExceeded.ReservationMaxLcuPerRegion', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => ''],
['errorCode' => 'QuotaExceeded.DeploymentSetsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => ''],
['errorCode' => 'OperationDenied.DeploymentSetsNotSharedToAlb', 'errorMessage' => 'DeploymentSets are not shared to alb.', 'description' => '部署集没有共享给ALB。'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => '资源%s不存在。'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '修改资源预留',
'description' => '**ModifyCapacityReservation**接口属于异步接口,即系统返回一个请求ID,但该资源预留尚未完成,系统后台的预留任务仍在进行。您可以调用DescribeCapacityReservation查询资源预留的状态:'."\n"
.' - 当资源预留处于**Pending**状态时,表示资源预留正在进行中。'."\n"
.' - 当资源预留处于**Provisioned**状态时,表示资源预留已经完成。'."\n"
.' - 当资源预留处于**Rebalancing**状态时,表示资源预留正在在可用区间重新分配。',
'changeSet' => [],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\"\\n}","type":"json"}]',
],
'MoveResourceGroup' => [
'summary' => '修改云资源所属的资源组。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '需要修改资源组的云资源类型,取值:'."\n"
."\n\n"
.'- **loadbalancer**:应用型负载均衡实例'."\n"
.'- **acl**:访问控制'."\n"
.'- **securitypolicy**:安全策略'."\n"
.'- **servergroup**:服务器组'."\n", 'type' => 'string', 'required' => true, 'example' => 'acl'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['title' => '指定资源Id', 'description' => '需要修改资源组的云资源的实例ID。', 'type' => 'string', 'required' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
[
'name' => 'NewResourceGroupId',
'in' => 'query',
'schema' => ['title' => '资源组id', 'description' => '需要移入云资源实例的资源组ID。'."\n"
."\n"
.'> 资源组是在阿里云账号下进行资源分组管理的一种机制,资源组能够帮助您解决单个云账号内的资源分组和授权管理等复杂性问题。更多信息,请参见[什么是资源管理](~~94475~~)。', 'type' => 'string', 'required' => true, 'example' => 'rg-aekzbi7******'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'NotExist.ResourceGroup', 'errorMessage' => 'ResourceGroup does not exist.', 'description' => '资源组不存在'],
],
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'ACL authentication has failed.', 'description' => '对Acl鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '修改资源组',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:MoveResourceGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF******\\"\\n}","errorExample":""},{"type":"xml","example":"<MoveResourceGroupResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</MoveResourceGroupResponse>","errorExample":""}]',
],
'RemoveEntriesFromAcl' => [
'summary' => '从访问控制中移除条目。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会删除访问控制策略组中的IP条目。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'AclId',
'in' => 'query',
'schema' => ['title' => '访问控制策略Id', 'description' => 'ACL实例ID。', 'type' => 'string', 'required' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
[
'name' => 'Entries',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '条目列表',
'description' => '移除的访问控制条目列表,单次调用最多移除20条。',
'type' => 'array',
'items' => ['description' => '移除的访问控制条目。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.0/24'],
'required' => true,
'maxItems' => 20,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '从访问控制中移除条目。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
],
403 => [
['errorCode' => 'Forbidden.Acl', 'errorMessage' => 'ACL authentication has failed.', 'description' => '对Acl鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.AclEntry', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '移除访问控制条目',
'description' => '**RemoveEntriesFromAcl**接口属于异步接口,即系统返回一个请求ID,但该访问控制策略组中的IP条目尚未删除成功,系统后台的删除任务仍在进行。您可以调用[ListAclEntries](~~213616~~)查询访问控制策略组中的IP条目的删除状态:'."\n"
.'- 当访问控制策略组处于**Removing**状态时,表示访问控制策略组中的IP条目正在删除中。'."\n"
.'- 当查询不到该访问控制策略组时,表示访问控制策略组中的IP条目删除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:RemoveEntriesFromAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\"\\n}","errorExample":""},{"type":"xml","example":"<RemoveEntriesFromAclResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</RemoveEntriesFromAclResponse>","errorExample":""}]',
],
'RemoveServersFromServerGroup' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '后端服务器Id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-atstuj3rtop****'],
],
[
'name' => 'Servers',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '后端服务器',
'description' => '后端服务器组列表,最多支持200个服务器。',
'type' => 'array',
'items' => [
'description' => '后端服务器组配置信息。',
'type' => 'object',
'properties' => [
'Port' => ['title' => '后端端口号', 'description' => '后端服务器使用的端口。取值范围:**1**~**65535**。'."\n"
.'> 当**ServerType**取值为**Ecs**、**Eni**、**Eci**、**Ip**时,该参数必传。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '80'],
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。'."\n"
."\n"
.'- 当服务器组为**Instance**类型时,该参数为**Ecs**、**Eni**、**Eci**资源ID。'."\n"
."\n"
.'- 当服务器组为**Ip**类型时,该参数为IP地址。'."\n"
."\n"
.'- 当服务器组为**Fc**类型时,该参数为函数计算的ARN标识。'."\n"
."\n"
.'>您可以通过调用[ListServerGroups](~~2254862~~)接口获取服务器组类型的取值。', 'type' => 'string', 'required' => true, 'example' => 'i-bp1f9kdprbgy9uiu****'],
'ServerIp' => ['title' => '后端服务器ip', 'description' => 'ENI多IP模式时指定的IP地址。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型。取值:'."\n"
.'- **Ecs**:ECS实例。'."\n"
.'- **Eni**:ENI弹性网卡实例。'."\n"
.'- **Eci**:ECI弹性容器。'."\n"
.'- **Ip**:IP地址。'."\n"
.'- **Fc**:函数计算。', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'Ecs'],
],
'required' => false,
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会从服务器组中移除后端服务器。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'ResourceInConfiguring.BackendServer', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication is failed for ServerGroup.', 'description' => '当前服务器组权限校验失败。'],
],
[
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.BackendServer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '服务器组不存在。'],
],
],
'title' => '移除后端服务器',
'summary' => '从服务器组中移除后端服务器。',
'description' => '**RemoveServersFromServerGroup**接口属于异步接口,即系统返回一个请求ID,但该后端服务器尚未移除成功,系统后台的移除任务仍在进行。'."\n"
.'1. 您可以调用[ListServerGroups](~~2254862~~)查询服务器组的状态:'."\n"
.' - 当服务器组处于**Configuring**状态时,表示服务器组正在变配中。'."\n"
.' - 当服务器组处于**Available**状态时,表示服务器组运行中。'."\n"
."\n"
.'2. 您可以调用[ListServerGroupServers](~~2254863~~)查询后端服务器的状态:'."\n"
.' - 当后端服务器处于**Removing**状态时,表示后端服务器正在从服务器组中移除。'."\n"
.' - 当查询不到该后端服务器时,表示后端服务器移除成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:RemoveServersFromServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\"\\n}","errorExample":""},{"type":"xml","example":"<RemoveServersFromServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</RemoveServersFromServerGroupResponse>","errorExample":""}]',
],
'ReplaceServersInServerGroup' => [
'summary' => '替换后端服务器组中的后端服务器。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbULKWF1'],
],
'parameters' => [
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '后端服务器Id', 'description' => '服务器组ID。'."\n"
."\n"
.'>函数计算类型的服务器组不支持替换后端服务器。', 'type' => 'string', 'required' => true, 'example' => 'sgp-5114d593o96qxy****'],
],
[
'name' => 'AddedServers',
'in' => 'formData',
'style' => 'flat',
'schema' => [
'title' => '待添加后端服务器',
'description' => '待添加的后端服务器列表,单次调用最多支持传入200个服务器。',
'type' => 'array',
'items' => [
'description' => '后端服务器结构体。',
'type' => 'object',
'properties' => [
'Description' => ['title' => '描述信息', 'description' => '后端服务器描述。长度为 2~256 个英文或中文字符,不能以http://和https://开头。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Port' => ['title' => '后端端口号', 'description' => '后端服务器组使用的端口。取值范围:**1**~**65535**。单次调用最多支持传入200个服务器。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '80'],
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。单次调用最多支持传入200个服务器。'."\n"
."\n"
.'- 当服务器组为**Instance**类型时,该参数为**Ecs**、**Eni**、**Eci**资源ID。'."\n"
."\n"
.'- 当服务器组为**Ip**类型时,该参数为IP地址。'."\n"
."\n"
.'>函数计算类型的服务器组不支持替换后端服务器。您可以通过调用[ListServerGroups](~~213627~~)接口获取服务器组类型的取值。', 'type' => 'string', 'required' => false, 'example' => 'i-bp1f9kdprbgy9uiu****'],
'ServerIp' => ['title' => '后端服务器ip', 'description' => '指定IP地址。'."\n"
."\n"
.'当**ServerType**为**Eni**时,支持指定ENI的主私网IP或辅助私网IP。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型。 单次调用最多支持添加200个服务器。取值:'."\n"
.'- **Ecs**:ECS实例。'."\n"
.'- **Eni**:ENI弹性网卡实例。'."\n"
.'- **Eci**:ECI弹性容器。'."\n"
.'- **Ip**:IP地址。'."\n"
.'- **Fc**:函数计算。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Ecs'],
'Weight' => ['title' => '后端服务器权重', 'description' => '后端服务器的权重,单次调用最多支持传入200个服务器。'."\n"
."\n"
.'取值:**0**~**100**。默认值:**100**。如果设置权重为**0**,则不会将请求转发给该后端服务器。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
[
'name' => 'RemovedServers',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '待删除后端服务器',
'description' => '待删除的后端服务器。',
'type' => 'array',
'items' => [
'description' => '待删除的后端服务器的结构体。',
'type' => 'object',
'properties' => [
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。单次调用最多支持传入200个服务器。'."\n"
."\n"
.'- 当服务器组为**Instance**类型时,该参数为**Ecs**、**Eni**、**Eci**资源ID。'."\n"
."\n"
.'- 当服务器组为**Ip**类型时,该参数为IP地址。'."\n"
."\n"
.'>函数计算类型的服务器组不支持替换后端服务器。您可以通过调用[ListServerGroups](~~213627~~)接口获取服务器组类型的取值。', 'type' => 'string', 'required' => true, 'example' => 'i-bp1f9kdprbgy9uiu****'],
'ServerIp' => ['title' => '后端服务器ip', 'description' => '指定IP地址。'."\n"
."\n"
.'当**ServerType**为**Eni**时,支持指定ENI的主私网IP或辅助私网IP。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.12'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型,单次调用最多支持传入200个服务器。取值:'."\n"
."\n"
.'- **Ecs**:ECS实例。'."\n"
.'- **Eni**:ENI弹性网卡实例。'."\n"
.'- **Eci**:ECI弹性容器。'."\n"
.'- **Ip**:IP地址。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs'],
'Port' => ['title' => '端口', 'description' => '后端服务器使用的端口。取值范围:**1**~**65535**。单次调用最多支持传入200个服务器。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '81'],
],
'required' => false,
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会替换服务器组中的后端服务器。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'Conflict.BackendServer', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '服务器冲突,已经存在同配置的后端服务器。'],
['errorCode' => 'DuplicatedParam.BackendServer', 'errorMessage' => 'The param of %s is duplicated.', 'description' => '参数%s是重复的。'],
['errorCode' => 'OperationDenied.EciNotSupportJobType', 'errorMessage' => 'The operation is not allowed because of eci not support job type.', 'description' => '服务器组不支持添加Job优化型ECI实例。'],
['errorCode' => 'Mismatch.ServerType', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceInConfiguring.BackendServer', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试'],
['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => '该请求使用了与之前不相同的请求相同的客户端令牌。除非请求相同,否则请勿在不同请求之间重用客户端令牌。'],
],
404 => [
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.Ecs', 'errorMessage' => 'The specified resource %s is not found.', 'description' => 'Ecs服务器不存在。'],
['errorCode' => 'ResourceNotFound.Eci', 'errorMessage' => 'The specified resource %s is not found.', 'description' => 'Eci服务器不存在。'],
['errorCode' => 'ResourceNotFound.Eni', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.BackendServer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '服务器组不存在。'],
],
],
'title' => '替换后端服务器组中的后端服务器',
'description' => '**ReplaceServersInServerGroup**接口属于异步接口,即系统返回一个请求ID,但该后端服务器尚未替换成功,系统后台的替换任务仍在进行。'."\n"
.'1. 您可以调用[ListServerGroups](~~213627~~)查询服务器组的状态:'."\n"
.' - 当服务器组处于**Configuring**状态时,表示服务器组正在变配中。'."\n"
.' - 当服务器组处于**Available**状态时,表示服务器组运行中。'."\n"
."\n"
.'2. 您可以调用[ListServerGroupServers](~~213628~~)查询后端服务器的状态:'."\n"
.' - 当后端服务器处于**Replacing**状态时,表示服务器组移出服务器并加入新的服务器。'."\n"
.' - 当后端服务器处于** Available**状态时,表示后端服务器运行中。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:ReplaceServersInServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\"\\n}","errorExample":""},{"type":"xml","example":"<ReplaceServersInServerGroupResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</ReplaceServersInServerGroupResponse>","errorExample":""}]',
],
'StartListener' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听id', 'description' => '应用型负载均衡实例监听的ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会启动监听。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码**DryRunOperation**。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '启动监听。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '启动监听',
'summary' => '启动指定的监听。',
'description' => '**StartListener**接口属于异步接口,即系统返回一个请求ID,但该监听尚未启动成功,系统后台的启动任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询监听的启动状态:'."\n"
.'- 当监听处于**Configuring**状态时,表示监听正在启动中。'."\n"
.'- 当监听处于**Running**状态时,表示监听启动成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StartListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF******\\"\\n}","errorExample":""},{"type":"xml","example":"<StartListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</StartListenerResponse>","errorExample":""}]',
],
'StartShiftLoadBalancerZones' => [
'summary' => '将可用区对应的EIP/VIP从域名解析中摘除。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslb9RALVR'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'."\n"],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会移除可用区。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行修改。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'."\n"],
],
[
'name' => 'ZoneMappings',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '可用区及交换机映射列表',
'description' => '可用区及交换机映射列表。'."\n"
."\n"
.'> 一次调用最多支持移除一个可用区。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区默认使用一台交换机和一个子网。', 'type' => 'string', 'required' => true, 'example' => 'vsw-bp1rmcrwg3erh1fh8****'."\n"],
'ZoneId' => ['title' => '可用区', 'description' => '可用区ID,通过调用[DescribeZones](~~189196~~)接口获得。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou-a'],
],
'required' => false,
'description' => '',
],
'required' => true,
'maxItems' => 1,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectBusinessStatus.Eip', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.ZoneVSwitchChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.ZoneMappingsNotChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是可用区没有变化。'."\n"],
['errorCode' => 'OperationDenied.ZoneVSwitchNotExist', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '实例不包含请求中的可用区和虚拟交换机'],
['errorCode' => 'OperationDenied.EniStatusNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => 'Eni当前状态不支持此操作'],
['errorCode' => 'OperationDenied.OnlyFixedAddressAllocatedModeSupported', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '负载均衡实例的IP模式不支持此操作'],
['errorCode' => 'OperationDenied.ConfigLastActiveZoneNotSupport', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '禁止对最后一个Active状态的可用区进行删除或停止或摘除DNS A记录操作'],
['errorCode' => 'OperationFailed.ShiftLoadBalancerZonesFailed', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '摘除此可用区中IP的DNS A记录失败'."\n"],
['errorCode' => 'ResourceNotEnough.VSwitchIp', 'errorMessage' => 'The specified resource %s is not enough.', 'description' => '资源%s不足。'."\n"],
['errorCode' => 'Mismatch.ZoneIdAndVSwitchId', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '%s和%s不匹配。'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.VSwitch', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'."\n"],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '把可用区的EIP/VIP从域名解析中摘除',
'description' => '仅支持固定IP模式的ALB实例。'."\n"
.'当前ALB实例active状态的可用区数量为1时,不支持移除实例可用区。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StartShiftLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A2CFF0E-5718-45B5-9D4D-70B3FF3898\\"\\n}","type":"json"}]',
],
'StopListener' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听id', 'description' => '应用型负载均衡实例的监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会停止监听。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '停止监听。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '停止监听',
'summary' => '停止指定的监听。',
'description' => '**StopListener**接口属于异步接口,即系统返回一个请求ID,但该监听尚未停止成功,系统后台的停止任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询监听的停止状态:'."\n"
.'- 当监听处于**Configuring**状态时,表示监听正在停止中。'."\n"
.'- 当监听处于**Stopped**状态时,表示监听停止运行成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StopListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<StopListenerResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</StopListenerResponse>","errorExample":""}]',
],
'TagResources' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => true, 'example' => 'loadbalancer'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '资源实例Id',
'description' => '资源ID。',
'type' => 'array',
'items' => ['description' => '资源ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-gws76zi******'],
'required' => true,
'example' => 'acl-123',
'maxItems' => 50,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '标签列表',
'description' => '标签。',
'type' => 'array',
'items' => [
'description' => '标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['title' => '标签值', 'description' => '标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => true,
'example' => 'test',
'maxItems' => 20,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '给资源添加标签。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF******'],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '给资源添加标签',
'summary' => '给指定资源添加标签。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#SecurityPolicyId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF******\\"\\n}","errorExample":""},{"type":"xml","example":"<TagResourcesResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</TagResourcesResponse>","errorExample":""}]',
],
'UnTagResources' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['title' => '资源类型', 'description' => '资源类型,取值:'."\n"
."\n"
.'- **acl**:访问控制。'."\n"
."\n"
.'- **loadbalancer**:应用型负载均衡实例。'."\n"
."\n"
.'- **securitypolicy**:安全策略。'."\n"
."\n"
.'- **servergroup**:服务器组。', 'type' => 'string', 'required' => true, 'example' => 'loadbalancer'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '资源实例Id',
'description' => '要删除标签的资源ID列表。',
'type' => 'array',
'items' => ['description' => '要删除标签的资源ID。', 'type' => 'string', 'required' => false, 'example' => 'alb-gws76zij******'],
'required' => true,
'example' => 'acl-123',
'maxItems' => 50,
'minItems' => 1,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '标签列表',
'description' => '要删除的标签列表。',
'type' => 'array',
'items' => [
'description' => '要删除的标签结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '标签键', 'description' => '要删除标签的标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'Value' => ['title' => '标签值', 'description' => '要删除标签的标签值。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'product'],
],
'required' => false,
],
'required' => false,
'example' => 'test',
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'TagKey',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '标签键列表',
'description' => '要删除标签的标签键列表。',
'type' => 'array',
'items' => ['description' => '标签键。最多支持128个字符,不能以`aliyun`或`acs:`开头,不能包含`http://`或`https://`。', 'type' => 'string', 'required' => false, 'example' => 'env'],
'required' => false,
'maxItems' => 20,
'minItems' => 1,
],
],
[
'name' => 'All',
'in' => 'query',
'schema' => ['title' => '是否删除全部', 'description' => '是否解绑资源的所有标签。取值:'."\n"
."\n"
.'- **true**:解绑资源的所有标签。'."\n"
.'- **false**(默认值):不解绑资源的所有标签。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '删除标签。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '删除资源的标签',
'summary' => '删除资源上配置的标签。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:UnTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#SecurityPolicyId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0F******\\"\\n}","errorExample":""},{"type":"xml","example":"<UnTagResourcesResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</UnTagResourcesResponse>","errorExample":""}]',
],
'UpdateAScripts' => [
'summary' => '更新可编程脚本。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '34540',
'abilityTreeNodes' => ['FEATUREslb2Q6O49'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => 'b1f642ac-5558-4a36-b7d9-cf53******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会更新可编程脚本。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'AScripts',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '脚本',
'description' => '可编程脚本信息列表。',
'type' => 'array',
'items' => [
'description' => '可编程脚本信息。',
'type' => 'object',
'properties' => [
'AScriptName' => ['title' => '脚本名称', 'description' => '可编程脚本名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'Group1'],
'Enabled' => ['title' => '是否启用', 'description' => '是否启用可编程脚本。取值:'."\n"
."\n"
.'- **true**:启用。'."\n"
."\n"
.'- **false**(默认值):不启用。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'ScriptContent' => ['title' => '脚本内容', 'description' => '可编程脚本内容。', 'type' => 'string', 'required' => false, 'example' => 'if and(match_re($uri, \'^/1.txt$\'), $arg_type) { rewrite(concat(\'/1.\', $arg_type), \'break\') }'],
'ExtAttributes' => [
'title' => '扩展属性',
'description' => '扩展属性',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AttributeKey' => ['title' => '属性名称', 'description' => 'Ascript脚本的属性名称。'."\n"
."\n"
.'仅取值**EsDebug**:当请求携带_es_dbg参数,且值为此处配置的密钥时,开启相应的调试响应头,以输出规则执行记录。', 'type' => 'string', 'required' => true, 'example' => 'EsDebug'],
'AttributeValue' => ['title' => '属性值', 'description' => '属性值,大小写英文字母或数字,长度为1~128个字符。', 'type' => 'string', 'required' => true, 'example' => 'test123'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'AScriptId' => ['title' => '脚本Id', 'description' => '可编程脚本ID。'."\n"
."\n", 'type' => 'string', 'required' => true, 'example' => 'as-mhqxcanmivn4g5****'],
'ExtAttributeEnabled' => ['title' => '是否启用扩展属性', 'description' => '是否启用可编程脚本扩展属性。取值:'."\n"
."\n"
.'- true:启用。'."\n"
."\n"
.'- false(默认值):不启用。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '更新可编程脚本。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '2e82b5f4-1ba9-4d20-89c8-1082ebaa****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'ACA19FE1-C09E-53C7-8FDA-560******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'ResourceQuotaExceeded.AScriptsNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.AScriptsTotalLinesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.AScriptLinesNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Ascript', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"2e82b5f4-1ba9-4d20-89c8-1082ebaa****\\",\\n \\"RequestId\\": \\"ACA19FE1-C09E-53C7-8FDA-560******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateAScriptsResponse>\\n <JobId>2e82b5f4-1ba9-4d20-89c8-1082ebaa****</JobId>\\n <RequestId>ACA19FE1-C09E-53C7-8FDA-560F49D71891</RequestId>\\n</UpdateAScriptsResponse>","errorExample":""}]',
'title' => '更新可编程脚本',
'description' => '**UpdateAScripts**接口属于异步接口,即系统返回一个请求ID,但该可编程脚本尚未更新成功,系统后台的更新任务仍在进行。您可以调用[ListAScripts](~~472574~~)查询可编程脚本的更新状态:'."\n"
."\n"
.' - 当可编程脚本处于**Configuring**状态时,表示可编程脚本正在更新中。'."\n"
."\n"
.' - 当可编程脚本处于**Available**状态时,表示可编程脚本更新成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
],
'UpdateAclAttribute' => [
'summary' => '更新访问控制的属性,如名称。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'AclId',
'in' => 'query',
'schema' => ['title' => 'AclId', 'description' => 'ACL实例ID', 'type' => 'string', 'required' => true, 'example' => 'acl-hp34s2h0xx1ht4nwo****'],
],
[
'name' => 'AclName',
'in' => 'query',
'schema' => ['title' => '访问控制策略名称', 'description' => 'ACL的名称。必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格,限制长度为2~128个字符。', 'type' => 'string', 'required' => true, 'example' => 'test-acl'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '是否预校验请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会创建资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP `2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '异步任务ID结构',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876F******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Conflict.Acl', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '%s冲突,已经存在同配置的%s。'],
['errorCode' => 'IncorrectStatus.Acl', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Acl', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '访问控制策略组ACL不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876F******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateAclAttributeResponse>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</UpdateAclAttributeResponse>","errorExample":""}]',
'title' => '更新访问控制的属性',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateAclAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
],
],
'UpdateHealthCheckTemplateAttribute' => [
'summary' => '更新健康检查模板的属性,如名称、健康检查协议等。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'PrivateKey' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '幂等参数', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'HealthCheckTemplateName',
'in' => 'query',
'schema' => ['title' => '名称', 'description' => '健康检查模板名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'HealthCheckTemplate1'],
],
[
'name' => 'HealthCheckConnectPort',
'in' => 'query',
'schema' => ['title' => '端口号', 'description' => '健康检查使用的端口。取值范围: **0~65535**。'."\n"
.'默认值:**0**,表示使用后端服务器的端口进行健康检查。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
[
'name' => 'HealthCheckHost',
'in' => 'query',
'schema' => ['title' => '域名', 'description' => '用于健康检查的域名。取值: '."\n"
."\n"
.'- **$SERVER_IP**(默认值):后端服务器的私网IP。当指定了IP或该参数未指定时,负载均衡会使用后端服务器的私网IP当做健康检查使用的域名。'."\n"
."\n"
.'- **domain**:域名长度为1~80字符,只能包含字母、数字、半角句号点(.)和短划线(-)。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`设置为**HTTP**或**HTTPS**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => '$SERVER_IP'],
],
[
'name' => 'HealthCheckCodes',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的HTTP状态码。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http_2xx**(默认值)、 **http_3xx**、**http_4xx**和**http_5xx**,多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值,多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'http_2xx'],
'required' => false,
'example' => '5',
],
],
[
'name' => 'HealthCheckInterval',
'in' => 'query',
'schema' => ['title' => '时间间隔', 'description' => '健康检查的时间间隔。单位:秒。取值范围:**1~50**。默认值:**2**秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
],
[
'name' => 'HealthCheckTimeout',
'in' => 'query',
'schema' => ['title' => '超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端服务器在指定的时间内没有正确响应,则判定为健康检查失败。'."\n"
."\n"
.'单位:秒。取值范围:**1~300**。默认值:**5**秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '300', 'minimum' => '1', 'example' => '3'],
],
[
'name' => 'HealthCheckPath',
'in' => 'query',
'schema' => ['title' => 'uri', 'description' => '用于健康检查的URL。'."\n"
."\n"
.'长度限制为1~80,只能使用字母、数字和短划线(-)、正斜线(/)、半角句号点(.)、百分号(%)、半角问号(?)、井号(#)、and(&)这些字符以及扩展字符集`_;~!()*[]@$^:\',+`。'."\n"
."\n"
.'URL必须以正斜线(/)开头。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => '/test/index.html'],
],
[
'name' => 'HealthCheckMethod',
'in' => 'query',
'schema' => ['title' => '方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **HEAD**(默认值):HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n\n"
.'> 只有**HealthCheckProtocol**为**HTTP**或**HTTPS**或**gRPC**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'HEAD'],
],
[
'name' => 'HealthCheckProtocol',
'in' => 'query',
'schema' => ['title' => '协议', 'description' => '健康检查采用的协议。取值:'."\n"
."\n"
.'- **HTTP**(默认值):通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
],
[
'name' => 'HealthCheckHttpVersion',
'in' => 'query',
'schema' => ['title' => '版本', 'description' => '健康检查HTTP协议版本。'."\n"
."\n"
.'取值:**HTTP1.0**或**HTTP1.1**。'."\n"
."\n"
.'默认值:**HTTP1.1**。'."\n"
."\n"
.'> 只有`HealthCheckProtocol`为**HTTP**或**HTTPS**时才有该参数。', 'type' => 'string', 'required' => false, 'example' => 'HTTP1.0'],
],
[
'name' => 'HealthyThreshold',
'in' => 'query',
'schema' => ['title' => '健康阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**失败**判定为**成功**。'."\n"
."\n"
.'取值范围:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'UnhealthyThreshold',
'in' => 'query',
'schema' => ['title' => '不健康阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**成功**判定为**失败**。'."\n"
."\n"
.'取值范围:**2~10**。'."\n"
."\n"
.'默认值:**3**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会修改资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**http_2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'HealthCheckTemplateId',
'in' => 'query',
'schema' => ['title' => '健康检查模板ID', 'description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'hct-bp1qjwo61******'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '更新健康检查模板属性。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.HealthCheckTemplate', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.HealthCheckTemplate', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '健康检查模版操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.HealthCheckTemplate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateHealthCheckTemplateAttributeResponse>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateHealthCheckTemplateAttributeResponse>","errorExample":""}]',
'title' => '更新健康检查模板的属性',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateHealthCheckTemplateAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthchecktemplateId}'],
],
],
],
],
],
'UpdateListenerAttribute' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '187',
'abilityTreeNodes' => ['FEATUREslbM7ALO6', 'FEATUREslbK3ZR0L', 'FEATUREslbN5IE4S'],
],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听标识', 'description' => '应用型负载均衡实例监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求。取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会更新监听的配置。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ListenerDescription',
'in' => 'query',
'schema' => ['title' => '监听描述', 'description' => '自定义监听名称。'."\n"
."\n"
.'长度为2\\~256个字符,可包含英文字母、数字、中文、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。', 'type' => 'string', 'required' => false, 'example' => 'HTTP_80'],
],
[
'name' => 'RequestTimeout',
'in' => 'query',
'schema' => ['title' => '请求超时时间', 'description' => '指定请求超时时间。单位:秒。取值范围:**1~180**。'."\n"
."\n"
.'如果在超时时间内后端服务器一直没有响应,负载均衡将放弃等待,给客户端返回`HTTP 504`错误码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '3'],
],
[
'name' => 'IdleTimeout',
'in' => 'query',
'schema' => ['title' => '连接空闲超时时间', 'description' => '指定连接空闲超时时间。单位:秒。取值范围:**1~60**。'."\n"
."\n"
.'如果在超时时间内一直没有访问请求,负载均衡会暂时中断当前连接,直到下一次请求来临时重新建立新的连接。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '15'],
],
[
'name' => 'GzipEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启Gzip压缩', 'description' => '是否开启Gzip压缩,对特定文件类型进行压缩。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'Http2Enabled',
'in' => 'query',
'schema' => ['title' => '是否开启HTTP/2特性', 'description' => '是否开启HTTP/2特性。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'SecurityPolicyId',
'in' => 'query',
'schema' => ['title' => '安全策略', 'description' => '安全策略,支持系统安全策略和自定义安全策略。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'tls_cipher_policy_1_0'],
],
[
'name' => 'CaEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启双向认证', 'description' => '是否开启双向认证。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'XForwardedForConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'XForward字段相关的配置',
'description' => 'XForwardedFor相关属性配置。',
'type' => 'object',
'properties' => [
'XForwardedForClientCertClientVerifyAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertClientVerifyEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头字段名称,只有当**XForwardedForClientCertClientVerifyEnabled**的值为**true**时,此值才会生效。'."\n"
."\n"
.'取值限制:长度1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_client-verify-alias_123456'],
'XForwardedForClientCertClientVerifyEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-clientverify 头字段获取对访问负载均衡实例客户端证书的校验结果。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-clientverify`头字段获取对访问负载均衡实例客户端证书的校验结果。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientCertFingerprintAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertFingerprintEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头字段名称,只有当**XForwardedForClientCertFingerprintEnabled**的值为**true**时生效。'."\n"
."\n"
.'取值限制:长度为1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_finger-print-alias_123456'],
'XForwardedForClientCertFingerprintEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-fingerprint 头字段获取访问负载均衡实例客户端证书的指纹取值,HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-fingerprint`头字段获取访问负载均衡实例客户端证书的指纹取值。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientCertIssuerDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertIssuerDNEnabled的值为‘On’的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头字段名称,只有当**XForwardedForClientCertIssuerDNEnabled**的值为**true**时才生效。'."\n"
."\n"
.'取值限制:长度为1\\~40个字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_issue-dn-alias_123456'],
'XForwardedForClientCertIssuerDNEnabled' => ['title' => '是否通过 X-Forwarded-Clientcert-issuerdn 头字段获取访问负载均衡实例客户端证书的发行者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-issuerdn`头字段获取访问负载均衡实例客户端证书的发行者信息。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientCertSubjectDNAlias' => ['title' => '自定义HEADER头名称,只有当XForwardedForClientCertSubjectDNEnabled的值为true的时候,此值才会生效;否则该值不会生效。HTTPS监听有效', 'description' => '自定义头字段名称,只有当**XForwardedForClientCertSubjectDNEnabled**的值为**true**时才生效。'."\n"
."\n"
.'取值限制:长度为1\\~40字符。支持字母a~z、短划线(-)、下划线(_)和数字。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'test_subject-dn-alias_123456'],
'XForwardedForClientCertSubjectDNEnabled' => ['title' => '是否通过X-Forwarded-Clientcert-subjectdn 头字段获取访问负载均衡实例客户端证书的所有者信息。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Clientcert-subjectdn`头字段获取访问负载均衡实例客户端证书的所有者信息。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientSrcPortEnabled' => ['title' => '是否通过X-Forwarded-Client-Port 头字段获取访问负载均衡实例客户端的端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Client-srcport`头字段获取访问负载均衡实例客户端的端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForEnabled' => ['title' => '是否开启通过X-Forwarded-For头字段获取来访者真实 IP', 'description' => '是否通过`X-Forwarded-For`头字段获取来访者真实IP。取值:'."\n"
.'- **true**(默认值):是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 1. 配置**true**,**XForwardedForProcessingMode**默认取值**append**,支持修改为**remove**。'."\n"
.'> 2. 配置**false**,将请求发送至后端服务之前保留`X-Forwarded-For`头字段,不做额外处理。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'XForwardedForProcessingMode' => ['description' => '处理`X-Forwarded-For`头字段的模式。只有当**XForwardedForEnabled**为**true**时,此值才会生效。取值:'."\n"
.'- **append**(默认值):附加。'."\n"
.'- **remove**:删除。'."\n"
."\n"
.'> 1. 配置**append**,将请求发送至后端服务之前把最后一跳IP加入`X-Forwarded-For`头字段。'."\n"
.'> 2. 配置**remove**,将请求发送至后端服务之前删除`X-Forwarded-For`标头,无论请求是否携带`X-Forwarded-For`头字段。'."\n"
.'> 3. HTTP和HTTPS监听支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'append'],
'XForwardedForProtoEnabled' => ['title' => '是否通过X-Forwarded-Proto头字段获取负载均衡实例的监听协议。', 'description' => '是否通过`X-Forwarded-Proto`头字段获取负载均衡实例的监听协议。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForSLBIdEnabled' => ['title' => '是否通过SLB-ID头字段获取负载均衡实例ID。', 'description' => '是否通过`SLB-ID`头字段获取负载均衡实例ID。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForSLBPortEnabled' => ['title' => '是否通过X-Forwarded-Port 头字段获取负载均衡实例的监听端口。HTTPS监听有效。', 'description' => '是否通过`X-Forwarded-Port`头字段获取负载均衡实例的监听端口。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientSourceIpsEnabled' => ['description' => '是否允许ALB从X-Forwarded-For头字段中查找真实客户端IP。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> HTTP、HTTPS监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'XForwardedForClientSourceIpsTrusted' => ['description' => '指定可信的代理IP。'."\n"
."\n"
.'应用型负载均衡ALB会从后往前遍历`X-Forwarded-For`,选取第一个不在可信IP列表中的IP作为真实的客户端IP,该IP会被用于源IP限速。', 'type' => 'string', 'required' => false, 'example' => '10.1.1.0/24'],
'XForwardedForHostEnabled' => ['description' => '是否开启通过`X-Forwarded-Host`头字段获取访问负载均衡实例客户端的域名。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> HTTP、HTTPS和QUIC监听支持此参数。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
[
'name' => 'QuicConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'HTTPS启用QUIC时相关属性',
'description' => '启用关联QUIC监听时的配置信息。',
'type' => 'object',
'properties' => [
'QuicListenerId' => ['title' => '需要关联的QUIC监听ID,HTTPS监听时有效,QuicUpgradeEnabled为true时必选', 'description' => '需要关联的QUIC监听ID。**QuicUpgradeEnabled**值为**true**时必选。HTTPS监听时有效。'."\n"
."\n"
.'> 原始监听和关联的QUIC监听必须属于同一个ALB实例,并且此QUIC监听之前没有被关联过。', 'type' => 'string', 'required' => false, 'example' => 'lsn-333'],
'QuicUpgradeEnabled' => ['title' => '是否开启quic升级,HTTPS监听时有效', 'description' => '是否开启QUIC升级。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**:否。'."\n"
."\n"
.'> 仅HTTPS监听时有效。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
[
'name' => 'Certificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认服务器证书列表,N当前取值范围为1',
'description' => '证书列表。',
'type' => 'array',
'items' => [
'description' => '证书结构。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => '默认证书ID,目前仅支持添加 1 个默认服务器证书。'."\n"
."\n"
.'> - 监听协议类型为**HTTPS**或**QUIC**时,此参数为必填。'."\n"
.'> - 如需更多服务器证书,可在创建监听后调用[AssociateAdditionalCertificatesWithListener](~~2254830~~)配置扩展证书。', 'type' => 'string', 'required' => false, 'example' => '123157******'],
],
'required' => false,
],
'required' => false,
'maxItems' => 2,
'minItems' => 1,
],
],
[
'name' => 'CaCertificates',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认CA证书列表,N当前取值范围为1',
'description' => 'CA证书列表。目前仅支持添加1个CA证书。',
'type' => 'array',
'items' => [
'description' => 'CA证书结构。',
'type' => 'object',
'properties' => [
'CertificateId' => ['title' => '正式标识', 'description' => 'CA证书ID。'."\n"
."\n"
.'> 当**CaEnabled**参数取值为**true**的时候,此参数为必填。', 'type' => 'string', 'required' => false, 'example' => '123359******'],
],
'required' => false,
],
'required' => false,
'maxItems' => 1,
'minItems' => 1,
],
],
[
'name' => 'DefaultActions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '监听默认动作',
'description' => '默认规则动作列表。',
'type' => 'array',
'items' => [
'description' => '默认规则动作结构。',
'type' => 'object',
'properties' => [
'ForwardGroupConfig' => [
'title' => '转发组',
'description' => '转发动作对应的配置,**Type**类型为**ForwardGroup**时必填且有效。最多支持添加20个转发动作对应的配置。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '服务器组列表',
'description' => '转发目标服务器元组列表。',
'type' => 'array',
'items' => [
'description' => '转发目标服务器元组结构。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组ID', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-i5qt20******'],
],
'required' => false,
],
'required' => true,
],
],
'required' => false,
],
'Type' => ['title' => '动作类型', 'description' => '动作类型。最多支持添加1个动作类型。'."\n"
."\n"
.'取值:**ForwardGroup**,表示转发至多个服务器组。', 'type' => 'string', 'required' => true, 'example' => 'ForwardGroup'],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.CrossLoadBalancerQUICListener', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'ResourceAlreadyAssociated.Listener', 'errorMessage' => 'The specified resource %s is already associated.', 'description' => '资源%s已被关联。'],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'ResourceAlreadyAssociated.Certificate', 'errorMessage' => 'The specified resource %s is already associated.', 'description' => '证书已被关联。'."\n"],
['errorCode' => 'ResourceQuotaExceeded.SecurityPolicyAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'OperationDenied.ServerGroupProtocolNotSupport', 'errorMessage' => 'The operation is not allowed because of ServerGroupProtocolNotSupport.', 'description' => '操作被拒绝,原因是ServerGroupProtocolNotSupport。'],
['errorCode' => 'UnsupportedFeature.FullTraceHttps', 'errorMessage' => 'The feature of FullTraceHttps is not supported for current instance.', 'description' => '当前实例版本不支持全链路HTTPS特性。'],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Invalid parameter, please check the parameter input.', 'description' => '无效参数,请检查参数输入。'],
['errorCode' => 'OperationDenied.CACertificateCorrupted', 'errorMessage' => 'The CA certificate is corrupted.', 'description' => 'CA证书已经损坏'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.Certificate', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '更新监听的配置',
'summary' => '更新监听的配置,如名称、默认动作等。',
'description' => '**UpdateListenerAttribute**接口属于异步接口,即系统返回一个请求ID,但该监听的配置尚未更新成功,系统后台的更新任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询监听的配置的更新状态:'."\n"
.'- 当监听器处于**Configuring**状态时,表示监听的配置正在更新中。'."\n"
.'- 当监听器处于**Running**状态时,表示监听的配置更新成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateListenerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateListenerAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateListenerAttributeResponse>","errorExample":""}]',
],
'UpdateListenerLogConfig' => [
'summary' => '更新监听日志相关属性,如访问日志等。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ListenerId',
'in' => 'query',
'schema' => ['title' => '监听标识', 'description' => '应用型负载均衡实例监听ID。', 'type' => 'string', 'required' => true, 'example' => 'lsn-o4u54y73wq7b******'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会更新监听的日志配置。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回**HTTP_2xx**状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'AccessLogRecordCustomizedHeadersEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启携带自定义Header', 'description' => '访问日志是否开启携带自定义头字段。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 只有实例访问日志开关**AccessLogEnabled**打开时,才能设置此参数为**true**。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'AccessLogTracingConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '访问日志xtrace字段相关的配置',
'description' => 'Xtrace配置信息。',
'type' => 'object',
'properties' => [
'TracingEnabled' => ['title' => 'Xtrace功能状态', 'description' => 'Xtrace功能状态。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。'."\n"
."\n"
.'> 只有实例访问日志开关**AccessLogEnabled**打开时,才能设置此参数为**true**。', 'type' => 'boolean', 'required' => true, 'example' => 'true'],
'TracingSample' => ['title' => 'xtrace的采样率', 'description' => 'Xtrace采样率。'."\n"
."\n"
.'取值范围:**1~10000**。'."\n"
."\n"
.'> **TracingEnabled**为**true**时有效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'TracingType' => ['title' => 'xtrace的类型', 'description' => 'Xtrace类型,取值为**Zipkin**。'."\n"
."\n"
.'> **TracingEnabled**为**true**时有效。', 'type' => 'string', 'required' => false, 'example' => 'Zipkin'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '更新监听的日志配置。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectStatus.Listener', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '监听的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.AccessLogDisabled', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,实例未开启访问日志。'."\n"],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified resource of %s is being configured, please try again later.', 'description' => '指定的资源%s正在配置中,请稍后再试。'],
],
404 => [
['errorCode' => 'ResourceNotFound.Listener', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '监听不存在。'],
],
],
'title' => '更新监听日志相关属性',
'description' => '**UpdateListenerLogConfig**接口属于异步接口,即系统返回一个请求ID,但该监听的日志配置尚未更新成功,系统后台的更新任务仍在进行。您可以调用[GetListenerAttribute](~~2254865~~)查询监听的日志配置的更新状态:'."\n"
.'- 当监听器处于**Configuring**状态时,表示监听的日志配置正在更新中。'."\n"
.'- 当监听器处于**Running**状态时,表示监听的日志配置更新成功。'."\n"
.'> 只有开启实例访问日志后,才能更新监听的日志配置。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateListenerLogConfig',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateListenerLogConfigResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateListenerLogConfigResponse>","errorExample":""}]',
],
'UpdateLoadBalancerAddressTypeConfig' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '86743',
'abilityTreeNodes' => ['FEATUREslbSUND48', 'FEATUREslbXJYU12'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665544****'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '是否只预检此次请求', 'description' => '是否只预检此次请求。取值:'."\n"
.'- **true**:发送检查请求,不会更新实例的网络类型。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-bp1o94dp5i6ea****'],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['title' => '目标网络类型', 'description' => '目标网络类型。取值:'."\n"
."\n"
.'- **Internet**:负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。'."\n"
."\n"
.'- **Intranet**:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。', 'type' => 'string', 'required' => true, 'example' => 'Internet'],
],
[
'name' => 'ZoneMappings',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '可用区及交换机映射列表',
'description' => '可用区及交换机映射列表,最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。',
'type' => 'array',
'items' => [
'description' => '可用区及交换映射列表结构体。',
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区只能使用一台交换机和一个子网。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp10ttov87felojcn****'],
'ZoneId' => ['title' => '可用区', 'description' => '应用型负载均衡实例的可用区ID。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。'."\n"
."\n"
.'您可以通过调用[DescribeZones](~~189196~~)接口获取可用区ID对应的可用区信息。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-a'],
'AllocationId' => ['title' => '弹性公网IP', 'description' => '弹性公网IP实例ID。最多支持添加10个可用区。'."\n"
."\n"
.'> 调用此接口由私网转换为公网时,需要输入此参数。', 'type' => 'string', 'required' => false, 'example' => 'eip-bp1aedxso6u80u0qf****'],
'EipType' => ['title' => '弹性公网IP类型', 'description' => '弹性公网IP的类型。取值:'."\n"
."\n"
.'- Common(默认值):弹性公网IP。'."\n"
."\n"
.'- Anycast:任播弹性公网IP。'."\n"
."\n"
.'> ALB支持绑定Anycast EIP的地域,请参见[使用限制](~~460727~~)。', 'type' => 'string', 'required' => false, 'example' => 'Common'],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'RetainResourceType',
'in' => 'query',
'style' => 'flat',
'schema' => [
'type' => 'array',
'items' => ['type' => 'string', 'example' => 'eip'],
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.OnlyPostPaidEipSupported', 'errorMessage' => 'The operation is not allowed because of OnlyPostPaidEipSupported.', 'description' => '操作被拒绝,原因是只支持后付费类型的弹性公网IP。'],
['errorCode' => 'Mismatch.ZoneIdAndVSwitchId', 'errorMessage' => 'The ZoneId and VSwitchId are mismatched.', 'description' => '可用区ID和交换机ID不匹配。'],
['errorCode' => 'IncorrectBusinessStatus.Eip', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'ResourceNotFound.Eip', 'errorMessage' => 'The specified resource ResourceNotFound.Eip is not found.', 'description' => '资源弹性公网IP不存在。'],
['errorCode' => 'IncorrectStatus.CommonBandwidthPackage', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
['errorCode' => 'IncorrectBusinessStatus.CommonBandwidthPackage', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.AddressTypeNotChanged', 'errorMessage' => 'The operation is not allowed because of AddressTypeNotChanged.', 'description' => '该负载均衡实例的网络类型未变更'],
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
],
404 => [
['errorCode' => 'ResourceNotFound.CommonBandwidthPackage', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '变更负载均衡实例的网络类型配置',
'summary' => '变更应用型负载均衡实例的网络类型。',
'description' => '前提条件:'."\n"
."\n"
.'- 您已经创建应用型负载均衡实例,具体操作,请参见[CreateLoadBalancer](~~214358~~)。'."\n"
.'- 当您需要通过此接口将应用型负载均衡实例的网络类型由私网变为公网时,您需要先创建一个弹性公网IP。具体操作,请参见[AllocateEipAddress](~~120192~~)。'."\n"
."\n"
.'使用说明:'."\n"
."\n"
.'**UpdateLoadBalancerAddressTypeConfig**接口属于异步接口,即系统返回一个请求ID,但该应用型负载均衡实例的网络类型尚未变更成功,系统后台的变更任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡实例的网络类型的变更状态:'."\n"
.'- 当应用型负载均衡实例处于**Configuring**状态时,表示应用型负载均衡实例的网络类型正在变更中。'."\n"
.'- 当应用型负载均衡实例处于**Active**状态时,表示应用型负载均衡实例的网络类型变更成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerAddressTypeConfig',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3\\",\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateLoadBalancerAddressTypeConfigResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n</UpdateLoadBalancerAddressTypeConfigResponse>","errorExample":""}]',
],
'UpdateLoadBalancerAttribute' => [
'summary' => '更新负载均衡实例属性,如名称、修改保护等。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会修改应用型负载均衡实例的属性。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hgn68jk****'],
],
[
'name' => 'LoadBalancerName',
'in' => 'query',
'schema' => ['title' => '名称', 'description' => '应用型负载均衡实例的名称,长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'alb-instance-test'],
],
[
'name' => 'ModificationProtectionConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '负载均衡修改保护相关信息',
'description' => '修改保护配置。',
'type' => 'object',
'properties' => [
'Reason' => ['title' => '设置修改保护状态的原因', 'description' => '开启修改保护配置的原因。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小写字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。'."\n"
."\n"
.'仅在**Status**为**ConsoleProtection**时有效且合法。', 'type' => 'string', 'required' => false, 'example' => 'Managed Instance'],
'Status' => ['title' => '负载均衡修改保护状态', 'description' => '应用型负载均衡实例的修改保护状态。取值:'."\n"
."\n"
.'- **NonProtection**:不开启修改保护。如有配置**Reason**,**Reason**会被强制置空。'."\n"
."\n"
.'- **ConsoleProtection**:开启控制台修改保护。如有配置**Reason**,**Reason**可生效。'."\n"
."\n"
.'> 当取值为**ConsoleProtection**,即开启修改保护后,用户不能通过负载均衡控制台修改实例配置,但可以通过调用API修改实例配置。', 'type' => 'string', 'required' => false, 'example' => 'ConsoleProtection'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '更新负责均衡实例属性。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '同步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
],
403 => [
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateLoadBalancerAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</UpdateLoadBalancerAttributeResponse>","errorExample":""}]',
'title' => '更新负载均衡实例属性',
'description' => '**UpdateLoadBalancerAttribute**接口属于异步接口,即系统返回一个请求ID,但该应用型负载均衡实例属性尚未修改成功,系统后台的修改任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡实例属性的修改状态:'."\n"
.'- 当应用型负载均衡实例属性处于**Configuring**状态时,表示应用型负载均衡实例属性正在修改中。'."\n"
.'- 当应用型负载均衡实例属性处于**Active**状态时,表示应用型负载均衡实例属性修改成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
],
'UpdateLoadBalancerEdition' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会修改应用型负载均衡版本。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行修改。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例Id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-bp1b6c719dfa08ex****'],
],
[
'name' => 'LoadBalancerEdition',
'in' => 'query',
'schema' => ['title' => '实例版本', 'description' => '应用型负载均衡的版本,不同版本有不同功能限制和计费策略。'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
."\n"
.'- **Standard**:标准版。'."\n"
."\n"
.'- **StandardWithWaf**:WAF增强版。', 'type' => 'string', 'required' => true, 'example' => 'Standard'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '修改负载均衡版本。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.Downgrade', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.EditionNotChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是版本未变化。'."\n"],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'title' => '变更负载均衡版本',
'summary' => '变更当前负载均衡版本。',
'description' => '- ALB实例仅支持基础版升级为标准版和WAF增强版,WAF增强版变更为标准版,不支持标准版和WAF增强版变更为基础版。具体操作,请参见[升级实例功能版本](~~214654~~)。'."\n"
.'- **UpdateLoadBalancerEdition**接口属于异步接口,即系统返回一个请求ID,但该应用型负载均衡版本尚未修改成功,系统后台的修改任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡版本的修改状态:'."\n"
.' - 当应用型负载均衡版本处于**Configuring**状态时,表示应用型负载均衡版本正在修改中。'."\n"
.' - 当应用型负载均衡版本处于**Active**状态时,表示应用型负载均衡版本修改成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerEdition',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateLoadBalancerEditionResponse>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</UpdateLoadBalancerEditionResponse>","errorExample":""}]',
],
'UpdateLoadBalancerZones' => [
'summary' => '修改应用型负载均衡实例可用区属性。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198',
'abilityTreeNodes' => ['FEATUREslb9RALVR', 'FEATUREslbFTB0NK'],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会修改应用型负载均衡实例可用区属性。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP_2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LoadBalancerId',
'in' => 'query',
'schema' => ['title' => '实例id', 'description' => '应用型负载均衡实例ID。', 'type' => 'string', 'required' => true, 'example' => 'alb-o9ulmq5hfn68jk****'],
],
[
'name' => 'ZoneMappings',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '可用区及交换机映射列表',
'description' => '可用区及交换机映射列表,最多支持指定10个可用区。若当前地域支持2个及以上的可用区,至少需要指定2个可用区。如果指定,则会替换之前的可用区配置。',
'type' => 'array',
'items' => [
'description' => '可用区及交换机映射结构。最多支持指定10个可用区。若当前地域支持2个及以上的可用区,至少需要指定2个可用区。如果指定,则会替换之前的可用区配置。',
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => '交换机标识', 'description' => '可用区对应的交换机,每个可用区默认使用一台交换机和一个子网。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。', 'type' => 'string', 'required' => true, 'example' => 'vsw-bp1rmcrwg3srh1fh8****'],
'ZoneId' => ['title' => '可用区', 'description' => '可用区名称,通过调用[DescribeZones](~~189196~~)接口获得。最多支持添加10个可用区。若当前地域支持2个及以上的可用区,至少需要添加2个可用区。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou-a'],
'EipType' => ['title' => '弹性公网IP类型', 'description' => '公网EIP的类型。取值:'."\n"
."\n"
.'- **Common**:弹性公网IP,简称EIP。'."\n"
.'- **Anycast**:任播弹性公网IP,简称Anycast EIP。'."\n"
."\n"
.'> ALB支持绑定Anycast EIP的地域,请参见[使用限制](~~460727~~)。', 'type' => 'string', 'required' => false, 'example' => 'Common'],
'IntranetAddress' => ['description' => 'IPv4私网地址。至少需要添加2个可用区,最多支持添加10个可用区。', 'type' => 'string', 'required' => false, 'example' => '192.168.10.1'],
],
'required' => false,
],
'required' => true,
'maxItems' => 10,
'minItems' => 1,
],
],
[
'name' => 'RetainResourceType',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '支持保留的ALB代创建资源',
'type' => 'array',
'items' => ['title' => '代创建资源类型', 'type' => 'string', 'example' => 'eip'],
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '修改可用区属性。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CEF72CEB-54B6-4AE8-B225-F876FF7BA984'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.LoadBalancer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '实例的当前状态不支持本次操作。'."\n"],
['errorCode' => 'IncorrectBusinessStatus.LoadBalancer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'IncorrectBusinessStatus.Eip', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的业务状态无效。'],
['errorCode' => 'OperationDenied.ZoneVSwitchChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.ZoneMappingsNotChanged', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是可用区没有变化。'."\n"],
['errorCode' => 'ResourceNotEnough.VSwitchIp', 'errorMessage' => 'The specified resource %s is not enough.', 'description' => '资源%s不足。'."\n"],
['errorCode' => 'Mismatch.ZoneIdAndVSwitchId', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '%s和%s不匹配。'],
],
404 => [
['errorCode' => 'ResourceNotFound.LoadBalancer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.VSwitch', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'."\n"],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '更新负载均衡可用区',
'description' => '**UpdateLoadBalancerZones**接口属于异步接口,即系统返回一个请求ID,但该应用型负载均衡实例可用区属性尚未修改成功,系统后台的修改任务仍在进行。您可以调用[GetLoadBalancerAttribute](~~214362~~)查询应用型负载均衡实例可用区属性的修改状态:'."\n"
.'- 当应用型负载均衡实例处于**Configuring**状态时,表示应用型负载均衡实例可用区属性正在修改中。'."\n"
.'- 当应用型负载均衡实例处于**Active**状态时,表示应用型负载均衡实例可用区属性修改成功。'."\n"
."\n"
.'> 调用UpdateLoadBalancerZones接口可能会产生费用。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"CEF72CEB-54B6-4AE8-B225-F876FF7BA984\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateLoadBalancerZonesResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>\\n</UpdateLoadBalancerZonesResponse>","errorExample":""}]',
],
'UpdateRuleAttribute' => [
'summary' => '更新转发规则属性,如条件、动作、名称等。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '177',
'abilityTreeNodes' => ['FEATUREslbM7ALO6'],
],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['title' => '转发规则标识', 'description' => '转发规则ID。', 'type' => 'string', 'required' => true, 'example' => 'rule-4dp5i6ea****'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3FF3898'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会更新转发规则属性。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'RuleConditions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '转发规则条件',
'description' => '转发规则条件。',
'type' => 'array',
'items' => [
'description' => '转发规则条件。',
'type' => 'object',
'properties' => [
'CookieConfig' => [
'title' => 'Cookie条件配置',
'description' => 'Cookie配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'Cookie键值对列表',
'description' => 'Cookie配置。',
'type' => 'array',
'items' => [
'description' => 'Cookie配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'Cookie条件键', 'description' => 'Cookie键。长度为1~100个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&";`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Value' => ['title' => 'Cookie条件值', 'description' => 'Cookie值。长度为1~128个字符,支持小写英文字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
'HeaderConfig' => [
'title' => 'HTTP标头条件配置',
'description' => '头字段配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '头字段键。长度为1~40个字符,支持字母、数字、短划线(-)和下划线(_),不支持Cookie和Host。', 'type' => 'string', 'required' => false, 'example' => 'Port'],
'Values' => [
'title' => 'HTTP标头值列表',
'description' => '头字段值。',
'type' => 'array',
'items' => ['description' => '头字段值。同一个转发规则条件内头字段值不能重复。命名规则:'."\n"
.'- 支持1~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => '5006'],
'required' => false,
],
],
'required' => false,
],
'HostConfig' => [
'title' => '主机名条件配置',
'description' => '主机配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '主机名列表',
'description' => '主机名列表。',
'type' => 'array',
'items' => ['description' => '主机名。命名规则:'."\n"
."\n"
.'- 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及星号(*)和半角问号(?)。'."\n"
."\n"
.'- 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.'- 最右侧的域标签只能包含字母、星号(*)和问号(?),不能包含数字或短划线(-)。'."\n"
."\n"
.'- 短划线(-)不能出现在其它域标签的开头或结尾。星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'required' => false,
],
],
'required' => false,
],
'MethodConfig' => [
'title' => 'HTTP请求方法条件配置',
'description' => '请求方法配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'HTTP请求方法列表',
'description' => '请求方法列表。',
'type' => 'array',
'items' => ['description' => '请求方法。'."\n"
."\n"
.'取值:**HEAD**、**GET**、**POST**、**OPTIONS**、**PUT**、**PATCH**或**DELETE**。', 'type' => 'string', 'required' => false, 'example' => 'PUT'],
'required' => false,
],
],
'required' => false,
],
'PathConfig' => [
'title' => '路径条件配置',
'description' => '转发的路径配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '路径条件列表',
'description' => '转发路径列表。',
'type' => 'array',
'items' => ['description' => '转发路径。命名规则:'."\n"
.'- 长度为1~128个字符。'."\n"
.'- 必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:`,不支持`“%#;!()[]^,”\\"`,支持星号(*)和半角问号(?)作为通配符使用。', 'type' => 'string', 'required' => false, 'example' => '/test'],
'required' => false,
],
],
'required' => false,
],
'QueryStringConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '查询字符串条件键值对列表',
'description' => '查询字符串列表。最多支持添加20个查询字符串。',
'type' => 'array',
'items' => [
'description' => '查询字符串结构。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '查询字符串条件键', 'description' => '查询字符串键。长度为1~100个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Value' => ['title' => '查询字符串条件值', 'description' => '查询字符串值。长度为1~128个字符,支持小写字母、可见字符、星号(*)和半角问号(?),不支持空格和`#[]{}\\|<>&"`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
'Type' => ['title' => '条件类型', 'description' => '转发规则类型。最多支持添加7个转发规则类型。取值:'."\n"
."\n"
.'- **Host**:主机。'."\n"
."\n"
.'- **Path**:路径。'."\n"
."\n"
.'- **Header**:HTTP头字段。'."\n"
."\n"
.'- **QueryString**:查询字符串。'."\n"
."\n"
.'- **Method**:请求方法。'."\n"
."\n"
.'- **Cookie**:Cookie。'."\n"
."\n"
.'- **SourceIp**:源IP。'."\n"
."\n"
.'- **ResponseHeader**:响应HTTP头字段。'."\n"
."\n"
.'- **ResponseStatusCode**: 响应状态码。', 'type' => 'string', 'required' => false, 'example' => 'Host'],
'ResponseStatusCodeConfig' => [
'title' => '返回状态码条件',
'description' => '响应状态码配置。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '返回状态码条件',
'description' => '响应状态码列表。',
'type' => 'array',
'items' => ['description' => '响应状态码。', 'type' => 'string', 'required' => false, 'example' => '301'],
'required' => false,
],
],
'required' => false,
],
'ResponseHeaderConfig' => [
'title' => '返回HTTP标头',
'description' => '标头条件配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => '返回HTTP标头键', 'description' => '头字段键。'."\n"
.'- 长度为1~40个字符。'."\n"
.'- 支持字母a~z、数字、短划线(-)和下划线(_)。'."\n"
.'- 不支持Cookie和Host。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Values' => [
'title' => '返回HTTP标头值',
'description' => '头字段值。',
'type' => 'array',
'items' => ['description' => '头字段值。'."\n"
."\n"
.'- 长度为1~128个字符。'."\n"
.'- 支持ASCII码值`ch >= 32 && ch < 127`范围内可打印字符、小写字母以及通配符星号(*)和半角问号(?)。不支持`"`。'."\n"
.'- 开头和结尾不能为空格。结尾不能为`\\`。', 'type' => 'string', 'required' => false, 'example' => '50006'],
'required' => false,
],
],
'required' => false,
],
'SourceIpConfig' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配。最多支持添加5个基于源IP业务流量匹配。',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '基于源IP业务流量匹配',
'description' => '添加一个或多个IP地址或者IP地址段。'."\n"
."\n",
'type' => 'array',
'items' => ['description' => '添加一个或多个IP地址或者IP地址段。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '192.168.0.0/32'],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
'minItems' => 1,
],
],
[
'name' => 'RuleActions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '转发规则动作',
'description' => '转发规则动作列表。',
'type' => 'array',
'items' => [
'description' => '转发规则动作列表。',
'type' => 'object',
'properties' => [
'FixedResponseConfig' => [
'title' => '返回固定内容动作配置',
'description' => '固定响应内容配置。',
'type' => 'object',
'properties' => [
'Content' => ['title' => '内容', 'description' => '返回的固定内容。最大1 KB,只支持ASCII字符。', 'type' => 'string', 'required' => false, 'example' => 'dssacav'],
'ContentType' => ['title' => '内容类型', 'description' => '返回固定内容的格式。'."\n"
."\n"
.'取值:**text/plain**、**text/css**、**text/html**、**application/javascript**或**application/json**。', 'type' => 'string', 'required' => false, 'example' => 'text/plain'],
'HttpCode' => ['title' => 'HTTP响应码', 'description' => '返回的HTTP响应码,仅支持**2xx**、**4xx**、**5xx**数字型字符串,**x**为任意数字。', 'type' => 'string', 'required' => false, 'example' => '200'],
],
'required' => false,
],
'ForwardGroupConfig' => [
'title' => '转发组动作配置',
'description' => '转发组配置。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '转发到的目的服务器组列表',
'description' => '转发到的目标服务器组列表。',
'type' => 'array',
'items' => [
'description' => '转发到的目的服务器组结构。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组标识', 'description' => '转发到的目的服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sg--atstuj3rtoptyui****'],
'Weight' => ['title' => '权重', 'description' => '权重。取值越大,权重越大,表示转发的访问请求更多。取值范围:**0**~**100**。'."\n"
."\n"
.'- 目的服务器组数为1时,未指定权重时默认值为**100**。'."\n"
."\n"
.'- 目的服务器组数大于1时,需要用户指定权重值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '30'],
],
'required' => false,
],
'required' => false,
],
'ServerGroupStickySession' => [
'title' => '服务器组之间会话保持',
'description' => '服务器组之间会话保持。',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '是否开启会话保持', 'description' => '是否开启会话保持。取值:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**(默认值):不开启。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'Timeout' => ['title' => '超时时间', 'description' => '超时时间。单位:秒。取值范围:1~86400。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
'required' => false,
],
],
'required' => false,
],
'InsertHeaderConfig' => [
'title' => '插入头部动作配置',
'description' => '写入头字段配置。',
'type' => 'object',
'properties' => [
'CoverEnabled' => ['title' => '是否覆盖请求中的值', 'description' => '是否覆盖请求中的值。取值:'."\n"
.'- **true**:是。'."\n"
.'- **false**(默认值):否。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'Key' => ['title' => 'HTTP标头', 'description' => '插入的头字段名称,长度为1\\~40个字符,支持大小写字母a\\~z、数字、下划线(_)和短划线(-)。**InsertHeaderConfig**中的头字段名称不能重复。'."\n"
."\n"
.'> 不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`x-forwarded-host`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`。', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'HTTP标头内容', 'description' => '插入的头字段内容。'."\n"
."\n"
.'- **ValueType**取值为**SystemDefined**时取值如下:'."\n"
.' - **ClientSrcPort**:客户端端口。'."\n"
.' - **ClientSrcIp**:客户端IP地址。'."\n"
.' - **Protocol**:客户端请求的协议(HTTP或HTTPS)。'."\n"
.' - **SLBId**:应用型负载均衡实例ID。'."\n"
.' - **SLBPort**:应用型负载均衡实例监听端口。'."\n"
.'- **ValueType**取值为**UserDefined**时:您可自定义头字段内容,限制长度为1\\~128个字符,支持通配符星号(*)、半角问号(?)和ASCII码值`ch >= 32 && ch < 127`范围内的可打印字符,不支持`"`。开头和结尾不能为空格。结尾不能为`\\`。'."\n"
.'- **ValueType**取值为**ReferenceHeader**时:您可以引用请求头字段中的某一个字段,限制长度限制为1\\~128个字符,支持小写字母a\\~z、数字、短划线(-)和下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'UserDefined'],
'ValueType' => ['title' => '取值类型', 'description' => '头字段内容类型。取值:'."\n"
."\n"
.'- **UserDefined**:您自定义头字段内容。'."\n"
."\n"
.'- **ReferenceHeader**:引用请求头中的某一个头字段内容。'."\n"
."\n"
.'- **SystemDefined**:系统定义头字段内容。', 'type' => 'string', 'required' => false, 'example' => 'UserDefined'],
],
'required' => false,
],
'Order' => ['title' => '优先级', 'description' => '转发规则动作执行的顺序,取值范围:**1~50000**,按值从小到大执行动作。值不能为空,不能重复。最多支持添加20个转发规则动作执行的顺序。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'RedirectConfig' => [
'title' => '重定向动作配置',
'description' => '重定向配置。最多支持添加20个重定向。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '要跳转的主机地址', 'description' => '要跳转的主机地址。取值:'."\n"
.'- **${host}**(默认值):取此值时不支持和其他字符拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)和半角问号(?)。'."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-)。'."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。'."\n"
.' - 通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'HttpCode' => ['title' => '跳转方式', 'description' => '跳转方式,取值为**301**、**302**、**303**、**307**或**308**。', 'type' => 'string', 'required' => false, 'example' => '301'],
'Path' => ['title' => '要跳转的路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用**${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1~128个字符。'."\n"
.' - 必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/test'],
'Port' => ['title' => '要跳转的端口', 'description' => '要跳转的端口。取值:'."\n"
.'- **${port}**(默认值):该取值仅允许单独使用,不支持和其他字符拼接使用。'."\n"
.'- 其他取值:**1~63335**。', 'type' => 'string', 'required' => false, 'example' => '10'],
'Protocol' => ['title' => '要跳转的协议', 'description' => '要跳转的协议。取值:'."\n"
."\n"
.'- **${protocol}**(默认值):取该值时不支持和其他字符拼接使用。'."\n"
."\n"
.'- **HTTP**或**HTTPS**。'."\n"
."\n"
.'> HTTPS监听仅支持跳转HTTPS协议。'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
'Query' => ['title' => '要跳转的查询字符串', 'description' => '要跳转的查询字符串。取值:'."\n"
.'- **${query}**(默认值):可以引用**${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => 'quert'],
],
'required' => false,
],
'RewriteConfig' => [
'title' => '内部重定向动作配置',
'description' => '重写配置。',
'type' => 'object',
'properties' => [
'Host' => ['title' => '主机名', 'description' => '内部跳转的目的主机地址。取值:'."\n"
.'- **${host}**(默认值):该取值不支持和其他字符拼接。'."\n"
."\n"
.'- 其他取值,字符格式限制如下:'."\n"
."\n"
.' - 主机名长度为3\\~128个字符,支持小写字母a\\~z、数字、短划线(-)、半角句号(.)以及通配符星号(*)和半角问号(?)。'."\n"
."\n"
.' - 主机名至少包含一个半角句号(.),且半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签只能包含字母和通配符,不能包含数字或短划线(-)。'."\n"
."\n"
.' - 短划线(-)不能出现在其它域标签的开头或结尾。通配符星号(*)和半角问号(?)可以出现在域标签的任意位置。', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'Path' => ['title' => '路径', 'description' => '要跳转的路径。取值:'."\n"
.'- **${path}**(默认值):可以引用**${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1~128个字符。'."\n"
.' - 必须以正斜线(/)开头,支持字母、数字和特殊字符`$-_.+/&~@:`,不支持`“%#;!()[]^,”\\"`,同时支持通配符星号(*)和半角问号(?)。', 'type' => 'string', 'required' => false, 'example' => '/tsdf'],
'Query' => ['title' => '查询', 'description' => '内部跳转的查询字符串。取值:'."\n"
.'- **${query}**(默认值):可以引用**${host}**、**${protocol}**和**${port}**,每个变量最多出现一次。上述变量可以同时使用,也可以和下面罗列的可取值范围内的字符串拼接使用。'."\n"
.'- 其他取值,字符集和格式限制如下:'."\n"
.' - 长度为1~128个字符。'."\n"
.' - 支持可见字符,不支持空格和 `#[]{}\\|<>"`。如果是字母则必须是小写字母。', 'type' => 'string', 'required' => false, 'example' => 'quedsa'],
],
'required' => false,
],
'Type' => ['title' => '转发规则动作类型', 'description' => '动作类型。最多支持添加11个动作类型。取值:'."\n"
."\n"
.'- **ForwardGroup**:转发至多个虚拟服务器组。'."\n"
."\n"
.'- **Redirect**:重定向。'."\n"
."\n"
.'- **FixedResponse**:返回固定内容。'."\n"
."\n"
.'- **Rewrite**:重写。'."\n"
."\n"
.'- **InsertHeader**:写入头字段。'."\n"
."\n"
.'- **RemoveHeader**:删除头字段。'."\n"
."\n"
.'- **TrafficLimit**:流量限速。'."\n"
."\n"
.'- **TrafficMirror**:流量镜像。'."\n"
."\n"
.'- **Cors**:跨域。'."\n"
."\n"
.'> 一个转发规则必须包含有一条**ForwardGroup**(转发至)、**Redirect**(重定向)或**FixedResponse**(返回固定响应)转发动作,与其他类型转发动作并存时,必须放在最后执行。', 'type' => 'string', 'required' => false, 'example' => 'ForwardGroup'],
'TrafficLimitConfig' => [
'title' => '流量限速',
'description' => '流量限速。',
'type' => 'object',
'properties' => [
'QPS' => ['description' => '每秒请求次数。取值范围:**1~1000000**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'PerIpQps' => ['description' => '单IP每秒请求次数。 取值范围:**1 ~ 1000000**。'."\n"
."\n"
.'> 如果同时配置**QPS**参数,**PerIpQps**参数的取值必须小于**QPS**参数的取值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
'required' => false,
],
'TrafficMirrorConfig' => [
'title' => '流量镜像',
'description' => '流量镜像。',
'type' => 'object',
'properties' => [
'TargetType' => ['title' => '镜像目标类型', 'description' => '镜像的目标类型。取值:'."\n"
.'- **ForwardGroupMirror**:表示镜像至服务器组。', 'type' => 'string', 'required' => false, 'example' => 'ForwardGroupMirror'],
'MirrorGroupConfig' => [
'title' => '镜像至服务器组',
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'description' => '流量镜像至服务器组。',
'type' => 'array',
'items' => [
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['description' => '服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'srg-00mkgijak0w4qgz9****'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RemoveHeaderConfig' => [
'title' => '去除HTTP标头',
'description' => '去除HTTP头部配置。',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => '去除的头字段名称,长度为1~40个字符,支持大小写字母a~z、数字、下划线(_)和短划线(-)。头字段名称不能重复用于RemoveHeader中。'."\n"
."\n"
.'- 请求方向(Direction取值为Request):不允许将头名称设置为以下字段(不区分大小写):`slb-id`、`slb-ip`、`x-forwarded-for`、`x-forwarded-proto`、`x-forwarded-eip`、`x-forwarded-port`、`x-forwarded-client-srcport`、`x-forwarded-host`、`connection`、`upgrade`、`content-length`、`transfer-encoding`、`keep-alive`、`te`、`host`、`cookie`、`remoteip`、`authority`。'."\n"
.'- 响应方向(Direction取值为Response):响应方向不允许将头名称设置为以下字段(不区分大小写):`connection`、`upgrade`、`content-length`、`transfer-encoding`。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
],
'CorsConfig' => [
'title' => '跨域',
'description' => '跨域。',
'type' => 'object',
'properties' => [
'AllowOrigin' => [
'title' => '允许的访问来源',
'description' => '允许的访问来源列表。支持只配置一个元素`*`,或配置一个或多个值。'."\n"
.'- 单个值必须以`http://`或者`https://`开头,后边加一个正确的域名或一级泛域名。(例:`http://*.test.abc.example.com`)'."\n"
.'- 单个值可以不加端口,也可以指定端口,端口范围:**1**~**65535**。',
'type' => 'array',
'items' => ['description' => '允许的访问来源。', 'type' => 'string', 'required' => false, 'example' => 'http://test.com'],
'required' => false,
],
'AllowMethods' => [
'title' => '选择跨域访问时允许的HTTP方法',
'description' => '选择跨域访问时允许的HTTP方法。',
'type' => 'array',
'items' => ['description' => '选择跨域访问时允许的HTTP方法。取值:'."\n"
."\n"
.'- **GET**。'."\n"
.'- **POST**。'."\n"
.'- **PUT**。'."\n"
.'- **DELETE**。'."\n"
.'- **HEAD**。'."\n"
.'- **OPTIONS**。'."\n"
.'- **PATCH**。', 'type' => 'string', 'required' => false, 'example' => 'GET'],
'required' => false,
],
'AllowHeaders' => [
'title' => '允许跨域的Header列表',
'description' => '允许跨域的Header列表。',
'type' => 'array',
'items' => ['description' => '允许跨域的Header列表。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'test_123'],
'required' => false,
],
'ExposeHeaders' => [
'title' => '允许暴露的Header列表',
'description' => '允许暴露的Header列表。',
'type' => 'array',
'items' => ['description' => '允许暴露的 Header 列表。支持配置为`*`或配置一个或多个value值,多个value值用半角逗号(,)隔开。单个value值只允许包含大小写字母、数字,以及不在首尾的下划线(_)和短划线(-),最大长度限制为32个字符。', 'type' => 'string', 'required' => false, 'example' => 'test_123'],
'required' => false,
],
'AllowCredentials' => ['title' => '是否允许携带凭证信息', 'description' => '是否允许携带凭证信息。取值:'."\n"
."\n"
.'- **on**:是。'."\n"
.'- **off**:否。', 'type' => 'string', 'required' => false, 'example' => 'on'],
'MaxAge' => ['title' => '预检请求在浏览器的最大缓存时间', 'description' => '预检请求在浏览器的最大缓存时间,单位:秒。'."\n"
."\n"
.'取值范围:**-1**~**172800**。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
'minItems' => 1,
],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['title' => '转发规则名称', 'description' => '转发规则名称。 长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'rule-instance-test'],
],
[
'name' => 'Priority',
'in' => 'query',
'schema' => ['title' => '转发规则优先级', 'description' => '规则优先级,取值范围:**1~10000**。值越小表示优先级越高。'."\n"
."\n"
.'> 同一个监听内规则优先级必须唯一。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '更新转发规则属性。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => ' 异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F5378-41F6-4AE4-92F8-7FF34B540710'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.Rule', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '转发规则的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.IpGroupCanNotUsedForMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.SameGroupForForwardAndMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'Conflict.Priority', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '优先级冲突,已经存在相同配置'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'QuotaExceeded.RuleWildcardsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'QuotaExceeded.RuleMatchEvaluationsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '转发规则条件数已超额度限制。'."\n"],
['errorCode' => 'QuotaExceeded.RuleActionsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'Mismatch.Protocol', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'OperationDenied.RewriteMissingForwardGroup', 'errorMessage' => 'The operation is not allowed because of RewriteMissingForwardGroup.', 'description' => '操作被拒绝,原因是RewriteMissingForwardGroup。'],
['errorCode' => 'ResourceInConfiguring.Listener', 'errorMessage' => 'The specified listener is being configured, please try again later.', 'description' => '资源正在变配中,请稍后重试。'],
['errorCode' => 'OperationDenied.ProtocolMustSameForForwardGroupAction', 'errorMessage' => 'The operation is not allowed because of ProtocolMustSameForForwardGroupAction.', 'description' => '操作被禁止,原因:必须是相同的协议'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
['errorCode' => 'Forbidden.LoadBalancer', 'errorMessage' => 'Authentication is failed for %s.', 'description' => '负载均衡操作鉴权失败。'],
],
[
['errorCode' => 'ResourceNotFound.Rule', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '更新转发规则属性',
'description' => '- **UpdateRuleAttribute**接口属于异步接口,即系统返回一个请求ID,但该转发规则属性尚未更新成功,系统后台的更新任务仍在进行。您可以调用[ListRules](~~214379~~)查询转发规则属性的更新状态:'."\n"
.' - 当转发规则属性处于**Configuring**状态时,表示转发规则属性正在更新中。'."\n"
.' - 当转发规则属性处于**Available**状态时,表示转发规则属性更新成功。'."\n"
."\n"
.'- 一条转发规则最多支持添加的条件数(**RuleConditions**)和动作数(**RuleActions**)如下:'."\n"
.' - 条件数:基础版5条、标准版10条、WAF增强版10条。'."\n"
.' - 动作数:基础版3条,标准版5条、WAF增强版5条。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateRuleAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F5378-41F6-4AE4-92F8-7FF34B540710\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateRuleAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F5378-41F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateRuleAttributeResponse>","errorExample":""}]',
],
'UpdateRulesAttribute' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '35808',
'abilityTreeNodes' => ['FEATUREslbBIWWMH', 'FEATUREslbTXOYED', 'FEATUREslbQCCQ6L', 'FEATUREslb4T90LL', 'FEATUREslbIT4IYN', 'FEATUREslbA51OGD', 'FEATUREslbUBPZWI', 'FEATUREslbGVK35E', 'FEATUREslbYG3GCF', 'FEATUREslbRBR9GZ', 'FEATUREslbMWZQWL', 'FEATUREslbJCYSIV', 'FEATUREslbY93SFN', 'FEATUREslbVUMBEO', 'FEATUREslbZ4XFTS', 'FEATUREslb2Q6O49'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'由客户端生成该参数值,要保证在不同请求间唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665544***'],
],
[
'name' => 'Rules',
'in' => 'formData',
'style' => 'flat',
'schema' => [
'title' => '转发规则列表',
'description' => '转发规则列表',
'type' => 'array',
'items' => [
'description' => '转发规则',
'type' => 'object',
'properties' => [
'Priority' => ['title' => '转发规则优先级', 'description' => '转发规则优先级', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
'RuleName' => ['title' => '转发规则名称', 'description' => '转发规则名称', 'type' => 'string', 'required' => false, 'example' => 'rule_111'],
'RuleActions' => [
'title' => '转发规则动作',
'description' => '转发规则动作列表',
'type' => 'array',
'items' => [
'description' => '转发规则动作',
'type' => 'object',
'properties' => [
'FixedResponseConfig' => [
'title' => '返回固定内容动作配置',
'description' => '返回固定内容动作配置',
'type' => 'object',
'properties' => [
'Content' => ['title' => '内容', 'description' => '内容', 'type' => 'string', 'required' => false, 'example' => 'dssacav'],
'ContentType' => ['title' => '内容类型', 'description' => '内容类型', 'type' => 'string', 'required' => false, 'example' => 'text/plain'],
'HttpCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'string', 'required' => false, 'example' => '200'],
],
'required' => false,
],
'ForwardGroupConfig' => [
'title' => '转发组动作配置',
'description' => '转发组动作配置',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'title' => '转发到的目的服务器组列表',
'description' => '转发到的目的服务器组列表',
'type' => 'array',
'items' => [
'description' => '转发到的目的服务器组',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['title' => '服务器组标识', 'description' => '服务器组标识', 'type' => 'string', 'required' => false, 'example' => 'sgp-3kbj35ay7cvi******'],
'Weight' => ['title' => '权重', 'description' => '权重', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '100'],
],
'required' => false,
],
'required' => false,
],
'ServerGroupStickySession' => [
'title' => '服务器组之间会话保持',
'description' => '服务器组之间会话保持',
'type' => 'object',
'properties' => [
'Enabled' => ['title' => '是否开启会话保持', 'description' => '是否开启会话保持', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'Timeout' => ['title' => '超时时间', 'description' => '超时时间', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
],
'required' => false,
],
'InsertHeaderConfig' => [
'title' => '插入头部动作配置',
'description' => '插入头部动作配置',
'type' => 'object',
'properties' => [
'CoverEnabled' => ['title' => '是否覆盖请求中的值', 'description' => '是否覆盖请求中的值', 'type' => 'boolean', 'required' => false, 'example' => 'False'],
'Key' => ['title' => 'HTTP标头', 'description' => 'HTTP标头', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'HTTP标头内容', 'description' => 'HTTP标头内容', 'type' => 'string', 'required' => false, 'example' => 'value'],
'ValueType' => ['title' => '取值类型', 'description' => '取值类型', 'type' => 'string', 'required' => false, 'example' => 'SystemDefined'],
],
'required' => false,
],
'Order' => ['title' => '优先级', 'description' => '优先级', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'RedirectConfig' => [
'title' => '重定向动作配置',
'description' => '重定向动作配置',
'type' => 'object',
'properties' => [
'Host' => ['title' => '要跳转的主机地址', 'description' => '要跳转的主机地址', 'type' => 'string', 'required' => false, 'example' => 'test.alb.com'],
'HttpCode' => ['title' => '跳转方式', 'description' => '跳转方式', 'type' => 'string', 'required' => false, 'example' => '301'],
'Path' => ['title' => '要跳转的路径', 'description' => '要跳转的路径', 'type' => 'string', 'required' => false, 'example' => '/'],
'Port' => ['title' => '要跳转的端口', 'description' => '要跳转的端口', 'type' => 'string', 'required' => false, 'example' => '443'],
'Protocol' => ['title' => '要跳转的协议', 'description' => '要跳转的协议', 'type' => 'string', 'required' => false, 'example' => 'HTTPS'],
'Query' => ['title' => '要跳转的查询字符串', 'description' => '要跳转的查询字符串', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'RewriteConfig' => [
'title' => '内部重定向动作配置',
'description' => '内部重定向动作配置',
'type' => 'object',
'properties' => [
'Host' => ['title' => '主机名', 'description' => '主机名', 'type' => 'string', 'required' => false, 'example' => '${host}'],
'Path' => ['title' => '路径', 'description' => '路径', 'type' => 'string', 'required' => false, 'example' => '/'],
'Query' => ['title' => '查询', 'description' => '查询', 'type' => 'string', 'required' => false, 'example' => '${query}'],
],
'required' => false,
],
'Type' => ['title' => '转发规则动作类型', 'description' => '转发规则动作类型', 'type' => 'string', 'required' => true, 'example' => 'ForwardGroup'],
'TrafficLimitConfig' => [
'title' => '流量限速',
'description' => '流量限速',
'type' => 'object',
'properties' => [
'QPS' => ['description' => '每秒请求次数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
'PerIpQps' => ['description' => '单IP每秒请求次数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
'TrafficMirrorConfig' => [
'title' => '流量镜像',
'description' => '流量镜像',
'type' => 'object',
'properties' => [
'TargetType' => ['title' => '镜像目标类型', 'description' => '镜像目标类型', 'type' => 'string', 'required' => false, 'example' => 'ForwardGroupMirror'],
'MirrorGroupConfig' => [
'title' => '镜像至服务器组',
'description' => '镜像至服务器组',
'type' => 'object',
'properties' => [
'ServerGroupTuples' => [
'description' => '流量镜像至服务器组。',
'type' => 'array',
'items' => [
'description' => '流量镜像至服务器组。',
'type' => 'object',
'properties' => [
'ServerGroupId' => ['description' => '服务器组ID。', 'type' => 'string', 'required' => false, 'example' => 'sgp-vlnjo1rhw0vc******'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RemoveHeaderConfig' => [
'title' => '去除HTTP标头',
'description' => '去除HTTP标头',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => 'HTTP标头键', 'type' => 'string', 'required' => false, 'example' => 'key'],
],
'required' => false,
],
'CorsConfig' => [
'title' => '跨域',
'description' => '跨域',
'type' => 'object',
'properties' => [
'AllowOrigin' => [
'title' => '允许的访问来源',
'description' => '允许的访问来源',
'type' => 'array',
'items' => ['description' => '允许的访问来源', 'type' => 'string', 'required' => false, 'example' => '*'],
'required' => false,
],
'AllowMethods' => [
'title' => '选择跨域访问时允许的HTTP方法',
'description' => '选择跨域访问时允许的HTTP方法',
'type' => 'array',
'items' => ['description' => '选择跨域访问时允许的HTTP方法。取值:'."\n"
.'- **GET**。'."\n"
.'- **POST**。'."\n"
.'- **PUT**。'."\n"
.'- **DELETE**。'."\n"
.'- **HEAD**。'."\n"
.'- **OPTIONS**。'."\n"
.'- **PATCH**。', 'type' => 'string', 'required' => false, 'example' => 'GET'],
'required' => false,
],
'AllowHeaders' => [
'title' => '允许跨域的Header列表',
'description' => '允许跨域的Header列表',
'type' => 'array',
'items' => ['description' => '允许跨域的Header', 'type' => 'string', 'required' => false, 'example' => 'test'],
'required' => false,
],
'ExposeHeaders' => [
'title' => '允许暴露的Header列表',
'description' => '允许暴露的Header列表',
'type' => 'array',
'items' => ['description' => '允许暴露的Header', 'type' => 'string', 'required' => false, 'example' => 'test'],
'required' => false,
],
'AllowCredentials' => ['title' => '是否允许携带凭证信息', 'description' => '是否允许携带凭证信息', 'type' => 'string', 'required' => false, 'example' => 'off'],
'MaxAge' => ['title' => '预检请求在浏览器的最大缓存时间', 'description' => '预检请求在浏览器的最大缓存时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60'],
],
'required' => false,
],
],
'required' => true,
],
'required' => false,
],
'RuleConditions' => [
'title' => '转发规则条件',
'description' => '转发规则条件列表',
'type' => 'array',
'items' => [
'description' => '转发规则条件',
'type' => 'object',
'properties' => [
'CookieConfig' => [
'title' => 'Cookie条件配置',
'description' => 'Cookie条件配置',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'Cookie键值对列表',
'description' => 'Cookie键值对列表',
'type' => 'array',
'items' => [
'description' => 'Cookie键值对',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'Cookie条件键', 'description' => 'Cookie条件键', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Value' => ['title' => 'Cookie条件值', 'description' => 'Cookie条件值', 'type' => 'string', 'required' => false, 'example' => 'value'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
'HeaderConfig' => [
'title' => 'HTTP标头条件配置',
'description' => 'HTTP标头条件配置',
'type' => 'object',
'properties' => [
'Key' => ['title' => 'HTTP标头键', 'description' => 'HTTP标头键', 'type' => 'string', 'required' => false, 'example' => 'key'],
'Values' => [
'title' => 'HTTP标头值列表',
'description' => 'HTTP标头值列表',
'type' => 'array',
'items' => ['description' => 'HTTP标头值', 'type' => 'string', 'required' => false, 'example' => 'value'],
'required' => false,
],
],
'required' => false,
],
'HostConfig' => [
'title' => '主机名条件配置',
'description' => '主机名条件配置',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '主机名列表',
'description' => '主机名列表',
'type' => 'array',
'items' => ['description' => '主机名', 'type' => 'string', 'required' => false, 'example' => 'www.example.com'],
'required' => false,
],
],
'required' => false,
],
'MethodConfig' => [
'title' => 'HTTP请求方法条件配置',
'description' => 'HTTP请求方法条件配置',
'type' => 'object',
'properties' => [
'Values' => [
'title' => 'HTTP请求方法列表',
'description' => 'HTTP请求方法列表',
'type' => 'array',
'items' => ['description' => 'HTTP请求方法', 'type' => 'string', 'required' => false, 'example' => 'PUT'],
'required' => false,
],
],
'required' => false,
],
'PathConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串条件配置',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '路径条件列表',
'description' => '路径条件列表',
'type' => 'array',
'items' => ['description' => '路径条件', 'type' => 'string', 'required' => false, 'example' => '/test'],
'required' => false,
],
],
'required' => false,
],
'QueryStringConfig' => [
'title' => '查询字符串条件配置',
'description' => '查询字符串条件配置',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '查询字符串条件键值对列表',
'description' => '查询字符串条件键值对列表',
'type' => 'array',
'items' => [
'description' => '查询字符串条件键值对',
'type' => 'object',
'properties' => [
'Key' => ['title' => '查询字符串条件键', 'description' => '查询字符串条件键', 'type' => 'string', 'required' => false, 'example' => 'account'],
'Value' => ['title' => '查询字符串条件值', 'description' => '查询字符串条件值', 'type' => 'string', 'required' => false, 'example' => 'on'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
'ResponseHeaderConfig' => [
'title' => '返回HTTP标头',
'description' => '返回HTTP标头',
'type' => 'object',
'properties' => [
'Key' => ['title' => '返回HTTP标头键', 'description' => '返回HTTP标头键', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Values' => [
'title' => '返回HTTP标头值',
'description' => '返回HTTP标头值',
'type' => 'array',
'items' => ['description' => '返回HTTP标头值', 'type' => 'string', 'required' => false, 'example' => 'value'],
'required' => false,
],
],
'required' => false,
],
'ResponseStatusCodeConfig' => [
'title' => '返回状态码条件',
'description' => '返回状态码条件',
'type' => 'object',
'properties' => [
'Values' => [
'title' => '返回状态码条件',
'description' => '返回状态码条件',
'type' => 'array',
'items' => ['description' => '返回状态码条件', 'type' => 'string', 'required' => false, 'example' => '200'],
'required' => false,
],
],
'required' => false,
],
'Type' => ['title' => '条件类型', 'description' => '条件类型', 'type' => 'string', 'required' => false, 'example' => 'Header'],
'SourceIpConfig' => [
'title' => '基于源IP业务流量匹配',
'description' => '基于源IP业务流量匹配',
'type' => 'object',
'properties' => [
'Values' => [
'description' => '添加一个或多个IP地址或者IP地址段。',
'type' => 'array',
'items' => ['description' => '添加一个或多个IP地址或者IP地址段。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'],
'required' => false,
],
],
'required' => false,
],
],
'required' => true,
],
'required' => false,
],
'RuleId' => ['title' => '转发规则ID', 'description' => '转发规则ID', 'type' => 'string', 'required' => true, 'example' => 'rule-n4hfecmmtmfl******'],
],
'required' => true,
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => '是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
."\n"
.'- **true**:发送检查请求,不会批量更新转发规则属性。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回`HTTP 2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF34B540710'],
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationDenied.IpGroupCanNotUsedForMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'IncorrectStatus.Rule', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '转发规则的当前状态不支持本次操作。'."\n"],
['errorCode' => 'OperationDenied.SameGroupForForwardAndMirrorAction', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是%s。'."\n"],
['errorCode' => 'OperationDenied.GRPCServerGroup', 'errorMessage' => 'The operation is not allowed because of %s.', 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['errorCode' => 'Conflict.Priority', 'errorMessage' => 'There is already %s having the same configuration with %s.', 'description' => '优先级冲突,已经存在相同配置'],
['errorCode' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器组可被关联数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '后端服务器数已超额度限制。'],
['errorCode' => 'ResourceQuotaExceeded.ServerAddedNum', 'errorMessage' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'description' => '服务器添加到组已超额度限制。'],
['errorCode' => 'QuotaExceeded.RuleWildcardsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'QuotaExceeded.RuleMatchEvaluationsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '转发规则条件数已超额度限制。'."\n"],
['errorCode' => 'QuotaExceeded.RuleActionsNum', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['errorCode' => 'Mismatch.Protocol', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'Mismatch.VpcId', 'errorMessage' => 'The %s is mismatched for %s and %s.', 'description' => '%s在%s和%s中不匹配。'],
['errorCode' => 'OperationDenied.ServiceManagedResource', 'errorMessage' => 'The operation is not allowed because the current resource of %s is managed resource.', 'description' => '操作被拒绝,原因是资源%s为托管资源。'],
['errorCode' => 'OperationDenied.ListenerIdInconsistent', 'errorMessage' => 'The operation is not allowed because of ListenerIdInconsistent.', 'description' => '操作被拒绝,原因是当前转发规则属于不同的监听。'],
['errorCode' => 'IllegalParam.Priority', 'errorMessage' => 'The param of Priority is illegal.', 'description' => '参数Priority非法'],
['errorCode' => 'OperationDenied.MirrorActionSupportHttpGroupOnly', 'errorMessage' => 'The operation is not allowed because of MirrorActionSupportHttpGroupOnly.', 'description' => '操作被拒绝,原因是流量镜像动作只支持HTTP类型的服务器组。'],
['errorCode' => 'OperationDenied.ProtocolMustSameForForwardGroupAction', 'errorMessage' => 'The operation is not allowed because of ProtocolMustSameForForwardGroupAction.', 'description' => '操作被禁止,原因:必须是相同的协议'],
],
404 => [
['errorCode' => 'ResourceNotFound.Rule', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'staticInfo' => ['returnType' => 'asynchronous', 'callback' => 'Alb::2020-06-16::ListAsynJobs', 'callbackInterval' => 1000, 'maxCallbackTimes' => 60],
'title' => '批量更新转发规则属性',
'summary' => '批量更新转发规则属性。',
'description' => '**UpdateRulesAttribute**接口属于异步接口,即系统返回一个请求ID,但该转发规则属性尚未批量更新成功,系统后台的更新任务仍在进行。您可以调用[ListRules](~~214379~~)查询转发规则属性的更新状态:'."\n"
.'- 当多条转发规则属性处于**Configuring**状态时,表示转发规则属性正在批量更新中。'."\n"
.'- 当多条转发规则属性处于**Available**状态时,表示转发规则属性批量更新成功。'."\n"
."\n"
.'- 一条转发规则最多支持添加的条件数(**RuleConditions**)和动作数(**RuleActions**)如下:'."\n"
.' - 条件数:基础版5条,标准版10条,WAF增强版10条。'."\n"
.' - 动作数:基础版3条,标准版5条,WAF增强版5条。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateRulesAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF34B540710\\",\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateRulesAttributeResponse>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n</UpdateRulesAttributeResponse>","errorExample":""}]',
],
'UpdateSecurityPolicyAttribute' => [
'summary' => '更新安全策略属性,如安全协议版本、加密套件。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**可能不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0F******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会更新安全策略属性。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'SecurityPolicyId',
'in' => 'query',
'schema' => ['title' => '安全策略id', 'description' => '安全策略ID。', 'type' => 'string', 'required' => true, 'example' => 'sp-n0kn923****'],
],
[
'name' => 'TLSVersions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'TLS版本',
'description' => '支持的TLS协议版本列表。',
'type' => 'array',
'items' => ['description' => '支持的TLS协议版本,取值:**TLSv1.0**、**TLSv1.1**、**TLSv1.2**和**TLSv1.3**。'."\n"
.'最多支持添加4个TLS协议版本。', 'type' => 'string', 'required' => false, 'example' => 'TLSv1.0'],
'required' => false,
],
],
[
'name' => 'Ciphers',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '加密套件',
'description' => '支持的加密套件列表。',
'type' => 'array',
'items' => ['description' => '支持的加密套件,具体依赖**TLSVersions**的取值。'."\n"
.'最多支持添加32个加密套件。'."\n"
."\n"
.'Cipher只要被任何一个传入的**TLSVersions**支持即可。'."\n"
."\n"
.'> 选择了TLSv1.3那么Cipher列表必须包含TLSv1.3支持的Cipher。'."\n"
."\n"
.'- TLSv1.0和TLSv1.1 支持:'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
."\n"
.'- TLSv1.2支持'."\n"
.' - ECDHE-ECDSA-AES128-SHA'."\n"
.' - ECDHE-ECDSA-AES256-SHA'."\n"
.' - ECDHE-RSA-AES128-SHA'."\n"
.' - ECDHE-RSA-AES256-SHA'."\n"
.' - AES128-SHA'."\n"
.' - AES256-SHA'."\n"
.' - DES-CBC3-SHA'."\n"
.' - ECDHE-ECDSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-ECDSA-AES128-SHA256'."\n"
.' - ECDHE-ECDSA-AES256-SHA384'."\n"
.' - ECDHE-RSA-AES128-GCM-SHA256'."\n"
.' - ECDHE-RSA-AES256-GCM-SHA384'."\n"
.' - ECDHE-RSA-AES128-SHA256'."\n"
.' - ECDHE-RSA-AES256-SHA384 '."\n"
.' - AES128-GCM-SHA256'."\n"
.' - AES256-GCM-SHA384'."\n"
.' - AES128-SHA256'."\n"
.' - AES256-SHA256'."\n"
.' - ECDHE-RSA-CHACHA20-POLY1305'."\n"
.' - ECDHE-ECDSA-CHACHA20-POLY1305'."\n"
."\n"
.'- TLSv1.3支持: '."\n"
.' - TLS_AES_128_GCM_SHA256'."\n"
.' - TLS_AES_256_GCM_SHA384'."\n"
.' - TLS_CHACHA20_POLY1305_SHA256'."\n"
.' - TLS_AES_128_CCM_SHA256'."\n"
.' - TLS_AES_128_CCM_8_SHA256', 'type' => 'string', 'required' => false, 'example' => 'ECDHE-ECDSA-AES128-SHA'],
'required' => false,
'minItems' => 1,
],
],
[
'name' => 'SecurityPolicyName',
'in' => 'query',
'schema' => ['title' => '安全策略名称', 'description' => '安全策略名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'test-secrity'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构。',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.SecurityPolicy', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '资源%s [%s]的状态无效。'],
],
404 => [
['errorCode' => 'ResourceNotFound.SecurityPolicy', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '资源%s不存在。'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"593B0448-D13E-4C56-AC0D-FDF0******\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateSecurityPolicyAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>\\n</UpdateSecurityPolicyAttributeResponse>","errorExample":""}]',
'title' => '更新安全策略属性',
'description' => '## 使用说明'."\n"
.'**UpdateSecurityPolicyAttribute**接口属于异步接口,即系统返回一个请求ID,但该安全策略属性尚未更新成功,系统后台的更新任务仍在进行。您可以调用[ListSecurityPolicies](~~213609~~)查询安全策略属性的更新状态:'."\n"
.'- 当安全策略属性处于**Configuring**状态时,表示安全策略属性正在更新中。'."\n"
.'- 当安全策略属性处于**Available**状态时,表示安全策略属性已更新完成。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateSecurityPolicyAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
],
],
],
],
],
'UpdateServerGroupAttribute' => [
'summary' => '更新服务器组的配置,例如健康检查、会话保持、名称、调度算法和协议等。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '165',
'abilityTreeNodes' => ['FEATUREslbULKWF1', 'FEATUREslbVRSQEA'],
],
'parameters' => [
[
'name' => 'ServerGroupName',
'in' => 'query',
'schema' => ['title' => 'Acl名称', 'description' => '服务器组名称。'."\n"
."\n"
.'长度为2~128个英文或中文字符,必须以大小字母、中文或数字开头,可包含数字、半角句号(.)、下划线(_)、短划线(-)和空格。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'Scheduler',
'in' => 'query',
'schema' => ['title' => '调度策略', 'description' => '调度算法。取值:'."\n"
."\n"
.'- **Wrr**:加权轮询,权重值越高的后端服务器,被轮询到的次数(概率)也越高。'."\n"
.'- **Wlc**:加权最小连接数,除了根据每台后端服务器设定的权重值来进行轮询,同时还考虑后端服务器的实际负载(即连接数)。当权重值相同时,当前连接数越小的后端服务器被轮询到的次数(概率)也越高。'."\n"
.'- **Sch**:一致性哈希,相同哈希因子计算结果的请求将会调度到相同的后端服务器。不配置UchConfig参数时,默认哈希因子为源IP,相同源IP地址的请求会分发到同一台后端服务器;配置了UchConfig参数时,哈希因子为URL参数,相同URL参数的请求会分发到同一台后端服务器。', 'type' => 'string', 'required' => false, 'example' => 'Wrr'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等标识', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。', 'type' => 'string', 'required' => false, 'example' => '5A2CFF0E-5718-45B5-9D4D-70B3******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => ' 是否只预检此次请求', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会修改资源。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP `2xx`状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'HealthCheckConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '健康检查配置',
'description' => '健康检查相关配置结构体。',
'type' => 'object',
'properties' => [
'HealthCheckConnectPort' => ['title' => '健康检查端口', 'description' => '健康检查的后端服务器的端口。'."\n"
."\n"
.'取值范围:**0**~**65535**。'."\n"
."\n"
.'设置为**0**时代表使用后端服务器的端口进行健康检查。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为**true**时,该参数配置生效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '65535', 'minimum' => '0', 'example' => '80'],
'HealthCheckEnabled' => ['title' => '是否启用健康检查', 'description' => '是否启用健康检查,取值:'."\n"
.'- **true**:启用'."\n"
.'- **false**:不启用', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'HealthCheckHost' => ['title' => '健康检查域名', 'description' => '健康检查域名。'."\n"
."\n"
.'- **使用后端服务器的内网IP**(默认):使用后端服务器的内网IP地址作为健康检查的域名。'."\n"
."\n"
.'- **指定特定域名**:输入一个域名。'."\n"
."\n"
.' - 长度限制为1~80个字符。'."\n"
."\n"
.' - 可包含小写字母、数字、短划线(-)和半角句号(.)。'."\n"
."\n"
.' - 至少包含一个半角句号(.),半角句号(.)不能出现在开头或结尾。'."\n"
."\n"
.' - 最右侧的域标签,只能包含字母,不能包含数字或短划线(-)。'."\n"
."\n"
.' - 短划线(-)不能出现在开头或结尾。'."\n"
."\n"
.'> 只有**HealthCheckProtocol**设置为**HTTP**、**HTTPS**或**gRPC**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'example.com'],
'HealthCheckCodes' => [
'title' => '健康检查正常的状态码',
'description' => '健康检查正常的状态码列表。',
'type' => 'array',
'items' => ['description' => '健康检查正常的状态码。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**HTTP**或**HTTPS**时,**HealthCheckCodes**可以选择**http\\_2xx**(默认值)、 **http\\_3xx**、**http\\_4xx**和**http\\_5xx**。多个状态码用半角逗号(,)分隔。'."\n"
."\n"
.'- 当**HealthCheckProtocol**取值为**gRPC**时,**HealthCheckCodes**状态码范围:**0~99**,默认值:**0**。支持范围输入,最多支持20个范围值。多个范围值使用半角逗号(,)隔开。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为**true**且**HealthCheckProtocol**设置为**HTTP**或**HTTPS**或**gRPC**时该参数生效。', 'type' => 'string', 'required' => false, 'example' => '200'],
'required' => false,
],
'HealthCheckHttpVersion' => ['title' => '健康检查HTTP协议版本', 'description' => '健康检查HTTP协议版本。取值:'."\n"
."\n"
.'- **HTTP1.0**'."\n"
.'- **HTTP1.1**'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为true且**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'HTTP1.1'],
'HealthCheckInterval' => ['title' => '健康检查间隔', 'description' => '健康检查的时间间隔。单位:秒。 '."\n"
."\n"
.'取值范围:**1**~**50**。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为**true**时,该参数配置生效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '50', 'minimum' => '1', 'example' => '5'],
'HealthCheckMethod' => ['title' => '健康检查方法', 'description' => '健康检查方法。取值:'."\n"
."\n"
.'- **GET**:如果响应报文长度超过8K,会被截断,但不会影响健康检查结果的判定。'."\n"
."\n"
.'- **POST**:gRPC监听健康检查默认采用POST方法。'."\n"
."\n"
.'- **HEAD**:HTTP和HTTPS监听健康检查默认采用HEAD方法。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为true且**HealthCheckProtocol**设置为**HTTP**或**HTTPS**或**gRPC**时该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'HEAD'],
'HealthCheckPath' => ['title' => '健康检查Path', 'description' => '健康检查的转发规则路径。'."\n"
."\n"
.'长度限制为1~80,只能使用字母、数字、字符`-/.%?#&=`以及扩展字符`_;~!()*[]@$^:\',+`。 URL开头必须为`/`。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为**true**且**HealthCheckProtocol**设置为**HTTP**或**HTTPS**时该参数生效。', 'type' => 'string', 'required' => false, 'example' => '/test/index.html'],
'HealthCheckProtocol' => ['title' => '健康检查协议类型', 'description' => '健康检查协议。取值:'."\n"
."\n"
.'- **HTTP**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。'."\n"
."\n"
.'- **HTTPS**:通过发送HEAD或GET请求模拟浏览器的访问行为来检查服务器应用是否健康。(数据加密,相比HTTP更安全。)'."\n"
."\n"
.'- **TCP**:通过发送SYN握手报文来检测服务器端口是否存活。'."\n"
."\n"
.'- **gRPC**:通过发送POST或GET请求来检查服务器应用是否健康。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'],
'HealthCheckTimeout' => ['title' => '健康检查超时时间', 'description' => '接收来自运行状况检查的响应需要等待的时间。如果后端ECS在指定的时间内没有正确响应,则判定为健康检查失败。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**300**。'."\n"
."\n"
.'> 当前服务器组**HealthCheckEnabled**为**true**时,该参数配置生效。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '300', 'minimum' => '1', 'example' => '3'],
'HealthyThreshold' => ['title' => '健康检查成功判定阈值', 'description' => '健康检查连续成功多少次后,将后端服务器的健康检查状态由**fail**判定为**success**。'."\n"
."\n"
.'取值范围:**2**~**10**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10', 'minimum' => '2', 'example' => '4'],
'UnhealthyThreshold' => ['title' => '健康检查不成功判定阈值', 'description' => '健康检查连续失败多少次后,将后端服务器的健康检查状态由**success**判定为**fail**。'."\n"
."\n"
.'取值范围:**2**~**10**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '10', 'minimum' => '2', 'example' => '4'],
],
'required' => false,
'example' => 'true',
],
],
[
'name' => 'StickySessionConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '会话保持配置',
'description' => '会话保持配置结构体',
'type' => 'object',
'properties' => [
'Cookie' => ['title' => '服务器上配置的Cookie', 'description' => '服务器上配置的Cookie。'."\n"
."\n"
.'长度为1~200个字符,只能包含ASCII英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。'."\n"
."\n"
.'> 当前服务器组**StickySessionEnabled**为**true**且**StickySessionType**配置为**Server**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'B490B5EBF6F3CD402E515D22B******'],
'CookieTimeout' => ['title' => '服务器上配置的Cookie', 'description' => 'Cookie超时时间。单位:秒。'."\n"
."\n"
.'取值范围:**1**~**86400**。'."\n"
."\n"
.'>当前服务器组**StickySessionEnabled**为**true**且**StickySessionType**配置为**Insert**时,该参数生效。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '86400', 'minimum' => '1', 'example' => '1000'],
'StickySessionEnabled' => ['title' => '是否启用会话保持', 'description' => '是否启用会话保持。取值:'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'StickySessionType' => ['title' => '会话保持类型', 'description' => 'Cookie的处理方式。取值:'."\n"
."\n"
.'- **Insert**:植入Cookie。'."\n"
.'客户端第一次访问时,负载均衡会在返回请求中植入Cookie(即在HTTP或HTTPS响应报文中插入SERVERID),下次客户端携带此Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器上。'."\n"
.'- **Server**:重写Cookie。'."\n"
.'负载均衡发现用户自定义了Cookie,将会对原来的Cookie进行重写,下次客户端携带新的Cookie访问,负载均衡服务会将请求定向转发给之前记录到的后端服务器。'."\n"
."\n"
.'> 当前服务器组**StickySessionEnabled**为**true**时,该参数生效。', 'type' => 'string', 'required' => false, 'example' => 'Insert'],
],
'required' => false,
],
],
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '服务器组Id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-atstuj3rtop****'],
],
[
'name' => 'UpstreamKeepaliveEnabled',
'in' => 'query',
'schema' => ['title' => '是否开启后端长链接', 'description' => '是否开启后端长连接。'."\n"
."\n"
.'- **true**:开启'."\n"
."\n"
.'- **false**:不开启。', 'type' => 'boolean', 'required' => false, 'example' => 'sgp-123'],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['title' => '服务器名称', 'description' => '仅适用于ALB Ingress场景,表示服务器组对应的`K8s Service`名称。', 'type' => 'string', 'required' => false, 'example' => 'test2'],
],
[
'name' => 'UchConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => 'url一致性hash参数配置',
'description' => 'url一致性hash参数配置。',
'type' => 'object',
'properties' => [
'Type' => ['title' => '参数类型', 'description' => '参数类型。只支持输入QueryString。', 'type' => 'string', 'required' => true, 'example' => 'QueryString'],
'Value' => ['title' => '一致性hash参数值', 'description' => '一致性hash参数值。', 'type' => 'string', 'required' => true, 'example' => 'abc'],
],
'required' => false,
],
],
[
'name' => 'ConnectionDrainConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => '连接优雅中断相关配置。'."\n"
."\n"
.'开启连接优雅中断,在移除后端服务器或者健康检查失败后,负载均衡使现有连接在一定时间内正常传输。'."\n"
.'> '."\n"
.'> - 基础版实例不支持开启连接优雅中断,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持连接优雅中断,函数计算类型不支持。',
'type' => 'object',
'properties' => [
'ConnectionDrainEnabled' => ['description' => '是否开启连接优雅中断。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'ConnectionDrainTimeout' => ['description' => '连接优雅中断超时时间。'."\n"
."\n"
.'取值范围:**0**~**900**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '300'],
],
'required' => false,
],
],
[
'name' => 'SlowStartConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '慢启动配置',
'description' => '慢启动相关配置。'."\n"
."\n"
.'开启慢启动后,将会在设定的时间段内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。'."\n"
.'>'."\n"
.'> - 基础版实例不支持开启慢启动,仅标准版、WAF增强版实例支持。'."\n"
.'> - 服务器类型、IP类型服务器组支持配置慢启动,函数计算类型不支持。'."\n"
.'> - 慢启动仅在后端调度算法是加权轮询算法时可开启。',
'type' => 'object',
'properties' => [
'SlowStartEnabled' => ['title' => '是否开启慢启动'."\n", 'description' => '是否开启慢启动。'."\n"
."\n"
.'- **true**:开启'."\n"
.'- **false**:关闭', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'SlowStartDuration' => ['title' => '慢启动时间', 'description' => '慢启动持续时间。'."\n"
."\n"
.'取值范围:**30**~**900**。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'],
],
'required' => false,
],
],
[
'name' => 'CrossZoneEnabled',
'in' => 'query',
'schema' => ['description' => '服务器组是否开启跨AZ负载均衡。取值:'."\n"
."\n"
.'- **true**:开启(默认值)'."\n"
."\n"
.'- **false**:关闭'."\n"
."\n"
.'> '."\n"
.'> - 基础版实例不支持绑定关闭跨AZ负载均衡的服务器组,仅标准版、WAF 增强版实例支持。'."\n"
.'> - 服务器类型、IP 类型服务器组支持关闭跨AZ负载均衡,函数计算类型不支持。'."\n"
.'> - 关闭跨AZ负载均衡时,不支持开启会话保持。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'IpVersionAffinityMode',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['title' => 'IP版本亲和模式', 'description' => 'IP版本亲和模式', 'type' => 'string', 'required' => false, 'example' => 'Affinity'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构组',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3*****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndConnectionDrain', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'Mismatch.ServerGroupSchedulerAndSlowStartEnable', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'QuotaExceeded.ConnectionDrainTimeout', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['errorCode' => 'UnsupportedFeature.ConnectionDrain', 'errorMessage' => 'The feature of %s is not supported.', 'description' => '不支持%s特性。'],
['errorCode' => 'QuotaExceeded.SlowStartDuration', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['errorCode' => 'UnsupportedFeature.SlowStart', 'errorMessage' => 'The feature of %s is not supported.', 'description' => '不支持%s特性。'],
['errorCode' => 'Mismatch.LoadBalancerEditionAndSlowStartEnable', 'errorMessage' => 'The %s and %s are mismatched.', 'description' => '参数%s和%s不匹配。'],
['errorCode' => 'OperationDenied.UpstreamKeepaliveDisabled', 'errorMessage' => 'The operation is not allowed because of UpstreamKeepaliveDisabled.', 'description' => '不允许更新是否开启后端长连接为关闭状态'],
['errorCode' => 'OperationDenied.UpstreamKeepaliveEnabled', 'errorMessage' => 'The operation is not allowed because of UpstreamKeepaliveEnabled.', 'description' => '不允许更新是否开启后端长连接为开启状态'],
['errorCode' => 'CloseUpstreamKeepaliveNotSupport', 'errorMessage' => 'The param of UpstreamKeepalive is not Support.', 'description' => '不支持关闭服务器组的后端长链接'],
],
404 => [
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
],
],
'title' => '更新服务器组配置',
'description' => '**UpdateServerGroupAttribute**接口属于异步接口,即系统返回一个请求ID,但该服务器组的配置尚未更新成功,系统后台的更新任务仍在进行。您可以调用[ListServerGroups](~~213627~~)查询服务器组的配置的更新状态:'."\n"
.'- 当服务器组的配置处于**Configuring**状态时,表示服务器组的配置正在更新中。'."\n"
.'- 当服务器组的配置处于**Available**状态时,表示服务器组的配置更新成功。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateServerGroupAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3*****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateServerGroupAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateServerGroupAttributeResponse>","errorExample":""}]',
],
'UpdateServerGroupServersAttribute' => [
'summary' => '更新服务器组中后端服务器的权重和描述等配置。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREslbULKWF1'],
],
'parameters' => [
[
'name' => 'ServerGroupId',
'in' => 'query',
'schema' => ['title' => '后端服务器Id', 'description' => '服务器组ID。', 'type' => 'string', 'required' => true, 'example' => 'sgp-atstuj3rtop****'],
],
[
'name' => 'Servers',
'in' => 'formData',
'style' => 'flat',
'schema' => [
'title' => '后端服务器列表',
'description' => '后端服务器组列表,单次调用最多支持传入40个服务器。',
'type' => 'array',
'items' => [
'description' => '后端服务器组结构体',
'type' => 'object',
'properties' => [
'Description' => ['title' => '后端服务器描述', 'description' => '后端服务器描述。长度为 2~256 个英文或中文字符,不能以http://和https://开头。', 'type' => 'string', 'required' => false, 'example' => 'test'],
'Port' => ['title' => '后端端口号', 'description' => '后端服务器使用的端口。取值范围:**1**~**65535**。'."\n"
.'> 当**ServerType**取值为**Fc**时,无需配置该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '80'],
'ServerId' => ['title' => '后端服务器id', 'description' => '后端服务器ID。'."\n"
."\n"
.'- 当**ServerType**取值为**Ecs**、**Eni**、**Eci**时,该参数为Ecs、Eni、Eci的资源ID。'."\n"
.'- 当**ServerType**取值为**Ip**时,该参数为IP地址。'."\n"
.'- 当**ServerType**取值为**Fc**时,该参数为函数计算的ARN标识。', 'type' => 'string', 'required' => false, 'example' => 'i-bp1f9kdprbgy9uiu****'],
'ServerIp' => ['title' => '后端服务器ip', 'description' => '指定IP地址。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'],
'ServerType' => ['title' => '后端服务器类型', 'description' => '后端服务器类型。取值:'."\n"
.'- **Ecs**:ECS实例。'."\n"
.'- **Eni**:ENI弹性网卡实例。'."\n"
.'- **Eci**:ECI弹性容器。'."\n"
.'- **Ip**:IP地址。'."\n"
.'- **Fc**:函数计算。', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'Ecs'],
'Weight' => ['title' => '后端服务器权重', 'description' => '后端服务器的权重。取值范围:**0**~**100**。默认值为**100**。如果设置权重为**0**,则不会将请求转发给该后端服务器。单次调用最多支持传入40个服务器。'."\n"
."\n"
.'> 当**ServerType**取值为**Fc**时,无需配置该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
'title' => '后端服务器',
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['title' => '幂等Token', 'description' => '客户端Token,用于保证请求的幂等性。'."\n"
."\n"
.'从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。'."\n"
."\n"
.'> 若您未指定,则系统自动使用API请求的**RequestId**作为**ClientToken**标识。每次API请求的**RequestId**不一样。', 'type' => 'string', 'required' => false, 'example' => '593B0448-D13E-4C56-AC0D-FDF0******'],
],
[
'name' => 'DryRun',
'in' => 'query',
'schema' => ['title' => 'dryRun', 'description' => '是否只预检此次请求,取值:'."\n"
.'- **true**:发送检查请求,不会更新服务器组中后端服务器的权重和描述等配置信息。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码`DryRunOperation`。'."\n"
.'- **false**(默认值):发送正常请求,通过检查后返回HTTP 2xx状态码并直接进行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回数据结构体',
'type' => 'object',
'properties' => [
'JobId' => ['title' => '异步任务Id', 'description' => '异步任务ID。', 'type' => 'string', 'example' => '72dcd26b-f12d-4c27-b3af-18f6aed5****'],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '365F4154-92F6-4AE4-92F8-7FF3*****'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncorrectStatus.ServerGroup', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => '服务器组状态无效。'],
['errorCode' => 'ResourceInConfiguring', 'errorMessage' => 'The specified resource of %s is being configured. Please try again later.', 'description' => '指定的资源在变更中,请稍后再试'],
],
403 => [
['errorCode' => 'Forbidden.ServerGroup', 'errorMessage' => 'Authentication has failed for ServerGroup.', 'description' => '对ServerGroup鉴权失败'],
],
[
['errorCode' => 'ResourceNotFound.ServerGroup', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '后端服务器组不存在。'],
['errorCode' => 'ResourceNotFound.BackendServer', 'errorMessage' => 'The specified resource %s is not found.', 'description' => '服务器组不存在。'],
],
],
'title' => '更新后端服务器配置',
'description' => '**UpdateServerGroupServersAttribute**接口属于异步接口,即系统返回一个请求ID,但该后端服务器配置信息尚未添加成功,系统后台的添加任务仍在进行。'."\n"
.'1. 您可以调用[ListServerGroups](~~213627~~)查询服务器组状态:'."\n"
.' - 当服务器组处于**Configuring**状态时,表示服务器组正在变配中。'."\n"
.' - 当服务器组处于**Available**状态时,表示服务器组运行中。'."\n"
."\n"
.'2. 您可以调用[ListServerGroupServers](~~213628~~)查询后端服务器状态:'."\n"
.' - 当后端服务器处于**Configuring**状态时,表示后端服务器正在变配中。'."\n"
.' - 当后端服务器处于**Available**状态时,表示后端服务器运行中。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateServerGroupServersAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:ecs:{#regionId}:{#accountId}:ecs/{#ecsId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": \\"72dcd26b-f12d-4c27-b3af-18f6aed5****\\",\\n \\"RequestId\\": \\"365F4154-92F6-4AE4-92F8-7FF3*****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateServerGroupServersAttributeResponse>\\n <JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>\\n <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>\\n</UpdateServerGroupServersAttributeResponse>","errorExample":""}]',
],
],
'endpoints' => [
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-northeast-1.aliyuncs.com', 'endpoint' => 'alb.ap-northeast-1.aliyuncs.com', 'vpc' => 'alb-vpc.ap-northeast-1.aliyuncs.com'],
['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-northeast-2.aliyuncs.com', 'endpoint' => 'alb.ap-northeast-2.aliyuncs.com', 'vpc' => 'alb-vpc.ap-northeast-2.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-1.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-1.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-2.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-2.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-2.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-3.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-3.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-3.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-5.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-5.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-5.aliyuncs.com'],
['regionId' => 'ap-southeast-6', 'regionName' => '菲律宾(马尼拉)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-6.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-6.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-6.aliyuncs.com'],
['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.ap-southeast-7.aliyuncs.com', 'endpoint' => 'alb.ap-southeast-7.aliyuncs.com', 'vpc' => 'alb-vpc.ap-southeast-7.aliyuncs.com'],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-beijing.aliyuncs.com', 'endpoint' => 'alb.cn-beijing.aliyuncs.com', 'vpc' => 'alb-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-chengdu.aliyuncs.com', 'endpoint' => 'alb.cn-chengdu.aliyuncs.com', 'vpc' => 'alb-vpc.cn-chengdu.aliyuncs.com'],
['regionId' => 'cn-fuzhou', 'regionName' => '华东6(福州-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-fuzhou.aliyuncs.com', 'endpoint' => 'alb.cn-fuzhou.aliyuncs.com', 'vpc' => 'alb-vpc.cn-fuzhou.aliyuncs.com'],
['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-guangzhou.aliyuncs.com', 'endpoint' => 'alb.cn-guangzhou.aliyuncs.com', 'vpc' => 'alb-vpc.cn-guangzhou.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-hangzhou.aliyuncs.com', 'endpoint' => 'alb.cn-hangzhou.aliyuncs.com', 'vpc' => 'alb-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'cn-heyuan', 'regionName' => '华南2(河源)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-heyuan.aliyuncs.com', 'endpoint' => 'alb.cn-heyuan.aliyuncs.com', 'vpc' => 'alb-vpc.cn-heyuan.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-hongkong.aliyuncs.com', 'endpoint' => 'alb.cn-hongkong.aliyuncs.com', 'vpc' => 'alb-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-nanjing', 'regionName' => '华东5(南京-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-nanjing.aliyuncs.com', 'endpoint' => 'alb.cn-nanjing.aliyuncs.com', 'vpc' => 'alb-vpc.cn-nanjing.aliyuncs.com'],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-qingdao.aliyuncs.com', 'endpoint' => 'alb.cn-qingdao.aliyuncs.com', 'vpc' => 'alb-vpc.cn-qingdao.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-shanghai.aliyuncs.com', 'endpoint' => 'alb.cn-shanghai.aliyuncs.com', 'vpc' => 'alb-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-shenzhen.aliyuncs.com', 'endpoint' => 'alb.cn-shenzhen.aliyuncs.com', 'vpc' => 'alb-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-wuhan-lr', 'regionName' => '华中1(武汉-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-wuhan-lr.aliyuncs.com', 'endpoint' => 'alb.cn-wuhan-lr.aliyuncs.com', 'vpc' => 'alb-vpc.cn-wuhan-lr.aliyuncs.com'],
['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'alb.cn-wulanchabu.aliyuncs.com', 'vpc' => 'alb-vpc.cn-wulanchabu.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'alb.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'alb-vpc.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'cn-zhengzhou-jva', 'regionName' => '郑州(联通合营)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'alb.cn-zhengzhou-jva.aliyuncs.com', 'endpoint' => 'alb.cn-zhengzhou-jva.aliyuncs.com', 'vpc' => 'alb-vpc.cn-zhengzhou-jva.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'alb.eu-central-1.aliyuncs.com', 'endpoint' => 'alb.eu-central-1.aliyuncs.com', 'vpc' => 'alb-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'alb.eu-west-1.aliyuncs.com', 'endpoint' => 'alb.eu-west-1.aliyuncs.com', 'vpc' => 'alb-vpc.eu-west-1.aliyuncs.com'],
['regionId' => 'na-south-1', 'regionName' => '墨西哥', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'alb.na-south-1.aliyuncs.com', 'endpoint' => 'alb.na-south-1.aliyuncs.com', 'vpc' => 'alb-vpc.na-south-1.aliyuncs.com'],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'alb.us-east-1.aliyuncs.com', 'endpoint' => 'alb.us-east-1.aliyuncs.com', 'vpc' => 'alb-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'alb.us-west-1.aliyuncs.com', 'endpoint' => 'alb.us-west-1.aliyuncs.com', 'vpc' => 'alb-vpc.us-west-1.aliyuncs.com'],
['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'alb.ap-south-1.aliyuncs.com', 'endpoint' => 'alb.ap-south-1.aliyuncs.com', 'vpc' => 'alb-vpc.ap-south-1.aliyuncs.com'],
['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'alb.me-central-1.aliyuncs.com', 'endpoint' => 'alb.me-central-1.aliyuncs.com', 'vpc' => 'alb-vpc.me-central-1.aliyuncs.com'],
['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'alb.cn-beijing-finance-1.aliyuncs.com', 'endpoint' => 'alb.cn-beijing-finance-1.aliyuncs.com', 'vpc' => 'alb-vpc.cn-beijing-finance-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'alb.cn-hangzhou.aliyuncs.com', 'endpoint' => 'alb.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'alb.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'alb.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'alb-vpc.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'alb.cn-shenzhen-finance-1.aliyuncs.com', 'endpoint' => 'alb.cn-shenzhen-finance-1.aliyuncs.com', 'vpc' => 'alb-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'CloseUpstreamKeepaliveNotSupport', 'message' => 'The param of UpstreamKeepalive is not Support.', 'http_code' => 400, 'description' => '不支持关闭服务器组的后端长链接'],
['code' => 'Conflict.Acl', 'message' => 'There is already %s having the same configuration with %s.', 'http_code' => 400, 'description' => '%s冲突,已经存在同配置的%s。'],
['code' => 'Conflict.BackendServer', 'message' => 'There is already %s having the same configuration with %s.', 'http_code' => 400, 'description' => '服务器冲突,已经存在同配置的后端服务器。'],
['code' => 'Conflict.Priority', 'message' => 'There is already %s having the same configuration with %s.', 'http_code' => 400, 'description' => '优先级冲突,已经存在相同配置'],
['code' => 'DryRunOperation', 'message' => 'Request validation has been passed with DryRun flag set.', 'http_code' => 400, 'description' => '本次操作为预校验操作,并未真正生效。DryRun置为false,重新执行本次操作,操作会生效。'],
['code' => 'DuplicatedParam.%s', 'message' => 'The param of %s is duplicated.', 'http_code' => 400, 'description' => '参数重复。'],
['code' => 'DuplicatedParam.BackendServer', 'message' => 'The param of BackendServer is duplicated.', 'http_code' => 400, 'description' => '参数BackendServer重复'],
['code' => 'DuplicatedParam.BackendServer', 'message' => 'The param of %s is duplicated.', 'http_code' => 400, 'description' => '参数%s是重复的。'],
['code' => 'DuplicatedParam.Key', 'message' => 'The param of %s is duplicated.', 'http_code' => 400, 'description' => '参数%s重复'],
['code' => 'DuplicatedParam.Order', 'message' => 'The param of %s is duplicated.', 'http_code' => 400, 'description' => '参数%s重复'],
['code' => 'DuplicatedParam.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param of RuleConditions.1.SourceIpConfig.Values is duplicated.', 'http_code' => 400, 'description' => '参数RuleConditions.1.SourceIpConfig.Values重复'],
['code' => 'DuplicatedParam.Rules.2.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param of Rules.2.RuleConditions.1.SourceIpConfig.Values is duplicated.', 'http_code' => 400, 'description' => '参数Rules.2.RuleConditions.1.SourceIpConfig.Values重复'],
['code' => 'DuplicatedParam.TagKey', 'message' => 'The param of TagKey is duplicated.', 'http_code' => 400, 'description' => '参数TagKey重复'],
['code' => 'DuplicatedParam.Type', 'message' => 'The param of Type is duplicated.', 'http_code' => 400, 'description' => '参数Type重复'],
['code' => 'DuplicatedParam.Value', 'message' => 'The param of %s is duplicated.', 'http_code' => 400, 'description' => '参数重复'],
['code' => 'DuplicatedParam.ZoneId', 'message' => 'The param of ZoneId is duplicated.', 'http_code' => 400, 'description' => '参数ZoneId重复'],
['code' => 'EntityNotExist.Role', 'message' => 'The role not exists.', 'http_code' => 404, 'description' => 'RAM角色不存在'],
['code' => 'ExclusiveParam.%sAnd%s', 'message' => 'The param of %s and %s are mutually exclusive.', 'http_code' => 400, 'description' => '参数%s和%s不能同时有效。'],
['code' => 'ExclusiveParam.TrafficMirrorAndFixedResponse', 'message' => 'The param of RuleActions.TrafficMirror and RuleActions.FixedResponse are mutually exclusive.', 'http_code' => 400, 'description' => 'RuleActions里的TrafficMirror参数和FixedResponse参数互斥'],
['code' => 'ExclusiveParam.TrafficMirrorAndRedirect', 'message' => 'The param of Rules.1.RuleActions.TrafficMirror and Rules.1.RuleActions.Redirect are mutually exclusive.', 'http_code' => 400, 'description' => 'RuleActions里的TrafficMirror参数和Redirect参数互斥'],
['code' => 'ExclusiveParam.TrafficMirrorAndRewrite', 'message' => 'The param of RuleActions.TrafficMirror and RuleActions.Rewrite are mutually exclusive.', 'http_code' => 400, 'description' => 'RuleActions里的TrafficMirror参数和Rewrite参数互斥'],
['code' => 'Forbidden.Acl', 'message' => 'ACL authentication has failed.', 'http_code' => 403, 'description' => '对Acl鉴权失败'],
['code' => 'Forbidden.Acl', 'message' => 'Authentication is failed for %s.', 'http_code' => 403, 'description' => '访问控制鉴权失败。'],
['code' => 'Forbidden.alb', 'message' => 'Authentication has failed for alb.', 'http_code' => 400, 'description' => 'alb操作鉴权失败'],
['code' => 'Forbidden.HealthCheckTemplate', 'message' => 'Authentication has failed for HealthCheckTemplate.', 'http_code' => 403, 'description' => '对HealthCheckTemplate鉴权失败'],
['code' => 'Forbidden.HealthCheckTemplate', 'message' => 'Authentication is failed for %s.', 'http_code' => 403, 'description' => '健康检查模版操作鉴权失败。'],
['code' => 'Forbidden.Listener', 'message' => 'Authentication is failed for %s.', 'http_code' => 403, 'description' => '监听鉴权失败。'],
['code' => 'Forbidden.LoadBalancer', 'message' => 'Authentication has failed for LoadBalancer.', 'http_code' => 403, 'description' => '负载均衡操作鉴权失败'],
['code' => 'Forbidden.LoadBalancer', 'message' => 'Authentication is failed for %s.', 'http_code' => 403, 'description' => '负载均衡操作鉴权失败。'],
['code' => 'Forbidden.SecurityPolicy', 'message' => 'Authentication has failed for SecurityPolicy.', 'http_code' => 403, 'description' => '对SecurityPolicy鉴权失败'],
['code' => 'Forbidden.ServerGroup', 'message' => 'Authentication has failed for ServerGroup.', 'http_code' => 403, 'description' => '对ServerGroup鉴权失败'],
['code' => 'Forbidden.ServerGroup', 'message' => 'Authentication is failed for ServerGroup.', 'http_code' => 403, 'description' => '当前服务器组权限校验失败。'],
['code' => 'IdempotentParameterMismatch', 'message' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'http_code' => 400, 'description' => '该请求使用了与之前不相同的请求相同的客户端令牌。除非请求相同,否则请勿在不同请求之间重用客户端令牌。'],
['code' => 'IllegalParam.%s', 'message' => 'The param of %s is illegal.', 'http_code' => 400, 'description' => '指定的参无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.AclEntrys', 'message' => 'The param of AclEntrys is illegal.', 'http_code' => 400, 'description' => '参数AclEntrys非法'],
['code' => 'IllegalParam.AclIds', 'message' => 'The param of AclIds is illegal.', 'http_code' => 400, 'description' => '参数AclIds非法'],
['code' => 'IllegalParam.AclName', 'message' => 'The param of AclName is illegal.', 'http_code' => 400, 'description' => '参数AclName非法'],
['code' => 'IllegalParam.AclType', 'message' => 'The param of AclType is illegal.', 'http_code' => 400, 'description' => '参数AclType非法'],
['code' => 'IllegalParam.AddressAllocatedMode', 'message' => 'The param of AddressAllocatedMode is illegal.', 'http_code' => 400, 'description' => '参数IP模式非法'],
['code' => 'IllegalParam.AddressType', 'message' => 'The param of AddressType is illegal.', 'http_code' => 400, 'description' => '参数网络类型非法'],
['code' => 'IllegalParam.CaCertificates', 'message' => 'The param of CaCertificates is illegal.', 'http_code' => 400, 'description' => '参数CaCertificates非法'],
['code' => 'IllegalParam.Category', 'message' => 'The param of Category is illegal.', 'http_code' => 400, 'description' => '参数Category非法'],
['code' => 'IllegalParam.Cipher', 'message' => 'The param of Cipher is illegal.', 'http_code' => 400, 'description' => '参数Cipher非法'],
['code' => 'IllegalParam.Ciphers', 'message' => 'The param of Ciphers is illegal.', 'http_code' => 400, 'description' => '参数Ciphers非法'],
['code' => 'IllegalParam.ConnectPort', 'message' => 'The param of ConnectPort is illegal.', 'http_code' => 400, 'description' => '参数ConnectPort非法'],
['code' => 'IllegalParam.Content', 'message' => 'The param of Rules.RuleActions.FixedResponseConfig.Content is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.FixedResponseConfig.Content非法'],
['code' => 'IllegalParam.ContentType', 'message' => 'The param of Rules.RuleActions.FixedResponseConfig.ContentType is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.FixedResponseConfig.ContentType非法'],
['code' => 'IllegalParam.Cookie', 'message' => 'The param of Cookie is illegal.', 'http_code' => 400, 'description' => '参数Cookie非法'],
['code' => 'IllegalParam.Description', 'message' => 'The param of Description is illegal.', 'http_code' => 400, 'description' => '参数Description非法'],
['code' => 'IllegalParam.Direction', 'message' => 'The param of Rules.Direction is illegal.', 'http_code' => 400, 'description' => '参数Rules.Direction非法'],
['code' => 'IllegalParam.EnableCrossBorder', 'message' => 'Invalid EnableCrossBorder.', 'http_code' => 400, 'description' => '您选择的加速区域及源站涉及跨境数据传输,请配置EnableCrossBorder参数,同意相关合规承诺。'],
['code' => 'IllegalParam.HealthCheck.healthCheckHost', 'message' => 'The param of HealthCheck.healthCheckHost is illegal.', 'http_code' => 400, 'description' => '参数HealthCheck.healthCheckHost非法'],
['code' => 'IllegalParam.HealthCheck.healthCheckHttpVersion', 'message' => 'The param of HealthCheck.healthCheckHttpVersion is illegal.', 'http_code' => 400, 'description' => '参数HealthCheck.healthCheckHttpVersion非法'],
['code' => 'IllegalParam.HealthCheck.healthCheckMethod', 'message' => 'The param of HealthCheck.healthCheckMethod is illegal.', 'http_code' => 400, 'description' => '参数HealthCheck.healthCheckMethod非法'],
['code' => 'IllegalParam.HealthCheckHost', 'message' => 'The param of HealthCheckHost is illegal.', 'http_code' => 400, 'description' => '指定的HealthCheckHost无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.HealthCheckHttpCode', 'message' => 'The param of HealthCheckHttpCode is illegal.', 'http_code' => 400, 'description' => '参数HealthCheckHttpCode非法'],
['code' => 'IllegalParam.HealthCheckHttpVersion', 'message' => 'The param of HealthCheckHttpVersion is illegal.', 'http_code' => 400, 'description' => '参数HealthCheckHttpVersion非法'],
['code' => 'IllegalParam.HealthCheckMethod', 'message' => 'The param of HealthCheckMethod is illegal.', 'http_code' => 400, 'description' => '参数HealthCheckMethod非法'],
['code' => 'IllegalParam.HealthCheckPath', 'message' => 'The param of HealthCheckPath is illegal.', 'http_code' => 400, 'description' => '指定的HealthCheckPath无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.HealthyThreshold', 'message' => 'The param of HealthyThreshold is illegal.', 'http_code' => 400, 'description' => '参数HealthyThreshold非法'],
['code' => 'IllegalParam.Host', 'message' => 'The param of Rules.RuleConditions.HostConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleConditions.HostConfig.Values非法'],
['code' => 'IllegalParam.HttpCode', 'message' => 'The param of Rules.RuleActions.FixedResponseConfig.HttpCode is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.FixedResponseConfig.HttpCode非法'],
['code' => 'IllegalParam.HttpVersion', 'message' => 'The param of HttpVersion is illegal.', 'http_code' => 400, 'description' => '参数HttpVersion非法'],
['code' => 'IllegalParam.InternetChargeType', 'message' => 'The param of InternetChargeType is illegal.', 'http_code' => 400, 'description' => '参数计费类型非法'],
['code' => 'IllegalParam.IntervalTime', 'message' => 'The param of IntervalTime is illegal.', 'http_code' => 400, 'description' => '参数IntervalTime非法'],
['code' => 'IllegalParam.IP', 'message' => 'The param of IP is illegal.', 'http_code' => 400, 'description' => '参数IP非法'],
['code' => 'IllegalParam.Key', 'message' => 'The param of Rules.RuleActions.RemoveHeaderConfig.Key is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.RemoveHeaderConfig.Key非法'],
['code' => 'IllegalParam.ListenerDescription', 'message' => 'The param of ListenerDescription is illegal.', 'http_code' => 400, 'description' => '参数ListenerDescription非法'],
['code' => 'IllegalParam.ListenerIds', 'message' => 'The param of ListenerIds is illegal.', 'http_code' => 400, 'description' => '参数ListenerIds非法'],
['code' => 'IllegalParam.ListenerPort', 'message' => 'The param of ListenerPort is illegal.', 'http_code' => 400, 'description' => '监听端口参数非法'],
['code' => 'IllegalParam.ListenerProtocol', 'message' => 'The param of ListenerProtocol is illegal.', 'http_code' => 400, 'description' => '监听协议参数非法'],
['code' => 'IllegalParam.LoadBalancerEdition', 'message' => 'The param of LoadBalancerEdition is illegal.', 'http_code' => 400, 'description' => '指定的LoadBalancerEdition无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.LoadBalancerIds', 'message' => 'The param of LoadBalancerIds is illegal.', 'http_code' => 400, 'description' => '参数LoadBalancerIds非法'],
['code' => 'IllegalParam.LoadBalancerName', 'message' => 'The param of LoadBalancerName is illegal.', 'http_code' => 400, 'description' => '参数负载均衡实例名称非法'],
['code' => 'IllegalParam.MaxResults', 'message' => 'The param of MaxResults is illegal.', 'http_code' => 400, 'description' => '参数MaxResults非法'],
['code' => 'IllegalParam.Method', 'message' => 'The param of Method is illegal.', 'http_code' => 400, 'description' => '参数Method非法'],
['code' => 'IllegalParam.Name', 'message' => 'The param of Name is illegal.', 'http_code' => 400, 'description' => '参数Name非法'],
['code' => 'IllegalParam.NextToken', 'message' => 'The param of NextToken is illegal.', 'http_code' => 400, 'description' => '参数NextToken非法。'],
['code' => 'IllegalParam.Order', 'message' => 'The param of Rules.RuleActions.TrafficLimitConfig.Order is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.TrafficLimitConfig.Order非法'],
['code' => 'IllegalParam.Path', 'message' => 'The param of Rules.RuleActions.RewriteConfig.Path is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.RewriteConfig.Path非法'],
['code' => 'IllegalParam.PayType', 'message' => 'The param of PayType is illegal.', 'http_code' => 400, 'description' => '参数付费类型非法'],
['code' => 'IllegalParam.Port', 'message' => 'The param of Rules.RuleActions.Redirect.Port is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.Redirect.Port非法'],
['code' => 'IllegalParam.Priority', 'message' => 'The param of Priority is illegal.', 'http_code' => 400, 'description' => '参数Priority非法'],
['code' => 'IllegalParam.Protocol', 'message' => 'The param of Protocol is illegal.', 'http_code' => 400, 'description' => '参数Protocol非法'],
['code' => 'IllegalParam.Query', 'message' => 'The param of Rules.RuleActions.Redirect.Query is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.Redirect.Query非法'],
['code' => 'IllegalParam.Reason', 'message' => 'The param of ModificationProtectionConfig.Reason is illegal.', 'http_code' => 400, 'description' => '参数ModificationProtectionConfig.Reason非法'],
['code' => 'IllegalParam.ResourceId', 'message' => 'ResourceId %s is illegal.', 'http_code' => 400, 'description' => '参数ResourceId非法'],
['code' => 'IllegalParam.ResourceType', 'message' => 'The param of ResourceType is illegal.', 'http_code' => 400, 'description' => '指定的ResourceType无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.RuleAction', 'message' => 'The param of Rules.RuleActions is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions非法'],
['code' => 'IllegalParam.RuleIds', 'message' => 'The param of RuleIds is illegal.', 'http_code' => 400, 'description' => '参数RuleIds非法'],
['code' => 'IllegalParam.RuleIds', 'message' => 'Invalid RuleIds, array length cannot exceed 20.', 'http_code' => 400, 'description' => 'RuleIds 无效,数组长度不能超过20个'],
['code' => 'IllegalParam.RuleName', 'message' => 'The param of Rules.RuleName is illegal.', 'http_code' => 400, 'description' => '参数RuleName非法'],
['code' => 'IllegalParam.Rules.2.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param of Rules.2.RuleConditions.1.SourceIpConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.2.RuleConditions.1.SourceIpConfig.Values非法'],
['code' => 'IllegalParam.Scheduler', 'message' => 'The param of Scheduler is illegal.', 'http_code' => 400, 'description' => '参数Scheduler非法'],
['code' => 'IllegalParam.SecurityPolicyName', 'message' => 'The param of SecurityPolicyName is illegal.', 'http_code' => 400, 'description' => '参数SecurityPolicyName非法'],
['code' => 'IllegalParam.ServerGroupName', 'message' => 'The param of ServerGroupName is illegal.', 'http_code' => 400, 'description' => '参数ServerGroupName非法'],
['code' => 'IllegalParam.ServerGroupStickySession', 'message' => 'The specified ServerGroupStickySession parameter is invalid.', 'http_code' => 400, 'description' => '指定的ServerGroupStickySession无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.ServerGroupType', 'message' => 'The param of ServerGroupType is illegal.', 'http_code' => 400, 'description' => '参数ServerGroupType非法'],
['code' => 'IllegalParam.ServerIp', 'message' => 'The param of ServerIp is illegal.', 'http_code' => 400, 'description' => '参数ServerIp非法'],
['code' => 'IllegalParam.Servers', 'message' => 'The param of Servers is illegal.', 'http_code' => 400, 'description' => '参数Servers非法'],
['code' => 'IllegalParam.Status', 'message' => 'The param of Status is illegal.', 'http_code' => 400, 'description' => '参数状态非法'],
['code' => 'IllegalParam.StickySession.cookie', 'message' => 'The param of StickySession.cookie is illegal.', 'http_code' => 400, 'description' => '参数StickySession.cookie非法'],
['code' => 'IllegalParam.TagKey', 'message' => 'The param of TagKey is illegal.', 'http_code' => 400, 'description' => '参数TagKey非法'],
['code' => 'IllegalParam.TagModels', 'message' => 'The param of TagModels is illegal.', 'http_code' => 400, 'description' => '参数TagModels非法'],
['code' => 'IllegalParam.TagValue', 'message' => 'The param of TagValue is illegal.', 'http_code' => 400, 'description' => '参数TagValue非法'],
['code' => 'IllegalParam.TargetType', 'message' => 'The param of TargetType is illegal.', 'http_code' => 400, 'description' => '指定的TargetType无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParam.Timeout', 'message' => 'The param of Timeout is illegal.', 'http_code' => 400, 'description' => '参数Timeout非法'],
['code' => 'IllegalParam.TLSVersion', 'message' => 'The param of TLSVersion is illegal.', 'http_code' => 400, 'description' => '参数TLSVersion非法'],
['code' => 'IllegalParam.TracingSample', 'message' => 'The param of AccessLogTracingConfig.TracingSample is illegal.', 'http_code' => 400, 'description' => '参数AccessLogTracingConfig.TracingSample非法'],
['code' => 'IllegalParam.TracingType', 'message' => 'The param of AccessLogTracingConfig.TracingType is illegal.', 'http_code' => 400, 'description' => '参数AccessLogTracingConfig.TracingType非法'],
['code' => 'IllegalParam.TrafficLimitConfig', 'message' => 'The param of Rules.RuleActions.TrafficLimitConfig.QPS is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.TrafficLimitConfig.QPS非法'],
['code' => 'IllegalParam.Type', 'message' => 'The param of Rules.RuleActions.Type is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.Type非法'],
['code' => 'IllegalParam.UnhealthyThreshold', 'message' => 'The param of UnhealthyThreshold is illegal.', 'http_code' => 400, 'description' => '参数UnhealthyThreshold非法'],
['code' => 'IllegalParam.Value', 'message' => 'The param of Rules.RuleConditions.ResponseStatusCode.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleConditions.ResponseStatusCode.Values非法'],
['code' => 'IllegalParam.ValueType', 'message' => 'The param of Rules.RuleConditions.ValueType is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleConditions.ValueType非法'],
['code' => 'IllegalParam.Weight', 'message' => 'The param of Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight非法'],
['code' => 'IllegalParam.XForwardedForClientCertClientVerifyAlias', 'message' => 'The param of XForwardedForClientCertClientVerifyAlias is illegal.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertClientVerifyAlias非法'],
['code' => 'IllegalParam.XForwardedForClientCertFingerprintAlias', 'message' => 'The param of XForwardedForClientCertFingerprintAlias is illegal.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertFingerprintAlias非法'],
['code' => 'IllegalParam.XForwardedForClientCertIssuerDNAlias', 'message' => 'The param of XForwardedForClientCertIssuerDNAlias is illegal.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertIssuerDNAlias非法'],
['code' => 'IllegalParam.XForwardedForClientCertSubjectDNAlias', 'message' => 'The param of XForwardedForClientCertSubjectDNAlias is illegal.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertSubjectDNAlias非法'],
['code' => 'IllegalParamFormat.%s', 'message' => 'The param format of %s is illegal.', 'http_code' => 400, 'description' => '指定参数的格式无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamFormat.ServerId', 'message' => 'The param format of ServerId is illegal.', 'http_code' => 400, 'description' => '指定的ServerId格式无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamLength.%s', 'message' => 'The param length of %s is illegal.', 'http_code' => 400, 'description' => '指定的%s长度无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamLength.Host', 'message' => 'The param length of Host is illegal.', 'http_code' => 400, 'description' => '参数Host长度非法'],
['code' => 'IllegalParamLength.Key', 'message' => 'The param length of Rules.RuleActions.RemoveHeaderConfig.Key is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.RemoveHeaderConfig.Key长度非法'],
['code' => 'IllegalParamLength.Path', 'message' => 'The param length of Rules.RuleActions.RewriteConfig.Path is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.RewriteConfig.Path长度非法'],
['code' => 'IllegalParamLength.Query', 'message' => 'The param length of Rules.RuleActions.Redirect.Query is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.Redirect.Query长度非法'],
['code' => 'IllegalParamLength.Value', 'message' => 'The param length of Rules.RuleConditions.HostConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleConditions.HostConfig.Values长度非法'],
['code' => 'IllegalParamSize.%s', 'message' => 'The param size of %s is illegal.', 'http_code' => 400, 'description' => '指定的参数大小无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamSize.AdditionalCertificates', 'message' => 'The param size of AdditionalCertificates is illegal.', 'http_code' => 400, 'description' => '指定的AdditionalCertificates大小无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamSize.Certificates', 'message' => 'The param size of Certificates is illegal.', 'http_code' => 400, 'description' => '指定的Certificates大小无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamSize.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param size of RuleConditions.1.SourceIpConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数RuleConditions.1.SourceIpConfig.Values大小非法'],
['code' => 'IllegalParamSize.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param of IllegalParamSize.RuleConditions.1.SourceIpConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数IllegalParamSize.RuleConditions.1.SourceIpConfig.Values非法'],
['code' => 'IllegalParamSize.Rules.2.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param size of Rules.2.RuleConditions.1.SourceIpConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.2.RuleConditions.1.SourceIpConfig.Values大小非法'],
['code' => 'IllegalParamSize.Rules.2.RuleConditions.1.SourceIpConfig.Values', 'message' => 'The param of IllegalParamSize.Rules.2.RuleConditions.1.SourceIpConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数IllegalParamSize.Rules.2.RuleConditions.1.SourceIpConfig.Values非法'],
['code' => 'IllegalParamSize.ServerGroupTuple', 'message' => 'The param size of ServerGroupTuple is illegal.', 'http_code' => 400, 'description' => '参数ServerGroupTuple大小非法'],
['code' => 'IllegalParamSize.ServerGroupTuples', 'message' => 'The param size of ServerGroupTuples is illegal.', 'http_code' => 400, 'description' => '参数ServerGroupTuples大小非法'],
['code' => 'IllegalParamSize.ServerGroupTuples', 'message' => 'The param of IllegalParamSize.ServerGroupTuples is illegal.', 'http_code' => 400, 'description' => '参数IllegalParamSize.ServerGroupTuples非法'],
['code' => 'IllegalParamSize.Servers', 'message' => 'The param size of Servers is illegal.', 'http_code' => 400, 'description' => '指定的Servers大小无效。请检查参数约束,并在修改后重试。'],
['code' => 'IllegalParamSize.Value', 'message' => 'The param size of Rules.RuleConditions.HostConfig.Values is illegal.', 'http_code' => 400, 'description' => '参数Rules.RuleConditions.HostConfig.Values大小非法'],
['code' => 'IllegalParamSize.ZoneMappings', 'message' => 'The param size of ZoneMappings is illegal.', 'http_code' => 400, 'description' => '可用区参数大小非法'],
['code' => 'IncorrectBusinessStatus.CommonBandwidthPackage', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的业务状态无效。'],
['code' => 'IncorrectBusinessStatus.Eip', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的业务状态无效。'],
['code' => 'IncorrectBusinessStatus.Eip', 'message' => 'The business status of Eip [%s] is incorrect.', 'http_code' => 400, 'description' => '资源Eip [%s]的业务状态无效。'],
['code' => 'IncorrectBusinessStatus.LoadBalancer', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的业务状态无效。'],
['code' => 'IncorrectBusinessStatus.LoadBalancer', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '实例的当前状态不支持本次操作。'],
['code' => 'IncorrectStatus.Acl', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
['code' => 'IncorrectStatus.AclNotStable', 'message' => 'The status of %s [%s] is not stable.', 'http_code' => 400, 'description' => '访问控制策略组ACL的当前状态不支持本次操作。'],
['code' => 'IncorrectStatus.CommonBandwidthPackage', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的状态无效。'],
['code' => 'IncorrectStatus.Eni', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的状态无效。'],
['code' => 'IncorrectStatus.HealthCheckTemplate', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的状态无效。'],
['code' => 'IncorrectStatus.Listener', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '监听的当前状态不支持本次操作。'."\n"],
['code' => 'IncorrectStatus.LoadBalancer', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '实例的当前状态不支持本次操作。'."\n"],
['code' => 'IncorrectStatus.Rule', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '转发规则的当前状态不支持本次操作。'."\n"],
['code' => 'IncorrectStatus.SecurityPolicy', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '资源%s [%s]的状态无效。'],
['code' => 'IncorrectStatus.ServerGroup', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => '服务器组状态无效。'],
['code' => 'InternalError', 'message' => 'The request failed to be processed due to unknown errors or exceptions.', 'http_code' => 500, 'description' => '由于未知错误、异常或失败,请求处理失败。'],
['code' => 'InvalidAccessLogRecordCustomizedHeadersEnabled', 'message' => 'AccessLogRecordCustomizedHeadersEnabled is invalid.', 'http_code' => 400, 'description' => '参数AccessLogRecordCustomizedHeadersEnabled无效'],
['code' => 'InvalidCaEnabled', 'message' => 'CaEnabled is invalid.', 'http_code' => 400, 'description' => '参数CaEnabled无效'],
['code' => 'InvalidCookieTimeout', 'message' => 'CookieTimeout is invalid.', 'http_code' => 400, 'description' => '参数CookieTimeout无效'],
['code' => 'InvalidDeletionProtectionEnabled', 'message' => 'DeletionProtectionEnabled is invalid.', 'http_code' => 400, 'description' => '删除保护开关参数无效'],
['code' => 'InvalidDryRun', 'message' => 'DryRun is invalid.', 'http_code' => 400, 'description' => 'DryRun参数无效'],
['code' => 'InvalidEnabled', 'message' => 'Specified parameter Enabled is not valid.', 'http_code' => 400, 'description' => '参数Enabled无效'],
['code' => 'InvalidGzipEnabled', 'message' => 'GzipEnabled is invalid.', 'http_code' => 400, 'description' => '参数GzipEnabled无效'],
['code' => 'InvalidHealthCheckConnectPort', 'message' => 'HealthCheckConnectPort is invalid.', 'http_code' => 400, 'description' => '参数HealthCheckConnectPort无效'],
['code' => 'InvalidHealthCheckInterval', 'message' => 'HealthCheckInterval is invalid.', 'http_code' => 400, 'description' => '参数HealthCheckInterval无效'],
['code' => 'InvalidHealthCheckTcpFastCloseEnabled', 'message' => 'HealthCheckTcpFastCloseEnabled is invalid.', 'http_code' => 400, 'description' => '参数HealthCheckTcpFastCloseEnabled无效'],
['code' => 'InvalidHealthCheckTimeout', 'message' => 'HealthCheckTimeout is invalid.', 'http_code' => 400, 'description' => '参数HealthCheckTimeout无效'],
['code' => 'InvalidHealthyThreshold', 'message' => 'HealthyThreshold is invalid.', 'http_code' => 400, 'description' => '参数HealthyThreshold无效'],
['code' => 'InvalidHttp2Enabled', 'message' => 'Http2Enabled is invalid.', 'http_code' => 400, 'description' => '参数Http2Enabled无效'],
['code' => 'InvalidIdleTimeout', 'message' => 'IdleTimeout is invalid.', 'http_code' => 400, 'description' => '参数IdleTimeout无效'],
['code' => 'InvalidInternetBandwidth', 'message' => 'InternetBandwidth is invalid.', 'http_code' => 400, 'description' => '参数公网带宽无效'],
['code' => 'InvalidMaxResults', 'message' => 'MaxResults is invalid.', 'http_code' => 400, 'description' => '参数MaxResults无效'],
['code' => 'InvalidParameter', 'message' => 'Invalid parameter, please check the parameter input.', 'http_code' => 400, 'description' => '无效参数,请检查参数输入。'],
['code' => 'InvalidQPS', 'message' => 'Specified parameter QPS is not valid.', 'http_code' => 400, 'description' => '参数QPS无效'],
['code' => 'InvalidQuicUpgradeEnabled', 'message' => 'QuicUpgradeEnabled is invalid.', 'http_code' => 400, 'description' => '参数QuicUpgradeEnabled无效'],
['code' => 'InvalidRequestTimeout', 'message' => 'RequestTimeout is invalid.', 'http_code' => 400, 'description' => '参数RequestTimeout无效'],
['code' => 'InvalidTracingEnabled', 'message' => 'TracingEnabled is invalid.', 'http_code' => 400, 'description' => '参数TracingEnabled无效'],
['code' => 'InvalidUnhealthyThreshold', 'message' => 'UnhealthyThreshold is invalid.', 'http_code' => 400, 'description' => '参数UnhealthyThreshold无效'],
['code' => 'InvalidXForwardedForClientCertClientVerifyEnabled', 'message' => 'XForwardedForClientCertClientVerifyEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertClientVerifyEnabled无效'],
['code' => 'InvalidXForwardedForClientCertFingerprintEnabled', 'message' => 'XForwardedForClientCertFingerprintEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertFingerprintEnabled无效'],
['code' => 'InvalidXForwardedForClientCertIssuerDNEnabled', 'message' => 'XForwardedForClientCertIssuerDNEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertIssuerDNEnabled无效'],
['code' => 'InvalidXForwardedForClientCertSubjectDNEnabled', 'message' => 'XForwardedForClientCertSubjectDNEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForClientCertSubjectDNEnabled无效'],
['code' => 'InvalidXForwardedForClientSrcPortEnabled', 'message' => 'XForwardedForClientSrcPortEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForClientSrcPortEnabled无效'],
['code' => 'InvalidXForwardedForEnabled', 'message' => 'XForwardedForEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForEnabled无效'],
['code' => 'InvalidXForwardedForProtoEnabled', 'message' => 'XForwardedForProtoEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForProtoEnabled无效'],
['code' => 'InvalidXForwardedForSLBIdEnabled', 'message' => 'XForwardedForSLBIdEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForSLBIdEnabled无效'],
['code' => 'InvalidXForwardedForSLBPortEnabled', 'message' => 'XForwardedForSLBPortEnabled is invalid.', 'http_code' => 400, 'description' => '参数XForwardedForSLBPortEnabled无效'],
['code' => 'LockFailed', 'message' => 'The specified resource lock failed.', 'http_code' => 400, 'description' => '指定的资源锁定失败。'],
['code' => 'Mismatch.IspType', 'message' => 'The IspType is mismatched for Eip and CommonBandwidthPackage.', 'http_code' => 400, 'description' => '共享带宽包和EIP的线路类型不匹配。'],
['code' => 'Mismatch.LoadBalancerEditionAndConnectionDrain', 'message' => 'The %s and %s are mismatched.', 'http_code' => 400, 'description' => '参数%s和%s不匹配。'],
['code' => 'Mismatch.LoadBalancerEditionAndSlowStartEnable', 'message' => 'The %s and %s are mismatched.', 'http_code' => 400, 'description' => '参数%s和%s不匹配。'],
['code' => 'Mismatch.Protocol', 'message' => 'The %s is mismatched for %s and %s.', 'http_code' => 400, 'description' => '%s在%s和%s中不匹配。'],
['code' => 'Mismatch.ServerGroupSchedulerAndSlowStartEnable', 'message' => 'The %s and %s are mismatched.', 'http_code' => 400, 'description' => '参数%s和%s不匹配。'],
['code' => 'Mismatch.ServerType', 'message' => 'The %s is mismatched for %s and %s.', 'http_code' => 400, 'description' => '%s在%s和%s中不匹配。'],
['code' => 'Mismatch.Type', 'message' => 'The %s is mismatched for %s and %s.', 'http_code' => 400, 'description' => '%s在%s和%s中不匹配。'],
['code' => 'Mismatch.VpcId', 'message' => 'The %s is mismatched for %s and %s.', 'http_code' => 400, 'description' => '%s在%s和%s中不匹配。'],
['code' => 'Mismatch.ZoneIdAndVSwitchId', 'message' => 'The %s and %s are mismatched.', 'http_code' => 400, 'description' => '%s和%s不匹配。'],
['code' => 'Mismatch.ZoneIdAndVSwitchId', 'message' => 'The ZoneId and VSwitchId are mismatched.', 'http_code' => 400, 'description' => '可用区ID和交换机ID不匹配。'],
['code' => 'MissingLoadBalancerBillingConfig.PayType', 'message' => 'LoadBalancerBillingConfig.PayType is mandatory for this action.', 'http_code' => 400, 'description' => 'LoadBalancerBillingConfig.PayType参数必传'],
['code' => 'MissingParam.%s', 'message' => 'The param of %s is missing.', 'http_code' => 400, 'description' => '参数%s缺失。'],
['code' => 'MissingParam.CaCertificates', 'message' => 'The param of CaCertificates is missing.', 'http_code' => 400, 'description' => '缺少参数CaCertificates'],
['code' => 'MissingParam.Certificates', 'message' => 'The param of Certificates is missing.', 'http_code' => 400, 'description' => '参数Certificates缺失'],
['code' => 'MissingParam.Ciphers', 'message' => 'The param of Ciphers is missing.', 'http_code' => 400, 'description' => '参数Ciphers缺失'],
['code' => 'MissingParam.Cookie', 'message' => 'The param of Cookie is missing.', 'http_code' => 400, 'description' => '参数Cookie缺失'],
['code' => 'MissingParam.Key', 'message' => 'The param of Rules.RuleActions.RemoveHeaderConfig.Key is missing.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.RemoveHeaderConfig.Key丢失'],
['code' => 'MissingParam.LoadBalancerId', 'message' => 'The param of LoadBalancerId is missing.', 'http_code' => 400, 'description' => '参数LoadBalancerId缺失'],
['code' => 'MissingParam.LoadBalancerName', 'message' => 'The param of LoadBalancerName is missing.', 'http_code' => 400, 'description' => '参数LoadBalancerName缺失'],
['code' => 'MissingParam.Port', 'message' => 'The param of Port is missing.', 'http_code' => 400, 'description' => '参数Port缺失'],
['code' => 'MissingParam.QuicListenerId', 'message' => 'The param of QuicListenerId is missing.', 'http_code' => 400, 'description' => '缺少参数QuicListenerId'],
['code' => 'MissingParam.StickySession', 'message' => 'The param of StickySession is missing.', 'http_code' => 400, 'description' => '参数StickySession缺失'],
['code' => 'MissingParam.StickySession.cookie', 'message' => 'The param of StickySession.cookie is missing.', 'http_code' => 400, 'description' => '参数StickySession.cookie缺失'],
['code' => 'MissingParam.TagsOrResourceIds', 'message' => 'The param of TagsOrResourceIds is missing.', 'http_code' => 400, 'description' => '标签或资源ID参数缺失'],
['code' => 'MissingParam.TLSVersions', 'message' => 'The param of TLSVersions is missing.', 'http_code' => 400, 'description' => '参数TLSVersions缺失'],
['code' => 'MissingParam.Type', 'message' => 'The param of Type is missing.', 'http_code' => 400, 'description' => '参数Type缺失'],
['code' => 'MissingParam.VpcId', 'message' => 'The param of VpcId is missing.', 'http_code' => 400, 'description' => '参数VpcId缺失'],
['code' => 'MissingParam.Weight', 'message' => 'The param of Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight is missing.', 'http_code' => 400, 'description' => '参数Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight丢失'],
['code' => 'MissingZoneMappings', 'message' => 'ZoneMappings is mandatory for this action.', 'http_code' => 400, 'description' => '可用区参数必传'],
['code' => 'NotExist.ResourceGroup', 'message' => 'ResourceGroup does not exist.', 'http_code' => 400, 'description' => '资源组不存在'],
['code' => 'OperationDenied.AcceleratorCidrConflictWithAclEntity', 'message' => 'The operation is not allowed because of ga back-to-source cidr conflict with acl entity which associated with listener in loadbalancer.', 'http_code' => 400, 'description' => 'GA回源Ip与Acl地址段冲突,无法开启全球加速'],
['code' => 'OperationDenied.AcceleratorIpInAclBlackList', 'message' => 'The operation is not allowed because of ga back-source Ip in blacklist acl', 'http_code' => 400, 'description' => 'GA回源Ip在黑名单Acl中,无法开启全球加速'],
['code' => 'OperationDenied.AccessLogDisabled', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,实例未开启访问日志。'."\n"],
['code' => 'OperationDenied.AccessLogEnabled', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因访问日志已开启。'],
['code' => 'OperationDenied.AclNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '因为%s,该操作不被允许。'],
['code' => 'OperationDenied.AddressTypeNotChanged', 'message' => 'The operation is not allowed because of AddressTypeNotChanged.', 'http_code' => 400, 'description' => '该负载均衡实例的网络类型未变更'],
['code' => 'OperationDenied.AddressTypeNotChanged', 'message' => 'The address type of the specified loadbalancer has not been changed.', 'http_code' => 400, 'description' => '应用型负载均衡实例的地址类型没有改变。'],
['code' => 'OperationDenied.CaEnableListenerNotSupportGA', 'message' => 'The operation is not allowed because of the ALB instance has a listener configured for mutual authentication.', 'http_code' => 400, 'description' => 'ALB实例存在配置双向认证的监听,不支持开启应用加速'],
['code' => 'OperationDenied.CertCommonNameEmpty', 'message' => 'The operation is not allowed because of CertCommonNameEmpty.', 'http_code' => 400, 'description' => '当前操作被拒绝,证书域名非法。'],
['code' => 'OperationDenied.CertificateTypeMismatched', 'message' => 'The operation is not allowed because of CertificateTypeMismatched.', 'http_code' => 400, 'description' => '操作被拒绝,原因是证书类型不匹配。'],
['code' => 'OperationDenied.CloudBox', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.ConfigLastActiveZoneNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '禁止对最后一个Active状态的可用区进行删除或停止或摘除DNS A记录操作'],
['code' => 'OperationDenied.ConfigManagedEnabled', 'message' => 'The operation is not allowed because the ConfigManaged is enabled.', 'http_code' => 400, 'description' => '操作被拒绝,原因是当前实例已开启配置管理功能。'],
['code' => 'OperationDenied.CrossListenerAScripts', 'message' => 'The operation is not allowed because of %s', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.CrossLoadBalancerQUICListener', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.CrossLoadBalancerRules', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.DefaultCertificateUsed', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是默认证书不允许解除关联。'],
['code' => 'OperationDenied.DeletionProtectionEnabled', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.Downgrade', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.EciNotSupportJobType', 'message' => 'he operation is not allowed because of eci not support job type.', 'http_code' => 400, 'description' => '不支持将Job类型的ECI加入到服务器组中'],
['code' => 'OperationDenied.EciNotSupportJobType', 'message' => 'The operation is not allowed because of eci not support job type.', 'http_code' => 400, 'description' => '服务器组不支持添加Job优化型ECI实例。'],
['code' => 'OperationDenied.EditionNotChanged', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是版本未变化。'."\n"],
['code' => 'OperationDenied.EniStatusNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => 'Eni当前状态不支持此操作'],
['code' => 'OperationDenied.GaNotSupportAcceleratorRegion', 'message' => 'The operation is not allowed because of ga not support this accelerator region.', 'http_code' => 400, 'description' => '加速区域不存在。'],
['code' => 'OperationDenied.GaNotSupportAdditionalCertificate', 'message' => 'The operation is not allowed because of loadbalancer configured with additional certificate not support application acceleration.', 'http_code' => 400, 'description' => 'ALB实例已经配置扩展证书,暂不支持开启应用加速。'],
['code' => 'OperationDenied.GaNotSupportCustomSecurityPolicy', 'message' => 'The operation is not allowed because of the ALB instance configured with custom TLS.', 'http_code' => 400, 'description' => '不允许操作,配置了自定义TLS的ALB实例,不支持开启应用加速'],
['code' => 'OperationDenied.GaNotSupportQuic', 'message' => 'The operation is not allowed because of Ga not support Quic.', 'http_code' => 400, 'description' => '不允许操作,负载均衡实例下存在QUIC协议类型监听,暂不支持一键开启全球加速'],
['code' => 'OperationDenied.GRPCServerGroup', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是存在绑定本GRPC服务器组的监听没有启用HTTP2.0。'],
['code' => 'OperationDenied.GRPCServerGroupNotSupport', 'message' => 'The operation is not allowed because of ALB instances associated with gRPC backend server groups.', 'http_code' => 400, 'description' => '关联了gRPC协议类型后端服务器组的ALB实例,不支持开启应用加速'],
['code' => 'OperationDenied.HttpListenerNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是不支持HTTP协议监听。'],
['code' => 'OperationDenied.IntranetLoadBalancer', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因私网实例不支持绑定共享带宽包。'."\n"],
['code' => 'OperationDenied.IpGroupCanNotUsedForMirrorAction', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.Ipv6InternetInstance', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.Ipv6IntranetInstance', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.LbAssociatedAclCanNotJoinSecurityGroup', 'message' => 'The operation is not allowed because of loadBalancer associated acl can not join security group.', 'http_code' => 400, 'description' => '不允许该操作,原因是负载均衡实例下的监听已经绑定过访问控制策略,则不允许再加入安全组'],
['code' => 'OperationDenied.LbAssociatedGrpcServerGroupNotSupportGA', 'message' => 'The operation is not allowed because of ALB instances associated with gRPC backend server groups.', 'http_code' => 400, 'description' => '关联了gRPC协议类型后端服务器组的ALB实例,不支持开启应用加速'],
['code' => 'OperationDenied.ListenerConfiguring', 'message' => 'The operation is not allowed because of Listener configuring.', 'http_code' => 400, 'description' => '监听变配中,不支持开启应用加速'],
['code' => 'OperationDenied.ListenerEnabledCaNotSupportGA', 'message' => 'The operation is not allowed because of the ALB instance has a listener configured for mutual authentication.', 'http_code' => 400, 'description' => 'ALB实例存在配置双向认证的监听,不支持开启应用加速'],
['code' => 'OperationDenied.ListenerIdInconsistent', 'message' => 'The operation is not allowed because of ListenerIdInconsistent.', 'http_code' => 400, 'description' => '操作被拒绝,原因是当前转发规则属于不同的监听。'],
['code' => 'OperationDenied.LoadbalancerAlreadyEnableAccelerator', 'message' => 'The operation is not allowed because of Global Acceleration has been enabled for the instance.', 'http_code' => 400, 'description' => '实例已经开启过全球加速'],
['code' => 'OperationDenied.LoadbalancerAlreadyEnabledAccelerator', 'message' => 'The operation is not allowed because of Global Acceleration has been enabled for the instance.', 'http_code' => 400, 'description' => '实例已经开启过全球加速。'],
['code' => 'OperationDenied.LoadBalancerJoinedSecurityGroupNotSupportAcl', 'message' => 'The operation is not allowed because of loadbalancer joined security group not support acl.', 'http_code' => 400, 'description' => '不允许操作,原因是负载均衡实例加入安全组后,不能再绑定访问控制策略'],
['code' => 'OperationDenied.MirrorActionSupportHttpGroupOnly', 'message' => 'The operation is not allowed because of MirrorActionSupportHttpGroupOnly.', 'http_code' => 400, 'description' => '操作被拒绝,原因是流量镜像动作只支持HTTP类型的服务器组。'],
['code' => 'OperationDenied.NoAvailableBusinessRegionForGa', 'message' => 'The operation is not allowed because of Global Acceleration is not available in this region.', 'http_code' => 400, 'description' => '全球加速GA在此地域暂未开服,不支持开启应用加速。'],
['code' => 'OperationDenied.NoAvailableVSwitch', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.NoListenerInLoadbalancer', 'message' => 'The operation is not allowed because of the ALB instance does not contain listeners.', 'http_code' => 400, 'description' => '实例中不包含监听,不支持开启应用加速'],
['code' => 'OperationDenied.NonDualStackInstance', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.OnlyFixedAddressAllocatedModeSupported', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '负载均衡实例的IP模式不支持此操作'],
['code' => 'OperationDenied.OnlyPostPaidEipSupported', 'message' => 'The operation is not allowed because of OnlyPostPaidEipSupported.', 'http_code' => 400, 'description' => '操作被拒绝,原因是只支持后付费类型的弹性公网IP。'],
['code' => 'OperationDenied.ProtectedPrivateIPv4AddressChanged', 'message' => 'The operation is not allowed because of ProtectedPrivateIPv4AddressChanged.', 'http_code' => 400, 'description' => '存量可用区的IPv4私网IP地址不能变化。'],
['code' => 'OperationDenied.ProtocolMustSameForForwardGroupAction', 'message' => 'The operation is not allowed because of ProtocolMustSameForForwardGroupAction.', 'http_code' => 400, 'description' => '操作被禁止,原因:必须是相同的协议'],
['code' => 'OperationDenied.RewriteMissingForwardGroup', 'message' => 'The operation is not allowed because of RewriteMissingForwardGroup.', 'http_code' => 400, 'description' => '操作被拒绝,原因是RewriteMissingForwardGroup。'],
['code' => 'OperationDenied.SameGroupForForwardAndMirrorAction', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.SecurityGroupNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '不支持绑定安全组'],
['code' => 'OperationDenied.ServerGroupProtocolNotSupport', 'message' => 'The operation is not allowed because of ServerGroupProtocolNotSupport.', 'http_code' => 400, 'description' => '操作被拒绝,原因是ServerGroupProtocolNotSupport。'],
['code' => 'OperationDenied.ServiceManagedResource', 'message' => 'The operation is not allowed because the current resource is managed resource.', 'http_code' => 400, 'description' => '操作被拒绝,原因是当前操作资源为托管资源。'],
['code' => 'OperationDenied.ServiceManagedResource', 'message' => 'The operation is not allowed because the current resource of %s is managed resource.', 'http_code' => 400, 'description' => '操作被拒绝,原因是资源%s为托管资源。'],
['code' => 'OperationDenied.TcpFastCloseNotSupport', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.UnsupportedInternetChargeTypeConvert', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.UpstreamKeepaliveDisabled', 'message' => 'The operation is not allowed because of UpstreamKeepaliveDisabled.', 'http_code' => 400, 'description' => '不允许更新是否开启后端长连接为关闭状态'],
['code' => 'OperationDenied.UpstreamKeepaliveEnabled', 'message' => 'The operation is not allowed because of UpstreamKeepaliveEnabled.', 'http_code' => 400, 'description' => '不允许更新是否开启后端长连接为开启状态'],
['code' => 'OperationDenied.VgwVipNotFound', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'],
['code' => 'OperationDenied.VpcNotSupportIpv6', 'message' => 'The operation is not allowed because of VpcNotSupportIpv6.', 'http_code' => 400, 'description' => '不允许该操作,原因:当前VPC未开启IPv6功能'],
['code' => 'OperationDenied.VpcVportNotFound', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '不允许该操作,原因:vpc端口未找到'],
['code' => 'OperationDenied.WafVersionNotSupport', 'message' => 'The operation is not allowed because of WafVersionNotSupport.', 'http_code' => 400, 'description' => '不支持当前WAF版本,请升级到 WAF3.0 后重试。'],
['code' => 'OperationDenied.WrongTargetAddressType', 'message' => 'The operation is not allowed because of WrongTargetAddressType.', 'http_code' => 400, 'description' => '网络类型指定错误'],
['code' => 'OperationDenied.ZoneMappingsNotChanged', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是可用区没有变化。'."\n"],
['code' => 'OperationDenied.ZoneVSwitchChanged', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '操作被拒绝,原因是%s。'."\n"],
['code' => 'OperationDenied.ZoneVSwitchNotExist', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '实例不包含请求中的可用区和虚拟交换机'],
['code' => 'OperationDenyed.ServiceLinkedRoleNotExist', 'message' => 'The service linked role AliyunServiceRoleForAlb does not exist.', 'http_code' => 400, 'description' => '用户账号未关联阿里云服务角色 AliyunServiceRoleForAlb'],
['code' => 'OperationFailed.CancelShiftLoadBalancerZonesFailed', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '恢复此可用区中IP的DNS A记录失败'],
['code' => 'OperationFailed.CertCommonNameEmpty', 'message' => 'The operation failed because of CertCommonNameEmpty.', 'http_code' => 400, 'description' => '操作失败,原因是证书CommonName为空。'],
['code' => 'OperationFailed.DefaultCertificateNotFound', 'message' => 'The operation failed because of %s.', 'http_code' => 400, 'description' => '操作失败,原因是%s。'],
['code' => 'OperationFailed.LockFailed', 'message' => 'The operation failed because of LockFailed.', 'http_code' => 400, 'description' => '操作失败,原因是当前资源正在变配中。'],
['code' => 'OperationFailed.ResourceGroupStatusCheckFail', 'message' => 'The operation failed because of ResourceGroupStatusCheckFail.', 'http_code' => 400, 'description' => '操作失败,原因是ResourceGroupStatusCheckFail。'],
['code' => 'OperationFailed.ShiftLoadBalancerZonesFailed', 'message' => 'The operation is not allowed because of %s.', 'http_code' => 400, 'description' => '摘除此可用区中IP的DNS A记录失败'."\n"],
['code' => 'QuotaExceeded.AclEntriesNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.AclsNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.ConnectionDrainTimeout', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['code' => 'QuotaExceeded.HealthCheckTemplatesNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.LoadBalancerCertificatesNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.LoadBalancersNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.RuleActionsNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['code' => 'QuotaExceeded.RuleMatchEvaluationsNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '转发规则条件数已超额度限制。'."\n"],
['code' => 'QuotaExceeded.RuleWildcardsNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'."\n"],
['code' => 'QuotaExceeded.SecurityPoliciesNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.ServerGroupsNum', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'QuotaExceeded.SlowStartDuration', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => '参数%s超过配额限制,当前值%s,配额值%s。'],
['code' => 'ResourceAlreadyAssociated.Certificate', 'message' => 'The specified resource %s is already associated.', 'http_code' => 400, 'description' => '证书已被关联。'."\n"],
['code' => 'ResourceAlreadyAssociated.Listener', 'message' => 'The specified resource %s is already associated.', 'http_code' => 400, 'description' => '资源%s已被关联。'],
['code' => 'ResourceAlreadyAssociated.SecurityGroup', 'message' => 'The specified resource of %s is already associated.', 'http_code' => 400, 'description' => '安全组已经绑定了此负载均衡实例'],
['code' => 'ResourceAlreadyExist.AclEntry', 'message' => 'The specified resource %s already exists.', 'http_code' => 400, 'description' => '访问控制策略组中的IP条目已存在。'],
['code' => 'ResourceAlreadyExist.Listener', 'message' => 'The specified resource %s is already exist.', 'http_code' => 400, 'description' => '同端口监听已存在。'."\n"],
['code' => 'ResourceInConfiguring', 'message' => 'The specified resource of %s is being configured. Please try again later.', 'http_code' => 400, 'description' => '指定的资源在变更中,请稍后再试'],
['code' => 'ResourceInConfiguring.BackendServer', 'message' => 'The specified resource of BackendServer is being configured. Please try again later.', 'http_code' => 400, 'description' => '指定的资源BackendServer正在配置中,请稍后再试'],
['code' => 'ResourceInConfiguring.BackendServer', 'message' => 'The specified resource of %s is being configured, please try again later.', 'http_code' => 400, 'description' => '指定的资源%s正在配置中,请稍后再试'],
['code' => 'ResourceInConfiguring.Listener', 'message' => 'The specified resource %s is configuring, please try again later.', 'http_code' => 400, 'description' => '资源%s正在变配中,请稍后重试。'],
['code' => 'ResourceInConfiguring.Listener', 'message' => 'The specified listener is being configured, please try again later.', 'http_code' => 400, 'description' => '资源正在变配中,请稍后重试。'],
['code' => 'ResourceInConfiguring.Listener', 'message' => 'The specified resource is being configured, please try again later.', 'http_code' => 400, 'description' => '资源正在变配中,请稍后重试。'],
['code' => 'ResourceInConfiguring.Listener', 'message' => 'The specified resource of %s is being configured, please try again later.', 'http_code' => 400, 'description' => '指定的资源%s正在配置中,请稍后再试。'],
['code' => 'ResourceInConfiguring.LoadBalancer', 'message' => 'The specified resource of %s is being configured, please try again later.', 'http_code' => 400, 'description' => '指定的资源%s正在配置中,请稍后再试。'],
['code' => 'ResourceInConfiguring.SecurityPolicy', 'message' => 'The specified resource %s is being configured. Please try again later.', 'http_code' => 400, 'description' => '资源%s正在变配中,请稍后重试。'],
['code' => 'ResourceInUse.Acl', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '资源%s正在使用中。'],
['code' => 'ResourceInUse.Eni', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '资源%s正在使用中。'],
['code' => 'ResourceInUse.IP', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '资源%s正在使用中。'],
['code' => 'ResourceInUse.Listener', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '资源%s正在使用中。'."\n"],
['code' => 'ResourceInUse.SecurityPolicy', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '自定义安全策略正在使用中。'],
['code' => 'ResourceInUse.ServerGroup', 'message' => 'The specified resource %s is in use.', 'http_code' => 400, 'description' => '资源%s正在使用中。'],
['code' => 'ResourceInUse.ServerGroup', 'message' => 'The specified server group is in use.', 'http_code' => 400, 'description' => '服务器组正在使用中。'],
['code' => 'ResourceNotAssociated.Acl', 'message' => 'The specified resource %s is not associated.', 'http_code' => 404, 'description' => '资源%s未被关联。'],
['code' => 'ResourceNotAssociated.Certificate', 'message' => 'The specified resource %s is not associated.', 'http_code' => 400, 'description' => '资源%s未被关联。'],
['code' => 'ResourceNotAssociated.SecurityGroup', 'message' => 'The specified resource of %s is not associated.', 'http_code' => 400, 'description' => '安全组没有绑定此负载均衡实例'],
['code' => 'ResourceNotEnough.VSwitchIp', 'message' => 'The specified resource %s is not enough.', 'http_code' => 400, 'description' => '资源%s不足。'."\n"],
['code' => 'ResourceNotFound', 'message' => 'The specified resource (%s) is not found.', 'http_code' => 400, 'description' => '找不到指定的资源(%s)'],
['code' => 'ResourceNotFound.Acl', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '访问控制策略组ACL不存在。'],
['code' => 'ResourceNotFound.AclEntry', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.AScript', 'message' => 'The specified resource %s is not found.', 'http_code' => 400, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.Ascript', 'message' => 'The specified resource of %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.BackendServer', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '服务器组不存在。'],
['code' => 'ResourceNotFound.Certificate', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.Certificate', 'message' => 'The specified certificate is not found.', 'http_code' => 404, 'description' => '指定的证书不存在。'],
['code' => 'ResourceNotFound.CommonBandwidthPackage', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.Eci', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => 'Eci服务器不存在。'],
['code' => 'ResourceNotFound.Ecs', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => 'Ecs服务器不存在。'],
['code' => 'ResourceNotFound.Eip', 'message' => 'The specified resource ResourceNotFound.Eip is not found.', 'http_code' => 400, 'description' => '资源弹性公网IP不存在。'],
['code' => 'ResourceNotFound.Eni', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.HealthCheckTemplate', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.Ipv6Gateway', 'message' => 'The specified resource is not found.', 'http_code' => 404, 'description' => 'vpc ipv6网关资源不存在'],
['code' => 'ResourceNotFound.Listener', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '监听不存在。'],
['code' => 'ResourceNotFound.LoadBalancer', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.LoadBalancer', 'message' => 'The specified LoadBalancer is not found.', 'http_code' => 404, 'description' => '指定的实例不存在。'],
['code' => 'ResourceNotFound.LoadBalancer', 'message' => 'The specified resource of %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.ResourceGroup', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.Rule', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.SecurityGroup', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '找不到安全组资源'],
['code' => 'ResourceNotFound.SecurityPolicy', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'],
['code' => 'ResourceNotFound.ServerGroup', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '后端服务器组不存在。'],
['code' => 'ResourceNotFound.ServerLoadBalancer', 'message' => 'The specified resource of %s is not found.', 'http_code' => 404, 'description' => '找不到负载均衡资源'],
['code' => 'ResourceNotFound.Vpc', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => 'VPC不存在。'],
['code' => 'ResourceNotFound.VSwitch', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => '资源%s不存在。'."\n"],
['code' => 'ResourceQuotaExceeded.AclEntriesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.AScriptLinesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.AScriptsNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.AScriptsTotalLinesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.FcServerGroupServersNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.ListenerAclEntriesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.LoadBalancerAclEntriesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.LoadBalancerCertificatesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '实例证书已超额度限制。'],
['code' => 'ResourceQuotaExceeded.LoadBalancerListenersNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.LoadBalancerRulesNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '转发规则数已超额度限制。'],
['code' => 'ResourceQuotaExceeded.LoadBalancerServersNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '后端服务器数已超额度限制。'],
['code' => 'ResourceQuotaExceeded.SecurityGroupNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '实例绑定的安全组数目超限'],
['code' => 'ResourceQuotaExceeded.SecurityPolicyAttachedNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '配额%s已超额度限制,资源是%s,目前已使用%s,配额为%s。'],
['code' => 'ResourceQuotaExceeded.ServerAddedNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '服务器添加到组已超额度限制。'],
['code' => 'ResourceQuotaExceeded.ServerGroupAttachedNum', 'message' => 'The quota of %s is exceeded for resource %s, usage %s/%s.', 'http_code' => 400, 'description' => '服务器组可被关联数已超额度限制。'],
['code' => 'ServiceUnavailable', 'message' => 'The request has failed due to a temporary failure of the server.', 'http_code' => 400, 'description' => '请求因服务器暂时性故障而失败。'],
['code' => 'SystemBusy', 'message' => 'System is busy, please try again later.', 'http_code' => 400, 'description' => '当前系统繁忙,请稍后重试。'],
['code' => 'SystemBusy', 'message' => 'System is busy now, please try again later.', 'http_code' => 400, 'description' => '当前系统繁忙,请稍后重试。'],
['code' => 'Throttling', 'message' => 'Request was denied due to flow control.', 'http_code' => 429, 'description' => '当前请求过于频繁,请稍后重试。'],
['code' => 'UnauthorizedRegion', 'message' => 'The specified region of %s is not authorized.', 'http_code' => 403, 'description' => '指定地域实例不可见。'],
['code' => 'UnauthorizedZone', 'message' => 'The specified zone of %s is not authorized.', 'http_code' => 403, 'description' => '指定可用区%s不可见。'],
['code' => 'UnsupportedFeature.ConnectionDrain', 'message' => 'The feature of %s is not supported.', 'http_code' => 400, 'description' => '不支持%s特性。'],
['code' => 'UnsupportedFeature.CookieForward', 'message' => 'The feature of CookieForward is not supported.', 'http_code' => 400, 'description' => '基于COOKIE转发特性不支持。'],
['code' => 'UnsupportedFeature.CustomizeTLS', 'message' => 'The feature of CustomizeTLS is not supported.', 'http_code' => 400, 'description' => '自定义TLS算法套件特性不支持。'],
['code' => 'UnsupportedFeature.FcServerGroup', 'message' => 'The feature of TcpFastClose is not supported.', 'http_code' => 400, 'description' => 'ALB挂函数计算FC性还未支持。'],
['code' => 'UnsupportedFeature.FcServerGroup', 'message' => 'Server groups of type FC are not supported.', 'http_code' => 400, 'description' => '不支持FC类型的服务器组'],
['code' => 'UnsupportedFeature.FC_SUPPORT_CA', 'message' => 'The feature of FC SUPPORT CA is not supported.', 'http_code' => 400, 'description' => '监听不支持双向认证'],
['code' => 'UnsupportedFeature.FixResponse', 'message' => 'The feature of FixResponse is not supported.', 'http_code' => 400, 'description' => '返回固定响应特性不支持。'],
['code' => 'UnsupportedFeature.FullTraceHttps', 'message' => 'The feature of FullTraceHttps is not supported for current instance.', 'http_code' => 400, 'description' => '当前实例版本不支持全链路HTTPS特性。'],
['code' => 'UnsupportedFeature.GroupStickySession', 'message' => 'The feature of GroupStickySession is not supported.', 'http_code' => 400, 'description' => '服务器组间会话保持特性还未支持。'],
['code' => 'UnsupportedFeature.GRPC', 'message' => 'The feature of GRPC is not supported.', 'http_code' => 400, 'description' => 'Grpc特性还未支持。'],
['code' => 'UnsupportedFeature.HttpMethodForward', 'message' => 'The feature of HttpMethodForward is not supported.', 'http_code' => 400, 'description' => '基于HTTP Method转发特性不支持。'],
['code' => 'UnsupportedFeature.IpServerGroup', 'message' => 'The feature of IpServerGroup is not supported.', 'http_code' => 400, 'description' => 'IP Target的后端服务器组类型还未支持。'],
['code' => 'UnsupportedFeature.QueryStringForward', 'message' => 'The feature of QueryStringForward is not supported.', 'http_code' => 400, 'description' => '基于QueryString转发特性不支持。'],
['code' => 'UnsupportedFeature.ResponseRule', 'message' => 'The feature of ResponseRule is not supported.', 'http_code' => 400, 'description' => '不支持Response方向的转发规则配置。'],
['code' => 'UnsupportedFeature.Rewrite', 'message' => 'The feature of Rewrite is not supported.', 'http_code' => 400, 'description' => '不支持转发规则Rewrite动作。'],
['code' => 'UnsupportedFeature.SelectCommonBandwidthPackage', 'message' => 'The feature of SelectCommonBandwidthPackage is not supported.', 'http_code' => 400, 'description' => '实例不支持绑定共享带宽包'],
['code' => 'UnsupportedFeature.ServiceName', 'message' => 'The feature of ServiceName is not supported.', 'http_code' => 400, 'description' => '不支持ServiceName特性'],
['code' => 'UnsupportedFeature.SlowStart', 'message' => 'The feature of %s is not supported.', 'http_code' => 400, 'description' => '不支持%s特性。'],
['code' => 'UnsupportedFeature.SourceIpCondition', 'message' => 'The feature of SourceIpCondition is not supported.', 'http_code' => 400, 'description' => '基于源IP业务流量匹配特性还未支持。'],
['code' => 'UnsupportedFeature.SupportCA', 'message' => 'The feature of SupportCA is not supported.', 'http_code' => 400, 'description' => '不支持双向认证特性。'],
['code' => 'UnsupportedFeature.TcpFastClose', 'message' => 'The feature of TcpFastClose is not supported.', 'http_code' => 400, 'description' => '健康检查快速关闭特性还未支持。'],
['code' => 'UnsupportedFeature.UpstreamKeepalive', 'message' => 'The feature of UpstreamKeepalive is not supported.', 'http_code' => 400, 'description' => '不支持开启后端长链接特性'],
['code' => 'UnsupportedRegion', 'message' => 'The feature of %s is not supported in region of %s.', 'http_code' => 400, 'description' => '特性%s还未在地域%s开通。'],
['code' => 'UnsupportedZone', 'message' => 'The feature of %s is not supported in zone of %s.', 'http_code' => 400, 'description' => '特性%s还未在可用区%s开通。'],
['code' => 'OperationDenied.DeploymentSetsNotSharedToAlb', 'message' => 'DeploymentSets are not shared to alb.', 'http_code' => 400, 'description' => '部署集没有共享给ALB。'],
['code' => 'OperationDenied.CACertificateCorrupted', 'message' => 'The CA certificate is corrupted.', 'http_code' => 400, 'description' => 'CA证书已经损坏'],
],
'changeSet' => [],
'ram' => [
'productCode' => 'ALB',
'productName' => '负载均衡',
'ramCodes' => ['alb'],
'ramLevel' => '资源级',
'ramConditions' => [
[
'name' => 'alb:ServerGroupProtocol',
'schema' => [
'type' => 'String',
'description' => '应用型负载均衡的服务器组协议类型',
'enums' => ['GRPC', 'HTTP', 'HTTPS'],
],
],
[
'name' => 'alb:AddressType',
'schema' => [
'type' => 'String',
'description' => '应用型负载均衡的地址类型',
'enums' => ['Internet', 'Intranet'],
],
],
[
'name' => 'alb:ListenerProtocol',
'schema' => [
'type' => 'String',
'description' => '应用型负载均衡的监听协议类型',
'enums' => ['HTTP', 'HTTPS', 'QUIC'],
],
],
],
'ramActions' => [
[
'apiName' => 'UpdateListenerLogConfig',
'description' => '更新监听日志相关属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateListenerLogConfig',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'EnableLoadBalancerAccessLog',
'description' => '开启访问日志',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableLoadBalancerAccessLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'AssociateAdditionalCertificatesWithListener',
'description' => '关联扩展证书和监听',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AssociateAdditionalCertificatesWithListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'AttachCommonBandwidthPackageToLoadBalancer',
'description' => '实例绑定共享带宽包',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:AttachCommonBandwidthPackageToLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'CreateRule',
'description' => '创建转发规则',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'ListTagValues',
'description' => '查询标签值',
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListTagValues',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteHealthCheckTemplates',
'description' => '批量删除健康检查模板',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteHealthCheckTemplates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#HealthCheckTemplatesId}'],
],
],
],
[
'apiName' => 'CreateSecurityPolicy',
'description' => '创建自定义安全策略',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateSecurityPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/*'],
],
],
],
[
'apiName' => 'GetHealthCheckTemplateAttribute',
'description' => '查询健康检查模板详细信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetHealthCheckTemplateAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthchecktemplateId}'],
],
],
],
[
'apiName' => 'UpdateServerGroupServersAttribute',
'description' => '更新后端服务器配置',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateServerGroupServersAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:ecs:{#regionId}:{#accountId}:ecs/{#ecsId}'],
],
],
],
[
'apiName' => 'DeleteRule',
'description' => '删除转发规则',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteRule',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'acs:ResourceTag', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'GetListenerAttribute',
'description' => '查询监听器的属性',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetListenerAttribute',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'acs:ResourceTag', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'DissociateAclsFromListener',
'description' => '解除关联访问控制和监听',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DissociateAclsFromListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'UpdateAScripts',
'description' => '更新可编程脚本',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'UpdateListenerAttribute',
'description' => '更新监听的配置',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateListenerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'UpdateRulesAttribute',
'description' => '批量更新转发规则属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateRulesAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
],
],
],
[
'apiName' => 'DeleteSecurityPolicy',
'description' => '删除安全策略',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteSecurityPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
],
],
],
[
'apiName' => 'UpdateLoadBalancerAttribute',
'description' => '更新负载均衡实例属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'LoadBalancerJoinSecurityGroup',
'description' => '负载均衡实例加入安全组',
'operationType' => 'none',
'ramAction' => [
'action' => 'alb:LoadBalancerJoinSecurityGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'AddEntriesToAcl',
'description' => '添加访问控制条目',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AddEntriesToAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'DisableDeletionProtection',
'description' => '关闭删除保护',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableDeletionProtection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListAclEntries',
'description' => '查询访问控制条目',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAclEntries',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'UpdateLoadBalancerEdition',
'description' => '变更负载均衡版本',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerEdition',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'ListListenerCertificates',
'description' => '查询监听证书',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListListenerCertificates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'UpdateSecurityPolicyAttribute',
'description' => '更新安全策略属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateSecurityPolicyAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
],
],
],
[
'apiName' => 'CreateAcl',
'description' => '创建访问控制',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/*'],
],
],
],
[
'apiName' => 'AddServersToServerGroup',
'description' => '添加后端服务器',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AddServersToServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
[
'apiName' => 'UpdateAclAttribute',
'description' => '更新访问控制的属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateAclAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'EnableDeletionProtection',
'description' => '开启删除保护',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableDeletionProtection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'CreateLoadBalancer',
'description' => '创建应用型负载均衡实例',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/*'],
],
],
],
[
'apiName' => 'UpdateHealthCheckTemplateAttribute',
'description' => '更新健康检查模板的属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateHealthCheckTemplateAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthchecktemplateId}'],
],
],
],
[
'apiName' => 'UpdateLoadBalancerZones',
'description' => '更新负载均衡可用区',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListHealthCheckTemplates',
'description' => '查询健康检查模板',
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListHealthCheckTemplates',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/*'],
],
],
],
[
'apiName' => 'RemoveServersFromServerGroup',
'description' => '移除后端服务器',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:RemoveServersFromServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
[
'apiName' => 'RemoveEntriesFromAcl',
'description' => '移除访问控制条目',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:RemoveEntriesFromAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'CreateRules',
'description' => '批量创建转发规则',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'UpdateLoadBalancerAddressTypeConfig',
'description' => '变更负载均衡实例的网络类型配置',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateLoadBalancerAddressTypeConfig',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'DetachCommonBandwidthPackageFromLoadBalancer',
'description' => '实例解绑共享带宽包',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DetachCommonBandwidthPackageFromLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'DeleteListener',
'description' => '删除监听',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'StartShiftLoadBalancerZones',
'description' => '把可用区的EIP/VIP从域名解析中摘除',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StartShiftLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'ListSecurityPolicies',
'description' => '查询自定义安全策略',
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListSecurityPolicies',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/*'],
],
],
],
[
'apiName' => 'ListRules',
'description' => '查询转发规则',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'DisableLoadBalancerAccessLog',
'description' => '关闭访问日志',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableLoadBalancerAccessLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'UpdateServerGroupAttribute',
'description' => '更新服务器组配置',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateServerGroupAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'MoveResourceGroup',
'description' => '修改资源组',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:MoveResourceGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'ListServerGroupServers',
'description' => '查询服务器',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListServerGroupServers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'AssociateAclsWithListener',
'description' => '关联访问控制和监听',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:AssociateAclsWithListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'LoadBalancerLeaveSecurityGroup',
'description' => '负载均衡实例移出安全组',
'operationType' => 'none',
'ramAction' => [
'action' => 'alb:LoadBalancerLeaveSecurityGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'StartListener',
'description' => '启动监听',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StartListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListTagResources',
'description' => '查询资源标签',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securityPolicyId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'DisableLoadBalancerIpv6Internet',
'description' => '关闭负载均衡IPv6公网',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:DisableLoadBalancerIpv6Internet',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'ListListeners',
'description' => '查询监听',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListListeners',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListAclRelations',
'description' => '查询访问控制关联关系',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAclRelations',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
],
],
],
[
'apiName' => 'EnableLoadBalancerIpv6Internet',
'description' => '开启负载均衡IPv6公网',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:EnableLoadBalancerIpv6Internet',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:AddressType', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'UpdateRuleAttribute',
'description' => '更新转发规则属性',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:UpdateRuleAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
],
],
],
[
'apiName' => 'DeleteAScripts',
'description' => '删除可编程脚本',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'CreateServerGroup',
'description' => '创建服务器组',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateServerGroup',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:ServerGroupProtocol', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/*'],
],
],
],
[
'apiName' => 'UnTagResources',
'description' => '删除资源的标签',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:UnTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#SecurityPolicyId}'],
],
],
],
[
'apiName' => 'CreateHealthCheckTemplate',
'description' => '创建健康检查模板',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateHealthCheckTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/*'],
],
],
],
[
'apiName' => 'StopListener',
'description' => '停止监听',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:StopListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'DeleteLoadBalancer',
'description' => '删除负载均衡实例',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteLoadBalancer',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'DeleteAcl',
'description' => '删除访问控制',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteAcl',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
],
],
],
[
'apiName' => 'CreateListener',
'description' => '创建监听',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateListener',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'alb:ListenerProtocol', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'DeleteServerGroup',
'description' => '删除服务器组',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
],
],
],
[
'apiName' => 'TagResources',
'description' => '给资源添加标签',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#AclId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#SecurityPolicyId}'],
],
],
],
[
'apiName' => 'ListAsynJobs',
'description' => '查询异步任务',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListAsynJobs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListAcls',
'description' => '查询访问控制列表',
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListAcls',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/*'],
],
],
],
[
'apiName' => 'GetLoadBalancerAttribute',
'description' => '查询负载均衡实例的详细信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetLoadBalancerAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ReplaceServersInServerGroup',
'description' => '替换后端服务器组中的后端服务器',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:ReplaceServersInServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
],
],
],
[
'apiName' => 'ListAScripts',
'description' => '查询可编程脚本列表',
'operationType' => 'list',
'ramAction' => [
'action' => 'alb:ListAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'GetListenerHealthStatus',
'description' => '查询健康检查',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:GetListenerHealthStatus',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListLoadBalancers',
'description' => '查询负载均衡',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListLoadBalancers',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/*'],
['validationType' => 'conditional', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'DeleteRules',
'description' => '批量删除转发规则',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DeleteRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'CreateAScripts',
'description' => '创建可编程脚本',
'operationType' => 'create',
'ramAction' => [
'action' => 'alb:CreateAScripts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListServerGroups',
'description' => '查询服务器组',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListServerGroups',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/*'],
],
],
],
[
'apiName' => 'ListTagKeys',
'description' => '查询标签键',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListTagKeys',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelShiftLoadBalancerZones',
'description' => '把可用区的EIP/VIP加到DNS中',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:CancelShiftLoadBalancerZones',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}'],
],
],
],
[
'apiName' => 'DissociateAdditionalCertificatesFromListener',
'description' => '解除监听和扩展证书关联',
'operationType' => 'delete',
'ramAction' => [
'action' => 'alb:DissociateAdditionalCertificatesFromListener',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
],
],
],
[
'apiName' => 'ListSecurityPolicyRelations',
'description' => '查询安全策略关联关系',
'operationType' => 'get',
'ramAction' => [
'action' => 'alb:ListSecurityPolicyRelations',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicy}'],
],
],
],
[
'apiName' => 'ApplyHealthCheckTemplateToServerGroup',
'description' => '应用健康检查模板到服务组',
'operationType' => 'update',
'ramAction' => [
'action' => 'alb:ApplyHealthCheckTemplateToServerGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthCheckTemplateId}'],
['validationType' => 'always', 'product' => 'ALB', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#serverGroupId}'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}'],
['validationType' => 'always', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/{#servergroupId}'],
['validationType' => 'conditional', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/*'],
['validationType' => 'conditional', 'resourceType' => 'ServerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:servergroup/*'],
['validationType' => 'conditional', 'resourceType' => 'LoadBalancer', 'arn' => 'acs:alb:{#regionId}:{#accountId}:loadbalancer/*'],
['validationType' => 'conditional', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/*'],
['validationType' => 'always', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#HealthCheckTemplatesId}'],
['validationType' => 'always', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/{#healthchecktemplateId}'],
['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:ecs:{#regionId}:{#accountId}:ecs/{#ecsId}'],
['validationType' => 'always', 'resourceType' => 'Acl', 'arn' => 'acs:alb:{#regionId}:{#accountId}:acl/{#aclId}'],
['validationType' => 'always', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicyId}'],
['validationType' => 'conditional', 'resourceType' => 'Instance', 'arn' => 'acs:alb:{#regionId}:{#accountId}:ecs/{#InstanceId}'],
['validationType' => 'conditional', 'resourceType' => 'NetworkInterface', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}'],
['validationType' => 'conditional', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:alb:{#regionId}:{#accountId}:eci/{#ContainerGroupId}'],
['validationType' => 'always', 'resourceType' => 'HealthCheckTemplate', 'arn' => 'acs:alb:{#regionId}:{#accountId}:healthchecktemplate/*'],
['validationType' => 'always', 'resourceType' => 'SecurityPolicy', 'arn' => 'acs:alb:{#regionId}:{#accountId}:securitypolicy/{#securitypolicy}'],
],
],
];
|