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
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'Edas', 'version' => '2017-08-01'],
'directories' => [
[
'children' => ['UpdateAccountInfo', 'ListRole', 'ListSubAccount', 'ListAuthority', 'GetPackageStorageCredential', 'InsertRole', 'AuthorizeRole', 'AuthorizeApplication', 'AuthorizeResourceGroup'],
'type' => 'directory',
'title' => '系统管理',
'id' => 142987,
],
[
'children' => [
[
'children' => ['DeleteUserDefineRegion', 'ListAliyunRegion', 'QueryMigrateRegionList', 'ListCluster', 'GetCluster', 'ListVpc', 'QueryRegionConfig', 'ListApplicationEcu', 'ListResourceGroup'],
'type' => 'directory',
'title' => 'ECS集群和K8s集群',
'id' => 142876,
],
[
'children' => ['CreateIDCImportCommand', 'DeleteClusterMember', 'DeleteEcu', 'ListClusterMembers', 'ListEcuByRegion', 'ListConvertableEcu', 'ListEcsNotInCluster', 'QueryMigrateEcuList', 'ListScaleOutEcu', 'ListSlb', 'BindSlb', 'InsertCluster', 'InsertClusterMember', 'TransformClusterMember', 'MigrateEcu', 'SynchronizeResource'],
'type' => 'directory',
'title' => 'ECS集群',
'id' => 142890,
],
[
'children' => ['UpdateK8sResource', 'GetK8sCluster', 'ListK8sNamespaces', 'ImportK8sCluster'],
'type' => 'directory',
'title' => 'K8s集群',
'id' => 142908,
],
],
'type' => 'directory',
'title' => '资源管理',
'id' => 142875,
],
[
'children' => [
[
'children' => ['UpdateHealthCheckUrl', 'GetChangeOrderInfo', 'GetSecureToken', 'QueryEccInfo', 'GetScalingRules', 'ListUserDefineRegion', 'GetContainerConfiguration', 'ListApplication', 'ListDeployGroup', 'ListHistoryDeployVersion', 'ListRecentChangeOrder', 'ListBuildPack', 'InsertOrUpdateRegion', 'SwitchAdvancedMonitoring', 'ContinuePipeline', 'AbortChangeOrder', 'RollbackChangeOrder'],
'type' => 'directory',
'title' => 'ECS集群和K8s集群通用',
'id' => 142914,
],
[
'children' => [
'UpdateApplicationBaseInfo', 'AddLogPath', 'DeleteLogPath', 'DeleteDeployGroup', 'UpdateHookConfiguration', 'StartApplication', 'StopApplication', 'UpdateContainer', 'UpdateContainerConfiguration', 'ChangeDeployGroup', 'UpdateJvmConfiguration', 'GetJvmConfiguration', 'QueryApplicationStatus', 'InsertDeployGroup', 'BindEcsSlb', 'UnbindSlb', 'InsertApplication', 'DeployApplication', 'ScaleoutApplicationWithNewInstances', 'ScaleOutApplication',
'ScaleInApplication', 'ResetApplication', 'RestartApplication',
],
'type' => 'directory',
'title' => 'ECS集群专属',
'id' => 142932,
],
[
'children' => [
'CreateK8sService', 'DeleteK8sApplication', 'DeleteK8sService', 'UpdateK8sApplicationBaseInfo', 'UpdateK8sApplicationConfig', 'StartK8sApplication', 'StopK8sApplication', 'UpdateK8sSlb', 'UpdateK8sService', 'UpdateSlsLogStore', 'StartK8sAppPrecheck', 'GetK8sApplication', 'GetK8sServices', 'QuerySlsLogStoreList', 'GetAppDeployment', 'DescribeAppInstanceList', 'GetK8sAppPrecheckResult', 'BindK8sSlb', 'UnbindK8sSlb', 'InsertK8sApplication',
'DeployK8sApplication', 'ScaleK8sApplication', 'RestartK8sApplication', 'ConvertK8sResource', 'AbortAndRollbackChangeOrder',
],
'type' => 'directory',
'title' => 'K8s集群专属',
'id' => 142961,
],
],
'type' => 'directory',
'title' => '应用管理',
'id' => 142913,
],
[
'children' => ['UpdateLocalitySetting', 'DeleteServiceGroup', 'GetServiceConsumersPage', 'GetServiceListPage', 'GetServiceMethodPage', 'GetServiceProvidersPage', 'ListConsumedServices', 'ListPublishedServices', 'GetServiceDetail', 'ListMethods', 'ListServiceGroups', 'InsertServiceGroup'],
'type' => 'directory',
'title' => '服务管理',
'id' => 142862,
],
[
'children' => ['CreateK8sIngressRule', 'DeleteK8sIngressRule', 'UpdateK8sIngressRule', 'ListK8sIngressRules'],
'type' => 'directory',
'title' => '应用路由',
'id' => 142857,
],
[
'children' => ['CreateConfigTemplate', 'CreateK8sConfigMap', 'CreateK8sSecret', 'DeleteConfigTemplate', 'DeleteK8sConfigMap', 'DeleteK8sSecret', 'UpdateConfigTemplate', 'UpdateK8sConfigMap', 'UpdateK8sSecret', 'ListConfigTemplates', 'GetJavaStartUpConfig', 'GetWebContainerConfig', 'ListK8sConfigMaps', 'ListK8sSecrets', 'RetryChangeOrderTask'],
'type' => 'directory',
'title' => '配置管理',
'id' => 143006,
],
[
'children' => ['CreateApplicationScalingRule', 'DeleteApplicationScalingRule', 'DisableApplicationScalingRule', 'EnableApplicationScalingRule', 'UpdateApplicationScalingRule', 'DescribeApplicationScalingRules'],
'type' => 'directory',
'title' => '弹性伸缩',
'id' => 142999,
],
[
'children' => ['InsertSwimmingLaneGroup', 'InsertSwimmingLane', 'DeleteSwimmingLane', 'UpdateSwimmingLaneGroup', 'UpdateSwimmingLane', 'ListSwimmingLaneGroup', 'ListSwimmingLane'],
'type' => 'directory',
'title' => '泳道管理',
'id' => 143022,
],
[
'children' => ['DeleteApplication', 'DeleteCluster', 'DeleteRole', 'DescribeLocalitySetting', 'GetApplication', 'InstallAgent', 'ListComponents', 'ListTagResources', 'ModifyScalingRule', 'RollbackApplication', 'TagResources', 'UntagResources', 'UpdateRole'],
'title' => '其他',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'AbortAndRollbackChangeOrder' => [
'path' => '/pop/v5/changeorder/change_order_abort_and_rollback',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ChangeOrderId',
'in' => 'query',
'schema' => ['description' => '变更单ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '6b55106c-c7f2-40f7-a1d4-092870*****'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或 POP 错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '81E0B333-2871-****-****-B8F5FF43****'],
'TraceId' => ['description' => '调用链ID。', 'type' => 'string', 'example' => '210f07bf1640239405712621******'],
'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '变更单信息。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更单ID。', 'type' => 'string', 'example' => '4f40e616-cdcd-4250-a018-efd459******'],
],
],
],
],
],
],
'errorCodes' => [],
'title' => '终止并回滚变更单',
'summary' => '调用AbortAndRollbackChangeOrder接口终止并回滚变更单,适用于容器服务K8s集群中的应用。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AbortAndRollbackChangeOrder'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"81E0B333-2871-****-****-B8F5FF43****\\",\\n \\"TraceId\\": \\"210f07bf1640239405712621******\\",\\n \\"ErrorCode\\": \\"success\\",\\n \\"Data\\": {\\n \\"ChangeOrderId\\": \\"4f40e616-cdcd-4250-a018-efd459******\\"\\n }\\n}","type":"json"}]',
],
'AbortChangeOrder' => [
'path' => '/pop/v5/changeorder/change_order_abort',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ChangeOrderId',
'in' => 'query',
'schema' => ['description' => '变更流程ID,可调用GetChangeOrderInfo接口获取,详情请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4f038ddf-b27b-****-****-88e44375****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57F146F6-3C94-****-****-A66EF4B9*****'],
'TraceId' => ['description' => '调用链ID', 'type' => 'string', 'example' => '0b59000b15947****55688656d****'],
'ErrorCode' => ['description' => '错误码', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '变更流程',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID', 'type' => 'string', 'example' => '4f038ddf-b27b-****-****-88e44375****'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '终止变更流程',
'summary' => '调用AbortChangeOrder接口终止变更流程。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AbortChangeOrder'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57F146F6-3C94-****-****-A66EF4B9*****\\",\\n \\"TraceId\\": \\"0b59000b15947****55688656d****\\",\\n \\"ErrorCode\\": \\"success\\",\\n \\"Data\\": {\\n \\"ChangeOrderId\\": \\"4f038ddf-b27b-****-****-88e44375****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<AbortChangeOrder>\\r\\n\\t <Data>\\r\\n\\t\\t <ChangeOrderId>4f038ddf-b27b-****-****-88e44375****</ChangeOrderId>\\r\\n\\t </Data>\\r\\n\\t <Message>success</Message>\\r\\n\\t <TraceId>0b59000b15947****55688656d****</TraceId>\\r\\n <RequestId>57F146F6-3C94-****-****-A66EF4B9*****</RequestId>\\r\\n\\t <Success>true</Success>\\r\\n\\t <ErrorCode>success</ErrorCode>\\r\\n\\t <Code>200</Code>\\r\\n</AbortChangeOrder>","errorExample":""}]',
],
'AddLogPath' => [
'summary' => '适用于在阿里云和非阿里云ECS集群中部署的应用。',
'path' => '/pop/v5/log/popListLogDirs',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
'parameters' => [
[
'name' => 'AppId',
'in' => 'formData',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413**********'],
],
[
'name' => 'Path',
'in' => 'formData',
'schema' => ['description' => '待收藏的应用日志的绝对路径。应用日志路径必须以`/`开头和结尾,并且路径中必须包含`/log`或者`/logs`。EDAS默认目录如下:'."\n"
.'- /home/admin/edas-container/logs/'."\n"
.'- /home/admin/taobao-tomcat-7.0.59/logs/ '."\n"
.'- /home/admin/taobao-tomcat-production-7.0.59.3/logs/'."\n"
.'- /home/admin/taobao-tomcat-production-7.0.70/logs/'."\n"
.'- /home/admin/edas-agent/logs/'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '/temp/log/'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '3616cdca-4f92-4413**********'],
],
'description' => '',
],
],
],
'title' => '添加日志目录',
'responseParamsDescription' => '{'."\n"
.' "Code": 200,'."\n"
.' "Message": "success",'."\n"
.' "RequestId": "3616cdca-4f92-4413**********"'."\n"
.'}',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:16.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:16.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddLogPath'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageAppLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"3616cdca-4f92-4413**********\\"\\n}","type":"json"}]',
],
'AuthorizeApplication' => [
'summary' => '为子账号或RAM用户授予应用的操作权限。',
'path' => '/pop/v5/account/authorize_app',
'methods' => ['post', 'delete', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => '待授权子账号或 RAM 用户的 USER ID,格式为子账号名称@主账号 UID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test@133434434****'],
],
[
'name' => 'AppIds',
'in' => 'query',
'schema' => ['description' => '应用ID。用半角分号(;)分割,null表示取消授权。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5fdf50e8-*****;696-******'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => 'E3DA95D3-**********'],
],
'description' => '',
],
],
],
'title' => '为子账号授权应用',
'responseParamsDescription' => '{'."\n"
.' "Code": 200,'."\n"
.' "Message": "success",'."\n"
.' "RequestId": "E3DA95D3-**********"'."\n"
.'}',
'changeSet' => [
['createdAt' => '2022-09-14T08:32:01.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:32:01.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:AuthorizeApplication',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"E3DA95D3-**********\\"\\n}","type":"json"}]',
],
'AuthorizeResourceGroup' => [
'summary' => '为子账号或RAM用户授予指定资源组的操作权限。',
'path' => '/pop/v5/account/authorize_res_group',
'methods' => ['post', 'delete', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => '待授权的子账号或 RAM 用户的 ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test@13333********'],
],
[
'name' => 'ResourceGroupIds',
'in' => 'query',
'schema' => ['description' => '资源组ID。可以通过调用ListResourceGroup接口获取,具体操作,请参见[ListResourceGroup](~~62055~~)。'."\n"
."\n"
.'支持设置多个资源组,资源组之间用英文分号(;)分隔。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '461;462'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57609587-DFA2-**********'],
],
'description' => '',
],
],
],
'title' => '为子账号授予资源组的操作权限',
'responseParamsDescription' => '{'."\n"
.' "Code": 200,'."\n"
.' "Message": "success",'."\n"
.' "RequestId": "57609587-DFA2-**********"'."\n"
.'}',
'changeSet' => [
['createdAt' => '2024-02-06T08:28:19.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeResourceGroup'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:AuthorizeResourceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57609587-DFA2-**********\\"\\n}","type":"json"}]',
],
'AuthorizeRole' => [
'path' => '/pop/v5/account/authorize_role',
'methods' => ['post', 'delete', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => '待授权子账号 ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test@133******'],
],
[
'name' => 'RoleIds',
'in' => 'query',
'schema' => ['description' => '角色 ID,用“;”号分割,null 代表取消角色授权', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1;2'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57609587-DFA2-*******'],
],
'description' => '',
],
],
],
'title' => '授权角色',
'summary' => '授权角色。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-06T09:33:34.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeRole'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:AuthorizeRole',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57609587-DFA2-*******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>57609587-DFA2-41EC-****-*********</RequestId>\\n<Code>200</Code>\\n<Message>sucess</Message>","errorExample":""}]',
],
'BindEcsSlb' => [
'summary' => '调用BindEcsSlb接口来给部署在ECS集群中的应用绑定SLB。',
'path' => '/pop/v5/app/slb/bind_slb',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-*****-ed2ae98de18d'],
],
[
'name' => 'SlbId',
'in' => 'query',
'schema' => ['description' => 'SLB实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'lb-uf6j54m3a****cj01jx8'],
],
[
'name' => 'ListenerPort',
'in' => 'query',
'schema' => ['description' => 'SLB监听端口', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '80'],
],
[
'name' => 'VServerGroupId',
'in' => 'query',
'schema' => ['description' => 'SLB虚拟服务器组ID', 'type' => 'string', 'required' => false, 'example' => 'rsp-2ze****6l*****'],
],
[
'name' => 'ListenerProtocol',
'in' => 'query',
'schema' => ['description' => 'SLB监听协议', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'tcp'],
],
[
'name' => 'DeployGroupId',
'in' => 'query',
'schema' => ['description' => '绑定的部署分组ID,可通过调用ListDeployGroup接口来获取,详情请参见[ListDeployGroup](~~62077~~)。', 'type' => 'string', 'required' => false, 'example' => '577f4c50-16ee-43d8-****-****'],
],
[
'name' => 'VServerGroupName',
'in' => 'query',
'schema' => ['description' => '虚拟服务器组名', 'type' => 'string', 'required' => false, 'example' => '****/31405/internet-test-ack-test****/default/clusterid'],
],
[
'name' => 'ListenerHealthCheckUrl',
'in' => 'query',
'schema' => ['description' => '健康检查路径', 'type' => 'string', 'required' => false, 'example' => '/_ehc.html'],
],
[
'name' => 'VForwardingUrlRule',
'in' => 'query',
'schema' => ['description' => 'SLB转发规则', 'type' => 'string', 'required' => false, 'example' => 'example.com/forwarding'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '此次变更对应的变更记录ID', 'type' => 'string', 'example' => 'cd65b247-****-475b-ad4b-7039040d625c'],
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '来给部署在ECS集群中的应用绑定SLB',
'responseParamsDescription' => '{'."\n"
.' "ChangeOrderId": "cd65b247-****-475b-ad4b-7039040d625c",'."\n"
.' "Code": 200,'."\n"
.' "Message": "success",'."\n"
.' "RequestId": "03FD1520-0FD6-436A-****-265318D7****"'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindEcsSlb'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ConfigApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ChangeOrderId\\": \\"cd65b247-****-475b-ad4b-7039040d625c\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\"\\n}","type":"json"}]',
],
'BindK8sSlb' => [
'summary' => '绑定SLB到容器服务K8s集群中的应用。',
'path' => '/pop/v5/k8s/acs/k8s_slb_binding',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '712082c3-f554-****-****-a947b5cde6ee'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '设置SLB的类型:'."\n"
.'* internet:公网SLB。'."\n"
.'* intranet:私网SLB。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet'],
],
[
'name' => 'SlbId',
'in' => 'query',
'schema' => ['description' => 'SLB ID。不配置时,EDAS会自动为用户新购SLB。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'lb-2ze1quax9t****iz82bjt'],
],
[
'name' => 'SlbProtocol',
'in' => 'query',
'schema' => ['description' => 'SLB协议,目前支持TCP、HTTP和HTTPS协议。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'TCP'],
],
[
'name' => 'TargetPort',
'in' => 'query',
'schema' => ['description' => '后端端口,也是应用的服务端口,范围1~65535。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '8080'],
],
[
'name' => 'Port',
'in' => 'query',
'schema' => ['description' => '前端端口,范围1~65535。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '80'],
],
[
'name' => 'ServicePortInfos',
'in' => 'query',
'schema' => ['description' => '多个端口需求以及非TCP协议需求填写字段。'."\n"
.'必须符合JsonArray格式,参考示例:'."\n"
.'[{"targetPort":8080,"port":82,"loadBalancerProtocol":"TCP"},{"port":81,"certId":"1362469756373809_16c185d6fa2_1914500329_-xxxxxxx","targetPort":8181,"lo'."\n"
.'adBalancerProtocol":"HTTPS"}]'."\n"
.'- port:必填,前端端口,范围 1~65535。不能重复。'."\n"
.'- targetPort: 必填,后端端口,范围 1~65535。'."\n"
.'- loadBalancerProtocol:必填,只支持TCP和HTTPS,对于HTTP类型的填写TCP即可。'."\n"
.'- certId:如果是HTTPS,则该参数必填证书ID,可以在SLB控制台进行购买。'."\n"
.'> 该参数用来支持多端口支持,需要配合appId、clusterId、type、slbId进行使用。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '[{"targetPort":8080,"port":82,"loadBalancerProtocol":"TCP"},{"port":81,"certId":"136246975637380916c185d6fa21914500329_-988as","targetPort":8181,"lo adBalancerProtocol":"HTTPS"}]'],
],
[
'name' => 'Specification',
'in' => 'query',
'schema' => ['description' => '负载均衡实例的规格:'."\n"
."\n"
.'* slb.s1.small'."\n"
.'* slb.s2.small'."\n"
.'* slb.s2.medium'."\n"
.'* slb.s3.small'."\n"
.'* slb.s3.medium'."\n"
.'* slb.s3.large', 'type' => 'string', 'required' => false, 'example' => 'slb.s1.small'],
],
[
'name' => 'Scheduler',
'in' => 'query',
'schema' => ['description' => 'SLB调度算法。不填写则默认值为rr。支持负载均衡支持轮询 (rr)、加权轮询 (wr) 两种调度算法。'."\n"
."\n"
.'- 加权轮询 (wrr):权重值越高的后端服务器,被轮询到的次数(概率)也越高。'."\n"
.'- 轮询 (rr):按照访问顺序依次将外部请求分发到后端服务器。', 'type' => 'string', 'required' => false, 'example' => 'wrr'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'b4b37bde-a125-****-****-741f7f4a9ae3'],
'Code' => ['description' => '接口响应码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-****'],
],
'description' => '',
],
],
],
'title' => '绑定SLB到集群中的应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:38:57.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:38:57.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindK8sSlb'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:SLBPurchase',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"b4b37bde-a125-****-****-741f7f4a9ae3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-****\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>b4b37bde-a125-43fc-9f8e-741f7f4a9ae3</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'BindSlb' => [
'path' => '/pop/app/bind_slb_json',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => 'EDAS应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-*********'],
],
[
'name' => 'SlbId',
'in' => 'query',
'schema' => ['description' => 'SLB实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'lb-wz96ph63r************'],
],
[
'name' => 'SlbIp',
'in' => 'query',
'schema' => ['description' => 'SLB IP地址。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '192.16*.*.*'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'SLB网络类型,取值如下:'."\n"
.'* internet:外网实例。'."\n"
.'* intranet:内网实例。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'intranet'],
],
[
'name' => 'ListenerPort',
'in' => 'query',
'schema' => ['description' => '监听端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '65535', 'minimum' => '0', 'example' => '80', 'default' => '0'],
],
[
'name' => 'VServerGroupId',
'in' => 'query',
'schema' => ['description' => '内网 SLB 虚拟服务器组 ID', 'type' => 'string', 'required' => false, 'example' => 'rsp-cige6******'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口响应码。 ', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'bind slb success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '23DR4FDXXXXXXXXXX'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'VServerGroupId' => ['description' => '私网虚拟服务组ID。', 'type' => 'string', 'example' => '“”'],
'SlbId' => ['description' => '私网SLB实例ID。', 'type' => 'string', 'example' => 'lb-wz96ph63r************'],
'ExtSlbIp' => ['description' => '公网SLB IP地址。', 'type' => 'string', 'example' => '“”'],
'SlbPort' => ['description' => 'SLB监听端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ExtSlbName' => ['description' => '公网SLB名称。', 'type' => 'string', 'example' => '“”'],
'ExtSlbId' => ['description' => '公网SLB实例ID。', 'type' => 'string', 'example' => '“”'],
'ExtVServerGroupId' => ['description' => '公网SLB虚拟服务器组ID。', 'type' => 'string', 'example' => '“”'],
'SlbName' => ['description' => '私网SLB名称。', 'type' => 'string', 'example' => 'test**********'],
'SlbIp' => ['description' => '私网SLB IP地址。', 'type' => 'string', 'example' => '192.16*.*.*'],
],
],
],
'description' => '',
],
],
],
'title' => '绑定SLB到指定应用',
'summary' => '调用BindSlb接口绑定SLB到指定应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindSlb'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"bind slb success\\",\\n \\"RequestId\\": \\"23DR4FDXXXXXXXXXX\\",\\n \\"Data\\": {\\n \\"VServerGroupId\\": \\"“”\\",\\n \\"SlbId\\": \\"lb-wz96ph63r************\\",\\n \\"ExtSlbIp\\": \\"“”\\",\\n \\"SlbPort\\": 80,\\n \\"ExtSlbName\\": \\"“”\\",\\n \\"ExtSlbId\\": \\"“”\\",\\n \\"ExtVServerGroupId\\": \\"“”\\",\\n \\"SlbName\\": \\"test**********\\",\\n \\"SlbIp\\": \\"192.16*.*.*\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Data>\\n <SlbPort>80</SlbPort>\\n <SlbId>lb-wz96ph63r************</SlbId>\\n <SlbIp>192.168.*.*</SlbIp>\\n <SlbName>test*********</SlbName>\\n</Data>\\n<Message>bind slb success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ChangeDeployGroup' => [
'path' => '/pop/v5/changeorder/co_change_group',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-**********'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '指定要切换应用实例分组的ECS实例的ECC ID。可以调用ListApplicationEcc来查询应用的ECC ID,具体操作,请参见[ListApplicationEcc](~~199277~~)。'."\n"
."\n"
.'> 一次仅支持切换一个ECS实例到其他应用实例分组。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '0cf49a6c-95a8-4aa8******'],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '应用分组名称,例如:group_a、group_b。默认分组的GroupName为`_DEFAULT_GROUP`。长度不操作64个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'],
],
[
'name' => 'ForceStatus',
'in' => 'query',
'schema' => ['description' => 'ECC的部署包版本和应用分组的部署包版本不一致时是否强制更换。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => '435f-regfr4********************'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F9E4-FDS4-****************'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '更换分组',
'summary' => '调用ChangeDeployGroup更换ECS集群应用中的ECS实例的分组。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ChangeDeployGroup'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"435f-regfr4********************\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"F9E4-FDS4-****************\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>F9E4-FDS4-****************</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>435f-regfr4********************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'ContinuePipeline' => [
'summary' => '调用ContinuePipeline接口手动确认执行下一批发布。',
'path' => '/pop/v5/changeorder/pipeline_batch_confirm',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'],
'parameters' => [
[
'name' => 'PipelineId',
'in' => 'query',
'schema' => ['description' => '流程ID。可通过GetChangeOrderInfo接口获取1次变更的相关批次的流程ID,请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5648dbd7-df13********************'],
],
[
'name' => 'Confirm',
'in' => 'query',
'schema' => ['description' => '是否执行下一批发布。'."\n"
.'- true:执行下一批发布。'."\n"
.'- false:不执行下一批发布。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
],
'description' => '',
],
],
],
'title' => '执行下一批发布',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ContinuePipeline'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<RequestId>D16979DC-4D42-****************</RequestId>","errorExample":""}]',
],
'ConvertK8sResource' => [
'path' => '/pop/v5/oam/k8s_resource_convert',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => '资源类型,仅支持设置为deployment。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'deployment', 'default' => ''],
],
[
'name' => 'ResourceName',
'in' => 'query',
'schema' => ['description' => '资源名。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'deployment-to-convert'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => '命名空间。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default', 'default' => ''],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,参数详情的获取请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b07c8192-****-adf4f7447720'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'convert success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BA938591-*********-9690-BFD3F4DD7A93'],
],
],
],
],
'title' => '将资源转化为应用',
'summary' => '将一个Deployment资源转化为应用。',
'changeSet' => [
['createdAt' => '2022-05-10T06:57:02.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ConvertK8sResource'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"convert success\\",\\n \\"RequestId\\": \\"BA938591-*********-9690-BFD3F4DD7A93\\"\\n}","type":"json"}]',
],
'CreateApplicationScalingRule' => [
'path' => '/pop/v1/eam/scale/application_scaling_rule',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
[
'name' => 'ScalingRuleName',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略的名称。支持以小写字母开头,允许小写字母、数字、中划线(-)组成,长度为1~32字符的字符串。', 'type' => 'string', 'required' => false, 'example' => 'cpu-trigger'],
],
[
'name' => 'ScalingRuleType',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略类型,仅支持**trigger**类型。'."\n", 'type' => 'string', 'required' => false, 'example' => 'trigger'],
],
[
'name' => 'ScalingRuleEnable',
'in' => 'query',
'schema' => ['description' => '是否启用弹性伸缩策略。'."\n"
."\n"
.'- **true**:启用规则。'."\n"
."\n"
.'- **false**:禁用规则。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ScalingRuleMetric',
'in' => 'query',
'schema' => ['description' => '此参数已废弃。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'ScalingRuleTimer',
'in' => 'query',
'schema' => ['description' => '此参数已废弃。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'ScalingRuleTrigger',
'in' => 'query',
'schema' => ['description' => '触发器策略。设置为ScalingRuleTriggerDTO的JSON格式,具体样式,请参见请求参数补充说明。', 'type' => 'string', 'required' => false, 'example' => 'ScalingRuleTriggerDTO{......}'],
],
[
'name' => 'ScalingBehaviour',
'in' => 'query',
'schema' => ['description' => '配置自定义弹性行为,具体数据结构参考样例。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "scaleUp": {'."\n"
.' "stabilizationWindowSeconds": "0",'."\n"
.' "selectPolicy": "Max",'."\n"
.' "policies": ['."\n"
.' {'."\n"
.' "type": "Pods",'."\n"
.' "value": 5,'."\n"
.' "periodSeconds": 15'."\n"
.' }'."\n"
.' ]'."\n"
.' },'."\n"
.' "scaleDown": {'."\n"
.' "stabilizationWindowSeconds": "300",'."\n"
.' "selectPolicy": "Max",'."\n"
.' "policies": ['."\n"
.' {'."\n"
.' "type": "Percent",'."\n"
.' "value": 200,'."\n"
.' "periodSeconds": 15'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'AppScalingRule' => [
'description' => '弹性伸缩策略。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'CreateTime' => ['description' => '创建弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'AppId' => ['description' => '弹性伸缩策略所属应用的应用ID。', 'type' => 'string', 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
'LastDisableTime' => ['description' => '弹性伸缩策略最近一次被禁用的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleEnabled' => ['description' => '弹性伸缩策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'example' => 'true'],
'ScaleRuleType' => ['description' => '规则类型,只支持trigger。', 'type' => 'string', 'example' => 'trigger'],
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleName' => ['description' => '弹性伸缩的策略名称。', 'type' => 'string', 'example' => 'cpu'],
'Metric' => [
'description' => '此参数已废弃。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Metrics' => [
'description' => '此参数已废弃。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MetricTargetAverageUtilization' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MetricType' => ['description' => '此参数已废弃。', 'type' => 'string', 'example' => 'cpu'],
],
'description' => '',
],
],
],
],
'Trigger' => [
'description' => '触发器配置。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '最小副本数,不能低于0。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'MaxReplicas' => ['description' => '最大副本数,不能超过1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '122'],
'Triggers' => [
'description' => '触发器列表。',
'type' => 'array',
'items' => [
'description' => '触发器列表。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '触发器类型,只支持cron和app_metric。', 'type' => 'string', 'example' => 'cron'],
'MetaData' => ['description' => '触发器元信息。', 'type' => 'string', 'example' => '{"dryRun":true}'],
'Name' => ['description' => '触发器名称。', 'type' => 'string', 'example' => 'cpu'],
],
],
],
],
],
'Behaviour' => [
'description' => '弹性行为。',
'type' => 'object',
'properties' => [
'ScaleUp' => [
'description' => '弹性扩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '扩容冷却时间。取值范围[0, 3600],单位为秒。默认为0秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'SelectPolicy' => ['description' => '弹性扩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'description' => '策略配置。',
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
],
],
],
],
'ScaleDown' => [
'description' => '弹性缩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '缩容冷却时间。取值范围[0, 3600],单位为秒。默认为300秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
'SelectPolicy' => ['description' => '弹性缩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'description' => '策略配置。',
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
],
],
],
],
],
],
],
],
],
'description' => '',
],
],
],
'title' => '创建应用弹性伸缩规则',
'summary' => '调用CreateApplicationScalingRule接口创建应用的弹性伸缩规则。',
'requestParamsDescription' => '## 请求参数补充说明'."\n"
.'```'."\n"
.'public class ScalingRuleTriggerDTO {'."\n"
.' /**'."\n"
.' * 最大实例数,上限1000。'."\n"
.' */'."\n"
.' Integer maxReplicas;'."\n"
.' /**'."\n"
.' * 最小实例数,下限0。'."\n"
.' */'."\n"
.' Integer minReplicas;'."\n"
."\n"
.' /**'."\n"
.' * 触发器列表,支持多个触发器。'."\n"
.' */'."\n"
.' List<Trigger> triggers;'."\n"
."\n"
.' @Data'."\n"
.' @ToString'."\n"
.' @Builder'."\n"
.' @AllArgsConstructor'."\n"
.' @NoArgsConstructor'."\n"
.' public static class Trigger {'."\n"
.' /**'."\n"
.' * 触发器类型,支持cron(定时), app_metric(应用监控)。'."\n"
.' */'."\n"
.' String type;'."\n"
."\n"
.' /**'."\n"
.' * 触发器名称,必须以字母开头,允许数字、字母、短划线(-)或下划线(_)组成。最大长度30个字符。'."\n"
.' */'."\n"
.' String name;'."\n"
."\n"
.' /**'."\n"
.' 触发器元数据,string->string的map Json,不同类型的触发器支持的元数据不同。'."\n"
.' 1. cron'."\n"
.' {"period":"weekly","dryRun":"false","timerInDay":[{"atTime":"08:00","targetReplicas":2},{"atTime":"20:00","targetReplicas":1}],"timerInWeek":["Sat","Thu"]}'."\n"
.' * period周期:daily, weekly, monthly。'."\n"
.' * dryRun: false是观测并扩缩,true是仅观测。'."\n"
.' * timerInDay:描述每天的扩缩周期,指在什么时候开始维持多少副本数。'."\n"
.' * timerInWeek:cron表达式的周,比如Fri。'."\n"
."\n"
.' 2. app_metric'."\n"
.' {\\"metricName\\":\\"arms_appstat.incall_QPS\\",\\"dryRun\\":\\"false\\",\\"targetValAvg\\":\\"true\\",\\"targetAverageValue\\":\\"100\\"}'."\n"
.' '."\n"
.' * metricName:'."\n"
.' * arms_appstat.incall_QPS(qps)'."\n"
.' * arms_appstat.incall_rt(rt)'."\n"
.' * arms_appstat.system_CPU(cpu使用率)'."\n"
.' * arms_appstat.system_MEM(内存使用率)'."\n"
.' * dryRun同cron。'."\n"
.' * targetValAvg:true为需要进行平均,false为不需要平均, 除了qps为true,其他均为false。'."\n"
.' * targetAverageValue/targetValue: targetValAvg为true则为targetAverageValue,targetValAvg为false则为targetValue。'."\n"
.' */'."\n"
.' String metadata;'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-01-09T08:28:01.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
['createdAt' => '2022-11-18T06:53:33.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"AppScalingRule\\": {\\n \\"UpdateTime\\": 23212323123,\\n \\"CreateTime\\": 23212323123,\\n \\"AppId\\": \\"78194c76-3dca-418e-a263-cccd1ab4****\\",\\n \\"LastDisableTime\\": 23212323123,\\n \\"MaxReplicas\\": 1,\\n \\"ScaleRuleEnabled\\": true,\\n \\"ScaleRuleType\\": \\"trigger\\",\\n \\"MinReplicas\\": 1,\\n \\"ScaleRuleName\\": \\"cpu\\",\\n \\"Metric\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 1,\\n \\"Metrics\\": [\\n {\\n \\"MetricTargetAverageUtilization\\": 1,\\n \\"MetricType\\": \\"cpu\\"\\n }\\n ]\\n },\\n \\"Trigger\\": {\\n \\"MinReplicas\\": 2,\\n \\"MaxReplicas\\": 122,\\n \\"Triggers\\": [\\n {\\n \\"Type\\": \\"cron\\",\\n \\"MetaData\\": \\"{\\\\\\"dryRun\\\\\\":true}\\",\\n \\"Name\\": \\"cpu\\"\\n }\\n ]\\n },\\n \\"Behaviour\\": {\\n \\"ScaleUp\\": {\\n \\"StabilizationWindowSeconds\\": 0,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n },\\n \\"ScaleDown\\": {\\n \\"StabilizationWindowSeconds\\": 300,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n }\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<AppScalingRule>\\n <ScaleRuleEnabled>true</ScaleRuleEnabled>\\n <LastDisableTime>23212323123</LastDisableTime>\\n <AppId>78194c76-3dca-418e-a263-cccd1ab4****</AppId>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <CreateTime>23212323123</CreateTime>\\n <UpdateTime>23212323123</UpdateTime>\\n <ScaleRuleName>cpu</ScaleRuleName>\\n <ScaleRuleType>trigger</ScaleRuleType>\\n <Metric>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <Metrics>\\n <MetricType>cpu</MetricType>\\n <MetricTargetAverageUtilization>1</MetricTargetAverageUtilization>\\n </Metrics>\\n </Metric>\\n <Trigger>\\n <MinReplicas>2</MinReplicas>\\n <MaxReplicas>122</MaxReplicas>\\n <Triggers>\\n <Type>cron</Type>\\n <MetaData>{\\"dryRun\\":true}</MetaData>\\n <Name>cpu</Name>\\n </Triggers>\\n </Trigger>\\n</AppScalingRule>\\n<Code>200</Code>","errorExample":""}]',
],
'CreateConfigTemplate' => [
'summary' => '调用CreateConfigTemplate接口创建配置模板。'."\n"
.'。',
'path' => '/pop/v5/config_template',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['title' => '配置模板名称', 'description' => '配置模板名称,不限字符类型,最长不超过64个字符。', 'type' => 'string', 'required' => false, 'example' => 'my-template'],
],
[
'name' => 'Format',
'in' => 'formData',
'schema' => ['title' => '模板数据格式', 'description' => '模板数据格式,支持以下格式:'."\n"
."\n"
.'- JSON:JSON格式;'."\n"
.'- XML:XML格式;'."\n"
.'- YAML:YAML格式;'."\n"
.'- Properties:Properties格式;'."\n"
.'- KeyValue:键值对;'."\n"
.'- Custom:自定义格式。', 'type' => 'string', 'required' => false, 'example' => 'JSON'],
],
[
'name' => 'Description',
'in' => 'formData',
'schema' => ['title' => '模板描述', 'description' => '模板描述,不限字符类型,最长不超过255个字符。', 'type' => 'string', 'required' => false, 'example' => 'My configuration template'],
],
[
'name' => 'Content',
'in' => 'formData',
'schema' => ['title' => '模板内容', 'description' => '模板内容,需要与Format标注的格式相匹配。', 'type' => 'string', 'required' => false, 'example' => '[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '请求ID', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
'Code' => ['title' => '响应码', 'description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['title' => '响应码文本描述', 'description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'title' => '响应数据',
'description' => '响应数据。',
'type' => 'object',
'properties' => [
'Id' => ['title' => '模板ID', 'description' => '模板ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '125122'],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message ', 'errorMessage' => 'You are not authorized to perform the operation. ', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Id\\": 125122\\n }\\n}","type":"json"}]',
'title' => '创建配置模板',
'changeSet' => [
['createdAt' => '2022-01-13T07:39:34.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateConfigTemplate'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:CreateConfigTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreateIDCImportCommand' => [
'summary' => '调用CreateIDCImportCommand接口生成非阿里云ECS集群的导入命令。',
'path' => '/pop/v5/create_idc_import_command',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '目标集群ID,可调用ListCluster接口获取,详情请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '7246cxxx-53xx-xxxx-xxxx-xxxxxxxx'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '导入命令。', 'type' => 'string', 'example' => 'wget -q -O /tmp/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /tmp/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'UnknownError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '未知错误。请重试该操作,若再出现该错误请提交工单。'],
],
],
'title' => '生成非阿里云ECS集群的导入命令',
'description' => '## 导入非阿里云ECS至非阿里云ECS集群的步骤说明'."\n"
.'您需先调用CreateIDCImportCommand接口生成非阿里云ECS集群的导入命令,然后在非阿里云的实例中执行该导入命令,即可将非阿里云的实例导入至非阿里云ECS集群中。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIDCImportCommand'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"wget -q -O /tmp/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /tmp/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>b197-40ab-9155-7ca7</RequestId>\\n<Data>wget -q -O /root/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /root/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx</Data>\\n<Code>200</Code>","errorExample":""}]',
],
'CreateK8sConfigMap' => [
'summary' => '调用CreateK8sConfigMap接口创建K8s配置项。',
'path' => '/pop/v5/k8s/acs/k8s_config_map',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'b07c8192-****-adf4f7447720'],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => '配置项名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'my-configmap'],
],
[
'name' => 'Data',
'in' => 'formData',
'schema' => ['description' => '配置项数据, 为JSON数组字符串。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-**************'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '创建K8s配置项',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sConfigMap'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-**************\\"\\n}","type":"json"}]',
],
'CreateK8sIngressRule' => [
'path' => '/pop/v5/k8s/acs/k8s_ingress',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '路由规则名称。只能为小写字母、数字和短划线(-),必须以小写字母开头,不以短划线(-)结尾,长度不超过63个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-ingress-rule'],
],
[
'name' => 'IngressConf',
'in' => 'query',
'schema' => ['description' => 'JSON对象字符串表示的应用路由规则,格式如下所示:'."\n"
.'```'."\n"
.'{'."\n"
.' "rules": ['."\n"
.' {'."\n"
.' "host": "abc.com",'."\n"
.' "secretName": "tls-secret",'."\n"
.' "paths": ['."\n"
.' {'."\n"
.' "path": "/path",'."\n"
.' "backend": {'."\n"
.' "servicePort": 80,'."\n"
.' "serviceName": "xxx"'."\n"
.' }'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'代码字段解释如下:'."\n"
."\n"
.'- rules:路由规则列表。'."\n"
."\n"
.'- host:路由规则域名。'."\n"
."\n"
.'- secretName:TLS证书类型的Secret,当需要支持HTTPS协议时需要配置该证书。'."\n"
."\n"
.'- paths:匹配路径列表。'."\n"
."\n"
.'- path:匹配路径。'."\n"
."\n"
.'- backend:后端服务,支持配置由EDAS控制台创建的Service。'."\n"
."\n"
.'- serviceName:后端服务名称。'."\n"
."\n"
.'- servicePort:后端服务端口。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{"rules":[{"host":"abc.com","secretName":"tls-secret","paths":[{"path":"/path","backend":{"servicePort":80,"serviceName":"xxx"}}]}]}'],
],
[
'name' => 'Annotations',
'in' => 'query',
'schema' => ['description' => '注解。', 'type' => 'string', 'required' => false, 'example' => '{\\"alb.ingress.kubernetes.io/rewrite-target\\":\\"/consumer-echo/test\\"}'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => '标签。', 'type' => 'string', 'required' => false, 'example' => '{\\"test-labels\\":\\"test-value\\"}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'staticInfo' => [],
'title' => '创建应用路由规则',
'summary' => '调用CreateK8sIngressRule接口创建应用路由规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-10-27T06:18:56.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sIngressRule'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'CreateK8sSecret' => [
'summary' => '调用CreateK8sSecret接口创建K8s保密配置。',
'path' => '/pop/v5/k8s/acs/k8s_secret',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '集群ID', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '712082c3-****-****-9217-a947b5cde6ee'],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => '保密配置名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'my-secret'],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Type',
'in' => 'formData',
'schema' => ['description' => '保密配置类型,支持以下两种类型:'."\n"
."\n"
.'- Opaque:用户自定义数据类型'."\n"
."\n"
.'- kubernetes.io/tls:TLS证书类型', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'Opaque'],
],
[
'name' => 'Data',
'in' => 'formData',
'schema' => ['description' => '保密配置数据,使用JSON数组表示,数组对象包括以下内容:'."\n"
.'- Key:保密配置键'."\n"
.'- Value:保密配置值', 'type' => 'string', 'required' => false, 'example' => '[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}]'],
],
[
'name' => 'CertId',
'in' => 'formData',
'schema' => ['description' => '阿里云证书服务的证书ID。', 'type' => 'string', 'required' => false, 'example' => '6651483'],
],
[
'name' => 'CertRegionId',
'in' => 'formData',
'schema' => ['description' => '证书所属的区域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Base64Encoded',
'in' => 'formData',
'schema' => ['description' => '数据是否进过base64编码,true - 已编码, false - 未编码。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4D9F-DR94-FD****************'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '创建K8s保密配置',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sSecret'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4D9F-DR94-FD****************\\"\\n}","type":"json"}]',
],
'CreateK8sService' => [
'path' => '/pop/v5/k8s/acs/k8s_service',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'K8s Service名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'service-http'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'K8s服务类型,当前只支持ClusterIP类型。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ClusterIP'],
],
[
'name' => 'ServicePorts',
'in' => 'query',
'schema' => ['description' => 'K8s Service端口映射表,需要符合JsonArray格式,支持的参数如下:'."\n"
."\n"
.'- **protocol**:必填,服务协议,支持TCP和UDP。'."\n"
.'- **port**:必填,前端服务端口,取值范围1~65535。'."\n"
.'- **targetPort**:必填,后端容器端口,取值范围1~65535。'."\n"
."\n"
.'参考示例:'."\n"
.'`[{"protocol": "TCP", "port": 80, "targetPort": 8080},{"protocol": "TCP", "port": 81, "targetPort": 8081}]`', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"protocol":"TCP","port":80,"targetPort":8080}]'],
],
[
'name' => 'ExternalTrafficPolicy',
'in' => 'query',
'schema' => ['description' => '设置外部流量管理策略:'."\n"
.'- Local:Local模式。'."\n"
.'- Cluster:Cluster模式。'."\n"
."\n"
.'默认为Local模式。', 'type' => 'string', 'required' => false, 'example' => 'Local'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'b4b37bde-a125-****-****-741f7f4a9ae3'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '创建K8s服务',
'summary' => '为K8s集群中的应用创建K8s服务Service。',
'requestParamsDescription' => '> - 在同一个集群中不能存在相同的nodePort。'."\n"
.'> - 在同一个K8s Service中,不能存在protocol和port都相同的端口映射。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-06-16T02:42:31.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sService'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NamespaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"b4b37bde-a125-****-****-741f7f4a9ae3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>b4b37bde-a125-****-****-741f7f4a9ae3</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteApplication' => [
'path' => '/pop/v5/changeorder/co_delete_app',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。获取应用ID,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-*********'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => '0b8e3c0b-5818-430*************'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '34DFE9FDV****************'],
],
],
],
],
'title' => '删除应用实例',
'summary' => '调用DeleteApplication接口删除应用实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteApplication'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"0b8e3c0b-5818-430*************\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"34DFE9FDV****************\\"\\n}","type":"json"}]',
],
'DeleteApplicationScalingRule' => [
'path' => '/pop/v1/eam/scale/application_scaling_rule',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
[
'name' => 'ScalingRuleName',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略的名称。', 'type' => 'string', 'required' => false, 'example' => 'cpu-trigger'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => '5d6fa0bc-cc3**********'],
'Code' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
'Message' => ['type' => 'string', 'description' => ''],
],
'description' => '',
],
],
],
'title' => '删除应用弹性伸缩规则',
'summary' => '调用DeleteApplicationScalingRule接口删除应用的弹性伸缩规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-06-23T02:47:59.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-11-18T06:53:33.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5d6fa0bc-cc3**********\\",\\n \\"Code\\": 0,\\n \\"Message\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>5d6fa0bc-cc3**********</RequestId>","errorExample":""}]',
],
'DeleteCluster' => [
'summary' => '用于删除ECS集群或取消导入K8s集群。',
'path' => '/pop/v5/resource/cluster',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '8b96ade0-0a07-****-af9d-5ed83640d076'],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => ['description' => '集群ID类型,取值如下:'."\n"
.'* 0 - EDAS集群ID。'."\n"
.'* 1 - 容器服务集群ID。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口响应码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加消息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '处理结果:'."\n"
.'* true - 删除成功。'."\n"
.'* false - 删除失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '856D4438-****-4EA9-****-894628C0434E'],
],
'description' => '',
],
],
],
'title' => '删除集群',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteCluster'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"856D4438-****-4EA9-****-894628C0434E\\"\\n}","errorExample":""},{"type":"xml","example":"<Data>true</Data>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteClusterMember' => [
'path' => '/pop/v5/resource/cluster_member',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID', 'type' => 'string', 'required' => true, 'example' => '52984524-****-****-85f2-a34b0e5bb521', 'docRequired' => true],
],
[
'name' => 'ClusterMemberId',
'in' => 'query',
'schema' => ['description' => '集群机器ID', 'type' => 'string', 'required' => true, 'example' => 'i-2zej4i2jdf3****jigng', 'docRequired' => true],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码 ', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息 ', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求唯一ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
],
'description' => '',
],
],
],
'title' => '删除集群实例',
'summary' => '调用DeleteClusterMember接口删除集群实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteClusterMember'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": true,\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\"\\n}","errorExample":""},{"type":"xml","example":"<Data>ok</Data>\\n<Code>200</Code>\\n<Message>success</Message>","errorExample":""}]',
],
'DeleteConfigTemplate' => [
'summary' => '调用DeleteConfigTemplate接口删除配置模板。',
'path' => '/pop/v5/config_template',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['title' => '配置模板ID', 'description' => '配置模板ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => true, 'example' => '555'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '请求ID', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-************'],
'Code' => ['title' => '响应码', 'description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['title' => '响应码文本描述', 'description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message ', 'errorMessage' => 'You are not authorized to perform the operation. ', 'description' => ''],
],
],
'title' => '删除配置模板',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-01-13T07:39:34.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteConfigTemplate'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteConfigTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D16979DC-4D42-************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
],
'DeleteDeployGroup' => [
'summary' => '调用DeleteDeployGroup来删除分组。',
'path' => '/pop/v5/deploy_group',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413-b31*************'],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '分组名称', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '数据', 'type' => 'string', 'example' => '1'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '4D9F-DR94-FD****************'],
],
'description' => '',
],
],
],
'title' => '删除分组',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteDeployGroup'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"1\\",\\n \\"RequestId\\": \\"4D9F-DR94-FD****************\\"\\n}","errorExample":""},{"type":"xml","example":"<Data>1</Data>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteEcu' => [
'path' => '/pop/v5/resource/delete_ecu',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'EcuId',
'in' => 'query',
'schema' => ['description' => 'ECU唯一标识。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5c0b8c82-4ba9-****-****-130a34ffa534'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口响应码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '成功返回`OK`。', 'type' => 'string', 'example' => 'OK'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'fb08fd29-b197-40ab-****-****'],
],
'description' => '',
],
],
],
'title' => '删除指定的 ECU',
'summary' => '删除指定的 ECU。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T04:26:37.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteEcu'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteEcu',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"OK\\",\\n \\"RequestId\\": \\"fb08fd29-b197-40ab-****-****\\"\\n}","errorExample":""},{"type":"xml","example":"<Data>OK</Data>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteK8sApplication' => [
'summary' => '调用DeleteK8sApplication接口删除容器服务K8s应用。',
'path' => '/pop/v5/k8s/acs/k8s_apps',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID(查询ListApplication接口获取)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'dbac7e3c-****-49bc-b6de-ffc550018b45'],
],
[
'name' => 'Force',
'in' => 'query',
'schema' => ['description' => '是否强制删除应用,跳过应用删除保护。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '如果被删除应用有机器没有下线,或者SLB未解绑,此时会生成变更流程ID,并进行删除。调用GetChangeOrderInfo接口获取这次删除具体执行进展。根据Code判断是否删除成功。', 'type' => 'string', 'example' => '0a34531a-****-49dc-8e7f-0cbbbfa12cf0'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323******'],
],
],
],
],
'title' => '删除容器服务K8s应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-08-17T07:15:41.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"0a34531a-****-49dc-8e7f-0cbbbfa12cf0\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323******\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>0a34531a-****-49dc-8e7f-0cbbbfa12cf0</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteK8sConfigMap' => [
'summary' => '调用DeleteK8sConfigMap接口删除K8s配置项。',
'path' => '/pop/v5/k8s/acs/k8s_config_map',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '51e37e91-6403-423a-9913-f236aa7a6a50'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '配置项名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-configmap'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-************'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '删除K8s配置项',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sConfigMap'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-************\\"\\n}","type":"json"}]',
],
'DeleteK8sIngressRule' => [
'path' => '/pop/v5/k8s/acs/k8s_ingress',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '路由规则名称。只能为小写字母、数字和短划线(-)必须以小写字母开头,不以短划线(-)结尾,长度不超过63个字符。'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'my-ingress-rule'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'staticInfo' => [],
'title' => '删除应用路由规则',
'summary' => '调用DeleteK8sIngressRule接口删除应用路由规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sIngressRule'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteK8sSecret' => [
'summary' => '调用DeleteK8sSecret接口删除K8s保密配置。',
'path' => '/pop/v5/k8s/acs/k8s_secret',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2b3a1013-31c7-433b-8fe7-3895d838b824'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '保密配置名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-secret'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'default'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-*************'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '删除K8s保密配置',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sSecret'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-*************\\"\\n}","type":"json"}]',
],
'DeleteK8sService' => [
'summary' => '删除K8s集群中应用的K8s服务Service。',
'path' => '/pop/v5/k8s/acs/k8s_service',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd***a286-781659d9f54c'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '服务名。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'service-http'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'b4b37bde-a125-43fc-****-741f7f4a9ae3'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9041389c-*****-459c-8253-724bca7f51f0'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '删除K8s服务',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sService'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"b4b37bde-a125-43fc-****-741f7f4a9ae3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"9041389c-*****-459c-8253-724bca7f51f0\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>9041389c-*****-459c-8253-724bca7f51f0</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>b4b37bde-a125-43fc-****-741f7f4a9ae3</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteLogPath' => [
'summary' => '适用于在阿里云和非阿里云ECS集群中部署的应用。',
'path' => '/pop/v5/log/popListLogDirs',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413**********'],
],
[
'name' => 'Path',
'in' => 'query',
'schema' => ['description' => '待取消收藏的应用日志的绝对路径。应用日志路径必须以`/`开头和结尾,并且路径中必须包含`/log`或者`/logs`。EDAS默认目录如下:'."\n"
.'- /home/admin/edas-container/logs/'."\n"
.'- /home/admin/taobao-tomcat-7.0.59/logs/'."\n"
.'- /home/admin/taobao-tomcat-production-7.0.59.3/logs/'."\n"
.'- /home/admin/taobao-tomcat-production-7.0.70/logs/'."\n"
.'- /home/admin/edas-agent/logs/'."\n", 'type' => 'string', 'required' => false, 'example' => '/temp/log/'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '3616cdca-4f92-4413**********'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '删除日志目录',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLogPath'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageAppLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"3616cdca-4f92-4413**********\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>3616cdca-4f92-4413**********</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteRole' => [
'path' => '/pop/v5/account/delete_role',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RoleId',
'in' => 'query',
'schema' => ['description' => '角色ID。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '99999999'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '042F329B-F518-4CC1-****-**********'],
],
],
],
],
'title' => '删除角色',
'summary' => '删除角色。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T06:25:51.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteRole'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteRole',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"042F329B-F518-4CC1-****-**********\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>delete successfully</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteServiceGroup' => [
'summary' => '调用DeleteServiceGroup删除服务分组。',
'path' => '/pop/v5/service/serviceGroups',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '服务分组 ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '789d9cda-74b1-****-****-05e21a0a7661'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => 'ECD1D6FC-4307-4583-BA6F-215F38****'],
],
'description' => '',
],
],
],
'title' => '删除服务分组',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T06:25:51.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteServiceGroup'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:DeleteServiceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"ECD1D6FC-4307-4583-BA6F-215F38****\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeleteSwimmingLane' => [
'path' => '/pop/v5/trafficmgnt/swimming_lanes',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LaneId',
'in' => 'query',
'schema' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '241'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4264F69C-686C-4107-B493-0599C8d1****'],
],
],
],
],
'title' => '删除泳道',
'summary' => '删除全链路流量控制流控泳道。',
'changeSet' => [
['createdAt' => '2023-07-18T12:29:20.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteSwimmingLane'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'edas:ManageTraffic',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1,\\n \\"RequestId\\": \\"4264F69C-686C-4107-B493-0599C8d1****\\"\\n}","type":"json"}]',
],
'DeleteUserDefineRegion' => [
'path' => '/pop/v5/user_region_def',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => '定义命名空间的唯一标识序号,可调用ListUserDefineRegion接口获取,详情请参见[ListUserDefineRegion](~~149377~~)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => true, 'example' => '2564'],
],
[
'name' => 'RegionTag',
'in' => 'query',
'schema' => ['description' => '命名空间标签。', 'type' => 'string', 'required' => false, 'example' => 'regiontag'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1234-1sda-321d-****'],
'RegionDefine' => [
'description' => '自定义命名空间。',
'type' => 'object',
'properties' => [
'BelongRegion' => ['description' => '隶属的地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'RegionName' => ['description' => '命名空间名称。', 'type' => 'string', 'example' => 'test_region'],
'Description' => ['description' => '命名空间描述信息。', 'type' => 'string', 'example' => 'logic region'],
'UserId' => ['description' => '用户主账号ID。', 'type' => 'string', 'example' => '11727****22398'],
'Id' => ['description' => '唯一标识。', 'type' => 'integer', 'format' => 'int64', 'example' => '8848'],
'RegionId' => ['description' => '命名空间标识,创建后不可更改。格式为`地域ID:命名空间标识符`。', 'type' => 'string', 'example' => 'cn-beijing:test'],
],
],
],
],
],
],
'title' => '删除指定的自定义命名空间',
'summary' => '删除指定的自定义命名空间。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteUserDefineRegion'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:DeleteNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1234-1sda-321d-****\\",\\n \\"RegionDefine\\": {\\n \\"BelongRegion\\": \\"cn-beijing\\",\\n \\"RegionName\\": \\"test_region\\",\\n \\"Description\\": \\"logic region\\",\\n \\"UserId\\": \\"11727****22398\\",\\n \\"Id\\": 8848,\\n \\"RegionId\\": \\"cn-beijing:test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RegionDefine>\\n <Description>test</Description>\\n <RegionName>test_region</RegionName>\\n <BelongRegion>cn-beijing</BelongRegion>\\n <RegionId>cn-beijing:test</RegionId>\\n <Id>8683</Id>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n</RegionDefine>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'DeployApplication' => [
'summary' => '调用DeployApplication接口在ECS集群中部署应用。',
'path' => '/pop/v5/changeorder/co_deploy',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。可通过查询ListApplication接口获取,请参见[ListApplication](~~423162~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-********************'],
],
[
'name' => 'PackageVersion',
'in' => 'query',
'schema' => ['description' => '部署的应用部署包版本,最长64个字符,建议使用时间戳。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1.0'],
],
[
'name' => 'Desc',
'in' => 'query',
'schema' => ['description' => '应用部署描述信息。', 'type' => 'string', 'required' => false, 'example' => 'Deploy by edas pop api'],
],
[
'name' => 'DeployType',
'in' => 'query',
'schema' => ['description' => '部署类型。包含`URL`和`image`(废弃参数值),其中只有Swarm集群应用支持镜像(`image`)部署。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'URL'],
],
[
'name' => 'WarUrl',
'in' => 'query',
'schema' => ['description' => '应用部署包(WAR或JAR)的URL地址。**DeployType**为`url`时必填,建议使用OSS存储的应用部署包路径。', 'type' => 'string', 'required' => false, 'example' => 'https://edas.oss-cn-hangzhou.aliyuncs.com/demo/hello-edas.war'],
],
[
'name' => 'ImageUrl',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)**Swarm集群应用部署时可指定的应用镜像URL,推荐使用阿里云镜像仓库地址。', 'type' => 'string', 'required' => false, 'example' => 'registry.cn-hangzhou.aliyuncs.com/mw/testapp:latest'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '部署分组ID。可通过查询ListDeployGroup接口获取,请参见[ListDeployGroup](~~423184~~)。'."\n"
."\n"
.'<note>如果要部署到所有分组,参数设置为`all`。</note>'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'all'],
],
[
'name' => 'Batch',
'in' => 'query',
'schema' => ['description' => '每组批次。'."\n"
."\n"
.'- 当指定了应用分组的GroupId为具体的某个应用分组ID时,表示向指定应用分组部署。此时可指定的最小批次数为1,最大批次数为该应用分组下正常状态的ECS实例数最大值,实际分批数结果范围:\\[1,指定的分批数\\] (指定的分批数=指定的分组下面ECS总数)。'."\n"
.'- 当指定了应用分组的GroupId为all时,表示向所有应用分组部署,此时可指定的最小批次数为1,最大批次数为正常状态的ECS数量最多的分组下的ECS实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'BatchWaitTime',
'in' => 'query',
'schema' => ['description' => '分批等待时间,单位:分钟。'."\n"
.'- 默认为0,表示不等待。'."\n"
.'- 最大为5。'."\n"
."\n"
.'当实际批次数较多时,需要设置一个合理值,否则会导致本次应用部署的变更持续时间比较长。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'AppEnv',
'in' => 'query',
'schema' => ['description' => '部署环境变量,格式必须符合`{"name":"x","value":"y"},{"name":"x2","value":"y2"} `,`key`固定为`name`和`value`。', 'type' => 'string', 'required' => false, 'example' => '[{\\"name\\":\\"env_name_1\\", \\"value\\":\\"env_value_1\\"}, {\\"name\\":\\"env_name_2\\",\\"value\\":\\"env_value_2\\"}]'],
],
[
'name' => 'BuildPackId',
'in' => 'query',
'schema' => ['description' => 'EDAS-Container构建包号。'."\n"
."\n"
.'- 如果部署时不需要更改EDAS-Container版本,则该参数可不设置。'."\n"
.'- 如果需要在本次部署时,更新目标应用的EDAS-Container版本,则需要设置。'."\n"
."\n"
.'有以下两种获取方式:'."\n"
."\n"
.'- 可通过查询容器版本列表接口ListBuildPack获取,请参见[ListBuildPack](~~149391~~)。'."\n"
.'- 在[容器版本说明](~~92614~~)表格中的**构建包序号**列获取。例如`59`表示`EDAS-Container 3.5.8 版本`。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '59'],
],
[
'name' => 'ComponentIds',
'in' => 'query',
'schema' => ['description' => '应用组件ID,参数不适用于HSF应用。可通过查询组件列表接口ListComponents接口获取,请参见[ListComponents](~~423223~~)。'."\n"
."\n"
.'- 当创建应用时已经设置,则本次部署不需要再设置。'."\n"
.'- 如果在本次部署时需要更新目标应用的应用组件版本则需要设置。'."\n"
."\n"
.'常用的应用组件ID及含义如下:'."\n"
."\n"
.'- 4:表示Apache Tomcat 7.0.91'."\n"
.'- 7:表示Apache Tomcat 8.5.42'."\n"
.'- 5:表示OpenJDK 1.8.x'."\n"
.'- 6:表示OpenJDK 1.7.x '."\n"
."\n"
.'更多信息,请参见[InsertApplication](~~423185~~)接口的常见应用的主要参数说明。', 'type' => 'string', 'required' => false, 'example' => '7'],
],
[
'name' => 'ReleaseType',
'in' => 'query',
'schema' => ['description' => '分批方式。'."\n"
.'- 0为自动。'."\n"
.'- 1为各批次间需要手动确认。可在控制台目标应用的变更流程详情中单击**继续下一批**,也可通过调用ContinuePipeline继续下一批(由于使用API部署,建议使用自动分批),请参见[ContinuePipeline](~~126990~~)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
[
'name' => 'Gray',
'in' => 'query',
'schema' => ['description' => '是否为金丝雀发布。'."\n"
."\n"
.'- true:金丝雀发布。'."\n"
."\n"
.' - 灰度发布时,必须指定灰度发布的分组ID,即GroupId。'."\n"
."\n"
.' - 灰度发布作为一个批次发布。'."\n"
."\n"
.' - 灰度结束后,正常发布,分组批次由Batch控制。'."\n"
."\n"
.'- false:非金丝雀发布(单批或分批发布)。'."\n"
."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'TrafficControlStrategy',
'in' => 'query',
'schema' => ['description' => '灰度发布策略内容,请参见[DeployK8sApplication](~~423212~~)。', 'type' => 'string', 'required' => false, 'example' => '{"http":{"rules":[{"conditionType":"percent","percent":10}]}}'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '应用部署的变更流程ID。', 'type' => 'string', 'example' => 'adf86823-055b-48a4-a59f-fa5582******'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '接口请求唯一标识符。', 'type' => 'string', 'example' => 'd6834ee9-5045-*************'],
],
'description' => '',
],
],
],
'title' => '用于向 ECS 集群部署应用',
'description' => '> 如果需要在导入EDAS的容器服务K8s集群部署应用,请使用EDAS提供的DeployK8sApplication接口,更多信息,请参见[DeployK8sApplication](~~149420~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T04:00:24.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeployApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"adf86823-055b-48a4-a59f-fa5582******\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"d6834ee9-5045-*************\\"\\n}","errorExample":""},{"type":"xml","example":"<DeployApplicationResponse>\\n <Code>200</Code>\\n <ChangeOrderId>adf86823-055b-48a4-a59f-fa5582******</ChangeOrderId>\\n <Message>success</Message>\\n <RequestId>d6834ee9-5045-*************</RequestId>\\n</DeployApplicationResponse>","errorExample":""}]',
],
'DeployK8sApplication' => [
'summary' => '在容器服务K8s集群或Serverless K8s集群中部署应用。',
'path' => '/pop/v5/k8s/acs/k8s_apps',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'PreStop',
'in' => 'query',
'schema' => ['description' => '停止前执行脚本,示例格式:`{"tcpSocket":{"host":"", "port":8080}}`。'."\n"
.'如果设置为`{}`代表删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "exec":{'."\n"
.' "command":['."\n"
.' "ls",'."\n"
.' "/"'."\n"
.' ]'."\n"
.' }'."\n"
.'}'],
],
[
'name' => 'Envs',
'in' => 'query',
'schema' => ['description' => '部署环境变量,格式需要符合JSON对象数组。支持三种类型的环境变量,分别是普通环境变量,K8s ConfigMap环境变量,K8s Secret环境变量。普通环境变量格式如下所示:'."\n"
."\n"
.'`{"name":"x", "value": "y"}`'."\n"
."\n"
.'ConfigMap环境变量配置可以将指定的ConfigMap中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x2",'."\n"
.' "valueFrom": {'."\n"
.' "configMapKeyRef": {'."\n"
.' "name": "my-config",'."\n"
.' "key": "y2"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'Secret环境变量配置可以将指定的Secret中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x3",'."\n"
.' "valueFrom": {'."\n"
.' "secretKeyRef": {'."\n"
.' "name": "my-secret",'."\n"
.' "key": "y3"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'> 如果要取消该配置,需设置一个空JSON数组“[]”来表示不做配置。', 'type' => 'string', 'required' => false, 'example' => '[{"name":"x1","value":"y1"},{"name":"x2","valueFrom":{"configMapKeyRef":{"name":"my-config","key":"y2"}}},{"name":"x3","valueFrom":{"secretKeyRef":{"name":"my-secret","key":"y3"}}}]'],
],
[
'name' => 'ImageTag',
'in' => 'query',
'schema' => ['description' => '镜像Tag。', 'type' => 'string', 'required' => false, 'example' => 'latest'],
],
[
'name' => 'BatchWaitTime',
'in' => 'query',
'schema' => ['description' => 'Pod分批发布的最小间隔时间,详细信息请参见[minReadySeconds](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#min-ready-seconds)。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'Command',
'in' => 'query',
'schema' => ['description' => '容器启动命令。'."\n"
."\n"
.'> 如果要取消该配置,需设置一个空字符串`""`来表示不做配置。', 'type' => 'string', 'required' => false, 'example' => 'ls'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'e83acea6-****-47e1-96ae-c0e953772cdc'],
],
[
'name' => 'PostStart',
'in' => 'query',
'schema' => ['description' => '启动后执行脚本,格式如:`{"exec":{"command":\\["cat","/etc/group"\\]}}`。如果设置为`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "exec":{'."\n"
.' "command":['."\n"
.' "ls",'."\n"
.' "/"'."\n"
.' ]'."\n"
.' }'."\n"
.'}'],
],
[
'name' => 'Readiness',
'in' => 'query',
'schema' => ['description' => '容器业务状态检查,如果检查失败,经过K8s service的流量将不转入到该容器,格式如:`{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \\[{"name": "test","value": "testvalue"}\\]}}`。如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"}]}}'],
],
[
'name' => 'Liveness',
'in' => 'query',
'schema' => ['description' => '容器存活状态监测,格式如`{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}`。如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}'],
],
[
'name' => 'Args',
'in' => 'query',
'schema' => ['description' => '容器启动Args命令参数,格式必须符合JSON数组`\\["参数1","参数2"\\]`,其中key固定为字符串,清空需设置为空JSON数组`"\\[\\]"`。', 'type' => 'string', 'required' => false, 'example' => '["args1","args2"]'],
],
[
'name' => 'Replicas',
'in' => 'query',
'schema' => ['description' => '应用实例数,最小为0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'Image',
'in' => 'query',
'schema' => ['description' => '镜像完整URL,覆盖镜像Tag参数。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-beijing.aliyuncs.com/t****/app:v1'],
],
[
'name' => 'CpuLimit',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的CPU限制。 单位:核数,设置为0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'MemoryLimit',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的内存限制。单位:MB,设置为0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'CpuRequest',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例需要申请的CPU配额,推荐设置。'."\n"
.'单位:核数,设置为0表示不限制。'."\n"
."\n"
.'> 设置该参数时,还需要设置CpuLimit参数,且需要小于等于CpuLimit的参数值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'MemoryRequest',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例需要申请的内存配额,推荐设置。单位:MB。设置为0表示不申请。'."\n"
."\n"
.'> 设置该参数时,还需要设置MemoryLimit参数,且需要小于等于MemoryLimit的参数值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'NasId',
'in' => 'query',
'schema' => ['description' => '挂载的NAS的ID,必须与集群在同一个地域。它必须有可用的挂载点创建额度,或者它的挂载点已经在VPC内的交换机上。如果不填,且存在mountDescs字段,则默认将自动购买一个NAS并挂载到VPC内的交换机上。', 'type' => 'string', 'required' => false, 'example' => 'dfs23****'],
],
[
'name' => 'MountDescs',
'in' => 'query',
'schema' => ['description' => '挂载配置描述,为一个序列化的JSON。例如:`\\[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}\\]`。其中,nasPath是指文件储存路径;mountPath是指挂载到容器内的路径。', 'type' => 'string', 'required' => false, 'example' => '[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]'],
],
[
'name' => 'StorageType',
'in' => 'query',
'schema' => ['description' => 'NAS存储类型,包括:'."\n"
.'* 通用型NAS:Capacity(容量型)、Performance(性能型)'."\n"
.'* 极速型NAS:standard(标准型)、advance(高级型)'."\n"
."\n"
.'目前只支持Performance类型。', 'type' => 'string', 'required' => false, 'example' => 'Performance'],
],
[
'name' => 'LocalVolume',
'in' => 'query',
'schema' => ['description' => '宿主机文件挂载到容器内的配置。例如:`\\[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}\\]`。其中,nodePath为宿主机路径;mountPath为容器内的路径;type为挂载类型。', 'type' => 'string', 'required' => false, 'example' => '[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}]'],
],
[
'name' => 'PackageUrl',
'in' => 'query',
'schema' => ['description' => '部署包地址。通过FatJar或WAR包部署的应用需要配置部署包地址。'."\n"
."\n"
.'> EDAS POP API的Java或者Python SDK需要2.44.0或以上版本。', 'type' => 'string', 'required' => false, 'example' => 'https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar'],
],
[
'name' => 'PackageVersion',
'in' => 'query',
'schema' => ['description' => '部署包的版本号,WAR和FatJar类型必填。请自定义它的含义。'."\n"
."\n"
.'> EDAS POP API的Java或者Python SDK需要2.44.0或以上版本。', 'type' => 'string', 'required' => false, 'example' => '20200720'],
],
[
'name' => 'JDK',
'in' => 'query',
'schema' => ['description' => '部署的包依赖的JDK版本。可选的参数值为Open JDK 7、Open JDK 8或Custom OpenJDK。镜像部署方式不支持此参数。当使用Custom OpenJDK时,还需配置UserBaseImageUrl字段。', 'type' => 'string', 'required' => false, 'example' => 'Open JDK 8'],
],
[
'name' => 'WebContainer',
'in' => 'query',
'schema' => ['description' => '部署包依赖的Tomcat版本。适用于通过WAR包部署的Spring Cloud和Dubbo应用,镜像不支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'apache-tomcat-7.0.91'],
],
[
'name' => 'EdasContainerVersion',
'in' => 'query',
'schema' => ['description' => '部署包依赖的EDAS Container版本。适用于通过WAR包部署的HSF应用,镜像不支持此参数。', 'type' => 'string', 'required' => false, 'example' => '3.5.9'],
],
[
'name' => 'UriEncoding',
'in' => 'query',
'schema' => ['description' => 'URI编码方式,支持ISO-8859-1、GBK、GB2312和UTF-8。'."\n"
."\n"
.'> 应用配置不设置该参数,使用Tomcat默认值。', 'type' => 'string', 'required' => false, 'example' => 'GBK'],
],
[
'name' => 'UseBodyEncoding',
'in' => 'query',
'schema' => ['description' => 'useBodyEncodingForURI是否启用。'."\n"
."\n"
.'> 应用配置不设置该参数,使用默认值false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'UpdateStrategy',
'in' => 'query',
'schema' => ['description' => '分批发布策略'."\n"
."\n"
.'- 例1:灰度1台+后续分2批+自动分批+分批间隔1分钟。'."\n"
.'`{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}`'."\n"
."\n"
.'- 例2:灰度1台+后续分2批+手动分批。'."\n"
.'`{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}`'."\n"
."\n"
.'- 例3:分2批+自动分批+分批间隔0分钟。'."\n"
.'`{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}`', 'type' => 'string', 'required' => false, 'example' => '{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}'],
],
[
'name' => 'McpuRequest',
'in' => 'query',
'schema' => ['description' => 'CPU最小资源需求,单位:核数。设置为0表示不限制。'."\n"
."\n"
.'> 设置该参数时,还需要设置CpuLimit参数,且需要小于等于CpuLimit的参数值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'McpuLimit',
'in' => 'query',
'schema' => ['description' => 'CPU能使用的最大值,单位:核数。设置为0表示不做限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'VolumesStr',
'in' => 'query',
'schema' => ['description' => '数据卷。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'PackageVersionId',
'in' => 'query',
'schema' => ['description' => '部署包版本ID。', 'type' => 'string', 'required' => false, 'example' => '2bcc********'],
],
[
'name' => 'ChangeOrderDesc',
'in' => 'query',
'schema' => ['description' => '变更记录描述。', 'type' => 'string', 'required' => false, 'example' => 'Upgrade'],
],
[
'name' => 'RuntimeClassName',
'in' => 'query',
'schema' => ['description' => '容器运行时类型:'."\n"
."\n"
.'* runc:普通容器运行时。'."\n"
.'* runv:安全沙箱容器。'."\n"
."\n"
.'该参数仅适用于使用安全沙箱容器的集群。', 'type' => 'string', 'required' => false, 'example' => 'runc'],
],
[
'name' => 'DeployAcrossZones',
'in' => 'query',
'schema' => ['description' => '是否将应用实例分布到多可用区。true为是,其他值为否。', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'BatchTimeout',
'in' => 'query',
'schema' => ['description' => '单批发布超时时间,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
[
'name' => 'EnableAhas',
'in' => 'query',
'schema' => ['description' => '是否接入AHAS。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'WebContainerConfig',
'in' => 'query',
'schema' => ['description' => 'Tomcat容器配置,设置为`""`或`"{}"`表示删除配置:'."\n"
.'- useDefaultConfig:是否使用自定义配置,若为true,则表示不使用自定义配置,若为false,则表示使用自定义配置。若不使用自定义配置,则下面的参数配置将不会生效。'."\n"
.'- contextInputType:选择应用的访问路径。'."\n"
.' - war:无需填写自定义路径,应用的访问路径是WAR包名称。'."\n"
.' - root:无需填写自定义路径,应用的访问路径是/。'."\n"
.' - custom:需要在下面的自定义路径中填写自定义的路径。'."\n"
.'- contextPath:自定义路径,当contextInputType类型为custom时,才需要配置此参数。'."\n"
.'- httpPort:端口范围为1024~65535,小于1024的端口需要Root权限才能操作。因为容器配置的是Admin权限,所以请填写大于1024的端口。如果不配置,则默认为8080。'."\n"
.'- maxThreads:配置连接池的连接数大小,默认大小是400。'."\n"
.' '."\n"
.' > 此项配置对应用性能有很大影响,请由专业人士配置。'."\n"
."\n"
.'- uriEncoding:Tomcat的编码格式,包括UTF-8、ISO-8859-1、GBK和GB2312。如果不设置则默认为ISO-8859-1。'."\n"
.'- useBodyEncoding:是否使用BodyEncoding for URL。'."\n"
.'- useAdvancedServerXml:是否使用高级配置自定义设置`server.xml`文件,当上述参数类型和具体参数无法满足您的需求时,可以选中使用高级设置,直接编辑Tomcat的`Server.xml`文件。'."\n"
.'- serverXml:高级配置中自定义设置的`server.xml`文本文件内容,当useAdvancedServerXml为true时生效。'."\n", 'type' => 'string', 'required' => false, 'example' => '{"useDefaultConfig":false,"contextInputType":"custom","contextPath":"hello","httpPort":8088,"maxThreads":400,"uriEncoding":"UTF-8","useBodyEncoding":true,"useAdvancedServerXml":false}'],
],
[
'name' => 'JavaStartUpConfig',
'in' => 'query',
'schema' => ['description' => 'Java启动参数用于在Java应用启动时配置启动参数。可配置:内存配置、应用、GC策略、工具、服务注册和发现配置和自定义等配置,正确配置这些参数有助于降低垃圾回收(GC)开销,从而缩短服务器响应时间并提高吞吐量。参数格式为JSON字符串:original为配置值,startup为启动参数,系统将自动拼接所有的startup作为应用程序的Java启动参数。设置为`""`或`"{}"`表示删除配置。', 'type' => 'string', 'required' => false, 'example' => '{"InitialHeapSize":{"original":512,"startup":"-Xms512m"},"MaxHeapSize":{"original":1024,"startup":"-Xmx1024m"}}'],
],
[
'name' => 'SlsConfigs',
'in' => 'query',
'schema' => ['description' => 'Logstore配置,设置为`""`或`"{}"`表示删除配置:'."\n"
."\n"
.'- Configs:'."\n"
."\n"
.' - type:采集类型,文件类型为file,标准输出类型为stdout。'."\n"
."\n"
.' - Logstore:logstore名称。请确保Logstore名称在同一个集群中不重复,其命名应符合规则:'."\n"
.' - Logstore名称仅支持小写字母、数字、短划线(-)和下划线(_)。'."\n"
.' - 必须以小写字母和数字开头和结尾。'."\n"
.' - 名称长度为3~63个字符。若为空,则由系统自动生成。'."\n"
.' - LogDir:若为标准输出类型,则采集路径为stdout.log,若为文件类型,则为采集的文件路径,支持通配,采集路径应符合正则:`^/(.+)/(.*)^/$`。', 'type' => 'string', 'required' => false, 'example' => '[{"logstore":"thisisanotherfilelog","type":"file","logDir":"/var/log/*"},{"logstore":"","type":"stdout","logDir":"stdout.log"},{"logstore":"thisisafilelog","type":"file","logDir":"/tmp/log/*"}]'],
],
[
'name' => 'DeployAcrossNodes',
'in' => 'query',
'schema' => ['description' => '是否将应用实例分布到多个节点。true为是,其他值为否。', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'TrafficControlStrategy',
'in' => 'query',
'schema' => ['description' => '灰度发布流量控制策略。', 'type' => 'string', 'required' => false, 'example' => '{"http":{"rules":[{"conditionType":"percent","percent":10}]}}'],
],
[
'name' => 'PvcMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s PVC(PersistentVolumeClaim)挂载,支持将K8s PVC卷挂载到指定的容器目录。PvcMountDescs的配置参数说明如下:'."\n"
."\n"
.'- pvcName:PVC卷名称,PVC卷必须已经存在,且处于Bound状态。'."\n"
.'- mountPaths:挂载目录列表,支持配置多个挂载目录。每个挂载目录支持以下两个配置参数:'."\n"
.' * mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。'."\n"
.' * readOnly:挂载模式,true为只读,false为可读写,默认为false。', 'type' => 'string', 'required' => false, 'example' => '[{"pvcName":"nas-pvc-1","mountPaths":[{"mountPath":"/usr/share/nginx/data"},{"mountPath":"/usr/share/nginx/html","readOnly":true}]}]'],
],
[
'name' => 'ConfigMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s ConfigMap和Secret挂载,支持将ConfigMap和Secret挂载到指定的容器目录。ConfigMountDescs的配置参数说明如下:'."\n"
.'- name:ConfigMap或Secret的名称。'."\n"
.'- type:配置类型,支持ConfigMap和Secret两种类型。'."\n"
.'- mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' {'."\n"
.' "name": "nginx-config",'."\n"
.' "type": "ConfigMap",'."\n"
.' "mountPath": "/etc/nginx"'."\n"
.' },'."\n"
.' {'."\n"
.' "name": "tls-secret",'."\n"
.' "type": "Secret",'."\n"
.' "mountPath": "/etc/ssh"'."\n"
.' }'."\n"
.']'],
],
[
'name' => 'EnvFroms',
'in' => 'query',
'schema' => ['description' => '配置K8s EnvFrom类型的环境变量,将指定的ConfigMap或Secret挂载到指定目录,每个key对应目录下的一个文件,文件的内容为该key对应的value。'."\n"
."\n"
.'EnvFroms的配置参数说明如下。'."\n"
.' - configMapRef:ConfigMap引用,该字段包括以下参数:'."\n"
.' - name:ConfigMap名称。'."\n"
.'- secretRef:Secret引用,该字段包括以下参数:'."\n"
.' - name:Secret名称。'."\n", 'type' => 'string', 'required' => false, 'example' => '[{"name":"appname","valueFrom":{"configMapKeyRef":{"name":"appconf","key":"name"}}}]'],
],
[
'name' => 'EmptyDirs',
'in' => 'query',
'schema' => ['description' => '配置K8s emptyDir挂载,支持将emptyDir卷挂载到指定的容器目录。EmptyDirs的配置参数说明如下:'."\n"
."\n"
.'- mountPath:容器挂载路径,必填。'."\n"
.'- readOnly:是否只读,可选,true为只读,false为读写,默认为false。'."\n"
.'- subPathExpr:子目录表达式,可选。', 'type' => 'string', 'required' => false, 'example' => '[{"mountPath":"/app-log","subPathExpr":"$(POD_IP)"},{"readOnly":true,"mountPath":"/etc/nginx"}]'],
],
[
'name' => 'CustomAffinity',
'in' => 'query',
'schema' => ['description' => 'Pod亲和性配置,当且仅当DeployAcrossNodes与DeployAcrossZones都为false时生效。', 'type' => 'string', 'required' => false, 'example' => '{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"beta.kubernetes.io/arch","operator":"NotIn","values":["arm64","arm32"]}]}]},"preferredDuringSchedulingIgnoredDuringExecution":[{"weight":5,"preference":{"matchExpressions":[{"key":"kubernetes.io/os","operator":"In","values":["linux"]}]}}]},"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"namespaces":["default"],"topologyKey":"kubernetes.io/hostname","labelSelector":{"matchExpressions":[{"key":"edas.oam.acname","operator":"NotIn","values":["edas-test-app"]}]}}]},"podAntiAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"namespaces":["default"],"topologyKey":"failure-domain.beta.kubernetes.io/zone","labelSelector":{"matchExpressions":[{"key":"edas.oam.acname","operator":"In","values":["edas-test-app-2"]}]}},"weight":15}]}}'],
],
[
'name' => 'CustomTolerations',
'in' => 'query',
'schema' => ['description' => 'Pod调度容忍配置,当且仅当DeployAcrossNodes与DeployAcrossZones都为false时生效。', 'type' => 'string', 'required' => false, 'example' => '[{"key":"edas-taint-key2","operator":"Exists","effect":"NoExecute","tolerationSeconds":50},{"key":"edas-taint-key","operator":"Equal","value":"edas-taint-value","effect":"PreferNoSchedule"}]'],
],
[
'name' => 'BuildPackId',
'in' => 'query',
'schema' => ['description' => 'EDAS-Container构建包号:'."\n"
."\n"
.'- 如果部署时不需要更改EDAS-Container版本,则该参数可不设置。'."\n"
.'- 如果需要在本次部署时,更新目标应用的EDAS-Container版本,则需要设置。'."\n"
."\n"
.'有以下两种获取方式:'."\n"
."\n"
.'- 可通过查询容器版本列表接口ListBuildPack获取,请参见[ListBuildPack](~~423222~~)。'."\n"
.'- 在[容器版本说明](~~92614~~)表格中的**构建包序号**列获取。例如`59`表示`EDAS-Container 3.5.8 版本`。', 'type' => 'string', 'required' => false, 'example' => '59'],
],
[
'name' => 'Annotations',
'in' => 'query',
'schema' => ['description' => '应用Pod注解。', 'type' => 'string', 'required' => false, 'example' => '{"annotation-name-1":"annotation-value-1","annotation-name-2":"annotation-value-2"}'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => '应用Pod标签。', 'type' => 'string', 'required' => false, 'example' => '{"label-name-1":"label-value-1","label-name-2":"label-value-2"}'],
],
[
'name' => 'EnableEmptyPushReject',
'in' => 'query',
'schema' => ['title' => '是否开启推空保护', 'description' => '是否开启推空保护:'."\n"
."\n"
.'- true:开启推空保护。'."\n"
.'- false:不开启推空保护。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'EnableLosslessRule',
'in' => 'query',
'schema' => ['title' => '是否启用无损上线规则', 'description' => '是否启用无损上线规则:'."\n"
."\n"
.'- true:启用无损上线规则。'."\n"
.'- false:不启用无损上线规则。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LosslessRuleWarmupTime',
'in' => 'query',
'schema' => ['title' => '无损上线服务预热时长', 'description' => '服务预热时长,单位:秒。取值范围为0~86400秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '120'],
],
[
'name' => 'LosslessRuleDelayTime',
'in' => 'query',
'schema' => ['title' => '无损上线延迟注册时长', 'description' => '服务延迟注册时长,单位:秒。取值范围为0~86400秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'LosslessRuleFuncType',
'in' => 'query',
'schema' => ['title' => '无损上线服务预热曲线', 'description' => '服务预热曲线。取值范围0~20。默认为2(适合于一般预热场景),表示在预热周期内服务提供者的流量接收曲线形状呈2次曲线形状。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'LosslessRuleAligned',
'in' => 'query',
'schema' => ['title' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务注册', 'description' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务注册:'."\n"
."\n"
.'- true:打开开关会为应用无侵入提供55199端口和/health路径的健康检查方式,当完成服务注册后,该接口返回200,否则返回500。'."\n"
.'> 若同时配置`LosslessRuleRelated`为true,则该接口检查是否完成服务预热。'."\n"
."\n"
.'- false:不为应用提供检查是否完成服务注册的接口。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LosslessRuleRelated',
'in' => 'query',
'schema' => ['title' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务预热', 'description' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务预热:'."\n"
."\n"
.'- true:打开开关会为应用无侵入提供55199端口和/health路径的健康检查方式,当完成服务预热后,该接口返回200,否则返回500。'."\n"
.'- false:不为应用提供检查是否完成服务预热的接口。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LimitEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储资源需求上限,单位:GB。设置0表示不限制。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'RequestsEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储最小资源需求,单位:GB。设置0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'Sidecars',
'in' => 'query',
'schema' => ['description' => '为应用Pod设置Sidecar容器。支持设置容器配置的格式YAML,其值为Sidecar容器YAML配置base64编码后的值。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' {'."\n"
.' "yamlEncoded": "Y29tbWFuZDoKICAtIHRhaWwKICAtICctZicKICAtIC9kZXYvbnVsbAppbWFnZTogJ2J1c3lib3g6bGF0ZXN0JwpuYW1lOiBidXN5Ym94Cg=="'."\n"
.' }'."\n"
.']'],
],
[
'name' => 'InitContainers',
'in' => 'query',
'schema' => ['description' => '为应用Pod设置初始化容器。支持设置容器配置的格式YAML,其值为Init容器YAML配置base64编码后的值。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' {'."\n"
.' "yamlEncoded": "Y29tbWFuZDoKICAtIHNsZWVwCiAgLSAnNjAnCmltYWdlOiAnYnVzeWJveDpsYXRlc3QnCm5hbWU6IGluaXQtYnVzeWJveAo="'."\n"
.' }'."\n"
.']'],
],
[
'name' => 'UserBaseImageUrl',
'in' => 'query',
'schema' => ['description' => '使用自定义JDK运行时,需要配置基础镜像地址。该地址需要可公开访问,EDAS服务端会拉取该镜像,用于构建应用镜像。', 'type' => 'string', 'required' => false, 'example' => 'openjdk:8u302'],
],
[
'name' => 'CanaryRuleId',
'in' => 'query',
'schema' => ['description' => '金丝雀规则策略ID。', 'type' => 'string', 'required' => false, 'example' => 'a8daf22e-****-968c7ff2ea34'],
],
[
'name' => 'TerminateGracePeriod',
'in' => 'query',
'schema' => ['description' => '设置应用优雅停止超时时间。单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '120'],
],
[
'name' => 'ImagePlatforms',
'in' => 'query',
'schema' => ['title' => '镜像目标平台架构,当使用war、jar部署时有效,输入样例:'."\n"
.'1.指定x86 64架构:linux/amd64'."\n"
.'2.指定arm 64架构:linux/arm64'."\n"
.'3.指定构建双架构镜像:linux/amd64,linux/arm64'."\n"
.'4.不输入:默认架构', 'description' => '镜像目标平台架构,当使用war、jar部署时有效,输入样例:'."\n"
."\n"
.'- 指定x86 64架构:linux/amd64'."\n"
."\n"
.'- 指定arm 64架构:linux/arm64'."\n"
."\n"
.'- 指定构建双架构镜像:linux/amd64,linux/arm64'."\n"
."\n"
.'- 不输入:默认架构', 'type' => 'string', 'required' => false, 'example' => 'linux/arm64,linux/amd64'],
],
[
'name' => 'Startup',
'in' => 'query',
'schema' => ['description' => '启动探针可以用于对慢启动容器进行存活性检测,避免它们在启动运行之前就被杀掉,格式如:{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"}]}}。'."\n"
."\n"
.'如果设置为""或者{}表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}'],
],
[
'name' => 'CustomAgentVersion',
'in' => 'query',
'schema' => ['description' => '设置应用挂载的自定义ArmsAgent探针版本。'."\n"
."\n"
.'> 该功能为白名单开放。如有需求,请提交工单申请加入白名单。', 'type' => 'string', 'required' => false, 'example' => '3.1.4'],
],
[
'name' => 'SecurityContext',
'in' => 'query',
'schema' => ['description' => '为应用 Pod 容器设置 SecurityContext属性。其值为 SecurityContext YAML 配置 base64 编码后的值。', 'type' => 'string', 'required' => false, 'example' => '{"yamlEncoded":"cnVuQXNVc2VyOiAwCnJ1bkFzR3JvdXA6IDA="}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID,可调用GetChangeOrderInfo接口获取,详情请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'example' => 'cd65b247-****-475b-ad4b-7039040d625c'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de*****'],
],
],
],
],
'title' => '部署K8s应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-01-30T08:20:32.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-10-10T06:54:50.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-04-11T05:47:47.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-04-03T07:06:49.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-03-27T07:13:39.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-03-24T02:13:00.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-10-18T16:44:17.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-01-27T03:48:58.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeployK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"cd65b247-****-475b-ad4b-7039040d625c\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de*****\\"\\n}","errorExample":""},{"type":"xml","example":"<DeployK8sApplicationResponse>\\n <ChangeOrderId>cd65b247-****-475b-ad4b-7039040d625c</ChangeOrderId>\\n <Code>200</Code>\\n <Message>success</Message>\\n <RequestId>a5281053-08e4-47a5-b2ab-5c0323de*****</RequestId>\\n</DeployK8sApplicationResponse>","errorExample":""}]',
],
'DescribeAppInstanceList' => [
'path' => '/pop/v5/oam/app_instance_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取。更多信息,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-*****-ed2ae98de18d'],
],
[
'name' => 'WithNodeInfo',
'in' => 'query',
'schema' => ['description' => '是否返回Pod所在的节点信息。'."\n"
."\n"
.'- `true`:是'."\n"
.'- `false`:否', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
'InstanceList' => [
'description' => '应用实例列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'NodeLabels' => ['description' => '节点标签,内容为JSON格式字符串。', 'type' => 'string', 'example' => '{"alibabacloud.com/nodepool-id":"np0*5b9377fa907","beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/instance-type":"ecs.*","beta.kubernetes.io/os":"linux","failure-domain.beta.kubernetes.io/region":"cn-hangzhou","failure-domain.beta.kubernetes.io/zone":"cn-hangzhou-b","kubernetes.io/arch":"amd64","kubernetes.io/hostname":"cn-hangzhou*","kubernetes.io/os":"linux","node.kubernetes.io/instance-type":"ecs.*","topology.diskplugin.csi.alibabacloud.com/zone":"cn-hangzhou-b","topology.kubernetes.io/region":"cn-hangzhou","topology.kubernetes.io/zone":"cn-hangzhou-b"}'],
'GroupId' => ['description' => '部署分组ID。', 'type' => 'string', 'example' => '93fdd228-*****-ed2ae98de18d'],
'GroupName' => ['description' => '部署分组名。', 'type' => 'string', 'example' => '_DEFAULT_GROUP'],
'Canary' => ['description' => '是否是金丝雀发布实例。'."\n"
.'- `true`:是'."\n"
.'- `false`:否', 'type' => 'boolean', 'example' => 'false'],
'NodeName' => ['description' => '节点名称。', 'type' => 'string', 'example' => 'cn-hangzhou.192.168.0.*'],
'PodRaw' => ['description' => 'Pod信息,内容为JSON格式字符串。', 'type' => 'string', 'example' => '{"metadata":{"name":"oambuild-group-1-*4xthz","generateName":"oambuild-group-*96-","namespace":"default","selfLink":"/api/v1/namespaces/default/pods/oambuild-grou*96-4xthz","uid":"7a23399c-*fe7ff4018","resourceVersion":"969614830","creationTimestamp":"2021-04-06T11:38:46Z","labels":{"ARMSApmAppId":"*","ARMSApmLicenseKey":"*"...'],
'Version' => ['description' => '节点部署的包版本。', 'type' => 'string', 'example' => '2021-04-06 19:37:42'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '93fdd228-*****-ed2ae98de18d'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'No permissions', 'description' => ''],
['errorCode' => 'Edas.errorcode.ParameterMissing.AppId.message', 'errorMessage' => 'Application ID is missing.', 'description' => ''],
],
],
'staticInfo' => [],
'title' => '查询K8s应用实例列表',
'summary' => '调用DescribeAppInstanceList接口查询K8s应用实例列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAppInstanceList'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\",\\n \\"InstanceList\\": [\\n {\\n \\"NodeLabels\\": \\"{\\\\\\"alibabacloud.com/nodepool-id\\\\\\":\\\\\\"np0*5b9377fa907\\\\\\",\\\\\\"beta.kubernetes.io/arch\\\\\\":\\\\\\"amd64\\\\\\",\\\\\\"beta.kubernetes.io/instance-type\\\\\\":\\\\\\"ecs.*\\\\\\",\\\\\\"beta.kubernetes.io/os\\\\\\":\\\\\\"linux\\\\\\",\\\\\\"failure-domain.beta.kubernetes.io/region\\\\\\":\\\\\\"cn-hangzhou\\\\\\",\\\\\\"failure-domain.beta.kubernetes.io/zone\\\\\\":\\\\\\"cn-hangzhou-b\\\\\\",\\\\\\"kubernetes.io/arch\\\\\\":\\\\\\"amd64\\\\\\",\\\\\\"kubernetes.io/hostname\\\\\\":\\\\\\"cn-hangzhou*\\\\\\",\\\\\\"kubernetes.io/os\\\\\\":\\\\\\"linux\\\\\\",\\\\\\"node.kubernetes.io/instance-type\\\\\\":\\\\\\"ecs.*\\\\\\",\\\\\\"topology.diskplugin.csi.alibabacloud.com/zone\\\\\\":\\\\\\"cn-hangzhou-b\\\\\\",\\\\\\"topology.kubernetes.io/region\\\\\\":\\\\\\"cn-hangzhou\\\\\\",\\\\\\"topology.kubernetes.io/zone\\\\\\":\\\\\\"cn-hangzhou-b\\\\\\"}\\",\\n \\"GroupId\\": \\"93fdd228-*****-ed2ae98de18d\\",\\n \\"GroupName\\": \\"_DEFAULT_GROUP\\",\\n \\"Canary\\": false,\\n \\"NodeName\\": \\"cn-hangzhou.192.168.0.*\\",\\n \\"PodRaw\\": \\"{\\\\\\"metadata\\\\\\":{\\\\\\"name\\\\\\":\\\\\\"oambuild-group-1-*4xthz\\\\\\",\\\\\\"generateName\\\\\\":\\\\\\"oambuild-group-*96-\\\\\\",\\\\\\"namespace\\\\\\":\\\\\\"default\\\\\\",\\\\\\"selfLink\\\\\\":\\\\\\"/api/v1/namespaces/default/pods/oambuild-grou*96-4xthz\\\\\\",\\\\\\"uid\\\\\\":\\\\\\"7a23399c-*fe7ff4018\\\\\\",\\\\\\"resourceVersion\\\\\\":\\\\\\"969614830\\\\\\",\\\\\\"creationTimestamp\\\\\\":\\\\\\"2021-04-06T11:38:46Z\\\\\\",\\\\\\"labels\\\\\\":{\\\\\\"ARMSApmAppId\\\\\\":\\\\\\"*\\\\\\",\\\\\\"ARMSApmLicenseKey\\\\\\":\\\\\\"*\\\\\\"...\\",\\n \\"Version\\": \\"2021-04-06 19:37:42\\",\\n \\"AppId\\": \\"93fdd228-*****-ed2ae98de18d\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeAppInstanceListResponse>\\n<Message>success</Message>\\n<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>\\n<InstanceList>\\n <GroupName>_DEFAULT_GROUP</GroupName>\\n <AppId>93fdd228-*****-ed2ae98de18d</AppId>\\n <NodeName>cn-hangzhou.192.168.0.*</NodeName>\\n <Version>2021-04-06 19:37:42</Version>\\n <Canary>false</Canary>\\n <NodeLabels>{\\"alibabacloud.com/nodepool-id\\":\\"np0*5b9377fa907\\",\\"beta.kubernetes.io/arch\\":\\"amd64\\",\\"beta.kubernetes.io/instance-type\\":\\"ecs.*\\",\\"beta.kubernetes.io/os\\":\\"linux\\",\\"failure-domain.beta.kubernetes.io/region\\":\\"cn-hangzhou\\",\\"failure-domain.beta.kubernetes.io/zone\\":\\"cn-hangzhou-b\\",\\"kubernetes.io/arch\\":\\"amd64\\",\\"kubernetes.io/hostname\\":\\"cn-hangzhou*\\",\\"kubernetes.io/os\\":\\"linux\\",\\"node.kubernetes.io/instance-type\\":\\"ecs.*\\",\\"topology.diskplugin.csi.alibabacloud.com/zone\\":\\"cn-hangzhou-b\\",\\"topology.kubernetes.io/region\\":\\"cn-hangzhou\\",\\"topology.kubernetes.io/zone\\":\\"cn-hangzhou-b\\"}</NodeLabels>\\n <PodRaw>{\\"metadata\\":{\\"name\\":\\"oambuild-group-1-*4xthz\\",\\"generateName\\":\\"oambuild-group-*96-\\",\\"namespace\\":\\"default\\",\\"selfLink\\":\\"/api/v1/namespaces/default/pods/oambuild-grou*96-4xthz\\",\\"uid\\":\\"7a23399c-*fe7ff4018\\",\\"resourceVersion\\":\\"969614830\\",\\"creationTimestamp\\":\\"2021-04-06T11:38:46Z\\",\\"labels\\":{\\"ARMSApmAppId\\":\\"*\\",\\"ARMSApmLicenseKey\\":\\"*\\"...</PodRaw>\\n <GroupId>93fdd228-*****-ed2ae98de18d</GroupId>\\n</InstanceList>\\n<Code>200</Code>\\n</DescribeAppInstanceListResponse>","errorExample":""}]',
],
'DescribeApplicationScalingRules' => [
'path' => '/pop/v1/eam/scale/application_scaling_rules',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'AppScalingRules' => [
'description' => '应用的弹性伸缩策略。',
'type' => 'object',
'properties' => [
'CurrentPage' => ['description' => '当前页。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '每页展示的弹性策略数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalSize' => ['description' => '弹性策略总的数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'Result' => [
'description' => '应用的弹性策略查询结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'CreateTime' => ['description' => '创建弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'AppId' => ['description' => '弹性伸缩策略所属应用的应用ID。', 'type' => 'string', 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
'LastDisableTime' => ['description' => '弹性伸缩策略最近一次被禁用的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleEnabled' => ['description' => '弹性策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'example' => 'true'],
'ScaleRuleType' => ['description' => '弹性策略类型,仅支持trigger类型。', 'type' => 'string', 'example' => 'trigger'],
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleName' => ['description' => '弹性策略的名称。', 'type' => 'string', 'example' => 'cpu-trigger'],
'Metric' => [
'description' => '此参数已废弃。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Metrics' => [
'description' => '此参数已废弃。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MetricTargetAverageUtilization' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MetricType' => ['description' => '此参数已废弃。', 'type' => 'string', 'example' => 'asd'],
],
'description' => '',
],
],
],
],
'Trigger' => [
'description' => '触发器配置列表。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '最小副本数,不能低于0。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '最大副本数,不能超过1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '122'],
'Triggers' => [
'description' => '触发器配置列表。',
'type' => 'array',
'items' => [
'description' => '触发器配置列表对象。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '触发器类型,只支持cron和app_metric。', 'type' => 'string', 'example' => 'cron'],
'MetaData' => ['description' => '触发器元信息。', 'type' => 'string', 'example' => '{"dryRun":true}'],
'Name' => ['description' => '触发器名称。', 'type' => 'string', 'example' => 'cron-trigger'],
],
],
],
],
],
'Behaviour' => [
'description' => '弹性行为。',
'type' => 'object',
'properties' => [
'ScaleUp' => [
'description' => '弹性扩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '扩容冷却时间。取值范围[0, 3600],单位为秒。默认为0秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'SelectPolicy' => ['description' => '弹性扩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'description' => '策略配置对象。',
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
],
],
],
],
'ScaleDown' => [
'description' => '弹性缩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '缩容冷却时间。取值范围[0, 3600],单位为秒。默认为300秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
'SelectPolicy' => ['description' => '弹性缩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'description' => '策略配置。',
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
],
],
],
],
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'title' => '获取应用弹性伸缩规则',
'summary' => '调用DescribeApplicationScalingRules接口获取应用的弹性伸缩规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-01-03T03:43:53.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-11-17T05:38:17.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"AppScalingRules\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 20,\\n \\"Result\\": [\\n {\\n \\"UpdateTime\\": 23212323123,\\n \\"CreateTime\\": 23212323123,\\n \\"AppId\\": \\"78194c76-3dca-418e-a263-cccd1ab4****\\",\\n \\"LastDisableTime\\": 23212323123,\\n \\"MaxReplicas\\": 1,\\n \\"ScaleRuleEnabled\\": true,\\n \\"ScaleRuleType\\": \\"trigger\\",\\n \\"MinReplicas\\": 1,\\n \\"ScaleRuleName\\": \\"cpu-trigger\\",\\n \\"Metric\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 1,\\n \\"Metrics\\": [\\n {\\n \\"MetricTargetAverageUtilization\\": 1,\\n \\"MetricType\\": \\"asd\\"\\n }\\n ]\\n },\\n \\"Trigger\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 122,\\n \\"Triggers\\": [\\n {\\n \\"Type\\": \\"cron\\",\\n \\"MetaData\\": \\"{\\\\\\"dryRun\\\\\\":true}\\",\\n \\"Name\\": \\"cron-trigger\\"\\n }\\n ]\\n },\\n \\"Behaviour\\": {\\n \\"ScaleUp\\": {\\n \\"StabilizationWindowSeconds\\": 15,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n },\\n \\"ScaleDown\\": {\\n \\"StabilizationWindowSeconds\\": 300,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n }\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<AppScalingRules>\\n <PageSize>10</PageSize>\\n <CurrentPage>1</CurrentPage>\\n <TotalSize>20</TotalSize>\\n <Result>\\n <ScaleRuleEnabled>true</ScaleRuleEnabled>\\n <LastDisableTime>23212323123</LastDisableTime>\\n <AppId>78194c76-3dca-418e-a263-cccd1ab4****</AppId>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <CreateTime>23212323123</CreateTime>\\n <UpdateTime>23212323123</UpdateTime>\\n <ScaleRuleName>cpu-trigger</ScaleRuleName>\\n <ScaleRuleType>trigger</ScaleRuleType>\\n <Metric>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <Metrics>\\n <MetricType>asd</MetricType>\\n <MetricTargetAverageUtilization>1</MetricTargetAverageUtilization>\\n </Metrics>\\n </Metric>\\n <Trigger>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>122</MaxReplicas>\\n <Triggers>\\n <Type>cron</Type>\\n <MetaData>{\\"dryRun\\":true}</MetaData>\\n <Name>cron-trigger</Name>\\n </Triggers>\\n </Trigger>\\n </Result>\\n</AppScalingRules>\\n<Message>success</Message>\\n<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'DescribeLocalitySetting' => [
'path' => '/pop/sp/applications/locality/setting',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shanghai'],
],
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['description' => '微服务空间id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shanghai:test'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。可通过查询ListApplication接口获取,请参见[ListApplication](~~423162~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'dc190221-22b5-491c-a548-82f5fa1e3e26'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。说明 200表示成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'HttpStatusCode' => ['description' => 'http状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => '1053-08e4-47a5-b2ab-5c0323de****'],
'Success' => ['description' => '返回结果。'."\n"
."\n"
.'- `true`:返回成功。'."\n"
.'- `false`:返回失败。', 'type' => 'boolean', 'example' => 'True'],
'Data' => [
'description' => '空值,无实际含义。',
'type' => 'object',
'properties' => [
'Threshold' => ['description' => '阈值', 'type' => 'number', 'format' => 'float', 'example' => '15'],
'Enabled' => ['description' => '是否启用', 'type' => 'boolean', 'example' => 'true'],
],
],
],
'description' => '',
],
],
],
'title' => '获取本地配置',
'summary' => '获取本地配置',
'description' => '> 当前仅支持Deployment资源的修改。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NamespaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1053-08e4-47a5-b2ab-5c0323de****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Threshold\\": 15,\\n \\"Enabled\\": true\\n }\\n}","type":"json"}]',
],
'DisableApplicationScalingRule' => [
'path' => '/pop/v1/eam/scale/disable_application_scaling_rule',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
[
'name' => 'ScalingRuleName',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略的名称。', 'type' => 'string', 'required' => false, 'example' => 'cron-trigger'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => '5d6fa0bc-cc3**********'],
'AppScalingRule' => [
'description' => '弹性伸缩策略。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'CreateTime' => ['description' => '创建弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'AppId' => ['description' => '弹性伸缩策略所属应用的应用ID。', 'type' => 'string', 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
'LastDisableTime' => ['description' => '弹性伸缩策略最近一次被禁用的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleEnabled' => ['description' => '弹性伸缩策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'example' => 'true'],
'ScaleRuleType' => ['description' => '弹性伸缩策略类型,只支持trigger。', 'type' => 'string', 'example' => 'trigger'],
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleName' => ['description' => '弹性伸缩策略的名称。', 'type' => 'string', 'example' => 'cron-trigger'],
'Metric' => [
'description' => '此参数已废弃。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '12'],
'Metrics' => [
'description' => '此参数已废弃。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MetricTargetAverageUtilization' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MetricType' => ['description' => '此参数已废弃。', 'type' => 'string', 'example' => '1'],
],
'description' => '',
],
],
],
],
'Trigger' => [
'description' => '触发器配置。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '最小副本数,不能低于0。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '最大副本数,不能超过1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '12'],
'Triggers' => [
'description' => '触发器。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '触发器类型,只支持cron和app_metric。', 'type' => 'string', 'example' => 'cron'],
'MetaData' => ['description' => '触发器元信息。', 'type' => 'string', 'example' => '{"dryRun":true}'],
'Name' => ['description' => '触发器名称。', 'type' => 'string', 'example' => 'cron-trigger'],
],
'description' => '',
],
],
],
],
],
],
],
'description' => '',
],
],
],
'title' => '禁用应用弹性伸缩规则',
'summary' => '禁用应用弹性伸缩规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-17T05:38:18.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"5d6fa0bc-cc3**********\\",\\n \\"AppScalingRule\\": {\\n \\"UpdateTime\\": 23212323123,\\n \\"CreateTime\\": 23212323123,\\n \\"AppId\\": \\"78194c76-3dca-418e-a263-cccd1ab4****\\",\\n \\"LastDisableTime\\": 23212323123,\\n \\"MaxReplicas\\": 1,\\n \\"ScaleRuleEnabled\\": true,\\n \\"ScaleRuleType\\": \\"trigger\\",\\n \\"MinReplicas\\": 1,\\n \\"ScaleRuleName\\": \\"cron-trigger\\",\\n \\"Metric\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 12,\\n \\"Metrics\\": [\\n {\\n \\"MetricTargetAverageUtilization\\": 1,\\n \\"MetricType\\": \\"1\\"\\n }\\n ]\\n },\\n \\"Trigger\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 12,\\n \\"Triggers\\": [\\n {\\n \\"Type\\": \\"cron\\",\\n \\"MetaData\\": \\"{\\\\\\"dryRun\\\\\\":true}\\",\\n \\"Name\\": \\"cron-trigger\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>5d6fa0bc-cc3**********</RequestId>\\n<AppScalingRule>\\n <ScaleRuleEnabled>true</ScaleRuleEnabled>\\n <LastDisableTime>23212323123</LastDisableTime>\\n <AppId>78194c76-3dca-418e-a263-cccd1ab4****</AppId>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <CreateTime>23212323123</CreateTime>\\n <UpdateTime>23212323123</UpdateTime>\\n <ScaleRuleName>cron-trigger</ScaleRuleName>\\n <ScaleRuleType>trigger</ScaleRuleType>\\n <Metric>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>12</MaxReplicas>\\n <Metrics>\\n <MetricType>1</MetricType>\\n <MetricTargetAverageUtilization>1</MetricTargetAverageUtilization>\\n </Metrics>\\n </Metric>\\n <Trigger>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>12</MaxReplicas>\\n <Triggers>\\n <Type>cron</Type>\\n <MetaData>{\\"dryRun\\":true}</MetaData>\\n <Name>cron-trigger</Name>\\n </Triggers>\\n </Trigger>\\n</AppScalingRule>\\n<Code>200</Code>","errorExample":""}]',
],
'EnableApplicationScalingRule' => [
'summary' => '调用EnableApplicationScalingRule接口启用应用弹性伸缩规则。',
'path' => '/pop/v1/eam/scale/enable_application_scaling_rule',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
[
'name' => 'ScalingRuleName',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略的名称。', 'type' => 'string', 'required' => false, 'example' => 'cpu-trigger'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'AppScalingRule' => [
'description' => '弹性伸缩策略。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'CreateTime' => ['description' => '创建弹性伸缩策略的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'AppId' => ['description' => '弹性伸缩策略所属应用的应用ID。', 'type' => 'string', 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
'LastDisableTime' => ['description' => '弹性伸缩策略最近一次被禁用的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '23212323123'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleEnabled' => ['description' => '弹性伸缩策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'example' => 'true'],
'ScaleRuleType' => ['description' => '弹性伸缩策略类型,仅支持trigger类型。', 'type' => 'string', 'example' => 'trigger'],
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleName' => ['description' => '弹性伸缩的策略名称。', 'type' => 'string', 'example' => 'cpu-trigger'],
'Metric' => [
'description' => '此参数已废弃。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Metrics' => [
'description' => '此参数已废弃。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MetricTargetAverageUtilization' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '12'],
'MetricType' => ['description' => '此参数已废弃。', 'type' => 'string', 'example' => 'cpu'],
],
'description' => '',
],
],
],
],
'Trigger' => [
'description' => '触发器配置。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '最小副本数,下限0。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '最大副本数,上限1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '122'],
'Triggers' => [
'description' => '触发器列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '触发器类型,仅支持cron和app_metric。', 'type' => 'string', 'example' => 'cron'],
'MetaData' => ['description' => '触发器元信息。', 'type' => 'string', 'example' => '{"dryRun":true}'],
'Name' => ['description' => '触发器名称。', 'type' => 'string', 'example' => 'cpu'],
],
'description' => '',
],
],
],
],
],
],
],
'description' => '',
],
],
],
'title' => '启用应用弹性伸缩规则',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-17T05:38:18.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"AppScalingRule\\": {\\n \\"UpdateTime\\": 23212323123,\\n \\"CreateTime\\": 23212323123,\\n \\"AppId\\": \\"78194c76-3dca-418e-a263-cccd1ab4****\\",\\n \\"LastDisableTime\\": 23212323123,\\n \\"MaxReplicas\\": 1,\\n \\"ScaleRuleEnabled\\": true,\\n \\"ScaleRuleType\\": \\"trigger\\",\\n \\"MinReplicas\\": 1,\\n \\"ScaleRuleName\\": \\"cpu-trigger\\",\\n \\"Metric\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 1,\\n \\"Metrics\\": [\\n {\\n \\"MetricTargetAverageUtilization\\": 12,\\n \\"MetricType\\": \\"cpu\\"\\n }\\n ]\\n },\\n \\"Trigger\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 122,\\n \\"Triggers\\": [\\n {\\n \\"Type\\": \\"cron\\",\\n \\"MetaData\\": \\"{\\\\\\"dryRun\\\\\\":true}\\",\\n \\"Name\\": \\"cpu\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<AppScalingRule>\\n <ScaleRuleEnabled>true</ScaleRuleEnabled>\\n <LastDisableTime>23212323123</LastDisableTime>\\n <AppId>78194c76-3dca-418e-a263-cccd1ab4****</AppId>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <CreateTime>23212323123</CreateTime>\\n <UpdateTime>23212323123</UpdateTime>\\n <ScaleRuleName>cpu-trigger</ScaleRuleName>\\n <ScaleRuleType>trigger</ScaleRuleType>\\n <Metric>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <Metrics>\\n <MetricType>cpu</MetricType>\\n <MetricTargetAverageUtilization>12</MetricTargetAverageUtilization>\\n </Metrics>\\n </Metric>\\n <Trigger>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>122</MaxReplicas>\\n <Triggers>\\n <Type>cron</Type>\\n <MetaData>{\\"dryRun\\":true}</MetaData>\\n <Name>cpu</Name>\\n </Triggers>\\n </Trigger>\\n</AppScalingRule>\\n<Code>200</Code>","errorExample":""}]',
],
'GetAppDeployment' => [
'summary' => '调用GetAppDeployment接口获取K8s应用的Deployment信息。',
'path' => '/pop/v5/oam/app_deployment',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-*****-ed2ae98de18d'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '应用Deployment信息,格式为JSON格式字符串。', 'type' => 'string', 'example' => ' {"metadata":{"name":"oambuild-group*","namespace":"default","selfLink":"/apis/apps/v1/namespaces/default/deployments/oambuil*","uid":"*-afc0-436e-9949-fb01994a9b63","resourceVersion":"969614832","generation":2,"creationTimestamp":"2021-04-06T11:38:46Z","labels":{"edas-domain":"edas-admin","edas.aliyun.oam.com/rollout-name":"oambuild-group-1","edas.aliyun.oam.com/rollout-namespace":"default","edas.aliyun.oam.com/rollout-revision":"3","edas.appid":"fc5e0f54-*-4cab-91a0-b7becb1f6174","edas.controlplane":"edas-oam","edas.oam.acname":"oambuild"...'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '获取K8s应用的Deployment信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-06-25T06:15:57.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetAppDeployment'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\" {\\\\\\"metadata\\\\\\":{\\\\\\"name\\\\\\":\\\\\\"oambuild-group*\\\\\\",\\\\\\"namespace\\\\\\":\\\\\\"default\\\\\\",\\\\\\"selfLink\\\\\\":\\\\\\"/apis/apps/v1/namespaces/default/deployments/oambuil*\\\\\\",\\\\\\"uid\\\\\\":\\\\\\"*-afc0-436e-9949-fb01994a9b63\\\\\\",\\\\\\"resourceVersion\\\\\\":\\\\\\"969614832\\\\\\",\\\\\\"generation\\\\\\":2,\\\\\\"creationTimestamp\\\\\\":\\\\\\"2021-04-06T11:38:46Z\\\\\\",\\\\\\"labels\\\\\\":{\\\\\\"edas-domain\\\\\\":\\\\\\"edas-admin\\\\\\",\\\\\\"edas.aliyun.oam.com/rollout-name\\\\\\":\\\\\\"oambuild-group-1\\\\\\",\\\\\\"edas.aliyun.oam.com/rollout-namespace\\\\\\":\\\\\\"default\\\\\\",\\\\\\"edas.aliyun.oam.com/rollout-revision\\\\\\":\\\\\\"3\\\\\\",\\\\\\"edas.appid\\\\\\":\\\\\\"fc5e0f54-*-4cab-91a0-b7becb1f6174\\\\\\",\\\\\\"edas.controlplane\\\\\\":\\\\\\"edas-oam\\\\\\",\\\\\\"edas.oam.acname\\\\\\":\\\\\\"oambuild\\\\\\"...\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAppDeploymentResponse>\\n<Message>success</Message>\\n<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>\\n<Data> {\\"metadata\\":{\\"name\\":\\"oambuild-group*\\",\\"namespace\\":\\"default\\",\\"selfLink\\":\\"/apis/apps/v1/namespaces/default/deployments/oambuil*\\",\\"uid\\":\\"*-afc0-436e-9949-fb01994a9b63\\",\\"resourceVersion\\":\\"969614832\\",\\"generation\\":2,\\"creationTimestamp\\":\\"2021-04-06T11:38:46Z\\",\\"labels\\":{\\"edas-domain\\":\\"edas-admin\\",\\"edas.aliyun.oam.com/rollout-name\\":\\"oambuild-group-1\\",\\"edas.aliyun.oam.com/rollout-namespace\\":\\"default\\",\\"edas.aliyun.oam.com/rollout-revision\\":\\"3\\",\\"edas.appid\\":\\"fc5e0f54-*-4cab-91a0-b7becb1f6174\\",\\"edas.controlplane\\":\\"edas-oam\\",\\"edas.oam.acname\\":\\"oambuild\\"...</Data>\\n<Code>200</Code>\\n</GetAppDeploymentResponse>","errorExample":""}]',
],
'GetApplication' => [
'path' => '/pop/v5/app/app_info',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '29f0******************'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F8DFGED-K98***************'],
'Application' => [
'description' => '应用信息。',
'type' => 'object',
'properties' => [
'ExtSlbIp' => ['description' => '应用绑定的公网SLB的IP。', 'type' => 'string', 'example' => '47.114.xxx.xx'],
'Owner' => ['description' => '应用创建者。', 'type' => 'string', 'example' => 'ouou@117274586608****'],
'SlbPort' => ['description' => '应用绑定的私网SLB的端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'NameSpace' => ['description' => '应用所属的命名空间。', 'type' => 'string', 'example' => 'doc-test'],
'ExtSlbName' => ['description' => '应用绑定的公网SLB的名称。', 'type' => 'string', 'example' => 'aa8eee383db084f42aebc4d9f52c****'],
'CreateTime' => ['description' => '应用创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1610550324226'],
'UserId' => ['description' => '云账号ID。', 'type' => 'string', 'example' => 'test@dd******'],
'Port' => ['description' => '应用的服务端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'RunningInstanceCount' => ['description' => '运行的应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SlbIp' => ['description' => '应用绑定的私网SLB的IP。', 'type' => 'string', 'example' => '192.***.***.***'],
'Dockerize' => ['description' => '是否为Docker应用:'."\n"
.'- false:非Docker应用。'."\n"
.'- true:Docker应用。', 'type' => 'boolean', 'example' => 'false'],
'Description' => ['description' => '应用描述。', 'type' => 'string', 'example' => 'test'],
'InstanceCount' => ['description' => '应用包含的实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'cfac****-847e-4325-ad56-b5c2bc54****'],
'SlbInfo' => ['description' => '应用绑定的私网SLB的信息。', 'type' => 'string', 'example' => 'test'],
'Memory' => ['description' => '应用实例内存配置大小,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Name' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test'],
'ClusterId' => ['description' => '应用部署的ECS集群ID。', 'type' => 'string', 'example' => '5ffc5895-****-b03a-c223c6c3****'],
'SlbId' => ['description' => '应用绑定的私网SLB的ID。', 'type' => 'string', 'example' => 'lb-bp****ck3s3b9xs6x****'],
'HealthCheckUrl' => ['description' => '应用的健康检查URL', 'type' => 'string', 'example' => 'http://127.0.0.1:8080/xyz.html'],
'ApplicationType' => ['description' => '应用部署类型:'."\n"
.'- War:WAR包部署。'."\n"
.'- FatJar:JAR包部署。'."\n"
.'- 空:未部署。', 'type' => 'string', 'example' => 'FatJar'],
'ExtSlbId' => ['description' => '应用绑定的公网SLB的ID。', 'type' => 'string', 'example' => 'lb-bp1vceck3s3b9xs6x****'],
'RegionId' => ['description' => '应用所属地域的ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'BuildPackageId' => ['description' => '容器版本ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '59'],
'Email' => ['description' => '电子邮箱地址。', 'type' => 'string', 'example' => '****@***.com'],
'Cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ClusterType' => ['description' => '应用集群环境类型:'."\n"
.'- 0:普通Docker集群。'."\n"
.'- 1:Swarm 集群。'."\n"
.'- 2:ECS集群。'."\n"
.'- 3:Kubernetes集群。'."\n"
.'- 4:Pandora自动注册应用集群。', 'type' => 'string', 'example' => '2'],
'SlbName' => ['description' => '应用绑定的私网SLB的名称。', 'type' => 'string', 'example' => 'test'],
'EnableUrlCheck' => ['description' => '是否开启了URL健康检查:'."\n"
.'- true:启用。'."\n"
.'- false:不启用。'."\n"
."\n"
.'若启用,则在应用启动过程中,EDAS将尝试探测指定的URL,如果访问正常,则认为应用已经启动。', 'type' => 'boolean', 'example' => 'false'],
'EnablePortCheck' => ['description' => '是否开启了端口健康检查:'."\n"
.'- true:启用。'."\n"
.'- false:不启用。'."\n"
."\n"
.'若启用,在应用启动过程中,EDAS将检查端口是否存在,若存在,则认为应用已经启动。', 'type' => 'boolean', 'example' => 'false'],
'AppPhase' => ['description' => 'K8s应用当前所属状态,用于判断应用是否处于稳定状态,处于不稳定状态时,禁止相关的配置操作:'."\n"
."\n"
.'* ready:应用处于就绪状态,可以进行应用变更。'."\n"
.'* progressing:应用变更中。'."\n"
.'* pending:应用变更被阻塞。'."\n"
.'* failed:应用变更失败。'."\n"
."\n"
.'其中ready为稳定状态,其它状态为不稳定状态。', 'type' => 'string', 'example' => 'ready'],
'HaveManageAccess' => ['description' => '当前用户是否有应用的管理权限(RAM鉴权模式)。', 'type' => 'string', 'example' => 'true'],
'WorkloadType' => ['description' => '创建应用时Workload的类型,目前支持Deployment和StatefulSet类型。对于ECS应用不生效。', 'type' => 'string', 'example' => 'StatefulSet'],
'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aekz****'],
],
],
],
],
],
],
'title' => '获取应用信息',
'summary' => '获取ECS集群中指定应用的信息。 。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => "\n",
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-09-25T12:38:53.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2023-05-22T11:41:16.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-12-13T09:33:59.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-10-28T05:54:28.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-06-28T08:08:49.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetApplication'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"F8DFGED-K98***************\\",\\n \\"Application\\": {\\n \\"ExtSlbIp\\": \\"47.114.xxx.xx\\",\\n \\"Owner\\": \\"ouou@117274586608****\\",\\n \\"SlbPort\\": 80,\\n \\"NameSpace\\": \\"doc-test\\",\\n \\"ExtSlbName\\": \\"aa8eee383db084f42aebc4d9f52c****\\",\\n \\"CreateTime\\": 1610550324226,\\n \\"UserId\\": \\"test@dd******\\",\\n \\"Port\\": 8080,\\n \\"RunningInstanceCount\\": 1,\\n \\"SlbIp\\": \\"192.***.***.***\\",\\n \\"Dockerize\\": false,\\n \\"Description\\": \\"test\\",\\n \\"InstanceCount\\": 1,\\n \\"AppId\\": \\"cfac****-847e-4325-ad56-b5c2bc54****\\",\\n \\"SlbInfo\\": \\"test\\",\\n \\"Memory\\": 0,\\n \\"Name\\": \\"test\\",\\n \\"ClusterId\\": \\"5ffc5895-****-b03a-c223c6c3****\\",\\n \\"SlbId\\": \\"lb-bp****ck3s3b9xs6x****\\",\\n \\"HealthCheckUrl\\": \\"http://127.0.0.1:8080/xyz.html\\",\\n \\"ApplicationType\\": \\"FatJar\\",\\n \\"ExtSlbId\\": \\"lb-bp1vceck3s3b9xs6x****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"BuildPackageId\\": 59,\\n \\"Email\\": \\"****@***.com\\",\\n \\"Cpu\\": 1,\\n \\"ClusterType\\": \\"2\\",\\n \\"SlbName\\": \\"test\\",\\n \\"EnableUrlCheck\\": false,\\n \\"EnablePortCheck\\": false,\\n \\"AppPhase\\": \\"ready\\",\\n \\"HaveManageAccess\\": \\"true\\",\\n \\"WorkloadType\\": \\"StatefulSet\\",\\n \\"ResourceGroupId\\": \\"rg-aekz****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>F8DFGED-K98***************</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>\\n<Application>\\n <SlbId>lb-bp****ck3s3b9xs6x****</SlbId>\\n <Owner>ouou@117274586608****</Owner>\\n <Email>xxxx@gmail.com</Email>\\n <Description>test</Description>\\n <HealthCheckUrl>http://127.0.0.1:8080/xyz.html</HealthCheckUrl>\\n <Memory>0</Memory>\\n <Port>8080</Port>\\n <NameSpace>doc-test</NameSpace>\\n <Cpu>1</Cpu>\\n <SlbName>test</SlbName>\\n <Name>test</Name>\\n <SlbPort>80</SlbPort>\\n <SlbIp>192.168.0.100</SlbIp>\\n <BuildPackageId>59</BuildPackageId>\\n <Dockerize>false</Dockerize>\\n <ClusterId>5ffc5895-****-b03a-c223c6c3****</ClusterId>\\n <CreateTime>1610550324226</CreateTime>\\n <ClusterType>2</ClusterType>\\n <SlbInfo>test</SlbInfo>\\n <ExtSlbId>lb-bp1vceck3s3b9xs6x****</ExtSlbId>\\n <ApplicationType>FatJar</ApplicationType>\\n <ExtSlbName>aa8eee383db084f42aebc4d9f52c****</ExtSlbName>\\n <InstanceCount>1</InstanceCount>\\n <AppId>cfac****-847e-4325-ad56-b5c2bc54****</AppId>\\n <UserId>test@dd******</UserId>\\n <RegionId>cn-hangzhou</RegionId>\\n <ExtSlbIp>47.114.xxx.xx</ExtSlbIp>\\n <RunningInstanceCount>1</RunningInstanceCount>\\n</Application>","errorExample":""}]',
],
'GetChangeOrderInfo' => [
'path' => '/pop/v5/changeorder/change_order_info',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ChangeOrderId',
'in' => 'query',
'schema' => ['description' => '变更流程ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1074f3e2-e974-4a0e-****-************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '4JFR-FV9F***************'],
'changeOrderInfo' => [
'description' => '变更流程详情',
'type' => 'object',
'properties' => [
'Status' => ['description' => '变更状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止'."\n"
.'- 7:部分成功'."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ChangeOrderId' => ['description' => '变更流程ID', 'type' => 'string', 'example' => '1074f3e2-e974-4a0e-****-************'],
'BatchType' => ['description' => '分批发布时,下一批变更的执行方式。'."\n"
.'- Automatic:自动'."\n"
.'- Manual:手动', 'type' => 'string', 'example' => 'Automatic'],
'CoType' => ['description' => '变更流程分类', 'type' => 'string', 'example' => 'Application Scale Out'],
'CreateTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2019-11-13 14:23:46'],
'ChangeOrderDescription' => ['description' => '变更流程描述', 'type' => 'string', 'example' => 'Application scale-up'],
'BatchCount' => ['description' => '变更分批数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreateUserId' => ['description' => '变更流程的负责人', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'SupportRollback' => ['description' => '是否支持回滚。'."\n"
.'- true:支持回滚'."\n"
.'- false:不支持回滚', 'type' => 'boolean', 'example' => 'false'],
'Desc' => ['description' => '变更流程描述', 'type' => 'string', 'example' => 'IP of Scale-Out Instance: 47.107.XX.XX'],
'PipelineInfoList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'PipelineInfo' => [
'description' => '分批变更任务列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PipelineName' => ['description' => '批次名称', 'type' => 'string', 'example' => ' Batch: 1'],
'StartTime' => ['description' => '开始时间的时间戳', 'type' => 'string', 'example' => '1583911702158'],
'UpdateTime' => ['description' => '更新时间的时间戳', 'type' => 'string', 'example' => '1583911743633'],
'PipelineStatus' => ['description' => '任务状态:'."\n"
."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'PipelineId' => ['description' => '分批变更时各批次流程的ID', 'type' => 'string', 'example' => '4c4ee320-5e47-4a48-****-************'],
'StageList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'StageInfoDTO' => [
'description' => '变更流程的任务阶段列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'StageId' => ['description' => '阶段ID', 'type' => 'string', 'example' => '358a143f-09a0-45e0-****-************@**_*******_*****'],
'Status' => ['description' => '阶段状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'StageName' => ['description' => '阶段名称', 'type' => 'string', 'example' => 'Scale Out'],
'StageResultDTO' => [
'description' => '阶段任务的执行结果',
'type' => 'object',
'properties' => [
'InstanceDTOList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'InstanceDTO' => [
'description' => '运行在每台ECS实例上阶段执行结果',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '运行状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'InstanceIp' => ['description' => '实例IP', 'type' => 'string', 'example' => '47.XX.XX.12 (Public)<br>***.**.*.*** (*******)'],
'PodName' => ['description' => '节点名称', 'type' => 'string', 'example' => 'canary-test'],
'InstanceName' => ['description' => '实例名称', 'type' => 'string', 'example' => 'EDAS-scaled'],
'PodStatus' => ['description' => 'Pod状态', 'type' => 'string', 'example' => 'Executing'],
'InstanceStageDTOList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'InstanceStageDTO' => [
'description' => '每个实例上阶段执行的结果列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'StageId' => ['description' => '阶段ID', 'type' => 'string', 'example' => '5dd4c0f2-d81a-406f-****-************'],
'Status' => ['description' => '阶段状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'StartTime' => ['description' => '开始时间', 'type' => 'string', 'example' => '2020-03-11T07:28:49Z'],
'StageMessage' => ['description' => '阶段信息', 'type' => 'string', 'example' => 'Pulling image \\"registry-vpc.cn-hangzhou.aliyuncs.com****-user/1172745****_shared_repo:428084d6-265f-****-911a-7eb0d2c3****_15839117****\\'],
'FinishTime' => ['description' => '结束时间', 'type' => 'string', 'example' => '2020-03-11T07:28:52Z'],
'StageName' => ['description' => '阶段名称', 'type' => 'string', 'example' => ' scale out '],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
'ServiceStage' => [
'description' => '服务型阶段执行结果',
'type' => 'object',
'properties' => [
'StageId' => ['description' => '阶段ID', 'type' => 'string', 'example' => '358a143f-09a0-45e0-****-************'],
'Status' => ['description' => '运行状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Message' => ['description' => '执行结果信息', 'type' => 'string', 'example' => 'Success'],
'StageName' => ['description' => '阶段名称', 'type' => 'string', 'example' => 'Enable Tengine'],
],
],
],
],
],
'description' => '',
],
],
],
'description' => '',
],
'StageDetailList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'StageDetailDTO' => [
'description' => '阶段执行结果列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'StageId' => ['description' => '阶段ID', 'type' => 'string', 'example' => 'd7561440-10a6-452f-8a90-62f6e7ec****'],
'StageStatus' => ['description' => '阶段状态:'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'StageName' => ['description' => '阶段名称', 'type' => 'string', 'example' => 'Process Start'],
'TaskList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TaskInfoDTO' => [
'description' => '任务列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TaskErrorIgnorance' => ['description' => '表示任务本身是否能容忍错误,如果容忍,则发生错误时,变更流程将忽略错误来继续下一个任务。'."\n"
.'- 0:不容忍错误'."\n"
.'- 1:容忍错误', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ShowManualIgnorance' => ['description' => '是否显示`忽略错误按钮`。'."\n"
.'- true:忽略变更流程中出现的错误。目前只有执行URL健康检查时,该参数的取值可为true。'."\n"
.'- false:不忽略变更流程中出现的错误。', 'type' => 'boolean', 'example' => 'false'],
'TaskStatus' => ['description' => '任务状态'."\n"
.'- 0:准备 '."\n"
.'- 1:执行中 '."\n"
.'- 2:执行成功 '."\n"
.'- 3:执行失败 '."\n"
.'- 6:终止 '."\n"
.'- 8:手动分批发布模式下,等待手工确认执行下一批'."\n"
.'- 9:自动分批发布模式下,等待下一批执行中'."\n"
.'- 10:系统异常执行失败', 'type' => 'string', 'example' => '2'],
'TaskMessage' => ['description' => '任务信息', 'type' => 'string', 'example' => '[CALLBACK] 2020-03-11 15:28:44.781 requestId: c952ab99-8c5b-4ff1-9412-ae3bf9b1****, message: success'],
'TaskName' => ['description' => '任务名称', 'type' => 'string', 'example' => 'Build Image'],
'TaskErrorCode' => ['description' => '错误码', 'type' => 'string', 'example' => '400'],
'RetryType' => ['description' => '重试类型,0 表示不重试,1表示自动重试,2表示手动重试', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 'd6d3b934-90a1-4ae8-8cbd-2446003d****'],
'TaskErrorMessage' => ['description' => '任务错误信息', 'type' => 'string', 'example' => '400'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
'Targets' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Items' => [
'type' => 'array',
'items' => ['description' => '关联ECS的IP地址列表', 'type' => 'string', 'example' => '["123.250.XX.XX","234.123.XX.XX"]'],
'description' => '',
],
],
'description' => '',
],
'TrafficControl' => [
'description' => '流控规则',
'type' => 'object',
'properties' => [
'Routes' => ['description' => '路由转发策略', 'type' => 'string', 'example' => '[{"app":"9c8247da-91b6-42bb-8f99-92a0b9c6f****","type":"GROUP"}]'],
'Rules' => ['description' => '流量的路由规则', 'type' => 'string', 'example' => '[{"conditionType":"content","conditions":[{"key":"name","operator":"EQ","strategy":"PARAM","values":["jim"]},{"key":"name","operator":"EQ","strategy":"COOKIE","values":["jim"]}],"percent":100,"protocol":"SPRINGCLOUD","triggerPolicy":"AND"}]'],
'Tips' => ['description' => '流量规则的提示说明文案', 'type' => 'string', 'example' => 'Canary batch release completed. Confirmed to proceed to the next batch.'],
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'No permissions', 'description' => ''],
['errorCode' => 'Edas.errorcode.ParameterMissing.ChangeOrderId.message', 'errorMessage' => 'Change process ID is missing.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4JFR-FV9F***************\\",\\n \\"changeOrderInfo\\": {\\n \\"Status\\": 2,\\n \\"ChangeOrderId\\": \\"1074f3e2-e974-4a0e-****-************\\",\\n \\"BatchType\\": \\"Automatic\\",\\n \\"CoType\\": \\"Application Scale Out\\",\\n \\"CreateTime\\": \\"2019-11-13 14:23:46\\",\\n \\"ChangeOrderDescription\\": \\"Application scale-up\\",\\n \\"BatchCount\\": 1,\\n \\"CreateUserId\\": \\"edas_com***_****@******-*****.***\\",\\n \\"SupportRollback\\": false,\\n \\"Desc\\": \\"IP of Scale-Out Instance: 47.107.XX.XX\\",\\n \\"PipelineInfoList\\": {\\n \\"PipelineInfo\\": [\\n {\\n \\"PipelineName\\": \\" Batch: 1\\",\\n \\"StartTime\\": \\"1583911702158\\",\\n \\"UpdateTime\\": \\"1583911743633\\",\\n \\"PipelineStatus\\": 2,\\n \\"PipelineId\\": \\"4c4ee320-5e47-4a48-****-************\\",\\n \\"StageList\\": {\\n \\"StageInfoDTO\\": [\\n {\\n \\"StageId\\": \\"358a143f-09a0-45e0-****-************@**_*******_*****\\",\\n \\"Status\\": 2,\\n \\"StageName\\": \\"Scale Out\\",\\n \\"StageResultDTO\\": {\\n \\"InstanceDTOList\\": {\\n \\"InstanceDTO\\": [\\n {\\n \\"Status\\": 2,\\n \\"InstanceIp\\": \\"47.XX.XX.12 (Public)<br>***.**.*.*** (*******)\\",\\n \\"PodName\\": \\"canary-test\\",\\n \\"InstanceName\\": \\"EDAS-scaled\\",\\n \\"PodStatus\\": \\"Executing\\",\\n \\"InstanceStageDTOList\\": {\\n \\"InstanceStageDTO\\": [\\n {\\n \\"StageId\\": \\"5dd4c0f2-d81a-406f-****-************\\",\\n \\"Status\\": 2,\\n \\"StartTime\\": \\"2020-03-11T07:28:49Z\\",\\n \\"StageMessage\\": \\"Pulling image \\\\\\\\\\\\\\"registry-vpc.cn-hangzhou.aliyuncs.com****-user/1172745****_shared_repo:428084d6-265f-****-911a-7eb0d2c3****_15839117****\\\\\\\\\\",\\n \\"FinishTime\\": \\"2020-03-11T07:28:52Z\\",\\n \\"StageName\\": \\" scale out \\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"ServiceStage\\": {\\n \\"StageId\\": \\"358a143f-09a0-45e0-****-************\\",\\n \\"Status\\": 2,\\n \\"Message\\": \\"Success\\",\\n \\"StageName\\": \\"Enable Tengine\\"\\n }\\n }\\n }\\n ]\\n },\\n \\"StageDetailList\\": {\\n \\"StageDetailDTO\\": [\\n {\\n \\"StageId\\": \\"d7561440-10a6-452f-8a90-62f6e7ec****\\",\\n \\"StageStatus\\": 2,\\n \\"StageName\\": \\"Process Start\\",\\n \\"TaskList\\": {\\n \\"TaskInfoDTO\\": [\\n {\\n \\"TaskErrorIgnorance\\": 0,\\n \\"ShowManualIgnorance\\": false,\\n \\"TaskStatus\\": \\"2\\",\\n \\"TaskMessage\\": \\"[CALLBACK] 2020-03-11 15:28:44.781 requestId: c952ab99-8c5b-4ff1-9412-ae3bf9b1****, message: success\\",\\n \\"TaskName\\": \\"Build Image\\",\\n \\"TaskErrorCode\\": \\"400\\",\\n \\"RetryType\\": 0,\\n \\"TaskId\\": \\"d6d3b934-90a1-4ae8-8cbd-2446003d****\\",\\n \\"TaskErrorMessage\\": \\"400\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"Targets\\": {\\n \\"Items\\": [\\n \\"[\\\\\\"123.250.XX.XX\\\\\\",\\\\\\"234.123.XX.XX\\\\\\"]\\"\\n ]\\n },\\n \\"TrafficControl\\": {\\n \\"Routes\\": \\"[{\\\\\\"app\\\\\\":\\\\\\"9c8247da-91b6-42bb-8f99-92a0b9c6f****\\\\\\",\\\\\\"type\\\\\\":\\\\\\"GROUP\\\\\\"}]\\",\\n \\"Rules\\": \\"[{\\\\\\"conditionType\\\\\\":\\\\\\"content\\\\\\",\\\\\\"conditions\\\\\\":[{\\\\\\"key\\\\\\":\\\\\\"name\\\\\\",\\\\\\"operator\\\\\\":\\\\\\"EQ\\\\\\",\\\\\\"strategy\\\\\\":\\\\\\"PARAM\\\\\\",\\\\\\"values\\\\\\":[\\\\\\"jim\\\\\\"]},{\\\\\\"key\\\\\\":\\\\\\"name\\\\\\",\\\\\\"operator\\\\\\":\\\\\\"EQ\\\\\\",\\\\\\"strategy\\\\\\":\\\\\\"COOKIE\\\\\\",\\\\\\"values\\\\\\":[\\\\\\"jim\\\\\\"]}],\\\\\\"percent\\\\\\":100,\\\\\\"protocol\\\\\\":\\\\\\"SPRINGCLOUD\\\\\\",\\\\\\"triggerPolicy\\\\\\":\\\\\\"AND\\\\\\"}]\\",\\n \\"Tips\\": \\"Canary batch release completed. Confirmed to proceed to the next batch.\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetChangeOrderInfoResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <RequestId>4JFR-FV9F***************</RequestId>\\n <changeOrderInfo>\\n <Status>2</Status>\\n <ChangeOrderId>1074f3e2-e974-4a0e-****-************</ChangeOrderId>\\n <BatchType>Automatic</BatchType>\\n <CoType>Application Scale Out</CoType>\\n <CreateTime>2019-11-13 14:23:46</CreateTime>\\n <ChangeOrderDescription>应用扩容</ChangeOrderDescription>\\n <BatchCount>1</BatchCount>\\n <CreateUserId>edas_com***_****@******-*****.***</CreateUserId>\\n <SupportRollback>false</SupportRollback>\\n <Desc>IP of Scale-Out Instance: 47.107.XX.XX</Desc>\\n <PipelineInfoList>\\n <PipelineName> Batch: 1</PipelineName>\\n <StartTime>1583911702158</StartTime>\\n <UpdateTime>1583911743633</UpdateTime>\\n <PipelineStatus>2</PipelineStatus>\\n <PipelineId>4c4ee320-5e47-4a48-****-************</PipelineId>\\n <StageList>\\n <StageId>358a143f-09a0-45e0-****-************@**_*******_*****</StageId>\\n <Status>2</Status>\\n <StageName>Scale Out</StageName>\\n <StageResultDTO>\\n <InstanceDTOList>\\n <Status>2</Status>\\n <InstanceIp>47.XX.XX.12 (Public)<br>***.**.*.*** (*******)</InstanceIp>\\n <PodName>canary-test</PodName>\\n <InstanceName>EDAS-scaled</InstanceName>\\n <PodStatus>执行中</PodStatus>\\n <InstanceStageDTOList>\\n <StageId>5dd4c0f2-d81a-406f-****-************</StageId>\\n <Status>2</Status>\\n <StartTime>2020-03-11T07:28:49Z</StartTime>\\n <StageMessage>Pulling image \\\\\\"registry-vpc.cn-hangzhou.aliyuncs.com****-user/1172745****_shared_repo:428084d6-265f-****-911a-7eb0d2c3****_15839117****\\\\</StageMessage>\\n <FinishTime>2020-03-11T07:28:52Z</FinishTime>\\n <StageName> scale out </StageName>\\n </InstanceStageDTOList>\\n </InstanceDTOList>\\n <ServiceStage>\\n <StageId>358a143f-09a0-45e0-****-************</StageId>\\n <Status>2</Status>\\n <Message>Success</Message>\\n <StageName>Enable Tengine</StageName>\\n </ServiceStage>\\n </StageResultDTO>\\n </StageList>\\n <StageDetailList>\\n <StageId>d7561440-10a6-452f-8a90-62f6e7ec****</StageId>\\n <StageStatus>2</StageStatus>\\n <StageName>Process Start</StageName>\\n <TaskList>\\n <TaskErrorIgnorance>0</TaskErrorIgnorance>\\n <ShowManualIgnorance>false</ShowManualIgnorance>\\n <TaskStatus>2</TaskStatus>\\n <TaskMessage>[CALLBACK] 2020-03-11 15:28:44.781 requestId: c952ab99-8c5b-4ff1-9412-ae3bf9b1****, message: success</TaskMessage>\\n <TaskName>Build Image</TaskName>\\n <TaskErrorCode>400</TaskErrorCode>\\n <TaskId>d6d3b934-90a1-4ae8-8cbd-2446003d****</TaskId>\\n <TaskErrorMessage>400</TaskErrorMessage>\\n </TaskList>\\n </StageDetailList>\\n </PipelineInfoList>\\n <TrafficControl>\\n <Routes>[{\\"app\\":\\"9c8247da-91b6-42bb-8f99-92a0b9c6f****\\",\\"type\\":\\"GROUP\\"}]</Routes>\\n <Rules>[{\\"conditionType\\":\\"content\\",\\"conditions\\":[{\\"key\\":\\"name\\",\\"operator\\":\\"EQ\\",\\"strategy\\":\\"PARAM\\",\\"values\\":[\\"jim\\"]},{\\"key\\":\\"name\\",\\"operator\\":\\"EQ\\",\\"strategy\\":\\"COOKIE\\",\\"values\\":[\\"jim\\"]}],\\"percent\\":100,\\"protocol\\":\\"SPRINGCLOUD\\",\\"triggerPolicy\\":\\"AND\\"}]</Rules>\\n <Tips>灰度批次发布完毕,已确认继续下一批。</Tips>\\n </TrafficControl>\\n </changeOrderInfo>\\n</GetChangeOrderInfoResponse>","errorExample":""}]',
'title' => '查看变更流程详情',
'summary' => '调用GetChangeOrderInfo接口查看变更流程详情。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetChangeOrderInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'GetCluster' => [
'path' => '/pop/v5/resource/cluster',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。可以通过调用ListCluster获取集群ID,具体操作,请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5439271a-015b-433d-****-d76db49****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '详细信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'd76db491'],
'Cluster' => [
'description' => '集群信息。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-xxxxz1mlwpb****'],
'OversoldFactor' => ['description' => 'Docker集群CPU超卖:'."\n"
.'- 1:1:1比例,不超卖。'."\n"
.'- 2:1:2比例超卖'."\n"
.'- 4:1:4比例超卖'."\n"
.'- 8:1:8比例超卖', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'UpdateTime' => ['description' => '最后变更时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1570708232145'],
'MemUsed' => ['description' => '已使用内存量,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
'IaasProvider' => ['description' => 'IaaS资源提供者。', 'type' => 'string', 'example' => 'ALIYUN'],
'CreateTime' => ['description' => '集群创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1570708232145'],
'CpuUsed' => ['description' => '已使用CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Mem' => ['description' => '内存总量,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '2048'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'CsClusterId' => ['description' => '容器服务集群ID。', 'type' => 'string', 'example' => 'c2ce62869f4d4466b920312315f05****'],
'NetworkMode' => ['description' => '网络类型:'."\n"
.'- 1:经典网络。'."\n"
.'- 2:VPC。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Description' => ['description' => '描述。', 'type' => 'string', 'example' => 'Test'],
'ClusterType' => ['description' => '集群类型。'."\n"
.'- 0:普通Docker集群'."\n"
.'- 1:Swarm集群'."\n"
.'- 2:ECS集群'."\n"
.'- 3:EDAS自建K8s集群'."\n"
.'- 4:Pandora自动注册应用集群类型'."\n"
.'- 5:容器服务K8s集群', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'ClusterTest'],
'NodeNum' => ['description' => 'ECS数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'ClusterImportStatus' => ['description' => '导入集群状态。'."\n"
.'- 1:导入成功'."\n"
.'- 2:导入失败'."\n"
.'- 3:正在导入'."\n"
.'- 4:集群已删除'."\n"
.'- 0:未导入', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '5439271a-015b-433d-befb-d76d****'],
'SubClusterType' => [
'title' => 'K8S类型集群的子类型:ManagedKubernetes为阿里云ACK集群类型,'."\n"
.'Ask为阿里云ASK集群类型,'."\n"
.'ExternalKubernetes为外部集群类型',
'description' => 'K8s类型集群的子类型:ManagedKubernetes为阿里云ACK集群类型,'."\n"
.'Ask为阿里云ASK集群类型,'."\n"
.'ExternalKubernetes为外部集群类型。',
'type' => 'string',
'example' => 'ManagedKubernetes',
'enum' => ['ManagedKubernetes', 'Ask'],
],
],
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"d76db491\\",\\n \\"Cluster\\": {\\n \\"VpcId\\": \\"vpc-xxxxz1mlwpb****\\",\\n \\"OversoldFactor\\": 2,\\n \\"UpdateTime\\": 1570708232145,\\n \\"MemUsed\\": 1024,\\n \\"IaasProvider\\": \\"ALIYUN\\",\\n \\"CreateTime\\": 1570708232145,\\n \\"CpuUsed\\": 2,\\n \\"Mem\\": 2048,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Cpu\\": 4,\\n \\"CsClusterId\\": \\"c2ce62869f4d4466b920312315f05****\\",\\n \\"NetworkMode\\": 2,\\n \\"Description\\": \\"Test\\",\\n \\"ClusterType\\": 2,\\n \\"ClusterName\\": \\"ClusterTest\\",\\n \\"NodeNum\\": 4,\\n \\"ClusterImportStatus\\": 0,\\n \\"ClusterId\\": \\"5439271a-015b-433d-befb-d76d****\\",\\n \\"SubClusterType\\": \\"ManagedKubernetes\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<Cluster>\\n <MemUsed>2048</MemUsed>\\n <Mem>2048</Mem>\\n <NetworkMode>2</NetworkMode>\\n <UpdateTime>1570708232145</UpdateTime>\\n <NodeNum>2</NodeNum>\\n <VpcId>vpc-bp19z1mlwpbjx3e9mwefe</VpcId>\\n <OversoldFactor>1</OversoldFactor>\\n <Cpu>2</Cpu>\\n <ClusterId>5439271a-015b-433d-befb-d76db4911b7c</ClusterId>\\n <ClusterName>GTSDemoTesting</ClusterName>\\n <CreateTime>1561444573420</CreateTime>\\n <RegionId>cn-hangzhou</RegionId>\\n <CpuUsed>2</CpuUsed>\\n <ClusterType>2</ClusterType>\\n <IaasProvider>ALIYUN</IaasProvider>\\n</Cluster>","errorExample":""}]',
'title' => '获取集群信息',
'summary' => '获取指定集群的信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-06-16T02:13:15.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCluster'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
],
'GetContainerConfiguration' => [
'path' => '/pop/v5/app/container_config',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'example' => '3616cdca-4f92-**************'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。'."\n"
.'- 如果ID不为空,则获取应用分组的Tomcat配置。'."\n"
.'- 如果ID为“”,则获取应用的Tomcat配置。', 'type' => 'string', 'required' => false, 'example' => '8123db90-880f-**************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求返回的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => ' 请求ID。', 'type' => 'string', 'example' => '34F8-FDG9-*****************'],
'ContainerConfiguration' => [
'description' => 'Tomcat配置。',
'type' => 'object',
'properties' => [
'HttpPort' => ['description' => '应用端口。返回设置的值和应用配置。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'ContextPath' => ['description' => 'Tomcat的Context Path。', 'type' => 'string', 'example' => '/'],
'UseBodyEncoding' => ['description' => 'useBodyEncodingForURI是否启用,返回设置的值。'."\n"
.'- 如果应用分组未设置,则返回应用的配置。'."\n"
.'- 如果应用未设置,则返回默认值。', 'type' => 'boolean', 'example' => 'true'],
'MaxThreads' => ['description' => '最大线程数,返回设置的值。'."\n"
.'- 如果应用分组未设置,则返回应用的配置。'."\n"
.'- 如果应用未设置,则返回默认值。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '400'],
'URIEncoding' => ['description' => 'URI编码方式,包含ISO-8859-1、GBK、GB2312和UTF-8,返回设置的值。'."\n"
.'- 如果应用分组未设置,则返回应用的配置。'."\n"
.'- 如果应用未设置,则返回默认值。', 'type' => 'string', 'example' => 'ISO-8859-1'],
],
],
],
'description' => '',
],
],
],
'title' => '获取应用或分组的 Tomcat 设置',
'summary' => '调用GetContainerConfiguration接口获取应用或应用分组的Tomcat配置。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetContainerConfiguration'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"34F8-FDG9-*****************\\",\\n \\"ContainerConfiguration\\": {\\n \\"HttpPort\\": 8080,\\n \\"ContextPath\\": \\"/\\",\\n \\"UseBodyEncoding\\": true,\\n \\"MaxThreads\\": 400,\\n \\"URIEncoding\\": \\"ISO-8859-1\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetContainerConfigurationResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <RequestId>34F8-FDG9-*****************</RequestId>\\n <ContainerConfiguration>\\n <HttpPort>8080</HttpPort>\\n <ContextPath>/</ContextPath>\\n <UseBodyEncoding>true</UseBodyEncoding>\\n <MaxThreads>400</MaxThreads>\\n <URIEncoding>ISO-8859-1</URIEncoding>\\n </ContainerConfiguration>\\n</GetContainerConfigurationResponse>","errorExample":""}]',
],
'GetJavaStartUpConfig' => [
'path' => '/pop/v5/oam/java_start_up_config',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5fdf50e8-*'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
'JavaStartUpConfig' => [
'description' => 'Java启动参数配置。',
'type' => 'object',
'properties' => [
'StartUpArgs' => ['description' => '生效的启动参数配置。', 'type' => 'string', 'example' => '-Xms512m'],
'OriginalConfigs' => ['description' => '显示的启动参数配置。', 'type' => 'string', 'example' => '-Xms512m'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'UnknownError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '未知错误。请重试该操作,若再出现该错误请提交工单。'],
],
],
'title' => '获取应用的Java启动参数配置',
'summary' => '调用GetJavaStartUpConfig接口获取应用的Java启动参数配置。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJavaStartUpConfig'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\",\\n \\"JavaStartUpConfig\\": {\\n \\"StartUpArgs\\": \\"-Xms512m\\",\\n \\"OriginalConfigs\\": \\"-Xms512m\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetJavaStartUpConfigResponse>\\n<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<JavaStartUpConfig>\\n <StartUpArgs>-Xms512m</StartUpArgs>\\n <OriginalConfigs>-Xms512m</OriginalConfigs>\\n</JavaStartUpConfig>\\n<Code>200</Code>\\n</GetJavaStartUpConfigResponse>","errorExample":""}]',
],
'GetJvmConfiguration' => [
'path' => '/pop/v5/app/app_jvm_config',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4***************'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '应用分组ID。'."\n"
.'- 如果ID不为空,则获取应用分组的JVM。'."\n"
.'- 如果ID为“”,则获取应用的JVM。', 'type' => 'string', 'required' => false, 'example' => '8123db90-880f-48**************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '3F43-F34V-0VCD***********'],
'JvmConfiguration' => [
'description' => '应用或应用分组的JVM配置。',
'type' => 'object',
'properties' => [
'MaxPermSize' => ['description' => '持久代内存大小,单位为M。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'MaxHeapSize' => ['description' => '最大堆内存大小,单位为M。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'Options' => ['description' => '自定义参数。', 'type' => 'string', 'example' => '-XX:+UseConcMarkSweepGC -XX:-UseParNewGC'],
'MinHeapSize' => ['description' => '初始化堆内存大小,单位为M。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '获取应用或分组的 JVM 设置',
'summary' => '调用GetJvmConfiguration接口获取应用或应用分组的JVM设置。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJvmConfiguration'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"3F43-F34V-0VCD***********\\",\\n \\"JvmConfiguration\\": {\\n \\"MaxPermSize\\": 1000,\\n \\"MaxHeapSize\\": 1000,\\n \\"Options\\": \\"-XX:+UseConcMarkSweepGC -XX:-UseParNewGC\\",\\n \\"MinHeapSize\\": 500\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<JvmConfiguration>\\n <MaxHeapSize>1000</MaxHeapSize>\\n <MinHeapSize>500</MinHeapSize>\\n <Options> -XX:+UseConcMarkSweepGC -XX:-UseParNewGC</Options>\\n</JvmConfiguration>\\n<Code>200</Code>","errorExample":""}]',
],
'GetK8sAppPrecheckResult' => [
'summary' => '调用GetK8sAppPrecheckResult接口获取K8s应用预检结果。',
'path' => '/pop/v5/k8s/app_precheck',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['title' => 'A short description of struct', 'description' => 'EDAS集群ID。', 'type' => 'string', 'required' => true, 'example' => 'c37aec2a-bcca-4ec1-****-************'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => true, 'example' => 'default'],
],
[
'name' => 'AppName',
'in' => 'query',
'schema' => ['description' => '应用名称。', 'type' => 'string', 'required' => true, 'example' => 'testapp'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '应用变更预检响应。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'B909AB1F-3763-4963-B1CE-0BDFA192****'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '接口响应数据。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '应用变更预检状态:'."\n"
.'- checking:检查中。'."\n"
.'- pass:通过检查。'."\n"
.'- failed:未通过检查。', 'type' => 'string', 'example' => 'checking'],
'Reason' => ['description' => '应用变更预检未通过的原因说明。预检通过时该字段为空。', 'type' => 'string', 'example' => 'K8s cluster disconnected.'],
'JobResults' => [
'description' => '应用变更预检结果。',
'type' => 'array',
'items' => [
'description' => '应用变更预检结果对象。',
'type' => 'object',
'properties' => [
'Name' => ['description' => '预检任务项名称。', 'type' => 'string', 'example' => 'Cluster Health Check'],
'Pass' => ['description' => '预检任务项是否通过预检:'."\n"
."\n"
.'- true:通过预检。'."\n"
.'- false:未通过预检。', 'type' => 'boolean', 'example' => 'true'],
'Interrupted' => ['description' => '预检任务项是否被中断:'."\n"
."\n"
.'- true:任务被中断。'."\n"
.'- false:任务未被中断。', 'type' => 'boolean', 'example' => 'false'],
'Reason' => ['description' => '应用变更预检项未通过或被中断的原因说明。预检通过时该字段为空。', 'type' => 'string', 'example' => 'K8s集群失联。'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B909AB1F-3763-4963-B1CE-0BDFA192****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Status\\": \\"checking\\",\\n \\"Reason\\": \\"K8s cluster disconnected.\\",\\n \\"JobResults\\": [\\n {\\n \\"Name\\": \\"Cluster Health Check\\",\\n \\"Pass\\": true,\\n \\"Interrupted\\": false,\\n \\"Reason\\": \\"K8s集群失联。\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取K8s应用预检结果',
'changeSet' => [
['createdAt' => '2022-07-04T06:12:43.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sAppPrecheckResult'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetK8sApplication' => [
'path' => '/pop/v5/changeorder/co_application',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-4f98-a286-781659d9****'],
],
[
'name' => 'From',
'in' => 'query',
'schema' => ['description' => '查询来源:'."\n"
.'- 为空表示普通查询。'."\n"
.'- deploy表示从部署页面进入查询。', 'type' => 'string', 'required' => false, 'example' => 'deploy'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1053-08e4-47a5-b2ab-5c0323de7b5a'],
'Applcation' => [
'description' => '应用信息。',
'type' => 'object',
'properties' => [
'AppId' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'example' => 'a5281053-****-47a5-b2ab-5c0323de****'],
'DeployGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DeployGroup' => [
'description' => '部署分组列表。',
'type' => 'array',
'items' => [
'description' => '部署分组对象。',
'type' => 'object',
'properties' => [
'Components' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Components' => [
'description' => '组件信息。',
'type' => 'array',
'items' => [
'description' => '组件对象。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '组件类型。', 'type' => 'string', 'example' => 'JDK'],
'ComponentKey' => ['description' => '组件关键字。', 'type' => 'string', 'example' => 'Open JDK 8'],
'ComponentId' => ['description' => '组件ID。', 'type' => 'string', 'example' => '5'],
],
],
],
],
],
'Env' => ['description' => '环境变量,相对于EnvList字段,本字段透出对ConfigMap/Secret引用的相关配置信息。', 'type' => 'string', 'example' => '"["{\\"name\\":\\"test1\\",\\"valueFrom\\":{\\"configMapKeyRef\\":{\\"name\\":\\"edas-demo-configmap\\",\\"key\\":\\"key1\\"}}}","{\\"name\\":\\"k2\\",\\"value\\":\\"v2\\"}","{\\"name\\":\\"s1\\",\\"valueFrom\\":{\\"secretKeyRef\\":{\\"name\\":\\"edas-demo-secret\\",\\"key\\":\\"k1\\"}}}"]"'],
'EnvFrom' => ['description' => '环境变量来源。', 'type' => 'string', 'example' => '[{"configMapRef":{"name":"test-cm"}}]'],
],
],
],
],
],
'ImageInfo' => [
'description' => '镜像信息。',
'type' => 'object',
'properties' => [
'RepoId' => ['description' => '镜像仓库ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'ImageUrl' => ['description' => '镜像URL。', 'type' => 'string', 'example' => 'registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282'],
'RepoOriginType' => ['description' => '镜像仓库来源类型。', 'type' => 'string', 'example' => 'ALI_HUB'],
'Tag' => ['description' => '镜像Tag。', 'type' => 'string', 'example' => '5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282'],
'RepoName' => ['description' => '镜像仓库名称。', 'type' => 'string', 'example' => '131****067006888_shared_repo'],
'RepoNamespace' => ['description' => '镜像仓库命名空间。', 'type' => 'string', 'example' => 'edas-server****-user'],
'RegionId' => ['description' => '镜像地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
],
],
'App' => [
'description' => '应用基础信息。',
'type' => 'object',
'properties' => [
'RequestMem' => ['description' => '内存资源预留,单位MiB。', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
'InstancesBeforeScaling' => ['description' => '上次伸缩前的应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'DeployType' => ['description' => '部署类型,可选值为:Image。', 'type' => 'string', 'example' => 'Image'],
'ApplicationName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test'],
'ApplicationType' => ['description' => '应用类型。', 'type' => 'string', 'example' => 'War'],
'Instances' => ['description' => '应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'LimitMem' => ['description' => '内存资源限制,单位MiB。', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
'Cmd' => ['description' => '启动命令。', 'type' => 'string', 'example' => 'ls'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'BuildpackId' => ['description' => '应用构建类型ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '57'],
'TomcatVersion' => ['description' => 'Apache Tomcat版本。', 'type' => 'string', 'example' => '8.5.55'],
'CsClusterId' => ['description' => '容器集群ID。', 'type' => 'string', 'example' => 'c383bc813c1974e****451b50c0c8****'],
'RequestCpuM' => ['description' => 'CPU资源请求,单位为毫核,1000为1核CPU。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'AppId' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'example' => '00ee517d-dd7d-4d4e-****-****'],
'K8sNamespace' => ['description' => 'K8s命名空间。', 'type' => 'string', 'example' => 'default'],
'EdasContainerVersion' => ['description' => 'EDAS容器版本。', 'type' => 'string', 'example' => '3.60.0'],
'LimitCpuM' => ['description' => 'CPU资源限制,单位为毫核,1000为1核CPU。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'c37aec2a-bcca-4ec1-****-****'],
'EnvList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Env' => [
'description' => '环境变量列表。',
'type' => 'array',
'items' => [
'description' => '环境变量对象。',
'type' => 'object',
'properties' => [
'Name' => ['description' => '环境变量名称。', 'type' => 'string', 'example' => 'CATALINA_OPTS'],
'Value' => ['description' => '环境变量值。', 'type' => 'string', 'example' => '-Xmx 1024m -Dhsf.default.tid=false $(EDAS_CATALINA_OPTS)'],
],
],
],
],
],
'CmdArgs' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CmdArg' => [
'description' => '命令列表。',
'type' => 'array',
'items' => ['description' => '命令参数。', 'type' => 'string', 'example' => '-lh'],
],
],
],
'DevelopType' => ['description' => '应用类型:'."\n"
.'* General: 原生Java应用。'."\n"
.'* Pandora: Pandora应用。'."\n"
.'* Multilingual: 多语言应用。', 'type' => 'string', 'example' => 'General'],
'SlbInfo' => ['description' => 'SLB配置信息。', 'type' => 'string', 'example' => '['."\n"
.' {'."\n"
.' "addressType": "intranet",'."\n"
.' "externalTrafficPolicy": "Local",'."\n"
.' "ip": "192.168.254.***",'."\n"
.' "name": "intranet-testapp",'."\n"
.' "portMappings": ['."\n"
.' {'."\n"
.' "loadBalancerProtocol": "TCP",'."\n"
.' "servicePort": {'."\n"
.' "port": 8080,'."\n"
.' "protocol": "TCP",'."\n"
.' "targetPort": 18081,'."\n"
.' "vServerGroupName": "k8s/31414/intranet-testapp/default/cc90e0c9508a44667bdae2e83d3******"'."\n"
.' }'."\n"
.' }'."\n"
.' ],'."\n"
.' "scheduler": "rr",'."\n"
.' "serviceType": "LoadBalancer",'."\n"
.' "slbId": "lb-bp1ikoh3nrpgqsm******",'."\n"
.' "source": "create",'."\n"
.' "specification": "slb.s3.large"'."\n"
.' }'."\n"
.']'],
'Annotations' => ['description' => '应用Pod注解。', 'type' => 'string', 'example' => '{"test-annokey":"test-annovalue"}'],
'Labels' => ['description' => '应用Pod标签。', 'type' => 'string', 'example' => '{"test-labelkey":"test-labelvalue"}'],
'LimitEphemeralStorage' => ['description' => '临时存储资源需求上限,单位:GB。设置0表示不限制。'."\n", 'type' => 'string', 'example' => '4'],
'RequestEphemeralStorage' => ['description' => '临时存储资源需求预留,单位:GB。设置0表示不限制。', 'type' => 'string', 'example' => '2'],
'EnableEmptyPushReject' => ['description' => '应用是否开启了推空保护。', 'type' => 'boolean', 'example' => 'true'],
'EnableLosslessRule' => ['description' => '应用是否开启了无损上线。', 'type' => 'boolean', 'example' => 'true'],
'LosslessRuleAligned' => ['description' => '应用是否启用了无损滚动发布模式配置通过就绪检查前完成服务注册。', 'type' => 'boolean', 'example' => 'true'],
'LosslessRuleDelayTime' => ['description' => '应用配置的服务延迟注册时长,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '120'],
'LosslessRuleFuncType' => ['description' => '应用设置的服务预热曲线。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'LosslessRuleRelated' => ['description' => '应用是否启用了无损滚动发布模式配置通过就绪检查前完成服务预热。', 'type' => 'boolean', 'example' => 'true'],
'LosslessRuleWarmupTime' => ['description' => '应用设置的服务预热时长,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '120'],
'FeatureAnnotations' => ['description' => '当前应用的高级配置标签,展示启用了哪些特性功能。可能的枚举值如下:'."\n"
.'- base.combination.edas: EDAS一体化管控方案。'."\n"
.'- base.combination.arms: 启用ARMS监控。'."\n"
.'- base.combination.mse: 启用MSE微服务之力。'."\n"
.'- base.combination.none: 仅启用生命周期管理。', 'type' => 'string', 'example' => 'base.combination.edas'],
'WorkloadType' => ['description' => '创建应用时Workload的类型,目前支持Deployment和StatefulSet类型。留空时默认Deployment。', 'type' => 'string', 'example' => 'Deployment'],
'SecurityContext' => ['description' => '应用 Pod 容器 SecurityContext属性。', 'type' => 'string', 'example' => '{\\"runAsUser\\":0,\\"runAsGroup\\":0}'],
],
],
'Conf' => [
'description' => '配置信息。',
'type' => 'object',
'properties' => [
'PostStart' => ['description' => 'K8s容器启动后执行信息。', 'type' => 'string', 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
'Readiness' => ['description' => 'K8s容器业务状态检查信息。', 'type' => 'string', 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \\[{"name": "test","value": "testvalue"}\\]}}'],
'AhasEnabled' => ['description' => '应用是否已接入AHAS。', 'type' => 'boolean', 'example' => 'true'],
'K8sCmdArgs' => ['description' => '启动命令参数。', 'type' => 'string', 'example' => '-lh'],
'Liveness' => ['description' => 'K8s容器存活状态监测信息。', 'type' => 'string', 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}'],
'DeployAcrossNodes' => ['description' => '是否将应用实例分布到多节点:'."\n"
.'- `true`代表是。'."\n"
.'- 其他值代表否。', 'type' => 'string', 'example' => 'true'],
'K8sCmd' => ['description' => '启动命令。', 'type' => 'string', 'example' => 'ls'],
'PreStop' => ['description' => 'K8s容器停止前执行信息。', 'type' => 'string', 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
'DeployAcrossZones' => ['description' => '是否将应用实例分布到多可用区:'."\n"
.'- `true`代表是。'."\n"
.'- 其他值代表否。', 'type' => 'string', 'example' => 'true'],
'JarStartArgs' => ['description' => 'JAR启动参数,已废弃。', 'type' => 'string', 'example' => '-lh'],
'K8sNasInfo' => ['description' => 'NAS存储信息。', 'type' => 'string', 'example' => '[{"nasPath":"/mnt/","mountPath":"/mnt/"}]'],
'JarStartOptions' => ['description' => 'JAR启动选项,已废弃。', 'type' => 'string', 'example' => '-h'],
'RuntimeClassName' => ['description' => '容器运行时类型,仅适用于使用安全沙箱容器的集群。', 'type' => 'string', 'example' => 'runc'],
'K8sLocalvolumeInfo' => ['description' => '本地存储信息。', 'type' => 'string', 'example' => '[{"type":"","nodePath":"/mnt/","mountPath":"/mnt/"}]'],
'K8sVolumeInfo' => ['description' => '存储信息。', 'type' => 'string', 'example' => '"{\\"hostPaths\\":\\"[]\\",\\"emptyDirs\\":\\"[]\\"}"'],
'Affinity' => ['description' => 'Pod亲和性配置。', 'type' => 'string', 'example' => '"{\\"nodeAffinity\\":{\\"requiredDuringSchedulingIgnoredDuringExecution\\":{\\"nodeSelectorTerms\\":[{\\"matchExpressions\\":[{\\"key\\":\\"beta.kubernetes.io/arch\\",\\"operator\\":\\"NotIn\\",\\"values\\":[\\"arm64\\",\\"arm32\\"]}]}]},\\"preferredDuringSchedulingIgnoredDuringExecution\\":[{\\"weight\\":5,\\"preference\\":{\\"matchExpressions\\":[{\\"key\\":\\"kubernetes.io/os\\",\\"operator\\":\\"In\\",\\"values\\":[\\"linux\\"]}]}}]},\\"podAffinity\\":{\\"requiredDuringSchedulingIgnoredDuringExecution\\":[{\\"labelSelector\\":{\\"matchExpressions\\":[{\\"key\\":\\"edas.oam.acname\\",\\"operator\\":\\"NotIn\\",\\"values\\":[\\"edas-test-app\\"]}]},\\"namespaces\\":[\\"default\\"],\\"topologyKey\\":\\"kubernetes.io/hostname\\"}]},\\"podAntiAffinity\\":{\\"preferredDuringSchedulingIgnoredDuringExecution\\":[{\\"weight\\":15,\\"podAffinityTerm\\":{\\"labelSelector\\":{\\"matchExpressions\\":[{\\"key\\":\\"edas.oam.acname\\",\\"operator\\":\\"In\\",\\"values\\":[\\"edas-test-app-2\\"]}]},\\"namespaces\\":[\\"default\\"],\\"topologyKey\\":\\"failure-domain.beta.kubernetes.io/zone\\"}}]}}"'],
'Tolerations' => ['description' => 'Pod调度容忍配置。', 'type' => 'string', 'example' => '"[{\\"key\\":\\"edas-taint-key2\\",\\"operator\\":\\"Exists\\",\\"effect\\":\\"NoExecute\\",\\"tolerationSeconds\\":50},{\\"key\\":\\"edas-taint-key\\",\\"operator\\":\\"Equal\\",\\"value\\":\\"edas-taint-value\\",\\"effect\\":\\"PreferNoSchedule\\"}]"'],
'UserBaseImageUrl' => ['description' => '使用自定义OpenJDK运行时,配置的基础镜像地址。', 'type' => 'string', 'example' => 'openjdk:8u302'],
],
],
'LatestVersion' => [
'description' => '最新版本信息。',
'type' => 'object',
'properties' => [
'Url' => ['description' => '部署包地址。通过FatJar或WAR包部署的应用需要配置部署包地址。', 'type' => 'string', 'example' => 'https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar'],
'WarUrl' => ['description' => '部署包地址。通过FatJar或WAR包部署的应用需要配置部署包地址。', 'type' => 'string', 'example' => 'https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar'],
'PackageVersion' => ['description' => '部署包的版本号。', 'type' => 'string', 'example' => '20200720'],
],
],
],
],
],
],
],
],
'title' => '获取K8s应用信息',
'summary' => '获取容器服务K8s集群或Serverless K8s集群中部署的应用信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-11-13T02:32:23.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2023-03-27T07:13:39.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2023-01-09T08:02:32.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-10-19T15:35:49.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-07-28T08:42:34.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-05-30T08:24:26.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-01-27T03:48:58.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"Applcation\\": {\\n \\"AppId\\": \\"a5281053-****-47a5-b2ab-5c0323de****\\",\\n \\"DeployGroups\\": {\\n \\"DeployGroup\\": [\\n {\\n \\"Components\\": {\\n \\"Components\\": [\\n {\\n \\"Type\\": \\"JDK\\",\\n \\"ComponentKey\\": \\"Open JDK 8\\",\\n \\"ComponentId\\": \\"5\\"\\n }\\n ]\\n },\\n \\"Env\\": \\"\\\\\\"[\\\\\\"{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test1\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"valueFrom\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"configMapKeyRef\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas-demo-configmap\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"key1\\\\\\\\\\\\\\"}}}\\\\\\",\\\\\\"{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"k2\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"v2\\\\\\\\\\\\\\"}\\\\\\",\\\\\\"{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"s1\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"valueFrom\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"secretKeyRef\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas-demo-secret\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"k1\\\\\\\\\\\\\\"}}}\\\\\\"]\\\\\\"\\",\\n \\"EnvFrom\\": \\"[{\\\\\\"configMapRef\\\\\\":{\\\\\\"name\\\\\\":\\\\\\"test-cm\\\\\\"}}]\\"\\n }\\n ]\\n },\\n \\"ImageInfo\\": {\\n \\"RepoId\\": \\"cn-hangzhou\\",\\n \\"ImageUrl\\": \\"registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282\\",\\n \\"RepoOriginType\\": \\"ALI_HUB\\",\\n \\"Tag\\": \\"5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282\\",\\n \\"RepoName\\": \\"131****067006888_shared_repo\\",\\n \\"RepoNamespace\\": \\"edas-server****-user\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n },\\n \\"App\\": {\\n \\"RequestMem\\": 1024,\\n \\"InstancesBeforeScaling\\": 10,\\n \\"DeployType\\": \\"Image\\",\\n \\"ApplicationName\\": \\"test\\",\\n \\"ApplicationType\\": \\"War\\",\\n \\"Instances\\": 4,\\n \\"LimitMem\\": 1024,\\n \\"Cmd\\": \\"ls\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"BuildpackId\\": 57,\\n \\"TomcatVersion\\": \\"8.5.55\\",\\n \\"CsClusterId\\": \\"c383bc813c1974e****451b50c0c8****\\",\\n \\"RequestCpuM\\": 1000,\\n \\"AppId\\": \\"00ee517d-dd7d-4d4e-****-****\\",\\n \\"K8sNamespace\\": \\"default\\",\\n \\"EdasContainerVersion\\": \\"3.60.0\\",\\n \\"LimitCpuM\\": 1000,\\n \\"ClusterId\\": \\"c37aec2a-bcca-4ec1-****-****\\",\\n \\"EnvList\\": {\\n \\"Env\\": [\\n {\\n \\"Name\\": \\"CATALINA_OPTS\\",\\n \\"Value\\": \\"-Xmx 1024m -Dhsf.default.tid=false $(EDAS_CATALINA_OPTS)\\"\\n }\\n ]\\n },\\n \\"CmdArgs\\": {\\n \\"CmdArg\\": [\\n \\"-lh\\"\\n ]\\n },\\n \\"DevelopType\\": \\"General\\",\\n \\"SlbInfo\\": \\"[\\\\n {\\\\n \\\\\\"addressType\\\\\\": \\\\\\"intranet\\\\\\",\\\\n \\\\\\"externalTrafficPolicy\\\\\\": \\\\\\"Local\\\\\\",\\\\n \\\\\\"ip\\\\\\": \\\\\\"192.168.254.***\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"intranet-testapp\\\\\\",\\\\n \\\\\\"portMappings\\\\\\": [\\\\n {\\\\n \\\\\\"loadBalancerProtocol\\\\\\": \\\\\\"TCP\\\\\\",\\\\n \\\\\\"servicePort\\\\\\": {\\\\n \\\\\\"port\\\\\\": 8080,\\\\n \\\\\\"protocol\\\\\\": \\\\\\"TCP\\\\\\",\\\\n \\\\\\"targetPort\\\\\\": 18081,\\\\n \\\\\\"vServerGroupName\\\\\\": \\\\\\"k8s/31414/intranet-testapp/default/cc90e0c9508a44667bdae2e83d3******\\\\\\"\\\\n }\\\\n }\\\\n ],\\\\n \\\\\\"scheduler\\\\\\": \\\\\\"rr\\\\\\",\\\\n \\\\\\"serviceType\\\\\\": \\\\\\"LoadBalancer\\\\\\",\\\\n \\\\\\"slbId\\\\\\": \\\\\\"lb-bp1ikoh3nrpgqsm******\\\\\\",\\\\n \\\\\\"source\\\\\\": \\\\\\"create\\\\\\",\\\\n \\\\\\"specification\\\\\\": \\\\\\"slb.s3.large\\\\\\"\\\\n }\\\\n]\\",\\n \\"Annotations\\": \\"{\\\\\\"test-annokey\\\\\\":\\\\\\"test-annovalue\\\\\\"}\\",\\n \\"Labels\\": \\"{\\\\\\"test-labelkey\\\\\\":\\\\\\"test-labelvalue\\\\\\"}\\",\\n \\"LimitEphemeralStorage\\": \\"4\\",\\n \\"RequestEphemeralStorage\\": \\"2\\",\\n \\"EnableEmptyPushReject\\": true,\\n \\"EnableLosslessRule\\": true,\\n \\"LosslessRuleAligned\\": true,\\n \\"LosslessRuleDelayTime\\": 120,\\n \\"LosslessRuleFuncType\\": 2,\\n \\"LosslessRuleRelated\\": true,\\n \\"LosslessRuleWarmupTime\\": 120,\\n \\"FeatureAnnotations\\": \\"base.combination.edas\\",\\n \\"WorkloadType\\": \\"Deployment\\",\\n \\"SecurityContext\\": \\"{\\\\\\\\\\\\\\"runAsUser\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"runAsGroup\\\\\\\\\\\\\\":0}\\"\\n },\\n \\"Conf\\": {\\n \\"PostStart\\": \\"{\\\\\\\\\\\\\\"exec\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"command\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"ls\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\"]}}\\\\\\"\\",\\n \\"Readiness\\": \\"{\\\\\\"failureThreshold\\\\\\": 3,\\\\\\"initialDelaySeconds\\\\\\": 5,\\\\\\"successThreshold\\\\\\": 1,\\\\\\"timeoutSeconds\\\\\\": 1,\\\\\\"httpGet\\\\\\": {\\\\\\"path\\\\\\": \\\\\\"/consumer\\\\\\",\\\\\\"port\\\\\\": 8080,\\\\\\"scheme\\\\\\": \\\\\\"HTTP\\\\\\",\\\\\\"httpHeaders\\\\\\": \\\\\\\\[{\\\\\\"name\\\\\\": \\\\\\"test\\\\\\",\\\\\\"value\\\\\\": \\\\\\"testvalue\\\\\\"}\\\\\\\\]}}\\",\\n \\"AhasEnabled\\": true,\\n \\"K8sCmdArgs\\": \\"-lh\\",\\n \\"Liveness\\": \\"{\\\\\\"failureThreshold\\\\\\": 3,\\\\\\"initialDelaySeconds\\\\\\": 5,\\\\\\"successThreshold\\\\\\": 1,\\\\\\"timeoutSeconds\\\\\\": 1,\\\\\\"tcpSocket\\\\\\":{\\\\\\"host\\\\\\":\\\\\\"\\\\\\", \\\\\\"port\\\\\\":8080}}\\",\\n \\"DeployAcrossNodes\\": \\"true\\",\\n \\"K8sCmd\\": \\"ls\\",\\n \\"PreStop\\": \\"{\\\\\\\\\\\\\\"exec\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"command\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"ls\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\"]}}\\\\\\"\\",\\n \\"DeployAcrossZones\\": \\"true\\",\\n \\"JarStartArgs\\": \\"-lh\\",\\n \\"K8sNasInfo\\": \\"[{\\\\\\"nasPath\\\\\\":\\\\\\"/mnt/\\\\\\",\\\\\\"mountPath\\\\\\":\\\\\\"/mnt/\\\\\\"}]\\",\\n \\"JarStartOptions\\": \\"-h\\",\\n \\"RuntimeClassName\\": \\"runc\\",\\n \\"K8sLocalvolumeInfo\\": \\"[{\\\\\\"type\\\\\\":\\\\\\"\\\\\\",\\\\\\"nodePath\\\\\\":\\\\\\"/mnt/\\\\\\",\\\\\\"mountPath\\\\\\":\\\\\\"/mnt/\\\\\\"}]\\",\\n \\"K8sVolumeInfo\\": \\"\\\\\\"{\\\\\\\\\\\\\\"hostPaths\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"[]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"emptyDirs\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"[]\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"Affinity\\": \\"\\\\\\"{\\\\\\\\\\\\\\"nodeAffinity\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"requiredDuringSchedulingIgnoredDuringExecution\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"nodeSelectorTerms\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"matchExpressions\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"beta.kubernetes.io/arch\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"NotIn\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"values\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"arm64\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"arm32\\\\\\\\\\\\\\"]}]}]},\\\\\\\\\\\\\\"preferredDuringSchedulingIgnoredDuringExecution\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"weight\\\\\\\\\\\\\\":5,\\\\\\\\\\\\\\"preference\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"matchExpressions\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kubernetes.io/os\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"In\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"values\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"linux\\\\\\\\\\\\\\"]}]}}]},\\\\\\\\\\\\\\"podAffinity\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"requiredDuringSchedulingIgnoredDuringExecution\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"labelSelector\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"matchExpressions\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas.oam.acname\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"NotIn\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"values\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"edas-test-app\\\\\\\\\\\\\\"]}]},\\\\\\\\\\\\\\"namespaces\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\"],\\\\\\\\\\\\\\"topologyKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"kubernetes.io/hostname\\\\\\\\\\\\\\"}]},\\\\\\\\\\\\\\"podAntiAffinity\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"preferredDuringSchedulingIgnoredDuringExecution\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"weight\\\\\\\\\\\\\\":15,\\\\\\\\\\\\\\"podAffinityTerm\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"labelSelector\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"matchExpressions\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas.oam.acname\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"In\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"values\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"edas-test-app-2\\\\\\\\\\\\\\"]}]},\\\\\\\\\\\\\\"namespaces\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\"],\\\\\\\\\\\\\\"topologyKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"failure-domain.beta.kubernetes.io/zone\\\\\\\\\\\\\\"}}]}}\\\\\\"\\",\\n \\"Tolerations\\": \\"\\\\\\"[{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas-taint-key2\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Exists\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"effect\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"NoExecute\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"tolerationSeconds\\\\\\\\\\\\\\":50},{\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas-taint-key\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Equal\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"edas-taint-value\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"effect\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PreferNoSchedule\\\\\\\\\\\\\\"}]\\\\\\"\\",\\n \\"UserBaseImageUrl\\": \\"openjdk:8u302\\"\\n },\\n \\"LatestVersion\\": {\\n \\"Url\\": \\"https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar\\",\\n \\"WarUrl\\": \\"https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar\\",\\n \\"PackageVersion\\": \\"20200720\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetK8sApplicationResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <RequestId>1053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n <Applcation>\\n <AppId>a5281053-****-47a5-b2ab-5c0323de****</AppId>\\n <DeployGroups>\\n <Components>\\n <Type>JDK</Type>\\n <ComponentKey>Open JDK 8</ComponentKey>\\n <ComponentId>5</ComponentId>\\n </Components>\\n </DeployGroups>\\n <ImageInfo>\\n <RepoId>cn-hangzhou</RepoId>\\n <ImageUrl>registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282</ImageUrl>\\n <RepoOriginType>ALI_HUB</RepoOriginType>\\n <Tag>5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282</Tag>\\n <RepoName>131****067006888_shared_repo</RepoName>\\n <RepoNamespace>edas-server****-user</RepoNamespace>\\n <RegionId>cn-beijing</RegionId>\\n </ImageInfo>\\n <App>\\n <RequestMem>1024</RequestMem>\\n <InstancesBeforeScaling>10</InstancesBeforeScaling>\\n <DeployType>Image</DeployType>\\n <ApplicationName>test</ApplicationName>\\n <ApplicationType>War</ApplicationType>\\n <Instances>4</Instances>\\n <LimitMem>1024</LimitMem>\\n <Cmd>ls</Cmd>\\n <RegionId>cn-hangzhou</RegionId>\\n <BuildpackId>57</BuildpackId>\\n <TomcatVersion>8.5.55</TomcatVersion>\\n <CsClusterId>c383bc813c1974e****451b50c0c8****</CsClusterId>\\n <RequestCpuM>1000</RequestCpuM>\\n <AppId>00ee517d-dd7d-4d4e-****-****</AppId>\\n <K8sNamespace>default</K8sNamespace>\\n <EdasContainerVersion>3.60.0</EdasContainerVersion>\\n <ClusterId>c37aec2a-bcca-4ec1-****-****</ClusterId>\\n <EnvList>\\n <Name>CATALINA_OPTS</Name>\\n <Value>-Xmx 1024m -Dhsf.default.tid=false $(EDAS_CATALINA_OPTS)</Value>\\n </EnvList>\\n <CmdArgs>-lh</CmdArgs>\\n </App>\\n <Conf>\\n <PostStart>{\\\\\\"exec\\\\\\":{\\\\\\"command\\\\\\":[\\\\\\"ls\\\\\\",\\\\\\"/\\\\\\"]}}\\"</PostStart>\\n <Readiness>{\\"failureThreshold\\": 3,\\"initialDelaySeconds\\": 5,\\"successThreshold\\": 1,\\"timeoutSeconds\\": 1,\\"httpGet\\": {\\"path\\": \\"/consumer\\",\\"port\\": 8080,\\"scheme\\": \\"HTTP\\",\\"httpHeaders\\": \\\\[{\\"name\\": \\"test\\",\\"value\\": \\"testvalue\\"}\\\\]}}</Readiness>\\n <AhasEnabled>true</AhasEnabled>\\n <K8sCmdArgs>-lh</K8sCmdArgs>\\n <Liveness>{\\"failureThreshold\\": 3,\\"initialDelaySeconds\\": 5,\\"successThreshold\\": 1,\\"timeoutSeconds\\": 1,\\"tcpSocket\\":{\\"host\\":\\"\\", \\"port\\":8080}}</Liveness>\\n <DeployAcrossNodes>true</DeployAcrossNodes>\\n <K8sCmd>ls</K8sCmd>\\n <PreStop>{\\\\\\"exec\\\\\\":{\\\\\\"command\\\\\\":[\\\\\\"ls\\\\\\",\\\\\\"/\\\\\\"]}}\\"</PreStop>\\n <DeployAcrossZones>true</DeployAcrossZones>\\n <JarStartArgs>-lh</JarStartArgs>\\n <K8sNasInfo>[{\\"nasPath\\":\\"/mnt/\\",\\"mountPath\\":\\"/mnt/\\"}]</K8sNasInfo>\\n <JarStartOptions>-h</JarStartOptions>\\n <RuntimeClassName>runc</RuntimeClassName>\\n <K8sLocalvolumeInfo>[{\\"type\\":\\"\\",\\"nodePath\\":\\"/mnt/\\",\\"mountPath\\":\\"/mnt/\\"}]</K8sLocalvolumeInfo>\\n <K8sVolumeInfo>\\"{\\\\\\"hostPaths\\\\\\":\\\\\\"[]\\\\\\",\\\\\\"emptyDirs\\\\\\":\\\\\\"[]\\\\\\"}\\"</K8sVolumeInfo>\\n <ApmBinderLogFileConfigs>[{\\"filePattern\\":\\"test\\",\\"name\\":\\"auto-logstash\\",\\"path\\":\\"/home/admin\\",\\"type\\":\\"file\\"}]</ApmBinderLogFileConfigs>\\n </Conf>\\n <LatestVersion>\\n <Url>https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar</Url>\\n <WarUrl>https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar</WarUrl>\\n <PackageVersion>20200720</PackageVersion>\\n </LatestVersion>\\n </Applcation>\\n</GetK8sApplicationResponse>","errorExample":""}]',
],
'GetK8sCluster' => [
'path' => '/pop/v5/k8s_clusters',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'RegionTag',
'in' => 'query',
'schema' => ['description' => '地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => '分页查询时当前显示第几页,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '9999', 'minimum' => '0', 'example' => '1', 'isFileTransferUrl' => false, 'default' => '0'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询时每页显示几条,默认值为1000。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '9999', 'minimum' => '1', 'example' => '10', 'isFileTransferUrl' => false, 'default' => '20'],
],
[
'name' => 'ClusterType',
'in' => 'query',
'schema' => ['description' => 'K8s集群类型:'."\n"
."\n"
.'- 5:容器服务K8s集群。'."\n"
.'- 7:自建K8s集群。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '99', 'minimum' => '0', 'example' => '5', 'default' => '5'],
],
[
'name' => 'SubClusterType',
'in' => 'query',
'schema' => ['description' => '集群子类型:'."\n"
.'* Ask:Serverless K8s 集群。'."\n"
.'* ManagedKubernetes:容器服务 K8s 集群。', 'type' => 'string', 'required' => false, 'example' => 'Ask'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C3CE915C-0C83-4AA5-8D66-E8BEED62939E'],
'ClusterPage' => [
'description' => '集群分页显示列表。',
'type' => 'object',
'properties' => [
'CurrentPage' => ['description' => '分页查询时当前显示第几页,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '分页查询时每页显示几条,默认值为1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalSize' => ['description' => '显示总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ClusterList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Cluster' => [
'description' => '集群列表。',
'type' => 'array',
'items' => [
'description' => '集群列表对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID。', 'type' => 'string', 'example' => 'vpc-**z1mlwpbjx3e9m**'],
'VswitchId' => ['description' => '交换机ID。', 'type' => 'string', 'example' => 'vsw-bp1uf97****xjxgip****'],
'SubNetCidr' => ['description' => '子网的网段。', 'type' => 'string', 'example' => '172.20.0.0/16'],
'Mem' => ['description' => '内存总量,单位:MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '2048'],
'RegionId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'test'],
'CsClusterStatus' => ['description' => '容器集群运行状态:'."\n"
.'- initial:初始化中。'."\n"
.'- failed:创建失败。'."\n"
.'- running:运行中。'."\n"
.'- updating:更新中。'."\n"
.'- scaling:扩容中。'."\n"
.'- removing:移除节点中。'."\n"
.'- upgrading:升级中。'."\n"
.'- deleting:删除中。'."\n"
.'- delete_failed:删除失败。'."\n"
.'- deleted:已删除(该状态用户不可见)。', 'type' => 'string', 'example' => 'running'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'NetworkMode' => ['description' => '网络类型:'."\n"
.'- 1:经典网络。'."\n"
.'- 2:VPC。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'CsClusterId' => ['description' => '容器服务集群ID。', 'type' => 'string', 'example' => '2ce62869f4d4466b920312315f05****'],
'Description' => ['description' => '集群描述。', 'type' => 'string', 'example' => 'test'],
'ClusterType' => ['description' => '集群类型:'."\n"
.'- 2:ECS集群。'."\n"
.'- 5:容器服务K8s集群或Serverless K8s集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'test'],
'NodeNum' => ['description' => '节点数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '81453e4b-4df0-4592-****-b835a2ee****'],
'ClusterImportStatus' => ['title' => '', 'description' => '集群的导入状态:'."\n"
.'- 0:没有导入。'."\n"
.'- 1:导入成功。'."\n"
.'- 2:导入失败。'."\n"
.'- 3:正在导入。'."\n"
.'- 4:集群已删除。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SubClusterType' => ['description' => '集群子类型:'."\n"
.'* Ask:Serverless K8s 集群。'."\n"
.'* ManagedKubernetes:容器服务 K8s 集群。', 'type' => 'string', 'example' => 'Ask'],
'ClusterStatus' => ['description' => '集群运行状态:'."\n"
.'- 1:正常。'."\n"
.'- 2:异常。'."\n"
.'- 3:离线。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
],
'description' => '',
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '获取K8s集群列表',
'summary' => '获取容器服务K8s集群或Serverless K8s集群列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetK8sCluster'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"C3CE915C-0C83-4AA5-8D66-E8BEED62939E\\",\\n \\"ClusterPage\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 5,\\n \\"ClusterList\\": {\\n \\"Cluster\\": [\\n {\\n \\"VpcId\\": \\"vpc-**z1mlwpbjx3e9m**\\",\\n \\"VswitchId\\": \\"vsw-bp1uf97****xjxgip****\\",\\n \\"SubNetCidr\\": \\"172.20.0.0/16\\",\\n \\"Mem\\": 2048,\\n \\"RegionId\\": \\"test\\",\\n \\"CsClusterStatus\\": \\"running\\",\\n \\"Cpu\\": 4,\\n \\"NetworkMode\\": 2,\\n \\"CsClusterId\\": \\"2ce62869f4d4466b920312315f05****\\",\\n \\"Description\\": \\"test\\",\\n \\"ClusterType\\": 5,\\n \\"ClusterName\\": \\"test\\",\\n \\"NodeNum\\": 4,\\n \\"ClusterId\\": \\"81453e4b-4df0-4592-****-b835a2ee****\\",\\n \\"ClusterImportStatus\\": 1,\\n \\"SubClusterType\\": \\"Ask\\",\\n \\"ClusterStatus\\": 1\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>C3CE915C-0C83-4AA5-8D66-E8BEED62939E</RequestId>\\n<Message>success</Message>\\n<ClusterPage>\\n <ClusterList>\\n <Cluster>\\n <ClusterImportStatus>1</ClusterImportStatus>\\n <NodeNum>3</NodeNum>\\n <ClusterId>6cd7d5d3-2c7b-48be-a874-3e746708****</ClusterId>\\n <Cpu>0</Cpu>\\n <ClusterType>5</ClusterType>\\n <NetworkMode>2</NetworkMode>\\n <CsClusterId>c0b7a530b96d24b46bd02da2316c****</CsClusterId>\\n <VswitchId>vsw-bp1y77ga5pz9lianh****</VswitchId>\\n <VpcId>vpc-bp1jmhiplgziujhw0****</VpcId>\\n <Mem>0</Mem>\\n <ClusterName>gray</ClusterName>\\n <SubNetCidr>172.20.0.0/16</SubNetCidr>\\n <RegionId>cn-hangzhou:test</RegionId>\\n <CsClusterStatus>running</CsClusterStatus>\\n <ClusterStatus>0</ClusterStatus>\\n </Cluster>\\n </ClusterList>\\n <PageSize>17</PageSize>\\n <CurrentPage>0</CurrentPage>\\n <TotalSize>17</TotalSize>\\n</ClusterPage>\\n<Code>200</Code>","errorExample":""}]',
],
'GetK8sServices' => [
'path' => '/pop/v5/k8s/acs/k8s_service',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '变更流程ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
'Services' => [
'description' => 'K8s服务Service列表。',
'type' => 'array',
'items' => [
'description' => 'K8s服务Service对象。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '服务类型。', 'type' => 'string', 'example' => 'ClusterIP'],
'Name' => ['description' => '服务名。', 'type' => 'string', 'example' => 'service-http'],
'ClusterIP' => ['description' => 'K8s服务Service IP地址。', 'type' => 'string', 'example' => '104.23.xx.xx'],
'ServicePorts' => [
'description' => '端口映射列表。',
'type' => 'array',
'items' => [
'description' => '端口映射对象。',
'type' => 'object',
'properties' => [
'TargetPort' => ['description' => '后端容器端口。', 'type' => 'string', 'example' => '8080'],
'NodePort' => ['description' => '节点端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Port' => ['description' => '前端服务端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'Protocol' => ['description' => '服务协议。', 'type' => 'string', 'example' => 'TCP'],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'staticInfo' => [],
'title' => '获取K8s服务Service列表',
'summary' => '调用GetK8sServices接口获取K8s集群中应用的服务Service列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sServices'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\",\\n \\"Services\\": [\\n {\\n \\"Type\\": \\"ClusterIP\\",\\n \\"Name\\": \\"service-http\\",\\n \\"ClusterIP\\": \\"104.23.xx.xx\\",\\n \\"ServicePorts\\": [\\n {\\n \\"TargetPort\\": \\"8080\\",\\n \\"NodePort\\": 0,\\n \\"Port\\": 80,\\n \\"Protocol\\": \\"TCP\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Services>\\n <ClusterIP>104.23.xx.xx</ClusterIP>\\n <Type>ClusterIP</Type>\\n <Name>service-http</Name>\\n</Services>\\n<Services>\\n <ServicePorts>\\n <NodePort>0</NodePort>\\n <TargetPort>8080</TargetPort>\\n <Protocol>TCP</Protocol>\\n <Port>80</Port>\\n </ServicePorts>\\n</Services>\\n<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'GetPackageStorageCredential' => [
'path' => '/pop/v5/package_storage_credential',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '请求返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'Credential' => [
'description' => '认证信息。',
'type' => 'object',
'properties' => [
'KeyPrefix' => ['description' => 'OSS的存储Key前缀。', 'type' => 'string', 'example' => 'release-pkg/117274586608****'],
'SecurityToken' => ['description' => 'STS安全令牌。', 'type' => 'string', 'example' => '<yourSecurityToken>'],
'AccessKeySecret' => ['description' => '用户的AccessKey Secret。', 'type' => 'string', 'example' => '<yourAccessKeySecret>'],
'Expiration' => ['description' => '超期时间信息,如:2019-11-10T07:20:19Z。', 'type' => 'string', 'example' => '2019-11-10T07:20:19Z'],
'AccessKeyId' => ['description' => '用户的AccessKey ID。', 'type' => 'string', 'example' => '<yourAccessKeyId>'],
'Bucket' => ['description' => 'OSS的Bucket。', 'type' => 'string', 'example' => 'edas-bj'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'OssPublicEndpoint' => ['description' => 'OSS的公网访问地址。', 'type' => 'string', 'example' => 'oss-cn-beijing.aliyuncs.com'],
'OssInternalEndpoint' => ['description' => 'OSS的私网访问地址。', 'type' => 'string', 'example' => 'oss-cn-beijing-internal.aliyuncs.com'],
'OssVpcEndpoint' => ['description' => 'OSS的VPC访问地址。', 'type' => 'string', 'example' => 'oss-cn-beijing-internal.aliyuncs.com'],
],
],
],
],
],
],
'title' => '获取临时存储包所需的STS',
'summary' => '获取临时存储包所需的STS。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-07-12T06:43:21.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetPackageStorageCredential'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:GetPackageStorageCredential',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"Credential\\": {\\n \\"KeyPrefix\\": \\"release-pkg/117274586608****\\",\\n \\"SecurityToken\\": \\"<yourSecurityToken>\\",\\n \\"AccessKeySecret\\": \\"<yourAccessKeySecret>\\",\\n \\"Expiration\\": \\"2019-11-10T07:20:19Z\\",\\n \\"AccessKeyId\\": \\"<yourAccessKeyId>\\",\\n \\"Bucket\\": \\"edas-bj\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"OssPublicEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"OssInternalEndpoint\\": \\"oss-cn-beijing-internal.aliyuncs.com\\",\\n \\"OssVpcEndpoint\\": \\"oss-cn-beijing-internal.aliyuncs.com\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetPackageStorageCredentialResponse>\\n <Credential>\\n <KeyPrefix>release-pkg/117274586608****</KeyPrefix>\\n <AccessKeySecret>yourAccessKeySecret</AccessKeySecret>\\n <AccessKeyId>yourAccessKeyId</AccessKeyId>\\n <Expiration>2019-11-10T07:20:19Z</Expiration>\\n <SecurityToken>yourSecurityToken</SecurityToken>\\n <RegionId>cn-beijing</RegionId>\\n <Bucket>edas-bj</Bucket>\\n </Credential>\\n <Message>success</Message>\\n <Code>200</Code>\\n</GetPackageStorageCredentialResponse>","errorExample":""}]',
],
'GetScalingRules' => [
'path' => '/pop/v5/app/scalingRules',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '33e39be9-3e5f-*********'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '部署分组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'd8bb9d60-9**************'],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => [
'description' => '可不传或指定规则类型:'."\n"
.'- SCALE\\_IN表示缩容。'."\n"
.'- SCALE\\_OUT表示扩容。',
'type' => 'string',
'required' => false,
'example' => ' SCALE_IN',
'enum' => ['SCALE_IN', 'SCALE_OUT'],
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-***********'],
'Data' => [
'description' => '数据详情。',
'type' => 'object',
'properties' => [
'OversoldFactor' => ['description' => 'Docker集群支持超卖比例:'."\n"
.'- 1:1:1比例,不超卖。'."\n"
.'- 2:1:2比例超卖。'."\n"
.'- 4:1:4比例超卖。'."\n"
.'- 8:1:8比例超卖。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'VpcId' => ['description' => 'VPC ID。', 'type' => 'string', 'example' => 'vpc-wz9b246z******'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'ClusterType' => ['description' => '集群类型:'."\n"
."\n"
.'- 0:普通Docker集群。'."\n"
.'- 1:Swarm集群(已废弃)。'."\n"
.'- 2:ECS集群。'."\n"
.'- 3:EDAS自建K8s集群。'."\n"
.'- 4:Pandora自动注册应用集群类型。'."\n"
.'- 5:容器服务K8s集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RuleList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Rule' => [
'description' => '规则列表。',
'type' => 'array',
'items' => [
'description' => '规则对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID。', 'type' => 'string', 'example' => 'vpc-wz9b246z******'],
'UpdateTime' => ['description' => '修改时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601801'],
'Rt' => ['description' => '触发指标:服务时延,单位为ms。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SpecId' => ['description' => 'Spec ID。', 'type' => 'string', 'example' => '03f493c0-xxxx-xxxx-xxxx-12e85cadeb41'],
'MultiAzPolicy' => ['description' => '多可用区扩缩容策略:'."\n"
.'- PRIORITY:优先级策略。'."\n"
.'- BALANCE:均衡分布策略。', 'type' => 'string', 'example' => 'PRIORITY'],
'ResourceFrom' => ['description' => '实例来源:'."\n"
.'- NEW:弹性资源。'."\n"
.'- AVAILABLE:已有资源。'."\n"
.'- AVAILABLE_FIRST:已有资源优先。', 'type' => 'string', 'example' => 'AVAILABLE'],
'Mode' => ['description' => '规则类型:'."\n"
.'- SCALE_IN:缩容。'."\n"
.'- SCALE_OUT:扩容。', 'type' => 'string', 'example' => 'SCALE_OUT'],
'LoadNum' => ['description' => '触发指标:系统负载,即指当前正在被CPU执行和等待被CPU执行的进程数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TemplateVersion' => ['description' => '启动模版的版本号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1143542'],
'Step' => ['description' => '每次扩容或缩容的实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Cond' => ['description' => '触发条件:'."\n"
.'- OR:满足任一条件即触发。'."\n"
.'- AND:满足所有条件才触发。', 'type' => 'string', 'example' => 'OR'],
'Cpu' => ['description' => '触发指标CPU使用率。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'GroupId' => ['description' => '应用实例分组ID。', 'type' => 'string', 'example' => 'd8bb9d60-91b5-4cdf-****-************'],
'InstNum' => ['description' => '扩容时表示分组内的最大实例数,缩容时表示分组内最小实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '33e39be9-3e5f-*********'],
'Duration' => ['description' => '持续时间的时间戳。', 'type' => 'integer', 'format' => 'int32', 'example' => '1574251601'],
'VSwitchIds' => ['description' => 'vSwitch ID列表。如果设置了多个,以半角逗号(,)分割。', 'type' => 'string', 'example' => 'vsw-mxxxxkxxxx4xxxxwbionj'],
'MetricType' => ['description' => 'Metric类型。', 'type' => 'string', 'example' => 'HSF'],
'TemplateId' => ['description' => '启动模版ID。', 'type' => 'string', 'example' => 'lt-bp1xxxxn73pxxxxf83l'],
'Enable' => ['description' => '是否启用弹性扩容或缩容:'."\n"
."\n"
.'- true:启用。'."\n"
.'- false:不启用。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'description' => '',
],
],
],
],
],
],
],
'title' => '获取扩缩容规则',
'summary' => '调用GetScalingRules接口获取扩缩容规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetScalingRules'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"UpdateTime\\": 1574251601785,\\n \\"RequestId\\": \\"D16979DC-4D42-***********\\",\\n \\"Data\\": {\\n \\"OversoldFactor\\": 1,\\n \\"VpcId\\": \\"vpc-wz9b246z******\\",\\n \\"UpdateTime\\": 1574251601785,\\n \\"ClusterType\\": 2,\\n \\"RuleList\\": {\\n \\"Rule\\": [\\n {\\n \\"VpcId\\": \\"vpc-wz9b246z******\\",\\n \\"UpdateTime\\": 1574251601785,\\n \\"CreateTime\\": 1574251601801,\\n \\"Rt\\": 1,\\n \\"SpecId\\": \\"03f493c0-xxxx-xxxx-xxxx-12e85cadeb41\\",\\n \\"MultiAzPolicy\\": \\"PRIORITY\\",\\n \\"ResourceFrom\\": \\"AVAILABLE\\",\\n \\"Mode\\": \\"SCALE_OUT\\",\\n \\"LoadNum\\": 1,\\n \\"TemplateVersion\\": 1143542,\\n \\"Step\\": 1,\\n \\"Cond\\": \\"OR\\",\\n \\"Cpu\\": 1,\\n \\"GroupId\\": \\"d8bb9d60-91b5-4cdf-****-************\\",\\n \\"InstNum\\": 2,\\n \\"AppId\\": \\"33e39be9-3e5f-*********\\",\\n \\"Duration\\": 1574251601,\\n \\"VSwitchIds\\": \\"vsw-mxxxxkxxxx4xxxxwbionj\\",\\n \\"MetricType\\": \\"HSF\\",\\n \\"TemplateId\\": \\"lt-bp1xxxxn73pxxxxf83l\\",\\n \\"Enable\\": true\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Data>\\n <RuleList>\\n <Rule>\\n <Step>1</Step>\\n <SpecId/>\\n <AppId>33e39be9-3e5f-4028-****-************</AppId>\\n <MultiAzPolicy/>\\n <UpdateTime>1574251601785</UpdateTime>\\n <MetricType>HSF</MetricType>\\n <Mode>SCALE_OUT</Mode>\\n <GroupId>d8bb9d60-91b5-4cdf-****-************</GroupId>\\n <VpcId/>\\n <TemplateId/>\\n <Rt>1</Rt>\\n <ResourceFrom>AVAILABLE</ResourceFrom>\\n <Cpu>1</Cpu>\\n <VSwitchIds/>\\n <Cond>OR</Cond>\\n <InstNum>2</InstNum>\\n <Enable>true</Enable>\\n <CreateTime>1574251601801</CreateTime>\\n <Duration>1</Duration>\\n <LoadNum>1</LoadNum>\\n </Rule>\\n </RuleList>\\n <OversoldFactor>1</OversoldFactor>\\n <ClusterType>2</ClusterType>\\n <VpcId>vpc-wz9b246z******</VpcId>\\n</Data>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'GetSecureToken' => [
'summary' => '调用GetSecureToken获取指定命名空间的SecureToken信息,主要是用来获取指定命名空间的AccessKey ID、AccessKey Secret 、TenantId、地址服务器域名等信息。',
'path' => '/pop/v5/secure_token',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['description' => '命名空间ID,例如:`cn-beijing`或者`cn-beijing:prod`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shenzhen:x*****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求返回的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '接口请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-*************'],
'SecureToken' => [
'description' => '接口请求返回的接口SecureToken对象。',
'type' => 'object',
'properties' => [
'SecretKey' => ['description' => '该命名空间的AccessKey Secret(SK)。', 'type' => 'string', 'example' => 'gOSgbgR2R*************'],
'AccessKey' => ['description' => '该命名空间的AccessKey(AK)。', 'type' => 'string', 'example' => 'f676f1**************'],
'BelongRegion' => ['description' => '所属的RegionID。', 'type' => 'string', 'example' => 'cn-shenzhen'],
'Description' => ['description' => '该命名空间的描述信息。', 'type' => 'string', 'example' => '”“'],
'RegionName' => ['description' => '该命名空间所在地域的RegionName。', 'type' => 'string', 'example' => 'x******'],
'EdasId' => ['description' => '用户的EdasId,即阿里云UID。', 'type' => 'string', 'example' => '11727458********'],
'AddressServerHost' => ['description' => '该命名空间对应的地址服务器地址。', 'type' => 'string', 'example' => 'addr-****-****.edas.aliyun.com'],
'UserId' => ['description' => '用户的UID。', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'Id' => ['description' => 'SecureToken的ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '7279'],
'TenantId' => ['description' => '该命名空间的租户ID(Tenant ID)。', 'type' => 'string', 'example' => '401b7bc8-9441-4693-****-************'],
'RegionId' => ['description' => '该命名空间所在地域的RegionID。', 'type' => 'string', 'example' => 'cn-shenzhen:x*******'],
'MseRegistryType' => ['description' => 'MSE注册中心类型:'."\n"
."\n"
.'* default:EDAS共享注册中心。'."\n"
.'* exclusive_mse:MSE Nacos注册中心。'."\n", 'type' => 'string', 'example' => 'exclusive_mse'],
'MseInstanceId' => ['description' => 'MSE注册中心实例ID。', 'type' => 'string', 'example' => 'mse_prepaid_public_cn-tl32p******'],
'MseInternetAddress' => ['description' => 'MSE注册中心公网地址。', 'type' => 'string', 'example' => 'mse-aa2******-p.nacos-ans.mse.aliyuncs.com'],
'MseIntranetAddress' => ['description' => 'MSE注册中心私网地址。', 'type' => 'string', 'example' => 'mse-72******-nacos-ans.mse.aliyuncs.com'],
],
],
],
'description' => '',
],
],
],
'title' => '获取命名空间SecureToken信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetSecureToken'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-*************\\",\\n \\"SecureToken\\": {\\n \\"SecretKey\\": \\"gOSgbgR2R*************\\",\\n \\"AccessKey\\": \\"f676f1**************\\",\\n \\"BelongRegion\\": \\"cn-shenzhen\\",\\n \\"Description\\": \\"”“\\",\\n \\"RegionName\\": \\"x******\\",\\n \\"EdasId\\": \\"11727458********\\",\\n \\"AddressServerHost\\": \\"addr-****-****.edas.aliyun.com\\",\\n \\"UserId\\": \\"edas_com***_****@******-*****.***\\",\\n \\"Id\\": 7279,\\n \\"TenantId\\": \\"401b7bc8-9441-4693-****-************\\",\\n \\"RegionId\\": \\"cn-shenzhen:x*******\\",\\n \\"MseRegistryType\\": \\"exclusive_mse\\",\\n \\"MseInstanceId\\": \\"mse_prepaid_public_cn-tl32p******\\",\\n \\"MseInternetAddress\\": \\"mse-aa2******-p.nacos-ans.mse.aliyuncs.com\\",\\n \\"MseIntranetAddress\\": \\"mse-72******-nacos-ans.mse.aliyuncs.com\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<SecureToken>\\n <EdasId>11727458********</EdasId>\\n <TenantId>401b7bc8-9441-4693-****-************</TenantId>\\n <SecretKey>gOSgbgR2R*************</SecretKey>\\n <Description>”“</Description>\\n <RegionName>x******</RegionName>\\n <UserId>edas_com***_****@******-*****.***</UserId>\\n <AddressServerHost>addr-****-****.edas.aliyun.com</AddressServerHost>\\n <AccessKey>f676f1**************</AccessKey>\\n <RegionId>cn-shenzhen:x*******</RegionId>\\n <Id>7279</Id>\\n <BelongRegion>cn-shenzhen</BelongRegion>\\n</SecureToken>\\n<RequestId>D16979DC-4D42-*************</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'GetServiceConsumersPage' => [
'path' => '/pop/sp/api/mseForOam/getServiceConsumersPage',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'region',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'namespace',
'in' => 'query',
'schema' => ['description' => '命名空间ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:doc-test'],
],
[
'name' => 'origin',
'in' => 'query',
'schema' => ['description' => '数据来源,取值如下:'."\n"
."\n"
.'- agent:新版服务查询需要传递。'."\n"
.'- registry:旧版服务查询传递。', 'type' => 'string', 'required' => false, 'example' => 'agent'],
],
[
'name' => 'serviceType',
'in' => 'query',
'schema' => ['description' => '服务类型。', 'type' => 'string', 'required' => false, 'example' => 'dubbo'],
],
[
'name' => 'appId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => false, 'example' => 'efbda488-7b33-432f-a40d-****0047****'],
],
[
'name' => 'source',
'in' => 'query',
'schema' => ['description' => '来源,固定值:edas。', 'type' => 'string', 'required' => false, 'example' => 'edas'],
],
[
'name' => 'serviceId',
'in' => 'query',
'schema' => ['description' => '服务ID。已废弃,无需设置。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceName',
'in' => 'query',
'schema' => ['description' => '服务名。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceVersion',
'in' => 'query',
'schema' => ['description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
],
[
'name' => 'group',
'in' => 'query',
'schema' => ['description' => '分组。', 'type' => 'string', 'required' => false, 'example' => 'DUBBO'],
],
[
'name' => 'ip',
'in' => 'query',
'schema' => ['description' => '服务提供者IP,支持模糊查询。', 'type' => 'string', 'required' => false, 'example' => '10.20.x.xx'],
],
[
'name' => 'registryType',
'in' => 'query',
'schema' => ['description' => '注册类型。已废弃,无需设置。', 'type' => 'string', 'required' => false, 'example' => 'nacos'],
],
[
'name' => 'page',
'in' => 'query',
'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'size',
'in' => 'query',
'schema' => ['description' => '页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '数据结构体。',
'type' => 'object',
'properties' => [
'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TotalElements' => ['description' => '总数据量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'Size' => ['description' => '页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'Content' => [
'description' => '组数据。',
'type' => 'array',
'items' => [
'description' => '组数据对象。',
'type' => 'object',
'properties' => [
'Ip' => ['description' => '服务消费者IP。', 'type' => 'string', 'example' => '10.20.x.xx'],
'EdasAppName' => ['description' => '服务消费者名称。', 'type' => 'string', 'example' => 'k8s-lq-cartservice'],
'EdassAppId' => ['description' => '服务消费者ID。', 'type' => 'string', 'example' => 'efbda488-7b33-432f-a40d-****0047****'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [],
'title' => '查询微服务消费者列表',
'summary' => '获取服务消费者列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 3,\\n \\"Size\\": 5,\\n \\"Content\\": [\\n {\\n \\"Ip\\": \\"10.20.x.xx\\",\\n \\"EdasAppName\\": \\"k8s-lq-cartservice\\",\\n \\"EdassAppId\\": \\"efbda488-7b33-432f-a40d-****0047****\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetServiceConsumersPage>\\n<Message>success</Message>\\n<Data>\\n <Size>5</Size>\\n <Content>\\n <EdassAppId>efbda488-7b33-432f-a40d-****0047****</EdassAppId>\\n <EdasAppName>k8s-lq-cartservice</EdasAppName>\\n <Ip>10.20.x.xx</Ip>\\n </Content>\\n <TotalElements>3</TotalElements>\\n <TotalPages>1</TotalPages>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</GetServiceConsumersPage>","errorExample":""}]',
],
'GetServiceDetail' => [
'path' => '/pop/sp/api/mseForOam/getServiceDetail',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'region',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'namespace',
'in' => 'query',
'schema' => ['description' => '命名空间ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou:doc-test'],
],
[
'name' => 'origin',
'in' => 'query',
'schema' => ['description' => '数据来源,取值如下:'."\n"
.'- agent:新版服务查询需要传递。'."\n"
.'- registry:旧版服务查询传递。', 'type' => 'string', 'required' => false, 'example' => 'agent'],
],
[
'name' => 'serviceType',
'in' => 'query',
'schema' => ['description' => '服务类型,取值如下:'."\n"
.'- dubbo'."\n"
.'- springCloud'."\n"
.'- hsf'."\n"
.'- istio', 'type' => 'string', 'required' => false, 'example' => 'springCloud'],
],
[
'name' => 'appId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'efbda488-7b33-432f-a40d-****0047****'],
],
[
'name' => 'source',
'in' => 'query',
'schema' => ['description' => '来源,固定值:edas。', 'type' => 'string', 'required' => false, 'example' => 'edas'],
],
[
'name' => 'serviceId',
'in' => 'query',
'schema' => ['description' => '服务ID。已废弃,无需设置。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceName',
'in' => 'query',
'schema' => ['description' => '服务名称。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceVersion',
'in' => 'query',
'schema' => ['description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
],
[
'name' => 'group',
'in' => 'query',
'schema' => ['description' => '服务分组。', 'type' => 'string', 'required' => false, 'example' => 'DUBBO'],
],
[
'name' => 'ip',
'in' => 'query',
'schema' => ['description' => '服务提供者IP,支持模糊查询。', 'type' => 'string', 'required' => false, 'example' => '10.20.x.xx'],
],
[
'name' => 'registryType',
'in' => 'query',
'schema' => ['description' => '注册类型。已废弃,无需设置。', 'type' => 'string', 'required' => false, 'example' => 'nacos'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '数据结构体。',
'type' => 'object',
'properties' => [
'EdasAppName' => ['description' => 'EDAS应用名称。', 'type' => 'string', 'example' => 'test123'],
'DubboApplicationName' => ['description' => 'Dubbo应用名称。', 'type' => 'string', 'example' => 'cartservice'],
'Version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1.0.0'],
'RegistryType' => ['description' => '注册类型。', 'type' => 'string', 'example' => 'agent'],
'SpringApplicationName' => ['description' => 'Spring应用名。', 'type' => 'string', 'example' => 'edas.service.consumer'],
'ServiceType' => ['description' => '服务类型。', 'type' => 'string', 'example' => 'springCloud'],
'ServiceName' => ['description' => '服务名。', 'type' => 'string', 'example' => 'edas.service.consumer'],
'Metadata' => ['description' => '元数据。', 'type' => 'string', 'example' => '{}'],
'Group' => ['description' => '分组。', 'type' => 'string', 'example' => 'dubbo'],
'Methods' => [
'description' => '方法列表。',
'type' => 'array',
'items' => [
'description' => '方法对象。',
'type' => 'object',
'properties' => [
'ParameterDetails' => ['description' => '参数详情。', 'type' => 'string', 'example' => '{}'],
'NameDetail' => ['description' => '具体名称。', 'type' => 'string', 'example' => 'test'],
'ParameterNames' => ['description' => '参数名称。', 'type' => 'string', 'example' => 'test'],
'ParameterDefinitions' => ['description' => '参数定义。', 'type' => 'string', 'example' => '[{"description":"","name":"arg0","type":"java.lang.String"}]'],
'Paths' => ['description' => '方法路径。', 'type' => 'string', 'example' => '["/consumer-echo/feign/{str}"]'],
'ParameterTypes' => ['description' => '参数类型。', 'type' => 'string', 'example' => '["java.lang.String"]'],
'RequestMethods' => ['description' => '请求方法。', 'type' => 'string', 'example' => 'GET'],
'ReturnDetails' => ['description' => '返回详情。', 'type' => 'string', 'example' => 'test'],
'Name' => ['description' => '名称。', 'type' => 'string', 'example' => 'feign2'],
'MethodController' => ['description' => 'controller列表。', 'type' => 'string', 'example' => 'com.aliware.edas.DemoController'],
'ReturnType' => ['description' => '返回类型。', 'type' => 'string', 'example' => 'java.lang.String'],
'ReturnDefinition' => [
'description' => '返回定义。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '类型。', 'type' => 'string', 'example' => 'foo'],
'Id' => ['description' => '返回值ID。', 'type' => 'string', 'example' => '1'],
],
],
],
],
],
],
],
],
],
],
],
'title' => '获取服务详情',
'summary' => '获取服务详情。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"EdasAppName\\": \\"test123\\",\\n \\"DubboApplicationName\\": \\"cartservice\\",\\n \\"Version\\": \\"1.0.0\\",\\n \\"RegistryType\\": \\"agent\\",\\n \\"SpringApplicationName\\": \\"edas.service.consumer\\",\\n \\"ServiceType\\": \\"springCloud\\",\\n \\"ServiceName\\": \\"edas.service.consumer\\",\\n \\"Metadata\\": \\"{}\\",\\n \\"Group\\": \\"dubbo\\",\\n \\"Methods\\": [\\n {\\n \\"ParameterDetails\\": \\"{}\\",\\n \\"NameDetail\\": \\"test\\",\\n \\"ParameterNames\\": \\"test\\",\\n \\"ParameterDefinitions\\": \\"[{\\\\\\"description\\\\\\":\\\\\\"\\\\\\",\\\\\\"name\\\\\\":\\\\\\"arg0\\\\\\",\\\\\\"type\\\\\\":\\\\\\"java.lang.String\\\\\\"}]\\",\\n \\"Paths\\": \\"[\\\\\\"/consumer-echo/feign/{str}\\\\\\"]\\",\\n \\"ParameterTypes\\": \\"[\\\\\\"java.lang.String\\\\\\"]\\",\\n \\"RequestMethods\\": \\"GET\\",\\n \\"ReturnDetails\\": \\"test\\",\\n \\"Name\\": \\"feign2\\",\\n \\"MethodController\\": \\"com.aliware.edas.DemoController\\",\\n \\"ReturnType\\": \\"java.lang.String\\",\\n \\"ReturnDefinition\\": {\\n \\"Type\\": \\"foo\\",\\n \\"Id\\": \\"1\\"\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetServiceDetail>\\n<Message>success</Message>\\n<Data>\\n <Group>dubbo</Group>\\n <RegistryType>agent</RegistryType>\\n <Version>1.0.0</Version>\\n <ServiceName>edas.service.consumer</ServiceName>\\n <ServiceType>springCloud</ServiceType>\\n <EdasAppName>test123</EdasAppName>\\n <Metadata>{}</Metadata>\\n <SpringApplicationName>edas.service.consumer</SpringApplicationName>\\n <Methods>\\n <ParameterDefinitions>[{\\"description\\":\\"\\",\\"name\\":\\"arg0\\",\\"type\\":\\"java.lang.String\\"}]</ParameterDefinitions>\\n <ParameterNames>test</ParameterNames>\\n <ParameterDetails>{}</ParameterDetails>\\n <MethodController>com.aliware.edas.DemoController</MethodController>\\n <Paths>[\\"/consumer-echo/feign/{str}\\"]</Paths>\\n <RequestMethods>GET</RequestMethods>\\n <ParameterTypes>[\\"java.lang.String\\"]</ParameterTypes>\\n <ReturnType>java.lang.String</ReturnType>\\n <ReturnDetails>test</ReturnDetails>\\n <NameDetail>test</NameDetail>\\n <Name>feign2</Name>\\n </Methods>\\n <Methods>\\n <ReturnDefinition>\\n <Type>foo</Type>\\n <Id>1</Id>\\n </ReturnDefinition>\\n </Methods>\\n <DubboApplicationName>cartservice</DubboApplicationName>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</GetServiceDetail>","errorExample":""}]',
],
'GetServiceListPage' => [
'path' => '/pop/sp/api/mseForOam/getServiceListPage',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'region',
'in' => 'query',
'schema' => ['description' => '地域。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'namespace',
'in' => 'query',
'schema' => ['description' => '命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou:doc-test'],
],
[
'name' => 'origin',
'in' => 'query',
'schema' => ['description' => '数据来源,取值如下:'."\n"
."\n"
.'- `agent`:新版服务查询需要传递。'."\n"
.'- `registry`:旧版服务查询传递。', 'type' => 'string', 'required' => false, 'example' => 'Agent'],
],
[
'name' => 'serviceType',
'in' => 'query',
'schema' => ['description' => '服务类型,取值如下:'."\n"
."\n"
.'- `dubbo`'."\n"
.'- `springCloud`'."\n"
.'- `hsf`'."\n"
.'- `istio`', 'type' => 'string', 'required' => false, 'example' => 'SpringCloud'],
],
[
'name' => 'searchType',
'in' => 'query',
'schema' => ['description' => ' '."\n"
.'服务类型,取值如下:'."\n"
."\n"
.'- `app`:应用维度查询。'."\n"
.'- `service`:服务维度查询。'."\n"
.'- `providerIp`:IP维度查询。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'App'],
],
[
'name' => 'searchValue',
'in' => 'query',
'schema' => ['description' => '搜索关键字:'."\n"
."\n"
.'- 如果searchType=app,searchValue填写`appId`。'."\n"
.'- 如果serachType=service,searchValue填写`serviceName`。'."\n"
.'- 如果searchType=providerIp,searchValue填写应用IP地址。', 'type' => 'string', 'required' => false, 'example' => 'com.alibaba.edas.HelloService'],
],
[
'name' => 'side',
'in' => 'query',
'schema' => ['description' => '提供者侧或者消费者侧,取值如下:'."\n"
."\n"
.'- provider'."\n"
.'- consumer', 'type' => 'string', 'required' => false, 'example' => 'provider'],
],
[
'name' => 'page',
'in' => 'query',
'schema' => ['description' => '列表的页码,从0开始。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'size',
'in' => 'query',
'schema' => ['description' => '分页查询时每页的行数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '数据结构。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => ' '."\n"
.'数据。',
'type' => 'object',
'properties' => [
'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TotalElements' => ['description' => '总数据量。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'Size' => ['description' => '页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
'Content' => [
'description' => '组数据。',
'type' => 'array',
'items' => [
'description' => '数据结构。',
'type' => 'object',
'properties' => [
'EdasAppName' => ['description' => '应用名。', 'type' => 'string', 'example' => 'k8s-lq-cartservice'],
'InstanceNum' => ['description' => '实例数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1.0.0'],
'ServiceId' => ['description' => '服务ID。', 'type' => 'string', 'example' => 'xx'],
'EdasAppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'efbda488-7b33-432f-****-36530047****'],
'ServiceName' => ['description' => '服务名。', 'type' => 'string', 'example' => 'com.alibabacloud.hipstershop.CartService'],
'RegisterType' => ['description' => '注册类型。', 'type' => 'string', 'example' => 'xx'],
'Group' => ['description' => '分组。', 'type' => 'string', 'example' => 'DUBBO'],
],
],
],
],
],
],
],
],
],
'title' => '查询微服务列表',
'summary' => '调用GetServiceListPage接口获取服务列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-28T03:46:47.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 6,\\n \\"Size\\": 8,\\n \\"Content\\": [\\n {\\n \\"EdasAppName\\": \\"k8s-lq-cartservice\\",\\n \\"InstanceNum\\": 1,\\n \\"Version\\": \\"1.0.0\\",\\n \\"ServiceId\\": \\"xx\\",\\n \\"EdasAppId\\": \\"efbda488-7b33-432f-****-36530047****\\",\\n \\"ServiceName\\": \\"com.alibabacloud.hipstershop.CartService\\",\\n \\"RegisterType\\": \\"xx\\",\\n \\"Group\\": \\"DUBBO\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetServiceListPageResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <Success>true</Success>\\n <Data>\\n <TotalPages>1</TotalPages>\\n <TotalElements>6</TotalElements>\\n <Size>8</Size>\\n <Content>\\n <EdasAppName>k8s-lq-cartservice</EdasAppName>\\n <InstanceNum>1</InstanceNum>\\n <Version>1.0.0</Version>\\n <ServiceId>xx</ServiceId>\\n <EdasAppId>efbda488-7b33-432f-****-36530047****</EdasAppId>\\n <ServiceName>com.alibabacloud.hipstershop.CartService</ServiceName>\\n <RegisterType>xx</RegisterType>\\n <Group>DUBBO</Group>\\n </Content>\\n </Data>\\n</GetServiceListPageResponse>","errorExample":""}]',
],
'GetServiceMethodPage' => [
'path' => '/pop/sp/api/mseForOam/getServiceMethodPage',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'region',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'namespace',
'in' => 'query',
'schema' => ['description' => '命名空间ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:doc-test'],
],
[
'name' => 'origin',
'in' => 'query',
'schema' => ['description' => '数据来源。取值如下:'."\n"
.'- agent:新版服务查询需要传递。'."\n"
.'- registry:旧版服务查询传递。', 'type' => 'string', 'required' => false, 'example' => 'agent'],
],
[
'name' => 'serviceType',
'in' => 'query',
'schema' => ['description' => '服务类型,支持以下类型:'."\n"
.'- dubbo:Dubbo服务。'."\n"
.'- springCloud:SpringCloud服务。'."\n"
.'- hsf:HSF服务。', 'type' => 'string', 'required' => false, 'example' => 'springCloud'],
],
[
'name' => 'appId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => false, 'example' => '310b18c3-1dbe-4807-****-18d7d637****'],
],
[
'name' => 'source',
'in' => 'query',
'schema' => ['description' => '来源,固定值:edas。', 'type' => 'string', 'required' => false, 'example' => 'edas'],
],
[
'name' => 'serviceId',
'in' => 'query',
'schema' => ['description' => '服务ID。', 'type' => 'string', 'required' => false, 'example' => 'edas.service.consumer'],
],
[
'name' => 'serviceName',
'in' => 'query',
'schema' => ['description' => '服务名称。', 'type' => 'string', 'required' => false, 'example' => 'edas.service.consumer'],
],
[
'name' => 'serviceVersion',
'in' => 'query',
'schema' => ['description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
],
[
'name' => 'group',
'in' => 'query',
'schema' => ['description' => '分组。', 'type' => 'string', 'required' => false, 'example' => 'DUBBO'],
],
[
'name' => 'ip',
'in' => 'query',
'schema' => ['description' => 'IP地址。', 'type' => 'string', 'required' => false, 'example' => '127.0.0.1'],
],
[
'name' => 'registryType',
'in' => 'query',
'schema' => ['description' => '注册中心类型。', 'type' => 'string', 'required' => false, 'example' => 'nacos'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => '页号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
'name' => 'methodController',
'in' => 'query',
'schema' => ['description' => 'controller方法。', 'type' => 'string', 'required' => false, 'example' => 'com.aliware.edas.DemoController'],
],
[
'name' => 'path',
'in' => 'query',
'schema' => ['description' => '请求路径。', 'type' => 'string', 'required' => false, 'example' => '/echo/{str}'],
],
[
'name' => 'name',
'in' => 'query',
'schema' => ['description' => '方法名。', 'type' => 'string', 'required' => false, 'example' => 'echo'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'HttpCode' => ['description' => 'HTTP响应码。', 'type' => 'string', 'example' => '200'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BDC0C0FE-D63B-4FC8-****-4081C57E****'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '数据结构体。',
'type' => 'object',
'properties' => [
'PageNumber' => ['description' => '页号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalSize' => ['description' => '总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'Result' => [
'description' => '方法结构体。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ParameterDetails' => ['description' => '参数详情。', 'type' => 'string', 'example' => '{}'],
'NameDetail' => ['description' => '方法详情。', 'type' => 'string', 'example' => 'name'],
'ParameterNames' => ['description' => '参数名称。', 'type' => 'string', 'example' => 'echo'],
'ParameterDefinitions' => ['description' => '参数定义。', 'type' => 'string', 'example' => '[{"description":"","name":"arg0","type":"java.lang.String"}]'],
'Paths' => ['description' => '方法路径。', 'type' => 'string', 'example' => '/consumer/alive'],
'ParameterTypes' => ['description' => '参数类型。', 'type' => 'string', 'example' => 'java.lang.String'],
'RequestMethods' => ['description' => '请求方法。', 'type' => 'string', 'example' => 'GET'],
'ReturnDetails' => ['description' => '返回详情。', 'type' => 'string', 'example' => 'java.lang.String'],
'Name' => ['description' => '方法名。', 'type' => 'string', 'example' => 'echo'],
'MethodController' => ['description' => '方法。', 'type' => 'string', 'example' => 'com.aliware.edas.EchoController'],
'ReturnType' => ['description' => '返回类型。', 'type' => 'string', 'example' => 'java.lang.String'],
'ReturnDefinition' => [
'description' => '返回值。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '返回类型。', 'type' => 'string', 'example' => 'java.lang.String'],
'Id' => ['description' => '返回值ID。', 'type' => 'string', 'example' => '1'],
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'title' => '查询微服务方法列表',
'summary' => '调用GetServiceMethodPage接口获取服务接口元数据列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-19T03:46:35.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"HttpCode\\": \\"200\\",\\n \\"RequestId\\": \\"BDC0C0FE-D63B-4FC8-****-4081C57E****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 6,\\n \\"Result\\": [\\n {\\n \\"ParameterDetails\\": \\"{}\\",\\n \\"NameDetail\\": \\"name\\",\\n \\"ParameterNames\\": \\"echo\\",\\n \\"ParameterDefinitions\\": \\"[{\\\\\\"description\\\\\\":\\\\\\"\\\\\\",\\\\\\"name\\\\\\":\\\\\\"arg0\\\\\\",\\\\\\"type\\\\\\":\\\\\\"java.lang.String\\\\\\"}]\\",\\n \\"Paths\\": \\"/consumer/alive\\",\\n \\"ParameterTypes\\": \\"java.lang.String\\",\\n \\"RequestMethods\\": \\"GET\\",\\n \\"ReturnDetails\\": \\"java.lang.String\\",\\n \\"Name\\": \\"echo\\",\\n \\"MethodController\\": \\"com.aliware.edas.EchoController\\",\\n \\"ReturnType\\": \\"java.lang.String\\",\\n \\"ReturnDefinition\\": {\\n \\"Type\\": \\"java.lang.String\\",\\n \\"Id\\": \\"1\\"\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetServiceMethodPage>\\n<HttpCode>200</HttpCode>\\n<RequestId>BDC0C0FE-D63B-4FC8-****-4081C57E****</RequestId>\\n<Message>success</Message>\\n<Data>\\n <PageSize>10</PageSize>\\n <PageNumber>1</PageNumber>\\n <TotalSize>6</TotalSize>\\n <Result>\\n <ParameterDefinitions>[{\\"description\\":\\"\\",\\"name\\":\\"arg0\\",\\"type\\":\\"java.lang.String\\"}]</ParameterDefinitions>\\n <ParameterNames>echo</ParameterNames>\\n <ParameterDetails>{}</ParameterDetails>\\n <MethodController>com.aliware.edas.EchoController</MethodController>\\n <Paths>/consumer/alive</Paths>\\n <RequestMethods>GET</RequestMethods>\\n <ParameterTypes>java.lang.String</ParameterTypes>\\n <ReturnType>java.lang.String</ReturnType>\\n <ReturnDetails>java.lang.String</ReturnDetails>\\n <NameDetail>name</NameDetail>\\n <Name>echo</Name>\\n </Result>\\n <Result>\\n <ReturnDefinition>\\n <Type>java.lang.String</Type>\\n <Id>1</Id>\\n </ReturnDefinition>\\n </Result>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</GetServiceMethodPage>","errorExample":""}]',
],
'GetServiceProvidersPage' => [
'path' => '/pop/sp/api/mseForOam/getServiceProvidersPage',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'region',
'in' => 'query',
'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'namespace',
'in' => 'query',
'schema' => ['description' => '命名空间ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:doc-test'],
],
[
'name' => 'origin',
'in' => 'query',
'schema' => ['description' => '数据来源。取值如下:'."\n"
.'- agent:新版服务查询需要传递。'."\n"
.'- registry:旧版服务查询传递。', 'type' => 'string', 'required' => false, 'example' => 'agent'],
],
[
'name' => 'serviceType',
'in' => 'query',
'schema' => ['description' => '服务类型。取值如下:'."\n"
.'- dubbo:Dubbo类型。'."\n"
.'- springCloud:Spring Cloud类型。'."\n"
.'- hsf:HSF类型。', 'type' => 'string', 'required' => false, 'example' => 'dubbo'],
],
[
'name' => 'appId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => false, 'example' => 'efbda488-7b33-432f-a40d-****0047****'],
],
[
'name' => 'source',
'in' => 'query',
'schema' => ['description' => '来源,固定值:edas。', 'type' => 'string', 'required' => false, 'example' => 'edas'],
],
[
'name' => 'serviceId',
'in' => 'query',
'schema' => ['description' => '服务ID。已废弃,无需传值。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceName',
'in' => 'query',
'schema' => ['description' => '服务名。', 'type' => 'string', 'required' => false, 'example' => 'com.alibabacloud.hipstershop.CartService'],
],
[
'name' => 'serviceVersion',
'in' => 'query',
'schema' => ['description' => '服务版本。', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
],
[
'name' => 'group',
'in' => 'query',
'schema' => ['description' => '分组。', 'type' => 'string', 'required' => false, 'example' => 'DUBBO'],
],
[
'name' => 'ip',
'in' => 'query',
'schema' => ['description' => '服务提供者IP,支持模糊查询。', 'type' => 'string', 'required' => false, 'example' => '10.20.x.xx'],
],
[
'name' => 'registryType',
'in' => 'query',
'schema' => ['description' => '注册类型。已废弃,无需传值。', 'type' => 'string', 'required' => false, 'example' => 'nacos'],
],
[
'name' => 'page',
'in' => 'query',
'schema' => ['description' => '列表的页码,从0开始。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'size',
'in' => 'query',
'schema' => ['description' => '分页查询时每页的行数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '数据结构体。',
'type' => 'object',
'properties' => [
'TotalPages' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TotalElements' => ['description' => '总数据量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Size' => ['description' => '页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'Content' => [
'description' => '组数据。',
'type' => 'array',
'items' => [
'description' => '组数据对象。',
'type' => 'object',
'properties' => [
'Timeout' => ['description' => '服务超时时间。', 'type' => 'string', 'example' => '1000'],
'Ip' => ['description' => '服务提供者的IP地址。', 'type' => 'string', 'example' => '10.20.XX.XX'],
'Port' => ['description' => '服务提供者的端口号。', 'type' => 'string', 'example' => '12345'],
'Iannotations' => ['description' => '服务提供者的备注信息。', 'type' => 'string', 'example' => '172.178.XX.XX'],
'SerializeType' => ['description' => '序列化类型。', 'type' => 'string', 'example' => 'hessian2'],
],
],
],
],
],
],
],
],
],
'title' => '查询微服务提供者列表',
'summary' => '调用GetServiceProvidersPage接口获取服务提供者列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-01-03T01:52:37.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-12-08T11:30:53.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-11-21T02:13:38.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TotalPages\\": 1,\\n \\"TotalElements\\": 1,\\n \\"Size\\": 5,\\n \\"Content\\": [\\n {\\n \\"Timeout\\": \\"1000\\",\\n \\"Ip\\": \\"10.20.XX.XX\\",\\n \\"Port\\": \\"12345\\",\\n \\"Iannotations\\": \\"172.178.XX.XX\\",\\n \\"SerializeType\\": \\"hessian2\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetServiceProvidersPage>\\n<Message>success</Message>\\n<Data>\\n <Size>5</Size>\\n <Content>\\n <SerializeType>hessian2</SerializeType>\\n <Timeout>1000</Timeout>\\n <Port>12345</Port>\\n <Ip>10.20.x.xx</Ip>\\n </Content>\\n <TotalElements>1</TotalElements>\\n <TotalPages>1</TotalPages>\\n</Data>\\n<Code>200</Code>\\n<Success>true</Success>\\n</GetServiceProvidersPage>","errorExample":""}]',
],
'GetWebContainerConfig' => [
'path' => '/pop/v5/oam/web_container_config',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
'WebContainerConfig' => [
'description' => 'Tomcat配置内容。',
'type' => 'object',
'properties' => [
'ContextPath' => ['description' => '上下文路径。', 'type' => 'string', 'example' => 'ROOT'],
'UseAdvancedServerXml' => ['description' => '是否使用高级配置。', 'type' => 'boolean', 'example' => 'true'],
'UseDefaultConfig' => ['description' => '是否使用默认配置。', 'type' => 'boolean', 'example' => 'true'],
'HttpPort' => ['description' => 'HTTP服务端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'ContextInputType' => ['description' => '上下文路径类型。', 'type' => 'string', 'example' => 'root'],
'UseBodyEncoding' => ['description' => '是否使用Body字符编码。', 'type' => 'boolean', 'example' => 'true'],
'UriEncoding' => ['description' => 'URI编码类型。', 'type' => 'string', 'example' => 'ISO-8859-1'],
'MaxThreads' => ['description' => '最大线程数。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'ServerXml' => ['description' => 'Server XML高级配置内容。', 'type' => 'string', 'example' => '<Server port=*****'],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'UnknownError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '未知错误。请重试该操作,若再出现该错误请提交工单。'],
],
],
'title' => '获取应用的Tomcat配置',
'summary' => '调用GetWebContainerConfig接口获取应用的Tomcat配置。',
'description' => '****',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetWebContainerConfig'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\",\\n \\"WebContainerConfig\\": {\\n \\"ContextPath\\": \\"ROOT\\",\\n \\"UseAdvancedServerXml\\": true,\\n \\"UseDefaultConfig\\": true,\\n \\"HttpPort\\": 8080,\\n \\"ContextInputType\\": \\"root\\",\\n \\"UseBodyEncoding\\": true,\\n \\"UriEncoding\\": \\"ISO-8859-1\\",\\n \\"MaxThreads\\": 500,\\n \\"ServerXml\\": \\"<Server port=*****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetWebContainerConfigResponse>\\n<Message>success</Message>\\n<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Code>200</Code>\\n<WebContainerConfig>\\n <HttpPort>8080</HttpPort>\\n <UriEncoding>ISO-8859-1</UriEncoding>\\n <ContextPath>ROOT</ContextPath>\\n <ContextInputType>root</ContextInputType>\\n <UseBodyEncoding>true</UseBodyEncoding>\\n <ServerXml><Server port=*****</ServerXml>\\n <MaxThreads>500</MaxThreads>\\n <UseDefaultConfig>true</UseDefaultConfig>\\n <UseAdvancedServerXml>true</UseAdvancedServerXml>\\n</WebContainerConfig>\\n</GetWebContainerConfigResponse>","errorExample":""}]',
],
'ImportK8sCluster' => [
'path' => '/pop/v5/import_k8s_cluster',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,可通过调用GetK8sCluster接口获取,请参见[GetK8sCluster](~~181437~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '9c28bbb9-****-44b3-b953-54ef8a2d0be2'],
],
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['description' => '命名空间ID。格式为“`地域ID:微服务空间标识符`”,例如:`cn-hangzhou:doc`。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:doc'],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => ['description' => '此参数无需关注。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'EnableAsm',
'in' => 'query',
'schema' => ['description' => '是否开启ASM:'."\n"
.'- true:开启'."\n"
.'- false:不开启', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => 'EDAS中的集群ID。', 'type' => 'string', 'example' => 'cf96d49a-6be2-4b6d-****-75c7fb86****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
],
'description' => '',
],
],
],
'title' => '导入容器服务K8s集群',
'summary' => '调用ImportK8sCluster接口导入容器服务K8s集群或Serverless K8s集群。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-15T03:17:43.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-15T03:17:43.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ImportK8sCluster'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:CreateCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"cf96d49a-6be2-4b6d-****-75c7fb86****\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<Message>success</Message>\\n<Data>cf96d49a-6be2-4b6d-****-75c7fb86****</Data>\\n<Code>200</Code>","errorExample":""}]',
],
'InsertApplication' => [
'summary' => '调用InsertApplication接口在ECS集群中创建应用。',
'path' => '/pop/v5/changeorder/co_create_app',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => 'ECS集群ID。ECS集群ID不为空,则为指定的ECS集群创建应用,为空则为默认集群创建应用(推荐指定)。', 'type' => 'string', 'required' => false, 'example' => '13136119-f384-4f50-b76e-xxxxxxxxxxx'],
],
[
'name' => 'BuildPackId',
'in' => 'query',
'schema' => ['description' => 'EDAS-Container构建包号,当创建HSF应用时,该参数必须指定。有以下两种获取方式:'."\n"
."\n"
.'- 通过容器版本列表接口ListBuildPack获取,请参见[ListBuildPack](~~149391~~)。'."\n"
."\n"
.'- 在参见[容器版本](~~92614~~)表格中的**构建包序号**列获取。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '59'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => '应用描述信息。', 'type' => 'string', 'required' => false, 'example' => 'create by edas pop api'],
],
[
'name' => 'ApplicationName',
'in' => 'query',
'schema' => ['description' => '应用名称。仅允许使用数字、英文字母、短划线(-)和下划线(_) ,而且必须以英文字母开头,最长36个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hello-edas-test-1'],
],
[
'name' => 'ReservedPortStr',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)**应用预留端口号。', 'type' => 'string', 'required' => false, 'example' => '8090'],
],
[
'name' => 'EcuInfo',
'in' => 'query',
'schema' => ['description' => '需要扩容的ECS实例的`ecu_id`(导入EDAS的ECS实例在EDAS中的唯一身份),多个`ecu_id`用英文逗号(,)分开。`ecu_id`可通过查询ListScaleOutEcu接口获取,请参见[ListScaleOutEcu](~~149371~~)。', 'type' => 'string', 'required' => false, 'example' => '07bd417a-b863-477d-****-************'],
],
[
'name' => 'Cpu',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)**Swarm集群应用容器CPU核数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '2'],
],
[
'name' => 'Mem',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)**Swarm集群应用容器Memory大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '2048'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '微服务空间ID,您可在EDAS控制台左侧菜单栏选择**资源管理** > **微服务空间**,找到目标微服务空间对应的微服务空间ID,也可通过ListUserDefineRegion接口获取到微服务空间ID,请参见[ListUserDefineRegion](~~149377~~)。'."\n"
.' '."\n"
.'- 如果指定的集群不在默认微服务空间下,则需要指定该参数,否则会遇到`application regionId is different with cluster regionId!`的错误提示。'."\n"
.'- 如果在默认微服务空间下,则不需要指定。该参数需要与指定的集群ID所在的微服务空间保持一致。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:prod'],
],
[
'name' => 'Jdk',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)** 用来指定应用使用的JDK版本。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '8'],
],
[
'name' => 'WebContainer',
'in' => 'query',
'schema' => ['description' => '**(废弃参数)** 用于指定Apache Tomcat版本。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '4'],
],
[
'name' => 'PackageType',
'in' => 'query',
'schema' => ['description' => '应用部署包格式,可设置为war或者jar。', 'type' => 'string', 'required' => false, 'example' => 'war'],
],
[
'name' => 'ComponentIds',
'in' => 'query',
'schema' => ['description' => '应用组件ID。可通过查询组件列表接口ListComponents接口获取,请参见[ListComponents](~~97502~~)。'."\n"
."\n"
.'当创建的应用运行环境使用Apache Tomcat(适用于WAR包部署的Dubbo应用)或者标准Java应用运行环境(适用于JAR包部署的Spring Boot或Spring Cloud应用)时需要指定。'."\n"
."\n"
.'常用的应用组件ID及含义:'."\n"
."\n"
.'- 4:Apache Tomcat 7.0.91'."\n"
.'- 7:Apache Tomcat 8.5.42'."\n"
.'- 5:表示OpenJDK 1.8.x'."\n"
.'- 6:表示 OpenJDK 1.7.x'."\n"
."\n"
.'该参数需要更新Java或者Python SDK版本到2.57.3或以上版本才可以设置,未使用EDAS提供的SDK的(例如在使用aliyun-python-sdk-core、aliyun-java-sdk-core、aliyun cli等)用户可直接设置该参数。'."\n", 'type' => 'string', 'required' => false, 'example' => '7'],
],
[
'name' => 'Hooks',
'in' => 'query',
'schema' => ['description' => '挂载脚本配置,为一段JSON格式文本,如:'."\n"
.'`[{"ignoreFail":false,"name":"postprepareInstanceEnvironmentOnScaleOut","script":"ls"},{"ignoreFail":true,"name":"postdeleteInstanceDataOnScaleIn","script":""},{"ignoreFail":true,"name":"prestartInstance","script":""},{"ignoreFail":true,"name":"poststartInstance","script":""},{"ignoreFail":true,"name":"prestopInstance","script":""},{"ignoreFail":true,"name":"poststopInstance","script":""}]`', 'type' => 'string', 'required' => false, 'example' => '[{"ignoreFail":false,"name":"postprepareInstanceEnvironmentOnScaleOut","script":"ls"}]'],
],
[
'name' => 'JvmOptions',
'in' => 'query',
'schema' => ['description' => '自定义参数。', 'type' => 'string', 'required' => false, 'example' => '-Dproperty=value'],
],
[
'name' => 'MinHeapSize',
'in' => 'query',
'schema' => ['description' => '初始化堆内存大小,单位M。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '500'],
],
[
'name' => 'MaxPermSize',
'in' => 'query',
'schema' => ['description' => '持久代内存大小,单位M。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '200'],
],
[
'name' => 'MaxHeapSize',
'in' => 'query',
'schema' => ['description' => '最大堆内存大小,单位M。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'example' => '1000'],
],
[
'name' => 'EnableUrlCheck',
'in' => 'query',
'schema' => ['description' => '是否启用健康检查URL,取值如下:'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:不启用', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'EnablePortCheck',
'in' => 'query',
'schema' => ['description' => '是否启用端口健康检查,取值如下:'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:不启用', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'HealthCheckUrl',
'in' => 'query',
'schema' => ['description' => '应用健康检查URL(等价于HealthCheckURL参数)。', 'type' => 'string', 'required' => false, 'example' => 'http://127.0.0.1:8080/_ehc.html'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aek24j4s4b*****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'The application name test-hsy-C5039-paas-6 had been created successfully.'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4264F69C-686C-4107-B493-0599C8xxxxxx'],
'ApplicationInfo' => [
'description' => '应用创建成功后返回的应用对象。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'd0cf569e-dce3-4efb-****-08b70021****'],
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'hello-edas-test-1'],
'Owner' => ['description' => '该应用拥有者,即应用创建者。', 'type' => 'string', 'example' => '249763358688********'],
'Dockerize' => ['description' => '是否为Docker应用,取值如下:'."\n"
."\n"
.'- **true**:是'."\n"
."\n"
.'- **false**:否', 'type' => 'boolean', 'example' => 'false'],
'RegionName' => ['description' => '地域名称。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'AppId' => ['description' => '应用ID,EDAS应用的唯一标识。', 'type' => 'string', 'example' => '6c733bcd-6efb-47a1-8226-cf722c******'],
'UserId' => ['description' => '应用拥有者的USER_ID。', 'type' => 'string', 'example' => 'tdy218@1362469756xxxxxx'],
'Port' => ['description' => '创建成功的应用默认端口号8080。可以使用UpdateContainerConfiguration接口修改,请参见[UpdateContainerConfiguration](~~149403~~)。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
],
],
],
'description' => '',
],
],
],
'title' => '创建 ECS 集群的应用',
'description' => '> 如需要创建K8s集群应用,则需要使用EDAS提供的InsertK8sApplication接口。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '## 常见应用的主要参数说明'."\n"
."\n"
.'1. 使用EDAS Java SDK创建Apache Tomcat作为应用运行环境的原生Dubbo、 Java Web等类型应用主要参数:'."\n"
.' ```'."\n"
.' InsertApplicationRequest request = new InsertApplicationRequest();'."\n"
.' request.setApplicationName("hello-edas-test-1"); //应用名称。'."\n"
.' request.setPackageType("war"); // 应用包类型,也可以不指定。'."\n"
.' request.setComponentIds("7"); // 7或者4。7表示Apache Tomcat 8.5.42,4表示 Apache Tomcat 7.0.91。'."\n"
.' request.setLogicalRegionId("cn-hangzhou:prod"); // 命名空间ID,注意不是命名空间的名称,当指定的集群不在默认命名空间下时,该参数必填。'."\n"
.' request.setClusterId("ebc364ca-1875-4266-ae1f-ad0e7c179417"); // 在指定Cluster ID的ECS集群下创建应用。'."\n"
.' ```'."\n"
."\n\n"
.'2. 使用EDAS Java SDK创建标准Java应用运行时环境的原生Spring Boot/Spring Cloud等FatJar类型应用主要参数:'."\n"
.' ```'."\n"
.' InsertApplicationRequest request = new InsertApplicationRequest();'."\n"
.' request.setApplicationName("hello-edas-test-2"); //应用名称。'."\n"
.' request.setPackageType("jar"); // 应用包类型,也可以不指定。'."\n"
.' request.setComponentIds("5"); // 5或者6。5表示OpenJDK 1.8.0;6 表示OpenJDK 1.8.0;也可以不指定该参数,默认将使用OpenJDK 1.8.0。'."\n"
.' request.setLogicalRegionId("cn-hangzhou:prod"); // 命名空间ID,注意不是命名空间的名称,当指定的集群不在默认命名空间下时,该参数必填。'."\n"
.' request.setClusterId("ebc364ca-1875-4266-ae1f-ad0e7c179417"); // 在指定Cluster ID的ECS集群下创建应用。'."\n"
.' ```'."\n"
."\n\n"
.'3. 使用EDAS Java SDK创建EDAS-Container作为应用运行时环境的HSF应用主要参数:'."\n"
.' ```'."\n"
.' InsertApplicationRequest request = new InsertApplicationRequest();'."\n"
.' request.setBuildPackId(59); // EDAS-Container构建包版本号,59表示使用 edas-container 3.5.8。'."\n"
.' request.setApplicationName("hello-edas-test-3"); //应用名称。'."\n"
.' request.setPackageType("war"); // 应用包类型,war或者jar,也可以不填写。'."\n"
.' request.setLogicalRegionId("cn-hangzhou:prod"); // 命名空间ID,注意不是命名空间的名称,当指定的集群不在默认命名空间下时,该参数必填。'."\n"
.' request.setClusterId("ebc364ca-1875-4266-ae1f-ad0e7c179417"); // 在指定Cluster ID的ECS集群下创建应用。'."\n"
.' ```',
'changeSet' => [
['createdAt' => '2022-04-25T06:41:49.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertApplication'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:CreateApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The application name test-hsy-C5039-paas-6 had been created successfully.\\",\\n \\"RequestId\\": \\"4264F69C-686C-4107-B493-0599C8xxxxxx\\",\\n \\"ApplicationInfo\\": {\\n \\"ChangeOrderId\\": \\"d0cf569e-dce3-4efb-****-08b70021****\\",\\n \\"AppName\\": \\"hello-edas-test-1\\",\\n \\"Owner\\": \\"249763358688********\\",\\n \\"Dockerize\\": false,\\n \\"RegionName\\": \\"cn-hangzhou\\",\\n \\"AppId\\": \\"6c733bcd-6efb-47a1-8226-cf722c******\\",\\n \\"UserId\\": \\"tdy218@1362469756xxxxxx\\",\\n \\"Port\\": 8080\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4264F69C-686C-4107-B493-0599C8xxxxxx</RequestId>\\n<Message>The application name test-hsy-C5039-paas-6 had been created successfully.</Message>\\n<ApplicationInfo>\\n <Dockerize>false</Dockerize>\\n <Owner>249763358688********</Owner>\\n <AppId>6c733bcd-6efb-47a1-8226-cf722c******</AppId>\\n <RegionName>cn-hangzhou</RegionName>\\n <UserId>tdy218@1362469756xxxxxx</UserId>\\n <Port>8080</Port>\\n <ChangeOrderId>d0cf569e-dce3-4efb-****-08b70021****</ChangeOrderId>\\n <AppName>hello-edas-test-1</AppName>\\n</ApplicationInfo>\\n<Code>200</Code>","errorExample":""}]',
],
'InsertCluster' => [
'summary' => '调用InsertCluster接口创建集群。',
'path' => '/pop/v5/resource/cluster',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '自定义命名空间的RegionId。'."\n"
.'格式为:`物理Region:自定义命名空间标识符`,例如`cn-hangzhou:test`。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:td****'],
],
[
'name' => 'ClusterName',
'in' => 'query',
'schema' => ['description' => '集群名。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '****_product_test2'],
],
[
'name' => 'ClusterType',
'in' => 'query',
'schema' => ['description' => '集群类型。'."\n"
."\n"
.'- 2:ECS集群'."\n"
.'- 3:EDAS自带K8s集群'."\n"
.'- 5:Kubernetes集群', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '2'],
],
[
'name' => 'NetworkMode',
'in' => 'query',
'schema' => ['description' => '网络类型。'."\n"
."\n"
.'- 1:经典网络'."\n"
.'- 2:VPC', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '2'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => 'VPC网络ID。若选择VPC网络,此参数为必选。', 'type' => 'string', 'required' => false, 'example' => 'vpc-2zef6ob8mrlzv8x3q****'],
],
[
'name' => 'OversoldFactor',
'in' => 'query',
'schema' => ['description' => '(**参数已不适用**)'."\n"
.'Docker集群CPU超卖:'."\n"
.'- 2:1:2比例'."\n"
.'- 4:1:4比例'."\n"
.'- 8:1:8比例', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'IaasProvider',
'in' => 'query',
'schema' => [
'description' => 'IaaS资源供应商。'."\n"
."\n"
.'<note>选择阿里云时,需要使用全大写的拼音,例如`ALIYUN`。</note>'."\n",
'type' => 'string',
'required' => false,
'example' => 'ALIYUN',
'default' => 'ALIYUN',
'enum' => ['ALIYUN', 'IDC'],
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'Cluster' => [
'description' => '创建的集群实体。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-2zef6ob8mrlzv8x3q****'],
'OversoldFactor' => ['description' => '(**参数已不适用**)'."\n"
.'Docker集群CPU超卖。'."\n"
."\n"
.'- 2:1:2比例'."\n"
."\n"
.'- 4:1:4比例'."\n"
."\n"
.'- 8:1:8比例', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'NetworkMode' => ['description' => '网络类型。'."\n"
."\n"
.'- 1:经典网络'."\n"
."\n"
.'- 2:专有网络VPC', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'IaasProvider' => ['description' => '供应商。', 'type' => 'string', 'example' => 'ALIYUN'],
'ClusterType' => ['description' => '集群类型。'."\n"
."\n"
.'- 2:ECS集群。'."\n"
.'- 3:EDAS自带K8s集群。'."\n"
.'- 5:Kubernetes集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => '****_product_test2'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '8705ad13-5d86-47fc-b68f-257b59ed****'],
'RegionId' => ['description' => '集群所属地域。', 'type' => 'string', 'example' => 'cn-beijing'],
],
],
],
'description' => '',
],
],
],
'title' => '创建集群',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T11:59:52.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T11:59:52.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertCluster'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:CreateCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"Cluster\\": {\\n \\"VpcId\\": \\"vpc-2zef6ob8mrlzv8x3q****\\",\\n \\"OversoldFactor\\": 1,\\n \\"NetworkMode\\": 2,\\n \\"IaasProvider\\": \\"ALIYUN\\",\\n \\"ClusterType\\": 2,\\n \\"ClusterName\\": \\"****_product_test2\\",\\n \\"ClusterId\\": \\"8705ad13-5d86-47fc-b68f-257b59ed****\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<InsertClusterResponse>\\n<Message>success</Message>\\n<RequestId>b197-40ab-9155-****</RequestId>\\n<Cluster>\\n <OversoldFactor>1</OversoldFactor>\\n <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>\\n <ClusterId>8705ad13-5d86-47fc-b68f-257b59ed****</ClusterId>\\n <ClusterName>****_product_test2</ClusterName>\\n <RegionId>cn-beijing</RegionId>\\n <ClusterType>2</ClusterType>\\n <NetworkMode>2</NetworkMode>\\n <IaasProvider>ALIYUN</IaasProvider>\\n</Cluster>\\n<Code>200</Code>\\n</InsertClusterResponse>","errorExample":""}]',
],
'InsertClusterMember' => [
'path' => '/pop/v5/resource/cluster_member',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'clusterId',
'in' => 'query',
'schema' => ['description' => '需导入ECS实例的目标集群ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b3e3f77b-462e-****-****-bec8727a4dc8'],
],
[
'name' => 'instanceIds',
'in' => 'query',
'schema' => ['description' => '要导入集群的ECS实例ID,多个ECS实例请用英文逗号(,)分隔。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i-2ze7s2v0b789k60p****'],
],
[
'name' => 'password',
'in' => 'query',
'schema' => ['description' => '要导入集群的ECS实例的登录密码。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'YourPassword'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '请求接口返回的数据。', 'type' => 'string', 'example' => 'Transform submit success!'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '01B49A88-B06F-423B-A5EF-E5C0A89******'],
],
],
],
],
'title' => '向ECS集群中导入ECS实例',
'summary' => '向ECS集群中导入ECS实例。',
'description' => '## 限制说明'."\n"
."\n"
.'调用该接口导入ECS实例时,会重装ECS实例的操作系统,重装后,实例中所有数据都会被删除并且需要重新设置实例登录密码。请确保您要导入的ECS实例上没有重要的数据或数据已备份。'."\n"
."\n"
.'> 本接口已不推荐使用,建议使用InstallAgent接口代替,详情请参见[InstallAgent](~~127023~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertClusterMember'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"Transform submit success!\\",\\n \\"RequestId\\": \\"01B49A88-B06F-423B-A5EF-E5C0A89******\\"\\n}","errorExample":""},{"type":"xml","example":"<InsertClusterMemberResponse>\\n <RequestId>01B49A88-B06F-423B-A5EF-E5C0A892709D</RequestId>\\n <Data>Transform submit success!</Data>\\n <Message>success</Message>\\n <Code>200</Code>\\n</InsertClusterMemberResponse>","errorExample":""}]',
],
'InsertDeployGroup' => [
'summary' => '调用InsertDeployGroup接口创建应用分组。',
'path' => '/pop/v5/deploy_group',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413-***********'],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '分组名称,支持的最大长度为64字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'],
],
[
'name' => 'InitPackageVersionId',
'in' => 'query',
'schema' => ['description' => '应用分组关联的初始化部署包版本ID。可以调用接口ListHistoryDeployVersion获取,具体操作,请参见[ListHistoryDeployVersion](~~149392~~)。', 'type' => 'string', 'required' => false, 'example' => '441beb18-da42-44dc-****-****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '3RD9-D3FRE****************'],
'DeployGroupEntity' => [
'description' => '创建的分组信息',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627695779'],
'GroupName' => ['description' => '分组名称', 'type' => 'string', 'example' => 'test'],
'CreateTime' => ['description' => '创建时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627695779'],
'AppVersionId' => ['description' => '应用部署版本ID。'."\n"
.'- 如果应用部署过,则返回一串随机数。'."\n"
.'- 如果应用未部署,则返回值为空。', 'type' => 'string', 'example' => '****f4c50-16ee-a02b-667*****'],
'AppId' => ['description' => '应用ID', 'type' => 'string', 'example' => '3616cdca-4f92-4413-***********'],
'PackageVersionId' => ['description' => '该分组部署包的版本ID。'."\n"
.'- 如果该应用分组部署过应用,则返回一串随机数。'."\n"
.'- 如果该应用分组未部署过应用,则返回值为空。', 'type' => 'string', 'example' => '****7b93-8d62-4e34***********'],
'GroupType' => ['description' => '分组类型。'."\n"
.'- 0:默认分组'."\n"
.'- 1:未启用灰度流量管理的分组'."\n"
.'- 2:已启用灰度流程管理的分组', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Id' => ['description' => '分组ID', 'type' => 'string', 'example' => '577f4c50-16ee-43d8-a02b-667*********'],
'ClusterId' => ['description' => '集群ID', 'type' => 'string', 'example' => '0d247b93-8d62-4e34***********'],
],
],
],
'description' => '',
],
],
],
'title' => '创建应用部署分组',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T05:44:10.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T05:44:10.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertDeployGroup'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"3RD9-D3FRE****************\\",\\n \\"DeployGroupEntity\\": {\\n \\"UpdateTime\\": 1573627695779,\\n \\"GroupName\\": \\"test\\",\\n \\"CreateTime\\": 1573627695779,\\n \\"AppVersionId\\": \\"****f4c50-16ee-a02b-667*****\\",\\n \\"AppId\\": \\"3616cdca-4f92-4413-***********\\",\\n \\"PackageVersionId\\": \\"****7b93-8d62-4e34***********\\",\\n \\"GroupType\\": 1,\\n \\"Id\\": \\"577f4c50-16ee-43d8-a02b-667*********\\",\\n \\"ClusterId\\": \\"0d247b93-8d62-4e34***********\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<DeployGroupEntity>\\n <GroupType>1</GroupType>\\n <GroupName>test</GroupName>\\n <ClusterId>0d247b93-8d62-4e34***************</ClusterId>\\n <PackageVersionId/>\\n <CreateTime>1573627695779</CreateTime>\\n <AppId>3616cdca-4f92-4413-***********</AppId>\\n <UpdateTime>1573627695779</UpdateTime>\\n <Id>577f4c50-16ee-43d8-a02b-667*********</Id>\\n <AppVersionId/>\\n</DeployGroupEntity>\\n<Code>200</Code>","errorExample":""}]',
],
'InsertK8sApplication' => [
'path' => '/pop/v5/k8s/acs/create_k8s_app',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'IntranetTargetPort',
'in' => 'query',
'schema' => ['description' => '内网SLB后端端口,也是应用的服务端口,范围为1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
[
'name' => 'IntranetSlbPort',
'in' => 'query',
'schema' => ['description' => '内网SLB前端端口,范围为1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
[
'name' => 'ImageUrl',
'in' => 'query',
'schema' => ['description' => '镜像地址,当设置`PackageType`为`Image`时,此参数项为必填。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'registry.cn-beijing.aliyuncs.com/****_test/****-cons****:1.0'],
],
[
'name' => 'ApplicationDescription',
'in' => 'query',
'schema' => ['description' => '应用描述信息。', 'type' => 'string', 'required' => false, 'example' => 'Production Environment'],
],
[
'name' => 'RepoId',
'in' => 'query',
'schema' => ['description' => '镜像的仓库ID。', 'type' => 'string', 'required' => false, 'example' => 'ced********'],
],
[
'name' => 'Replicas',
'in' => 'query',
'schema' => ['description' => '应用实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'LimitCpu',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的CPU限额,单位:核数。如果LimitmCpu不为空,则忽略该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'LimitMem',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的内存限额,单位:MB。LimitMem取值要不小于RequestsMem。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'RequestsCpu',
'in' => 'query',
'schema' => ['description' => '应用创建时,应用实例的CPU限额,单位:核数。设置为0时表示不限制。如果RequestsmCpu,则使用RequestsmCpu,忽略该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'RequestsMem',
'in' => 'query',
'schema' => ['description' => '应用创建时,应用实例的内存限额,单位:MB。设置为0时表示不限制。RequestsMem的取值不能大于LimitMem的取值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'Command',
'in' => 'query',
'schema' => ['description' => '应用启动命令。如果设置该参数,镜像在启动时,会替代镜像中的原有的启动命令。', 'type' => 'string', 'required' => false, 'example' => 'ls'],
],
[
'name' => 'CommandArgs',
'in' => 'query',
'schema' => ['description' => '与命令组合使用,命令的参数是JsonArray字符串,格式如:`[{"argument":"-c"},{"argument":"test"}]`。其中`-c`、`test`为需要设置的两个参数。', 'type' => 'string', 'required' => false, 'example' => '[{"argument":"-lh"}]'],
],
[
'name' => 'AppName',
'in' => 'query',
'schema' => ['description' => '应用名称。必须以字母开头,支持数字、字母和短划线(-),最多支持36个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'doc-test'],
],
[
'name' => 'IntranetSlbProtocol',
'in' => 'query',
'schema' => ['description' => '私网SLB协议,支持TCP、HTTP和HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'TCP'],
],
[
'name' => 'IntranetSlbId',
'in' => 'query',
'schema' => ['description' => '私网SLB ID,不配置时,EDAS会自动为用户新购SLB。', 'type' => 'string', 'required' => false, 'example' => 'ae93********'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,可调用ListCluster接口获取,详情请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c9cd****'],
],
[
'name' => 'InternetSlbId',
'in' => 'query',
'schema' => ['description' => '公网SLB ID,不配置时,EDAS会自动为用户新购SLB。', 'type' => 'string', 'required' => false, 'example' => 'a3d4********'],
],
[
'name' => 'InternetSlbProtocol',
'in' => 'query',
'schema' => ['description' => '公网SLB协议,支持TCP、HTTP和HTTPS协议。', 'type' => 'string', 'required' => false, 'example' => 'TCP'],
],
[
'name' => 'InternetSlbPort',
'in' => 'query',
'schema' => ['description' => '公网SLB前端端口,范围为1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'],
],
[
'name' => 'InternetTargetPort',
'in' => 'query',
'schema' => ['description' => '私网SLB后端端口,也是应用的服务端口,范围为1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'],
],
[
'name' => 'Envs',
'in' => 'query',
'schema' => ['description' => '部署环境变量,格式需要符合JSON对象数组。支持三种类型的环境变量,分别是普通环境变量,K8s ConfigMap环境变量,K8s Secret环境变量。普通环境变量格式如下所示:'."\n"
."\n"
.'`{"name":"x", "value": "y"}`'."\n"
."\n"
.'ConfigMap环境变量配置可以将指定的ConfigMap中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x2",'."\n"
.' "valueFrom": {'."\n"
.' "configMapKeyRef": {'."\n"
.' "name": "my-config",'."\n"
.' "key": "y2"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'Secret环境变量配置可以将指定的Secret中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x3",'."\n"
.' "valueFrom": {'."\n"
.' "secretKeyRef": {'."\n"
.' "name": "my-secret",'."\n"
.' "key": "y3"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'> 如果要取消该配置,需设置一个空JSON数组“[]”来表示不做配置。', 'type' => 'string', 'required' => false, 'example' => '[{"name":"x1","value":"y1"},{"name":"x2","valueFrom":{"configMapKeyRef":{"name":"my-config","key":"y2"}}},{"name":"x3","valueFrom":{"secretKeyRef":{"name":"my-secret","key":"y3"}}}]'],
],
[
'name' => 'PreStop',
'in' => 'query',
'schema' => ['description' => '停止前执行脚本,示例格式:`{"tcpSocket":{"host":"", "port":8080}}`。'."\n"
."\n"
.'如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
],
[
'name' => 'PostStart',
'in' => 'query',
'schema' => ['description' => '启动后执行脚本,格式如:`{"exec":{"command":\\["cat","/etc/group"\\]}}`。'."\n"
."\n"
.'如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
],
[
'name' => 'Liveness',
'in' => 'query',
'schema' => ['description' => '容器存活状态监测 ,格式如`{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}`。'."\n"
."\n"
.'如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}'],
],
[
'name' => 'Readiness',
'in' => 'query',
'schema' => ['description' => '容器业务状态检查,如果检查失败,经过K8s Service的流量将不转入到该容器,格式如:`{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \\[{"name": "test","value": "testvalue"}\\]}}`。'."\n"
."\n"
.'如果设置为`""`或者`{}`表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": [{"name": "test","value": "testvalue"}]}}'],
],
[
'name' => 'NasId',
'in' => 'query',
'schema' => ['description' => '挂载的NAS的ID。如果不填,且存在mountDescs字段,则默认将自动购买一个NAS并挂载到VPC内的交换机上。', 'type' => 'string', 'required' => false, 'example' => 'dfs23****'],
],
[
'name' => 'MountDescs',
'in' => 'query',
'schema' => ['description' => '挂载配置描述,为一个序列化的JSON。例如:`\\[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}\\]`。其中,`nasPath`是指文件储存路径;`mountPath`是指挂载到容器内的路径。', 'type' => 'string', 'required' => false, 'example' => '[{"nasPath": "/k8s","mountPath": "/mnt"},{"nasPath": "/files","mountPath": "/app/files"}]'],
],
[
'name' => 'StorageType',
'in' => 'query',
'schema' => ['description' => 'NAS存储类型,包括:'."\n"
."\n"
.'* 通用型NAS:Capacity(容量型)、Performance(性能型)'."\n"
.'* 极速型NAS:Standard(标准型)、Advance(高级型)'."\n"
."\n"
.'目前只支持Performance类型。', 'type' => 'string', 'required' => false, 'example' => 'Performance'],
],
[
'name' => 'LocalVolume',
'in' => 'query',
'schema' => ['description' => '宿主机文件挂载到容器内的配置。例如:`\\[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}\\]`。其中:'."\n"
."\n"
.'- `nodePath`为宿主机路径。'."\n"
."\n"
.'- `mountPath`为容器内的路径。'."\n"
."\n"
.'- `type`为挂载类型。', 'type' => 'string', 'required' => false, 'example' => '[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}]'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群的命名空间,它将决定您的应用部署在哪个K8s命名空间。默认为default。', 'type' => 'string', 'required' => false, 'example' => 'default'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => 'EDAS命名空间对应ID,非默认命名空间须填写。', 'type' => 'string', 'required' => false, 'example' => 'cn-shenzhen:beta****'],
],
[
'name' => 'PackageType',
'in' => 'query',
'schema' => ['description' => '应用包类型。可选参数值包含:FatJar、WAR和Image。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'WAR'],
],
[
'name' => 'PackageUrl',
'in' => 'query',
'schema' => ['description' => '部署包地址。通过FatJar或WAR包部署的应用需要配置部署包地址。'."\n"
."\n"
.'> EDAS POP API的Java或者Python SDK需要2.44.0或以上版本。', 'type' => 'string', 'required' => false, 'example' => 'https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar'],
],
[
'name' => 'PackageVersion',
'in' => 'query',
'schema' => ['description' => '部署包的版本号,WAR和FatJar类型必填。请自定义它的含义。'."\n"
."\n"
.'> EDAS POP API的Java或者Python SDK需要2.44.0或以上版本。', 'type' => 'string', 'required' => false, 'example' => '20200720'],
],
[
'name' => 'JDK',
'in' => 'query',
'schema' => ['description' => '部署的包依赖的JDK版本。可选的参数值为Open JDK 7、Open JDK 8或Custom OpenJDK。镜像部署方式不支持此参数。当使用Custom OpenJDK时,还需配置UserBaseImageUrl字段。', 'type' => 'string', 'required' => false, 'example' => 'Open JDK 8'],
],
[
'name' => 'WebContainer',
'in' => 'query',
'schema' => ['description' => '部署包依赖的Tomcat版本。适用于通过WAR包部署的Spring Cloud和Dubbo应用,镜像不支持此参数。', 'type' => 'string', 'required' => false, 'example' => 'apache-tomcat-7.0.91'],
],
[
'name' => 'EdasContainerVersion',
'in' => 'query',
'schema' => ['description' => '部署的包依赖的` EDAS-Container `版本。'."\n"
."\n"
.'> 使用镜像部署时不支持此参数。', 'type' => 'string', 'required' => false, 'example' => '3.5.9'],
],
[
'name' => 'UriEncoding',
'in' => 'query',
'schema' => ['description' => 'URI编码方式,支持ISO-8859-1、GBK、GB2312和UTF-8。'."\n"
."\n"
.'> 应用配置不设置该参数,使用Tomcat默认值。', 'type' => 'string', 'required' => false, 'example' => 'GBK'],
],
[
'name' => 'UseBodyEncoding',
'in' => 'query',
'schema' => ['description' => 'useBodyEncodingForURI是否启用。'."\n"
."\n"
.'> 应用配置不设置该参数,使用默认值false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'RequestsmCpu',
'in' => 'query',
'schema' => ['description' => '应用创建时,应用实例的CPU限额,单位:毫核数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '500'],
],
[
'name' => 'LimitmCpu',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的CPU限额。 单位:毫核数,设置为0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'RuntimeClassName',
'in' => 'query',
'schema' => ['description' => '容器运行时类型,仅适用于使用安全沙箱容器的集群。', 'type' => 'string', 'required' => false, 'example' => 'runc'],
],
[
'name' => 'DeployAcrossZones',
'in' => 'query',
'schema' => ['description' => '是否将应用实例分布到多可用区。`true`代表是,其他值为否。', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更流程超时时间,单位:秒。取值范围为1~1800秒,不填默认为1800秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
[
'name' => 'EnableAhas',
'in' => 'query',
'schema' => ['description' => '是否接入AHAS:'."\n"
.' '."\n"
.'- true:接入AHAS。'."\n"
.'- false:不接入AHAS。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'WebContainerConfig',
'in' => 'query',
'schema' => ['description' => 'Tomcat容器配置,设置为""或"{}"表示删除配置:'."\n"
.'- useDefaultConfig:是否使用自定义配置,若为true,则表示不使用自定义配置,若为false,则表示使用自定义配置。若不使用自定义配置,则下面的参数配置将不会生效。'."\n"
.'- contextInputType:选择应用的访问路径。'."\n"
.' - war:无需填写自定义路径,应用的访问路径是WAR包名称。'."\n"
.' - root:无需填写自定义路径,应用的访问路径是`/`。'."\n"
.' - custom:需要在下面的自定义路径中填写自定义的路径。'."\n"
.'- contextPath:自定义路径,当contextInputType类型为custom时,才需要配置此参数。'."\n"
.'- httpPort:端口范围为1024~65535,小于1024的端口需要Root权限才能操作。因为容器配置的是Admin权限,所以请填写大于1024的端口。如果不配置,则默认为8080。'."\n"
.'- maxThreads:配置连接池的连接数大小,默认大小是400。'."\n"
.' > 此项配置对应用性能有很大影响,请由专业人士配置。'."\n"
."\n"
.'- uriEncoding:Tomcat的编码格式,包括UTF-8、ISO-8859-1、GBK和GB2312。如果不设置则默认为ISO-8859-1。'."\n"
.'- useBodyEncoding:是否使用BodyEncoding for URL。'."\n"
.'- useAdvancedServerXml:是否使用高级配置自定义设置server.xml文件,当上述参数类型和具体参数无法满足您的需求时,可以选中使用高级设置,直接对Tomcat的Server.xml文件进行编辑。'."\n"
.'- serverXml:高级配置中自定义设置的server.xml文本文件内容,当useAdvancedServerXml为true时生效。'."\n", 'type' => 'string', 'required' => false, 'example' => '{"useDefaultConfig":false,"contextInputType":"custom","contextPath":"hello","httpPort":8088,"maxThreads":400,"uriEncoding":"UTF-8","useBodyEncoding":true,"useAdvancedServerXml":false}'],
],
[
'name' => 'JavaStartUpConfig',
'in' => 'query',
'schema' => ['description' => 'Java启动参数用于在Java应用启动时配置启动参数。可配置:内存配置、应用、GC策略、工具、服务注册和发现配置和自定义等配置,正确配置这些参数有助于降低垃圾回收(GC)开销,从而缩短服务器响应时间并提高吞吐量。参数格式为JSON字符串:original为配置值,startup为启动参数,系统将自动拼接所有的startup作为应用程序的Java启动参数。设置为`""`或`"{}"`表示删除配置。JSON中key取值如下:'."\n"
."\n"
.'- InitialHeapSize:代表初始化堆大小。'."\n"
.'- MaxHeapSize:代表最大堆大小。'."\n"
.'- CustomParams:代表用户自定义内容,如JVM -D参数等。'."\n"
.'- 其它情况:可自行查看前端提交的JSON结构。', 'type' => 'string', 'required' => false, 'example' => '{"InitialHeapSize":{"original":512,"startup":"-Xms512m"},"MaxHeapSize":{"original":1024,"startup":"-Xmx1024m"},"CustomParams":{"original":"-Dcustom.property.sample=false","startup":"-Dcustom.property.sample=false"}}'],
],
[
'name' => 'SlsConfigs',
'in' => 'query',
'schema' => ['description' => 'Logstore配置,设置为`""`或`"{}"`表示删除配置:'."\n"
."\n"
.'- Configs:'."\n"
."\n"
.' - type:采集类型,文件类型为file,标准输出类型为stdout。'."\n"
."\n"
.' - Logstore:Logstore名称。请确保Logstore名称在同一个集群中不重复,其命名应符合规则。'."\n"
.' - 日志库名称仅支持小写字母、数字、短划线(-)和下划线(_)。'."\n"
.' - 必须以小写字母和数字开头和结尾。'."\n"
.' - 名称长度为3~63个字符。若为空,则由系统自动生成。'."\n"
.' - LogDir:若为标准输出类型,则采集路径为stdout.log,若为文件类型,则为采集的文件路径,支持通配,采集路径应符合正则:`^/(.+)/(.*)^/$`。', 'type' => 'string', 'required' => false, 'example' => '[{"logstore":"thisisanotherfilelog","type":"file","logDir":"/var/log/*"},{"logstore":"","type":"stdout","logDir":"stdout.log"},{"logstore":"thisisafilelog","type":"file","logDir":"/tmp/log/*"}]'],
],
[
'name' => 'IsMultilingualApp',
'in' => 'query',
'schema' => ['description' => '是否为多语言应用。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'DeployAcrossNodes',
'in' => 'query',
'schema' => ['description' => '是否将应用实例分布到多个节点。`true`代表是,其他值为否。', 'type' => 'string', 'required' => false, 'example' => 'true'],
],
[
'name' => 'PvcMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s PVC(PersistentVolumeClaim)挂载,支持将K8s PVC卷挂载到指定的容器目录。PvcMountDescs的配置参数说明如下:'."\n"
."\n"
.'- pvcName:PVC卷名称,PVC卷必须已经存在,且处于Bound状态。'."\n"
.'- mountPaths:挂载目录列表,支持配置多个挂载目录。每个挂载目录支持两个配置参数。'."\n"
.' * mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。'."\n"
.' * readOnly:挂载模式,true为只读,false为可读写,默认为false。', 'type' => 'string', 'required' => false, 'example' => '[{"pvcName":"nas-pvc-1","mountPaths":[{"mountPath":"/usr/share/nginx/data"},{"mountPath":"/usr/share/nginx/html","readOnly":true}]}]'],
],
[
'name' => 'ConfigMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s ConfigMap和Secret挂载,支持将ConfigMap和Secret挂载到指定的容器目录。ConfigMountDescs的配置参数说明如下:'."\n"
.'- name:ConfigMap或Secret的名称。'."\n"
.'- type:配置类型,支持ConfigMap和Secret两种类型。'."\n"
.'- mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。', 'type' => 'string', 'required' => false, 'example' => '[{"name":"nginx-config","type":"ConfigMap","mountPath":"/etc/nginx"},{"name":"tls-secret","type":"secret","mountPath":"/etc/ssh"}]'],
],
[
'name' => 'CsClusterId',
'in' => 'query',
'schema' => ['description' => '只有在用户使用一个从未导入的集群来创建应用时,才需要指定csClusterId。', 'type' => 'string', 'required' => false, 'example' => 'abcdefg'],
],
[
'name' => 'EnableAsm',
'in' => 'query',
'schema' => ['description' => '只有在用户使用一个从未导入的集群来创建应用,同时开启ASM时,才需要设置这个值为true。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'EnvFroms',
'in' => 'query',
'schema' => ['description' => '配置K8s EnvFrom类型的环境变量,将指定的ConfigMap或Secret挂载到指定目录,每个key对应目录下的一个文件,文件的内容为该key对应的value。'."\n"
."\n"
.'EnvFroms的配置参数说明如下:'."\n"
.' - configMapRef:ConfigMap引用,该字段包括以下参数:'."\n"
.' - name:ConfigMap名称。'."\n"
.'- secretRef:Secret引用,该字段包括以下参数:'."\n"
.' - name:Secret名称。'."\n", 'type' => 'string', 'required' => false, 'example' => '[{"name":"appname","valueFrom":{"configMapKeyRef":{"name":"appconf","key":"name"}}}]'],
],
[
'name' => 'EmptyDirs',
'in' => 'query',
'schema' => ['description' => '配置K8s emptyDir挂载,支持将emptyDir卷挂载到指定的容器目录。EmptyDirs的配置参数说明如下:'."\n"
."\n"
.'- mountPath:容器挂载路径,必填。'."\n"
.'- readOnly:是否只读,可选,true为只读,false为读写,默认为false。'."\n"
.'- subPathExpr:子目录表达式,可选。', 'type' => 'string', 'required' => false, 'example' => '[{"mountPath":"/app-log","subPathExpr":"$(POD_IP)"},{"readOnly":true,"mountPath":"/etc/nginx"}]'],
],
[
'name' => 'BuildPackId',
'in' => 'query',
'schema' => ['description' => '配置`edas container`版本,与`edasContainerVersion`字段冲突。建议使用`edasContainerVersion`字段。', 'type' => 'string', 'required' => false, 'example' => '-1'],
],
[
'name' => 'CustomAffinity',
'in' => 'query',
'schema' => ['description' => '自定义关联。', 'type' => 'string', 'required' => false, 'example' => 'demo'],
],
[
'name' => 'CustomTolerations',
'in' => 'query',
'schema' => ['description' => '自定义公差。', 'type' => 'string', 'required' => false, 'example' => 'demo'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['title' => '', 'description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => '461'],
],
[
'name' => 'Annotations',
'in' => 'query',
'schema' => ['description' => '应用Pod注解。', 'type' => 'string', 'required' => false, 'example' => '{"annotation-name-1":"annotation-value-1","annotation-name-2":"annotation-value-2"}'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => '应用Pod标签。', 'type' => 'string', 'required' => false, 'example' => '{"label-name-1":"label-value-1","label-name-2":"label-value-2"}'],
],
[
'name' => 'EnableEmptyPushReject',
'in' => 'query',
'schema' => ['title' => '是否开启推空保护', 'description' => '是否开启推空保护:'."\n"
."\n"
.'- true:开启推空保护。'."\n"
.'- false:不开启推空保护。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'EnableLosslessRule',
'in' => 'query',
'schema' => ['title' => '是否启用无损上线规则', 'description' => '是否启用无损上线规则:'."\n"
."\n"
.'- true:启用无损上线规则。'."\n"
.'- false:不启用无损上线规则。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'LosslessRuleWarmupTime',
'in' => 'query',
'schema' => ['title' => '无损上线服务预热时长', 'description' => '服务预热时长,单位:秒。取值范围为0~86400秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '120'],
],
[
'name' => 'LosslessRuleDelayTime',
'in' => 'query',
'schema' => ['title' => '无损上线延迟注册时长', 'description' => '服务延迟注册时长,单位:秒。取值范围为0~86400秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'LosslessRuleFuncType',
'in' => 'query',
'schema' => ['title' => '无损上线服务预热曲线', 'description' => '服务预热曲线。取值范围0~20。默认为2(适合于一般预热场景),表示在预热周期内服务提供者的流量接收曲线形状呈2次曲线形状。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'LosslessRuleAligned',
'in' => 'query',
'schema' => ['title' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务注册', 'description' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务注册:'."\n"
."\n"
.'- true:打开开关会为应用无侵入提供55199端口和/health路径的健康检查方式,当完成服务注册后,该接口返回200,否则返回500。'."\n"
.' > 若同时配置`LosslessRuleRelated`为`true`,则该接口检查是否完成服务预热。'."\n"
."\n"
.'- false:不为应用提供检查是否完成服务注册的接口。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'LosslessRuleRelated',
'in' => 'query',
'schema' => ['title' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务预热', 'description' => '是否启用无损滚动发布模式配置通过就绪检查前完成服务预热:'."\n"
."\n"
.'- true:打开开关会为应用无侵入提供55199端口和/health路径的健康检查方式,当完成服务预热后,该接口返回200,否则返回500。'."\n"
.'- false:不为应用提供检查是否完成服务预热的接口。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ServiceConfigs',
'in' => 'query',
'schema' => ['title' => '应用K8s服务信息', 'description' => 'K8s服务Service配置。', 'type' => 'string', 'required' => false, 'example' => '[{"name": "test-svc-create","serviceType":"ClusterIP","portMappings":[{"servicePort": {"targetPort":8080,"port":80,"protocol":"TCP"}}]}]'],
],
[
'name' => 'AppTemplateName',
'in' => 'query',
'schema' => ['title' => '创建应用使用的应用模版名称,若创建应用时指定应用模版,则将优先使用应用模版和AppConfig参数确定应用配置,忽略其他配置', 'description' => '创建应用使用的应用模版名称,若创建应用时指定应用模版,则将优先使用应用模版和AppConfig参数确定应用配置,忽略其他配置。', 'type' => 'string', 'required' => false, 'example' => 'app-template001'],
],
[
'name' => 'AppConfig',
'in' => 'query',
'schema' => ['title' => '使用应用模版时的应用配置,JSON格式字符串', 'description' => '使用应用模版时的应用配置,JSON格式字符串。', 'type' => 'string', 'required' => false, 'example' => '{}'],
],
[
'name' => 'LimitEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储资源需求上限,单位:GB。设置0表示不限制。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'RequestsEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储最小资源需求,单位:GB。设置0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'SecretName',
'in' => 'query',
'schema' => ['description' => '用户指定的镜像拉取凭证名,需要自行创建相关Secret配置。', 'type' => 'string', 'required' => false, 'example' => 'edas-app-01-image-secret'],
],
[
'name' => 'ContainerRegistryId',
'in' => 'query',
'schema' => ['description' => '构建镜像仓库使用的仓库ID,留空表示使用EDAS提供的默认仓库。当前只支持EDAS提供的默认仓库。', 'type' => 'string', 'required' => false, 'example' => 'leave empty'],
],
[
'name' => 'WorkloadType',
'in' => 'query',
'schema' => ['description' => '创建应用时Workload的类型,目前仅支持Deployment类型。', 'type' => 'string', 'required' => false, 'example' => 'Deployment'],
],
[
'name' => 'Sidecars',
'in' => 'query',
'schema' => ['description' => '为应用Pod设置Sidecar容器。支持设置容器配置的格式YAML,其值为Sidecar容器YAML配置base64编码后的值。', 'type' => 'string', 'required' => false, 'example' => '[{"yamlEncoded":"Y29tbWFuZDoKICAtIHRhaWwKICAtICctZicKICAtIC9kZXYvbnVsbAppbWFnZTogJ2J1c3lib3g6bGF0ZXN0JwpuYW1lOiBidXN5Ym94Cg=="}]'],
],
[
'name' => 'InitContainers',
'in' => 'query',
'schema' => ['description' => '为应用Pod设置初始化容器。支持设置容器配置的格式YAML,其值为Init容器YAML配置base64编码后的值。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' {'."\n"
.' "yamlEncoded": "Y29tbWFuZDoKICAtIHNsZWVwCiAgLSAnNjAnCmltYWdlOiAnYnVzeWJveDpsYXRlc3QnCm5hbWU6IGluaXQtYnVzeWJveAo="'."\n"
.' }'."\n"
.']'],
],
[
'name' => 'UserBaseImageUrl',
'in' => 'query',
'schema' => ['description' => '使用自定义JDK运行时,需要配置基础镜像地址。该地址需要可公开访问,EDAS服务端会拉取该镜像,用于构建应用镜像。', 'type' => 'string', 'required' => false, 'example' => 'openjdk:8u302'],
],
[
'name' => 'TerminateGracePeriod',
'in' => 'query',
'schema' => ['description' => '设置应用优雅停止超时时间。单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '120'],
],
[
'name' => 'ImagePlatforms',
'in' => 'query',
'schema' => ['title' => '镜像目标平台架构,当使用war、jar部署时有效,输入样例:1.指定x86 64架构:linux/amd64'."\n"
.'2.指定arm 64架构:linux/arm64'."\n"
.'3.指定构建双架构镜像:linux/amd64,linux/arm64'."\n"
.'4.不输入:默认架构', 'description' => '镜像目标平台架构,当使用war、jar部署时有效,输入样例:'."\n"
."\n"
.'- 指定x86 64架构:linux/amd64'."\n"
."\n"
.'- 指定arm 64架构:linux/arm64'."\n"
."\n"
.'- 指定构建双架构镜像:linux/amd64,linux/arm64'."\n"
."\n"
.'- 不输入:默认架构', 'type' => 'string', 'required' => false, 'example' => 'linux/arm64,linux/amd64'],
],
[
'name' => 'Startup',
'in' => 'query',
'schema' => ['description' => '启动探针可以用于对慢启动容器进行存活性检测,避免它们在启动运行之前就被杀掉,格式如:{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \\[{"name": "test","value": "testvalue"}\\]}}。'."\n"
."\n"
.'如果设置为""或者{}表示删除,不设置表示忽略。', 'type' => 'string', 'required' => false, 'example' => '{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}}'],
],
[
'name' => 'FeatureConfig',
'in' => 'query',
'schema' => ['description' => '自定义监控与治理方案配置', 'type' => 'string', 'required' => false, 'example' => '{"features":[{"name":"base.combination.arms","enable":true},{"name":"base.combination.mse","enable":true}]}'],
],
[
'name' => 'CustomAgentVersion',
'in' => 'query',
'schema' => ['description' => '支持指定Agent版本', 'type' => 'string', 'required' => false, 'example' => '2.8.3,3.2.10,4.3.1'],
],
[
'name' => 'SecurityContext',
'in' => 'query',
'schema' => ['description' => '为应用 Pod 容器设置 SecurityContext属性。其值为 SecurityContext YAML 配置 base64 编码后的值。', 'type' => 'string', 'required' => false, 'example' => '{"yamlEncoded":"cnVuQXNVc2VyOiAwCnJ1bkFzR3JvdXA6IDA="}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'ApplicationInfo' => [
'description' => '应用详情。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID,可调用GetChangeOrderInfo接口获取,详情请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'example' => 'cd65b247-****-475b-ad4b-7039040d625c'],
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test'],
'Dockerize' => ['description' => '是否为Docker应用。'."\n"
.'- true:是。'."\n"
.'- false:否。', 'type' => 'boolean', 'example' => 'true'],
'Owner' => ['description' => '负责人。', 'type' => 'string', 'example' => 'zp'],
'EdasId' => ['description' => '用户账号ID。', 'type' => 'string', 'example' => '1172****6608****'],
'ClusterType' => ['description' => '应用集群环境类型如下:'."\n"
.'- 0:普通Docker集群。'."\n"
.'- 1:Swarm集群(已下线)。'."\n"
.'- 2:ECS集群。'."\n"
.'- 3:EDAS自建K8s集群(已下线)。'."\n"
.'- 4:Pandora自动注册应用集群类型。'."\n"
.'- 5:容器服务K8s集群和Serverless K8s集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'AppId' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'example' => 'e83acea6-****-47e1-96ae-c0e95377****'],
'UserId' => ['description' => '用户主账号。', 'type' => 'string', 'example' => 'edas_test****@aliyun****.com'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
],
],
],
],
],
],
'title' => '创建K8s应用',
'summary' => '在容器服务K8s集群或Serverless K8s集群中创建应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-01-30T08:20:32.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-11-13T02:32:23.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-10-10T06:54:49.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-06-02T08:34:43.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-03-27T07:13:39.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-03-24T02:13:00.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-11-17T05:55:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-10-18T16:44:17.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-01-27T03:48:58.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-01-27T03:48:58.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:CreateApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"ApplicationInfo\\": {\\n \\"ChangeOrderId\\": \\"cd65b247-****-475b-ad4b-7039040d625c\\",\\n \\"AppName\\": \\"test\\",\\n \\"Dockerize\\": true,\\n \\"Owner\\": \\"zp\\",\\n \\"EdasId\\": \\"1172****6608****\\",\\n \\"ClusterType\\": 5,\\n \\"AppId\\": \\"e83acea6-****-47e1-96ae-c0e95377****\\",\\n \\"UserId\\": \\"edas_test****@aliyun****.com\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<InsertK8sApplicationResponse>\\n<RequestId>b197-40ab-9155-****</RequestId>\\n<Message>success</Message>\\n<ApplicationInfo>\\n <Dockerize>true</Dockerize>\\n <EdasId>1172****6608****</EdasId>\\n <Owner>zp</Owner>\\n <AppId>e83acea6-****-47e1-96ae-c0e95377****</AppId>\\n <UserId>edas_test****@aliyun****.com</UserId>\\n <ChangeOrderId>cd65b247-****-475b-ad4b-7039040d625c</ChangeOrderId>\\n <RegionId>cn-beijing</RegionId>\\n <ClusterType>5</ClusterType>\\n <AppName>test</AppName>\\n</ApplicationInfo>\\n<Code>200</Code>\\n</InsertK8sApplicationResponse>","errorExample":""}]',
],
'InsertOrUpdateRegion' => [
'summary' => '调用InsertOrUpdateRegion接口创建或编辑自定义命名空间。',
'path' => '/pop/v5/user_region_def',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RegionTag',
'in' => 'query',
'schema' => ['description' => '命名空间ID:'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:cn-beijing:tdy218。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:cn-beijing。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-beijing:test'],
],
[
'name' => 'RegionName',
'in' => 'query',
'schema' => ['description' => '命名空间名称,长度不超过63个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test_region'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => '命名空间描述,长度不超过128个字符。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => '参数为空或ID为0时表示创建命名空间,其他情况表示编辑。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
[
'name' => 'DebugEnable',
'in' => 'query',
'schema' => ['description' => '是否允许进行远程调试:'."\n"
.'- true:允许。'."\n"
.'- false:不允许。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'RegistryType',
'in' => 'query',
'schema' => ['title' => '注册中心类型:'."\n"
.'- default,EDAS共享注册中心'."\n"
.'- exclusive_mse,MSE Nacos注册中心', 'description' => '注册中心类型:'."\n"
.'- default:EDAS共享注册中心。'."\n"
.'- exclusive_mse:MSE Nacos注册中心。', 'type' => 'string', 'required' => false, 'example' => 'default'],
],
[
'name' => 'MseInstanceId',
'in' => 'query',
'schema' => ['title' => 'MSE注册中心实例ID', 'description' => 'MSE注册中心实例ID。', 'type' => 'string', 'required' => false, 'example' => 'mse_prepaid_public_cn-tl32n******'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => '37793352-C568-4A5A-BF69-4DC853******'],
'UserDefineRegionEntity' => [
'description' => '用户自定义命名空间。',
'type' => 'object',
'properties' => [
'BelongRegion' => ['description' => '所属地域。', 'type' => 'string', 'example' => 'cn-beijing'],
'RegionName' => ['description' => '命名空间名称。', 'type' => 'string', 'example' => 'test_region'],
'Description' => ['description' => '命名空间描述。', 'type' => 'string', 'example' => 'Logical region'],
'DebugEnable' => ['description' => '是否允许进行远程调试:'."\n"
.'- true:允许。'."\n"
.'- false:不允许。', 'type' => 'boolean', 'example' => 'false'],
'UserId' => ['description' => '用户主账号ID。', 'type' => 'string', 'example' => 'edas_****_test@aliyun-****.com'],
'Id' => ['description' => '参数为空或ID为0时表示创建命名空间,其他情况表示编辑。', 'type' => 'integer', 'format' => 'int64', 'example' => '15160'],
'RegionId' => ['description' => '命名空间ID:'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:cn-beijing:tdy218。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:cn-beijing。', 'type' => 'string', 'example' => 'cn-beijing:test'],
],
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"37793352-C568-4A5A-BF69-4DC853******\\",\\n \\"UserDefineRegionEntity\\": {\\n \\"BelongRegion\\": \\"cn-beijing\\",\\n \\"RegionName\\": \\"test_region\\",\\n \\"Description\\": \\"Logical region\\",\\n \\"DebugEnable\\": false,\\n \\"UserId\\": \\"edas_****_test@aliyun-****.com\\",\\n \\"Id\\": 15160,\\n \\"RegionId\\": \\"cn-beijing:test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>37793352-C568-4A5A-BF69-4DC8539D2E20</RequestId>\\n<UserDefineRegionEntity>\\n <RegionName>doctest</RegionName>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <DebugEnable>false</DebugEnable>\\n <Id>15160</Id>\\n <RegionId>cn-beijing:doctest</RegionId>\\n <BelongRegion>cn-beijing</BelongRegion>\\n</UserDefineRegionEntity>\\n<Code>200</Code>","errorExample":""}]',
'title' => '创建或编辑自定义命名空间',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertOrUpdateRegion'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:CreateNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'NameSpace', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}'],
],
],
],
],
],
'InsertRole' => [
'path' => '/pop/v5/account/create_role',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RoleName',
'in' => 'query',
'schema' => ['description' => '角色名称', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testrole'],
],
[
'name' => 'ActionData',
'in' => 'query',
'schema' => ['description' => '操作权限集合,格式:`权限组ID1:权限码1;...;权限组IDn:权限码n`,例如`1:1;1:2;2:1;2:2`。详细权限组及权限码含义请参见[ListAuthority](~~149409~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '15:1;14:2'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => '57609587-DFA2-41EC-****-*********'],
'RoleId' => ['description' => '角色ID', 'type' => 'integer', 'format' => 'int32', 'example' => '33'],
],
'description' => '',
],
],
],
'title' => '创建角色',
'summary' => '创建角色。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertRole'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:InsertRole',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57609587-DFA2-41EC-****-*********\\",\\n \\"RoleId\\": 33\\n}","errorExample":""},{"type":"xml","example":"<RequestId>57609587-DFA2-41EC-****-*********</RequestId>\\n<Code>200</Code>\\n<Message>sucess</Message>","errorExample":""}]',
],
'InsertServiceGroup' => [
'summary' => '调用InsertServiceGroup创建服务分组。',
'path' => '/pop/v5/service/serviceGroups',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '创建服务分组', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'edas-test-group'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => 'ECD1D6FC-4307-4583-BA6F-215F3857EAF4'],
],
'description' => '',
],
],
],
'title' => '创建服务分组',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertServiceGroup'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:InsertServiceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"ECD1D6FC-4307-4583-BA6F-215F3857EAF4\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'InsertSwimmingLane' => [
'path' => '/pop/v5/trafficmgnt/swimming_lanes',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '自定义命名空间的RegionId。'."\n"
.'格式为:`物理Region:自定义命名空间标识符`,例如`cn-hangzhou:test`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-beijing:test'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '泳道名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test1'],
],
[
'name' => 'Tag',
'in' => 'query',
'schema' => ['description' => '标签。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'tag'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '95'],
],
[
'name' => 'EntryRules',
'in' => 'query',
'schema' => ['description' => '流控条件。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"priority":1,"path":"/traffic","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testvalue","cond":"==","operator":"rawvalue"}]}]'],
],
[
'name' => 'EnableRules',
'in' => 'query',
'schema' => ['description' => '是否启用流控规则。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'AppInfos',
'in' => 'query',
'schema' => ['description' => '泳道涉及应用信息。', 'type' => 'string', 'required' => false, 'example' => '[{"appId":"f72deaac-26ba-429a-948d-5fa47c4a****"},{"appId":"5049d2c8-f997-4fc9-92a2-153506a6****"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '75972A87-5682-5277-ADA7-DA2A01BE****'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-beijing:test'],
'GroupId' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95'],
'EntryRule' => ['description' => '泳道流控规则。'."\n"
."\n"
.'priority:泳道规则优先级,取值范围:1~100。'."\n"
."\n"
.'path:泳道规则匹配的路径。'."\n"
."\n"
.'restItems:条件匹配规则列表。'."\n"
."\n"
.'condition:条件匹配类型。'."\n"
.' - AND:同时满足条件。'."\n"
.' - OR:满足任一条件。'."\n"
."\n"
.'restItems.type:规则类型。'."\n"
.'可选值范围:'."\n"
.'- header:按请求Header进行匹配。'."\n"
.'- cookie:按请求cookie进行匹配。'."\n"
.'- param:按请求参数进行匹配。'."\n"
."\n"
.'restItems.name:规则匹配的键。'."\n"
."\n"
.'restItems.value:规则匹配的值。'."\n"
."\n"
.'restItems.cond:规则匹配的条件。'."\n"
.'可取值范围:'."\n"
.'- "==":等于。'."\n"
.'- "!=":不等于。'."\n"
.'- ">":大于。'."\n"
.'- "<":小于。'."\n"
.'- ">=":大于等于。'."\n"
.'- "<=":小于等于。'."\n"
.'- "in":在可选值内。'."\n"
."\n"
.'restItems.operator:值的类型。'."\n"
.'可取值范围:'."\n"
.'- rawvalue:取原值。'."\n"
.'- mod:取模。'."\n"
.'- list:列表取值。', 'type' => 'string', 'example' => '[{\\"condition\\":\\"AND\\",\\"enable\\":false,\\"path\\":\\"/traffic\\",\\"priority\\":1,\\"restItems\\":[{\\"cond\\":\\"==\\",\\"datum\\":\\"testvalue\\",\\"name\\":\\"testheader\\",\\"operator\\":\\"rawvalue\\",\\"type\\":\\"header\\",\\"value\\":\\"testvalue\\"}]}]'],
'AppInfos' => ['description' => '泳道关联应用列表。', 'type' => 'string', 'example' => '[{"appId":"9dcba109-ee9f-4e67-8916-41'."\n"
.'*******"}]'],
'Tag' => ['description' => '流控泳道标签。', 'type' => 'string', 'example' => '8202e09'],
'Name' => ['description' => '泳道名称。', 'type' => 'string', 'example' => 'test1'],
'Id' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '88'],
'SwimmingLaneAppRelationShipList' => [
'description' => '泳道涉及应用关联关系列表。',
'type' => 'array',
'items' => [
'description' => '泳道涉及应用关联关系。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-app'],
'Rules' => ['description' => '关联规则。', 'type' => 'string', 'example' => 'dubbo'],
'LaneId' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '88'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'bd170895-096c-4944-9007-d4582c77****'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
605 => [
['errorCode' => 'Edas.errorcode.ParameterInvalid.PointedParameter.message', 'errorMessage' => 'The value of parameter {0} is invalid.', 'description' => ''],
],
],
'title' => '新建泳道',
'summary' => '新建泳道。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertSwimmingLane'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:ManageTraffic',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"75972A87-5682-5277-ADA7-DA2A01BE****\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"cn-beijing:test\\",\\n \\"GroupId\\": 95,\\n \\"EntryRule\\": \\"[{\\\\\\\\\\\\\\"condition\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"AND\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"enable\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/traffic\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"priority\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"restItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"cond\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"==\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"datum\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testvalue\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testheader\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"rawvalue\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"header\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testvalue\\\\\\\\\\\\\\"}]}]\\",\\n \\"AppInfos\\": \\"[{\\\\\\"appId\\\\\\":\\\\\\"9dcba109-ee9f-4e67-8916-41\\\\n*******\\\\\\"}]\\",\\n \\"Tag\\": \\"8202e09\\",\\n \\"Name\\": \\"test1\\",\\n \\"Id\\": 88,\\n \\"SwimmingLaneAppRelationShipList\\": [\\n {\\n \\"AppName\\": \\"test-app\\",\\n \\"Rules\\": \\"dubbo\\",\\n \\"LaneId\\": 88,\\n \\"AppId\\": \\"bd170895-096c-4944-9007-d4582c77****\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'InsertSwimmingLaneGroup' => [
'summary' => '新建泳道组。',
'path' => '/pop/v5/trafficmgnt/swimming_lane_groups',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '泳道组名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'],
],
[
'name' => 'EntryApp',
'in' => 'query',
'schema' => ['description' => '入口应用。格式为:EDAS:{应用ID}。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'EDAS:5cc89013-9232-4b36-b3eb-ff89b3d2****'],
],
[
'name' => 'AppIds',
'in' => 'query',
'schema' => ['description' => '泳道组涉及所有应用ID列表,多个应用之间使用半角逗号(,)分隔。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'bdb251cc-02a6-48dd-891b-2ab21b25****,ee33ed0c-fddc-47b5-9f63-e1ccc4be****'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '自定义命名空间的RegionId。格式为:`物理Region:自定义命名空间标识符`,例如`cn-hangzhou:test`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou:test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D5268CAC-D356-5C8D-BC7C-FBE0D13B****'],
'Data' => [
'description' => '接口返回数据。',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-hangzhou:test'],
'Name' => ['description' => '泳道组名称。', 'type' => 'string', 'example' => 'test'],
'Id' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '64'],
'ApplicationList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Application' => [
'description' => '泳道组所有设计应用列表。',
'type' => 'array',
'items' => [
'description' => '应用列表对象。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'bdb251cc-02a6-48dd-891b-2ab21b25****'],
],
],
],
],
'description' => '',
],
'EntryApplication' => [
'description' => 'EDAS入口/网关信息。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'bdb251cc-02a6-48dd-891b-2ab21b25c****'],
],
],
],
],
],
],
],
],
'errorCodes' => [
605 => [
['errorCode' => 'Edas.errorcode.ParameterInvalid.PointedParameter.message', 'errorMessage' => 'The value of parameter {0} is invalid.', 'description' => ''],
],
],
'title' => '新建泳道组',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertSwimmingLaneGroup'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'edas:InsertSwimmingLaneGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D5268CAC-D356-5C8D-BC7C-FBE0D13B****\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"cn-hangzhou:test\\",\\n \\"Name\\": \\"test\\",\\n \\"Id\\": 64,\\n \\"ApplicationList\\": {\\n \\"Application\\": [\\n {\\n \\"AppName\\": \\"test-app\\",\\n \\"AppId\\": \\"bdb251cc-02a6-48dd-891b-2ab21b25****\\"\\n }\\n ]\\n },\\n \\"EntryApplication\\": {\\n \\"AppName\\": \\"test-app\\",\\n \\"AppId\\": \\"bdb251cc-02a6-48dd-891b-2ab21b25c****\\"\\n }\\n }\\n}","type":"json"}]',
],
'InstallAgent' => [
'summary' => '使用ECS自带的云助手安装EDAS Agent(将ECS导入EDAS)。',
'path' => '/pop/v5/ecss/install_agent',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群 ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b3e3f77b-462e-****-****-bec8727a4dc8'],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => '实例 ID,如instanceId1,instanceId2', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2ze7s2v0b789k60pk1af'],
],
[
'name' => 'DoAsync',
'in' => 'query',
'schema' => ['description' => '已不再使用', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code 码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'ExecutionResultList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ExecutionResult' => [
'description' => '执行结果',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '命令执行状态信息', 'type' => 'string', 'example' => 'OK'],
'FinishedTime' => ['description' => '安装结束时间', 'type' => 'string', 'example' => '20**-11-10T07:02:17Z'],
'InstanceId' => ['description' => '实例 ID', 'type' => 'string', 'example' => 'i-2ze7s2v0b789k*******'],
'InvokeRecordStatus' => ['description' => '命令执行状态。取值范围:'."\n"
."\n"
.'- Running:运行中。'."\n"
."\n"
.' - 定时执行:未手动停止定时执行命令前,执行状态一直为进行中。'."\n"
.' - 单次执行:一旦有进行中的命令进程,总的执行状态就为进行中。'."\n"
."\n"
.'- Finished:已完成。'."\n"
."\n"
.' - 定时执行:命令进程不可能为执行完成。'."\n"
.' - 单次执行:所有实例全部完成执行。或者手动停止部分实例的命令进程,其余实例全部执行完成。'."\n"
."\n"
.'- Success:'."\n"
."\n"
.' - 单次执行的命令:命令执行完成,且退出码为 0。'."\n"
.' - 定时执行的命令:上一次执行成功且退出码为 0,且指定的执行时间已结束。'."\n"
."\n"
.'- Failed:执行失败。'."\n"
."\n"
.' - 定时执行:命令进程不可能为执行失败。'."\n"
.' - 单次执行:所有实例全部执行失败。'."\n"
."\n"
.'- PartialFailed:部分执行失败。'."\n"
."\n"
.' - 定时执行:命令进程不可能为部分失败。'."\n"
.' - 单次执行:部分实例有执行失败的命令进程,则总执行状态为部分失败。'."\n"
."\n"
.'- Stopped:命令执行已停止。'."\n"
."\n"
.'- Stopping:正在停止执行的命令。', 'type' => 'string', 'example' => 'Finished'],
'Success' => ['description' => '是否安装成功', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '安装 Agent',
'description' => '使用该接口将ECS导入EDAS时,不会重装系统,推荐使用该接口将ECS导入EDAS。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '## 注意事项'."\n"
.'该接口在实际执行中,会遇到在 API 接口 Client 程序端在连接 API 网关超时(默认 10 秒)的情况,所以,用户在使用该接口时,须手工设置调用该接口时读取 POP API 网关返回的数据的超时时间(推荐设置为 30 秒,因 POP API 网关到接口 Server 端的服务处理时间最长即为 30 秒):'."\n"
.'- 使用 Java SDK 时,Client 端代码中使用该接口时设置读取超时时间方法:'."\n"
.'```java'."\n"
.'InstallAgentRequest request = new InstallAgentRequest();'."\n"
.'request.setSysReadTimeout(30000); //单位毫秒,客户端 API 接口程序等待 POP API网关返回数据的超时时间.'."\n"
.'request.setClusterId(clusterId);'."\n"
.'........'."\n"
.'```'."\n"
.'- 使用 Python SDK 时,Client 端代码中使用该接口时设置读取超时时间方法:'."\n"
.'```python'."\n"
.'request = InstallAgentRequest()'."\n"
.'request.set_read_timeout(30000)'."\n"
.'request.set_ClusterId(clusterId)'."\n"
.'```',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InstallAgent'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"ExecutionResultList\\": {\\n \\"ExecutionResult\\": [\\n {\\n \\"Status\\": \\"OK\\",\\n \\"FinishedTime\\": \\"20**-11-10T07:02:17Z\\",\\n \\"InstanceId\\": \\"i-2ze7s2v0b789k*******\\",\\n \\"InvokeRecordStatus\\": \\"Finished\\",\\n \\"Success\\": true\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ExecutionResultList>\\n <ExecutionResult>\\n <InvokeRecordStatus>Finished</InvokeRecordStatus>\\n <Status>OK</Status>\\n <FinishedTime>2019-11-10T07:02:17Z</FinishedTime>\\n <InstanceId>i-2ze7s2v0b789k60pk1af</InstanceId>\\n <Success>true</Success>\\n </ExecutionResult>\\n</ExecutionResultList>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ListAliyunRegion' => [
'path' => '/pop/v5/resource/region_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '请求返回信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'RegionEntityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'RegionEntity' => [
'description' => '地域列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['description' => '地域名称', 'type' => 'string', 'example' => 'China East 1 (Hangzhou)'],
'Id' => ['description' => '地域ID', 'type' => 'string', 'example' => 'cn-hangzhou'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取阿里云地域列表',
'summary' => '获取阿里云地域列表。',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'changeSet' => [
['createdAt' => '2022-09-13T11:48:42.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-13T11:48:42.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListAliyunRegion'],
],
],
'ramActions' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"RegionEntityList\\": {\\n \\"RegionEntity\\": [\\n {\\n \\"Name\\": \\"China East 1 (Hangzhou)\\",\\n \\"Id\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RegionEntityList>\\n <RegionEntity>\\n <Name>China East 1 (Hangzhou)</Name>\\n <Id>cn-hangzhou</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>China North 1 (Qingdao)</Name>\\n <Id>cn-qingdao</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>China North 2 (Beijing)</Name>\\n <Id>cn-beijing</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>China South 1 (Shenzhen)</Name>\\n <Id>cn-shenzhen</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>China East 2 (Shanghai)</Name>\\n <Id>cn-shanghai</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>Asia Pacific SE 1 (Singapore)</Name>\\n <Id>ap-southeast-1</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>Hong Kong (China)</Name>\\n <Id>cn-hongkong</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>Australia(Sydney)</Name>\\n <Id>ap-southeast-2</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>America(Virginia)</Name>\\n <Id>us-east-1</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>China North 3</Name>\\n <Id>cn-zhangjiakou</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>Germany (Frankfurt)</Name>\\n <Id>eu-central-1</Id>\\n </RegionEntity>\\n <RegionEntity>\\n <Name>public</Name>\\n <Id>public</Id>\\n </RegionEntity>\\n</RegionEntityList>\\n<Code>200</Code>","errorExample":""}]',
],
'ListApplication' => [
'path' => '/pop/v5/app/app_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '以集群维度筛选应用列表。', 'type' => 'string', 'required' => false, 'example' => 'c37aec2a-bcca-4ec1-****-************'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '以微服务空间维度匹配筛选应用列表。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:test'],
],
[
'name' => 'AppName',
'in' => 'query',
'schema' => ['description' => '以appName维度筛选应用列表。', 'type' => 'string', 'required' => false, 'example' => 'testapp'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => '以资源组维度筛选应用列表。', 'type' => 'string', 'required' => false, 'example' => 'rg-aek24j4s4b*****'],
],
[
'name' => 'LogicalRegionIdFilter',
'in' => 'query',
'schema' => ['description' => '按精确匹配微服务空间的方式筛选应用。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:test'],
],
[
'name' => 'AppIds',
'in' => 'query',
'schema' => ['description' => '应用ID列表。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' "5657d271-****-4f03-9bb2-431f942886bb",'."\n"
.' "5657d271-****-4f03-9bb2-431f942bbddd"'."\n"
.']'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => '分页查询,当前第几页,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询,每页显示的条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5d6fa0bc-cc3**********'],
'ApplicationList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Application' => [
'description' => '应用列表。',
'type' => 'array',
'items' => [
'description' => '应用列表对象。',
'type' => 'object',
'properties' => [
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '00ee517d-dd7d-4d4e-****-************'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing:docTes'],
'Name' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'doc-test-consumer'],
'Instances' => ['description' => '应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'Port' => ['description' => '应用的服务端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'State' => ['description' => '应用状态:'."\n"
.'* RUNNING:运行中。'."\n"
.'* STOPPED:已停止。'."\n"
.'* DEPLOYING:正在部署。'."\n"
.'* DELETING:正在删除。', 'type' => 'string', 'example' => 'RUNNING'],
'CreateTime' => ['description' => '应用创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1664208000000'],
'SlbIp' => ['description' => '私网SLB IP地址。', 'type' => 'string', 'example' => '192.168.0.***'],
'SlbPort' => ['description' => '私网SLB端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'SlbListenerPort' => ['description' => '私网SLB监听端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8088'],
'ExtSlbListenerPort' => ['description' => '公网SLB监听端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'BuildPackageId' => ['description' => '容器版本ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '58'],
'ExtSlbIp' => ['description' => '公网SLB IP地址。', 'type' => 'string', 'example' => '100.100.70.***'],
'ApplicationType' => ['description' => '应用部署类型:'."\n"
.'- War代表WAR包部署。'."\n"
.'- FatJar代表JAR包部署。'."\n"
.'- Image代表镜像部署。'."\n"
.'- 为空代表未部署。', 'type' => 'string', 'example' => 'FatJar'],
'ClusterType' => ['description' => '应用集群环境类型:'."\n"
.'- **2**:ECS集群。'."\n"
.'- **3**:EDAS自带K8s集群。'."\n"
.'- **5**:容器服务K8s集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RunningInstanceCount' => ['description' => '正在运行的应用实例数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'c37aec2a-bcca-4ec1-****-************'],
'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aek24j4s4b*****'],
'K8sNamespace' => ['description' => 'K8s命名空间。', 'type' => 'string', 'example' => 'default'],
'NamespaceId' => ['description' => '微服务命名空间ID。', 'type' => 'string', 'example' => 'cn-hangzhou:test'],
],
],
],
],
],
],
],
],
],
'title' => '获取应用列表',
'summary' => '获取应用列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-07-12T02:13:45.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-03-17T03:08:51.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-11-07T01:07:25.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-09-16T03:43:55.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
['createdAt' => '2022-09-16T03:43:55.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListApplication'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"5d6fa0bc-cc3**********\\",\\n \\"ApplicationList\\": {\\n \\"Application\\": [\\n {\\n \\"AppId\\": \\"00ee517d-dd7d-4d4e-****-************\\",\\n \\"RegionId\\": \\"cn-beijing:docTes\\",\\n \\"Name\\": \\"doc-test-consumer\\",\\n \\"Instances\\": 5,\\n \\"Port\\": 8080,\\n \\"State\\": \\"RUNNING\\",\\n \\"CreateTime\\": 1664208000000,\\n \\"SlbIp\\": \\"192.168.0.***\\",\\n \\"SlbPort\\": 80,\\n \\"SlbListenerPort\\": 8088,\\n \\"ExtSlbListenerPort\\": 8080,\\n \\"BuildPackageId\\": 58,\\n \\"ExtSlbIp\\": \\"100.100.70.***\\",\\n \\"ApplicationType\\": \\"FatJar\\",\\n \\"ClusterType\\": 2,\\n \\"RunningInstanceCount\\": 0,\\n \\"ClusterId\\": \\"c37aec2a-bcca-4ec1-****-************\\",\\n \\"ResourceGroupId\\": \\"rg-aek24j4s4b*****\\",\\n \\"K8sNamespace\\": \\"default\\",\\n \\"NamespaceId\\": \\"cn-hangzhou:test\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>5d6fa0bc-cc3**********</RequestId>\\n<Message>success</Message>\\n<ApplicationList>\\n <Application>\\n <BuildPackageId>58</BuildPackageId>\\n <ApplicationType>FatJar</ApplicationType>\\n <ResourceGroupId>rg-aek24j4s4b*****</ResourceGroupId>\\n <AppId>00ee517d-dd7d-4d4e-****-************</AppId>\\n <ClusterId>c37aec2a-bcca-4ec1-****-************</ClusterId>\\n <ClusterType>2</ClusterType>\\n <RegionId>cn-beijing:docTes</RegionId>\\n <RunningInstanceCount>0</RunningInstanceCount>\\n <Name>doc-test-consumer</Name>\\n </Application>\\n</ApplicationList>\\n<Code>200</Code>","errorExample":""}]',
],
'ListApplicationEcu' => [
'path' => '/pop/v5/resource/ecu_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。获取AppId,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => false, 'example' => 'e809****-43d7-4c6b-8e01-b0d9d1db****'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '微服务空间ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:***wei'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'EcuInfoList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcuEntity' => [
'description' => 'ECU信息列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID。', 'type' => 'string', 'example' => 'vpc-2zef6ob8**********'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1599803995894'],
'IpAddr' => ['description' => 'ECU的内网IP。', 'type' => 'string', 'example' => '192.168.XXX.XXX'],
'AvailableCpu' => ['description' => '可用CPU数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1542692376066'],
'UserId' => ['description' => '关联用户的UID。', 'type' => 'string', 'example' => '****_common_****@aliyun.com'],
'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'i-2zej4i2jdf*********'],
'Mem' => ['description' => '总内存,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'RegionId' => ['description' => '所在地域。', 'type' => 'string', 'example' => 'cn-beijing'],
'EcuId' => ['description' => '这台ECU的唯一标示ID,可以通过在ECS上执行`dmidecode`命令获取。', 'type' => 'string', 'example' => '0de2ebdb-9490-4fc4-be41***************'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'e809****-43d7-4c6b-8e01-b0d9d1db****'],
'DockerEnv' => ['description' => '是否安装了Docker:'."\n"
."\n"
.'- true:已安装。'."\n"
.'- false:未安装。', 'type' => 'boolean', 'example' => 'true'],
'Online' => ['description' => '是否在线:'."\n"
."\n"
.'- true:在线。'."\n"
.'- false:不在线。', 'type' => 'boolean', 'example' => 'true'],
'AvailableMem' => ['description' => '可用内存,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ZoneId' => ['description' => '所在可用区ID。', 'type' => 'string', 'example' => 'cn-beijing-h'],
'Name' => ['description' => '名称。', 'type' => 'string', 'example' => 'test'],
'HeartbeatTime' => ['description' => '上一次心跳检测的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040819'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'staticInfo' => [],
'title' => '获取ECU列表',
'summary' => '获取ECU列表。',
'requestParamsDescription' => '- 如果设置了AppId,则查询指定应用中的ECU列表。'."\n"
.'- 如果未设置AppId,则查询当前地域中的ECU列表。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListApplicationEcu'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"EcuInfoList\\": {\\n \\"EcuEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zef6ob8**********\\",\\n \\"UpdateTime\\": 1599803995894,\\n \\"IpAddr\\": \\"192.168.XXX.XXX\\",\\n \\"AvailableCpu\\": 1,\\n \\"CreateTime\\": 1542692376066,\\n \\"UserId\\": \\"****_common_****@aliyun.com\\",\\n \\"InstanceId\\": \\"i-2zej4i2jdf*********\\",\\n \\"Mem\\": 500,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"EcuId\\": \\"0de2ebdb-9490-4fc4-be41***************\\",\\n \\"Cpu\\": 1,\\n \\"AppId\\": \\"e809****-43d7-4c6b-8e01-b0d9d1db****\\",\\n \\"DockerEnv\\": true,\\n \\"Online\\": true,\\n \\"AvailableMem\\": 200,\\n \\"ZoneId\\": \\"cn-beijing-h\\",\\n \\"Name\\": \\"test\\",\\n \\"HeartbeatTime\\": 1573281040819\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListApplicationEcuResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <RequestId>b197-40ab-9155-7ca7</RequestId>\\n <EcuInfoList>\\n <VpcId>vpc-2zef6ob8**********</VpcId>\\n <UpdateTime>1599803995894</UpdateTime>\\n <IpAddr>192.123.XX.XX</IpAddr>\\n <AvailableCpu>1</AvailableCpu>\\n <CreateTime>1542692376066</CreateTime>\\n <UserId>****_common_****@aliyun.com</UserId>\\n <InstanceId>i-2zej4i2jdf*********</InstanceId>\\n <Mem>500</Mem>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>0de2ebdb-9490-4fc4-be41***************</EcuId>\\n <Cpu>1</Cpu>\\n <AppId>e809****-43d7-4c6b-8e01-b0d9d1db****</AppId>\\n <DockerEnv>true</DockerEnv>\\n <Online>true</Online>\\n <AvailableMem>200</AvailableMem>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <Name>test</Name>\\n <HeartbeatTime>1573281040819</HeartbeatTime>\\n </EcuInfoList>\\n</ListApplicationEcuResponse>","errorExample":""}]',
],
'ListAuthority' => [
'summary' => '查询所有权限。',
'path' => '/pop/v5/account/authority_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57609587-DFA2-41EC-****-*********'],
'AuthorityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Authority' => [
'description' => '权限列表',
'type' => 'array',
'items' => [
'description' => '权限列表对象',
'type' => 'object',
'properties' => [
'GroupId' => ['description' => '权限组ID', 'type' => 'string', 'example' => '1'],
'Name' => ['description' => '权限组名称', 'type' => 'string', 'example' => 'Application management'],
'Description' => ['description' => '权限组描述', 'type' => 'string', 'example' => 'All operations on the application'],
'ActionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Action' => [
'description' => '权限集合',
'type' => 'array',
'items' => [
'description' => '权限集合对象',
'type' => 'object',
'properties' => [
'Code' => ['description' => '权限码', 'type' => 'string', 'example' => '1'],
'Description' => ['description' => '权限描述', 'type' => 'string', 'example' => '创建应用'],
'GroupId' => ['description' => '权限组ID', 'type' => 'string', 'example' => '1'],
'Name' => ['description' => '权限名称', 'type' => 'string', 'example' => '创建应用'],
],
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57609587-DFA2-41EC-****-*********\\",\\n \\"AuthorityList\\": {\\n \\"Authority\\": [\\n {\\n \\"GroupId\\": \\"1\\",\\n \\"Name\\": \\"Application management\\",\\n \\"Description\\": \\"All operations on the application\\",\\n \\"ActionList\\": {\\n \\"Action\\": [\\n {\\n \\"Code\\": \\"1\\",\\n \\"Description\\": \\"创建应用\\",\\n \\"GroupId\\": \\"1\\",\\n \\"Name\\": \\"创建应用\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>57609587-DFA2-41EC-****-*********</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>\\n<AuthorityList>\\n <Authority>\\n <Description>对应用的所有操作</Description>\\n <Name>应用管理</Name>\\n <GroupId>1</GroupId>\\n <ActionList>\\n <Action>\\n <Description>创建应用</Description>\\n <Code>1</Code>\\n <Name>创建应用</Name>\\n <GroupId>1</GroupId>\\n </Action>\\n </ActionList>\\n </Authority>\\n</AuthorityList>","errorExample":""}]',
'title' => '查询所有权限',
'requestParamsDescription' => '无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T08:40:20.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListAuthority'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListAuthority',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListBuildPack' => [
'summary' => '调用ListBuildPack接口获取容器版本列表。',
'path' => '/pop/v5/app/build_pack_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '4FD4-*************'],
'BuildPackList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'BuildPack' => [
'description' => '容器版本列表',
'type' => 'array',
'items' => [
'description' => '容器版本列表对象',
'type' => 'object',
'properties' => [
'PandoraVersion' => ['description' => 'Pandora版本号', 'type' => 'string', 'example' => 'edas.public.sar.V3.5.6'],
'ConfigId' => ['description' => '容器版本ID', 'type' => 'integer', 'format' => 'int64', 'example' => '57'],
'Feature' => ['description' => '公测特性', 'type' => 'string', 'example' => '“”'],
'PandoraDesc' => ['description' => 'Pandora描述', 'type' => 'string', 'example' => 'test'],
'PluginInfo' => ['description' => '插件描述', 'type' => 'string', 'example' => '1'],
'Disabled' => ['description' => '是否被禁用,禁用的不能够设置使用。', 'type' => 'boolean', 'example' => 'false'],
'TengineDownloadUrl' => ['description' => 'Tengine安装程序的下载地址', 'type' => 'string', 'example' => 'http://edas-hz.oss-cn-hangzhou.aliyuncs.com/components/tengine/3.4.7/tengine.sh'],
'TomcatPath' => ['description' => 'Tomcat目录名称'."\n", 'type' => 'string', 'example' => 'taobao-tomcat-production-7.0.59.3'],
'TomcatDesc' => ['description' => 'Tomcat描述', 'type' => 'string', 'example' => '1.更新config-client插件,修复多租户场景未读缓存的问题;2.更新hsf插件,修复pandora qos命令不能执行、hsf订阅服务数多的情况下可能会遇到服务地址找不到的问题;3.升级所有用到fastjson的插件到sec06安全版本。'],
'SupportFeatures' => ['description' => '支持的特性', 'type' => 'string', 'example' => 'tengine,fatjar,restful,eip_nodeport,dpath'],
'TomcatDownloadUrl' => ['description' => 'Tomcat安装程序的下载地址', 'type' => 'string', 'example' => 'http://edas-hz.oss-cn-hangzhou.aliyuncs.com/edas-container/7.0.92/taobao-tomcat-production-7.0.92.tar.gz'],
'TomcatVersion' => ['description' => 'Tomcat版本号', 'type' => 'string', 'example' => '8.5.63'],
'PandoraDownloadUrl' => ['description' => 'Pandora下载地址', 'type' => 'string', 'example' => 'http://edas-hz.oss-cn-hangzhou.aliyuncs.com/edas-plugins/edas.sar.V3.5.6/taobao-hsf.tgz'],
'PackVersion' => ['description' => '应用版本号', 'type' => 'string', 'example' => '3.5.6'],
'MultipleTenant' => ['description' => '是否支持多租户', 'type' => 'boolean', 'example' => 'true'],
'TengineImageId' => ['description' => '容器对应的Tengine镜像ID', 'type' => 'string', 'example' => 'registry.aliyuncs.com/edas/****-*********-*****:*.*.*'],
'WithTengine' => ['description' => '是否支持流量管理', 'type' => 'boolean', 'example' => 'true'],
'ImageId' => ['description' => '容器对应的基础镜像ID', 'type' => 'string', 'example' => 'registry.aliyuncs.com/ed**/****-*********:*.*.*'],
'ScriptName' => ['description' => 'Shell脚本名称', 'type' => 'string', 'example' => 'default'],
'ScriptVersion' => ['description' => 'Shell脚本版本', 'type' => 'string', 'example' => '1.0.3'],
],
],
],
],
'description' => '',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4FD4-*************\\",\\n \\"BuildPackList\\": {\\n \\"BuildPack\\": [\\n {\\n \\"PandoraVersion\\": \\"edas.public.sar.V3.5.6\\",\\n \\"ConfigId\\": 57,\\n \\"Feature\\": \\"“”\\",\\n \\"PandoraDesc\\": \\"test\\",\\n \\"PluginInfo\\": \\"1\\",\\n \\"Disabled\\": false,\\n \\"TengineDownloadUrl\\": \\"http://edas-hz.oss-cn-hangzhou.aliyuncs.com/components/tengine/3.4.7/tengine.sh\\",\\n \\"TomcatPath\\": \\"taobao-tomcat-production-7.0.59.3\\",\\n \\"TomcatDesc\\": \\"1.更新config-client插件,修复多租户场景未读缓存的问题;2.更新hsf插件,修复pandora qos命令不能执行、hsf订阅服务数多的情况下可能会遇到服务地址找不到的问题;3.升级所有用到fastjson的插件到sec06安全版本。\\",\\n \\"SupportFeatures\\": \\"tengine,fatjar,restful,eip_nodeport,dpath\\",\\n \\"TomcatDownloadUrl\\": \\"http://edas-hz.oss-cn-hangzhou.aliyuncs.com/edas-container/7.0.92/taobao-tomcat-production-7.0.92.tar.gz\\",\\n \\"TomcatVersion\\": \\"8.5.63\\",\\n \\"PandoraDownloadUrl\\": \\"http://edas-hz.oss-cn-hangzhou.aliyuncs.com/edas-plugins/edas.sar.V3.5.6/taobao-hsf.tgz\\",\\n \\"PackVersion\\": \\"3.5.6\\",\\n \\"MultipleTenant\\": true,\\n \\"TengineImageId\\": \\"registry.aliyuncs.com/edas/****-*********-*****:*.*.*\\",\\n \\"WithTengine\\": true,\\n \\"ImageId\\": \\"registry.aliyuncs.com/ed**/****-*********:*.*.*\\",\\n \\"ScriptName\\": \\"default\\",\\n \\"ScriptVersion\\": \\"1.0.3\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4FD4-*************</RequestId>\\n<Message>success</Message>\\n<BuildPackList>\\n <BuildPack>\\n <TomcatDesc>1.更新config-client插件,修复多租户场景未读缓存的问题;2.更新hsf插件,修复pandora qos命令不能执行、hsf订阅服务数多的情况下可能会遇到服务地址找不到的问题;3.升级所有用到fastjson的插件到sec06安全版本。</TomcatDesc>\\n <ScriptVersion>1.0.3</ScriptVersion>\\n <WithTengine>true</WithTengine>\\n <TomcatDownloadUrl>http://edas.oss-cn-hangzhou.aliyuncs.com/edas-container/7.0.92/taobao-tomcat-production-7.0.92.tar.gz</TomcatDownloadUrl>\\n <Feature>“”</Feature>\\n <PandoraVersion>edas.public.sar.V3.5.6</PandoraVersion>\\n <PackVersion>3.5.6</PackVersion>\\n <MultipleTenant>true</MultipleTenant>\\n <PandoraDownloadUrl>http://edas.oss-cn-hangzhou.aliyuncs.com/edas-plugins/edas.sar.V3.5.6/taobao-hsf.tgz</PandoraDownloadUrl>\\n <PandoraDesc>test</PandoraDesc>\\n <TomcatPath>taobao-tomcat-production-7.0.59.3</TomcatPath>\\n <ScriptName>default</ScriptName>\\n <ImageId>registry.aliyuncs.com/ed**/****-*********:*.*.*</ImageId>\\n <TengineDownloadUrl>http://edas.oss-cn-hangzhou.aliyuncs.com/components/tengine/3.4.7/tengine.sh</TengineDownloadUrl>\\n <PluginInfo>1</PluginInfo>\\n <TomcatVersion>8.5.63</TomcatVersion>\\n <ConfigId>57</ConfigId>\\n <Disabled>false</Disabled>\\n <TengineImageId>registry.aliyuncs.com/edas/****-*********-*****:*.*.*</TengineImageId>\\n <SupportFeatures>tengine,fatjar,restful,eip_nodeport,dpath</SupportFeatures>\\n </BuildPack>\\n</BuildPackList>\\n<Code>200</Code>","errorExample":""}]',
'title' => '获取容器版本列表',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T08:40:20.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListBuildPack'],
],
],
'ramActions' => [],
],
'ListCluster' => [
'summary' => '获取集群列表。',
'path' => '/pop/v5/resource/cluster_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间的ID。查询命名空间ID,请参见[ListUserDefineRegion](~~149377~~)。'."\n"
.'- 未设置该参数,则查询默认命名空间的集群列表。'."\n"
.'- 设置该参数,则查询指定命名空间的集群列表。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:test'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => '资源组ID。查询资源组ID,请参见[ListResourceGroup](~~62055~~)。'."\n"
.'- 未设置该参数,则查询默认资源组的集群列表。'."\n"
.'- 设置该参数,则查询指定资源组的集群列表。', 'type' => 'string', 'required' => false, 'example' => '461'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '1053-08e4-47a5-b2ab-5c0323de****'],
'ClusterList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Cluster' => [
'description' => '集群列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID', 'type' => 'string', 'example' => 'vpc-23727****'],
'OversoldFactor' => ['description' => 'Docker集群支持的CPU超卖比例。'."\n"
.'- 1:1:1比例,不超卖'."\n"
.'- 2:1:2比例'."\n"
.'- 4:1:4比例'."\n"
.'- 8:1:8比例', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'UpdateTime' => ['description' => '最后变更时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1533820823203'],
'MemUsed' => ['description' => '已使用内存,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'IaasProvider' => ['description' => '集群供应商', 'type' => 'string', 'example' => 'ALIYUN'],
'CreateTime' => ['description' => '创建时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1502888064561'],
'CpuUsed' => ['description' => '已使用CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Mem' => ['description' => '总内存,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '3072'],
'RegionId' => ['description' => '地域ID', 'type' => 'string', 'example' => 'cn-beijing'],
'Cpu' => ['description' => '总CPU核数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'CsClusterId' => ['description' => '容器服务Kubernetes版中创建的K8s集群的ID', 'type' => 'string', 'example' => 'c2ce************b9203a9'],
'NetworkMode' => ['description' => '网络类型。'."\n"
.'- 1:经典网络'."\n"
.'- 2:VPC', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Description' => ['description' => '集群描述', 'type' => 'string', 'example' => 'Test cluster'],
'ClusterType' => ['description' => '集群类型。'."\n"
.'- 0:普通Docker集群'."\n"
.'- 1:Swarm集群'."\n"
.'- 2:ECS集群'."\n"
.'- 3:EDAS自建K8s集群'."\n"
.'- 4:Pandora自动注册应用集群'."\n"
.'- 5:容器服务K8s集群', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ResourceGroupId' => ['description' => '资源组ID', 'type' => 'string', 'example' => '461'],
'ClusterName' => ['description' => '集群名称', 'type' => 'string', 'example' => 'cluster-test'],
'NodeNum' => ['description' => '实例数量', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'ClusterId' => ['description' => 'EDAS中的集群ID', 'type' => 'string', 'example' => 'b98b5919-c111-4dad-9f74-7233********'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1053-08e4-47a5-b2ab-5c0323de****\\",\\n \\"ClusterList\\": {\\n \\"Cluster\\": [\\n {\\n \\"VpcId\\": \\"vpc-23727****\\",\\n \\"OversoldFactor\\": 1,\\n \\"UpdateTime\\": 1533820823203,\\n \\"MemUsed\\": 200,\\n \\"IaasProvider\\": \\"ALIYUN\\",\\n \\"CreateTime\\": 1502888064561,\\n \\"CpuUsed\\": 1,\\n \\"Mem\\": 3072,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"Cpu\\": 2,\\n \\"CsClusterId\\": \\"c2ce************b9203a9\\",\\n \\"NetworkMode\\": 1,\\n \\"Description\\": \\"Test cluster\\",\\n \\"ClusterType\\": 2,\\n \\"ResourceGroupId\\": \\"461\\",\\n \\"ClusterName\\": \\"cluster-test\\",\\n \\"NodeNum\\": 2,\\n \\"ClusterId\\": \\"b98b5919-c111-4dad-9f74-7233********\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ClusterList>\\n <Cluster>\\n <OversoldFactor>1</OversoldFactor>\\n <Description>测试集群</Description>\\n <ResourceGroupId>461</ResourceGroupId>\\n <NodeNum>2</NodeNum>\\n <ClusterId>b98b5919-c111-4dad-9f74-7233********</ClusterId>\\n <CreateTime>1502888064561</CreateTime>\\n <Cpu>2</Cpu>\\n <NetworkMode>1</NetworkMode>\\n <ClusterType>2</ClusterType>\\n <CsClusterId>c2ce************b9203a9</CsClusterId>\\n <MemUsed>200</MemUsed>\\n <Mem>3072</Mem>\\n <VpcId>vpc-23727****</VpcId>\\n <UpdateTime>1533820823203</UpdateTime>\\n <ClusterName>cluster-test</ClusterName>\\n <IaasProvider>ALIYUN</IaasProvider>\\n <RegionId>cn-beijing</RegionId>\\n <CpuUsed>1</CpuUsed>\\n </Cluster>\\n</ClusterList>\\n<RequestId>1053-08e4-47a5-b2ab-5c0323de****</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
'title' => '获取集群列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:02:12.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListCluster'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListClusterMembers' => [
'path' => '/pop/v5/resource/cluster_member_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。可以调用ListCluster来获取,具体操作,请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '52984524-6d48-4bbd-85f2-a34b0e5b****'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => '分页查询时,当前显示的页面数,不设置的情况下默认显示第1页。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询时,若不设置,则显示该集群的所有ECS列表;若设置,则按照设置的pagesize来分页显示ECS列表。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
[
'name' => 'EcsList',
'in' => 'query',
'schema' => ['description' => 'ECS列表实例数。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'ClusterMemberPage' => [
'description' => '集群中包含的ECS实例页面。',
'type' => 'object',
'properties' => [
'CurrentPage' => ['description' => '分页查询时,当前显示的页面数,不设置的情况下默认显示第1页。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '所有实例分页显示的页面数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalSize' => ['description' => '所有的ECS实例按照PageSize的大小进行分页显示时,总的显示页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'ClusterMemberList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ClusterMember' => [
'description' => '集群中包含的实例列表。',
'type' => 'array',
'items' => [
'description' => '集群实例对象。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '实例状态:'."\n"
."\n"
.'- 1:表示运行中。'."\n"
.'- 0:表示转化中。'."\n"
.'- -1:表示转化失败。'."\n"
.'- -2:表示离线。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281041113'],
'EcuId' => ['description' => '这台ECU的唯一标示ID,可以通过在ECS上执行`dmidecode`获取。', 'type' => 'string', 'example' => '70ed3f59-b476-49aa-be09-9e6c375d****'],
'EcsId' => ['description' => 'ECS ID。', 'type' => 'string', 'example' => 'i-2zej4i2jdf3ntwhj****'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281038175'],
'ClusterMemberId' => ['description' => '实例集群ID。', 'type' => 'string', 'example' => 'adb03eeb-3adf-4d7e-afe1-03d1ad45****'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '52984524-6d48-4bbd-85f2-a34b0e5b****'],
'PrivateIp' => ['title' => 'ECS私网IP', 'description' => 'ECS私网IP', 'type' => 'string', 'example' => '172.16.XXX.XXX'],
],
],
],
],
'description' => '',
],
],
],
],
],
],
],
'title' => '获取ECS实例列表',
'summary' => '获取ECS实例列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-07T08:49:48.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListClusterMembers'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"ClusterMemberPage\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 5,\\n \\"ClusterMemberList\\": {\\n \\"ClusterMember\\": [\\n {\\n \\"Status\\": 1,\\n \\"UpdateTime\\": 1573281041113,\\n \\"EcuId\\": \\"70ed3f59-b476-49aa-be09-9e6c375d****\\",\\n \\"EcsId\\": \\"i-2zej4i2jdf3ntwhj****\\",\\n \\"CreateTime\\": 1573281038175,\\n \\"ClusterMemberId\\": \\"adb03eeb-3adf-4d7e-afe1-03d1ad45****\\",\\n \\"ClusterId\\": \\"52984524-6d48-4bbd-85f2-a34b0e5b****\\",\\n \\"PrivateIp\\": \\"172.16.XXX.XXX\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListClusterMembersResponse>\\n <Message>success</Message>\\n <RequestId>b197-40ab-9155-****</RequestId>\\n <ClusterMemberPage>\\n <ClusterMemberList>\\n <ClusterMember>\\n <Status>1</Status>\\n <ClusterId>52984524-6d48-4bbd-85f2-a34b0e5b****</ClusterId>\\n <CreateTime>1573281038175</CreateTime>\\n <UpdateTime>1573281041113</UpdateTime>\\n <EcuId>70ed3f59-b476-49aa-be09-9e6c375d****</EcuId>\\n <ClusterMemberId>adb03eeb-3adf-4d7e-afe1-03d1ad45****</ClusterMemberId>\\n <EcsId>i-2zej4i2jdf3ntwhj****</EcsId>\\n </ClusterMember>\\n </ClusterMemberList>\\n <PageSize>10</PageSize>\\n <CurrentPage>1</CurrentPage>\\n <TotalSize>5</TotalSize>\\n </ClusterMemberPage>\\n <Code>200</Code>\\n</ListClusterMembersResponse>","errorExample":""}]',
],
'ListComponents' => [
'summary' => '调用ListComponents接口查询组件列表,本API适用于ECS集群中的应用。',
'path' => '/pop/v5/resource/components',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'ComponentList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Component' => [
'description' => '组件列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '组件类型:'."\n"
.'- JDK'."\n"
.'- TOMCAT'."\n"
.'- TENGINE', 'type' => 'string', 'example' => 'JDK'],
'ComponentKey' => ['description' => '组件Key。', 'type' => 'string', 'example' => 'JDK 7'],
'Version' => ['description' => '组件版本。', 'type' => 'string', 'example' => 'oraclejdk7'],
'Expired' => ['description' => '是否过期:'."\n"
.'- false:未过期'."\n"
.'- true:已过期', 'type' => 'boolean', 'example' => 'false'],
'ComponentId' => ['description' => '组件ID。', 'type' => 'string', 'example' => '1'],
'Desc' => ['description' => '组件描述。', 'type' => 'string', 'example' => 'JDK 7'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '查询组件列表',
'requestParamsDescription' => '无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:02:12.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListComponents'],
],
],
'ramActions' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"ComponentList\\": {\\n \\"Component\\": [\\n {\\n \\"Type\\": \\"JDK\\",\\n \\"ComponentKey\\": \\"JDK 7\\",\\n \\"Version\\": \\"oraclejdk7\\",\\n \\"Expired\\": false,\\n \\"ComponentId\\": \\"1\\",\\n \\"Desc\\": \\"JDK 7\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ComponentList>\\n <Component>\\n <Desc>JDK 7</Desc>\\n <Type>JDK</Type>\\n <Version>oraclejdk7</Version>\\n <ComponentKey>JDK 7</ComponentKey>\\n <Expired>false</Expired>\\n <ComponentId>1</ComponentId>\\n </Component>\\n</ComponentList>\\n<Code>200</Code>","errorExample":""}]',
],
'ListConfigTemplates' => [
'summary' => '调用ListConfigTemplates接口获取配置模板列表。',
'path' => '/pop/v5/config_template',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['title' => '页码', 'description' => '页码,从1开始计数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['title' => '页大小', 'description' => '页大小。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
],
[
'name' => 'Id',
'in' => 'query',
'schema' => ['title' => '配置模板ID', 'description' => '配置模板ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3d84efaf-37d9-49fb-a3a8-b38d5c******'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['title' => '配置模板名称', 'description' => '配置模板名称。', 'type' => 'string', 'required' => false, 'example' => 'config-tmpl-1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '请求ID', 'description' => '请求ID。', 'type' => 'string', 'example' => '4D9F-DR94-FD****************'],
'Code' => ['title' => '响应码', 'description' => '接口状态或POP错误码。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['title' => '响应码文本描述', 'description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'title' => '查询结果',
'description' => '查询结果。',
'type' => 'object',
'properties' => [
'CurrentPage' => ['title' => '当前分页', 'description' => '当前分页号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['title' => '页大小', 'description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'TotalSize' => ['title' => '配置模板总数', 'description' => '配置模板总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Result' => [
'title' => '配置模板列表',
'description' => '配置模板列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Id' => ['title' => '配置模板ID', 'description' => '配置模板ID。', 'type' => 'string', 'example' => '3d84efaf-37d9-49fb-a3a8-b38d5c2b460c'],
'Name' => ['title' => '配置模板名称', 'description' => '配置模板名称。', 'type' => 'string', 'example' => 'config-tmpl-1'],
'Format' => ['title' => '模板数据格式', 'description' => '模板数据格式。', 'type' => 'string', 'example' => 'JSON'],
'Description' => ['title' => '模板描述', 'description' => '模板描述。', 'type' => 'string', 'example' => 'Test configuration template'],
'Content' => ['title' => '模板内容', 'description' => '模板内容。', 'type' => 'string', 'example' => '{"name":"William"}'],
'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1638171689626'],
'GmtModified' => ['title' => '更新时间', 'description' => '更新时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1638171689626'],
],
'description' => '',
],
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message ', 'errorMessage' => 'You are not authorized to perform the operation. ', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4D9F-DR94-FD****************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalSize\\": 100,\\n \\"Result\\": [\\n {\\n \\"Id\\": \\"3d84efaf-37d9-49fb-a3a8-b38d5c2b460c\\",\\n \\"Name\\": \\"config-tmpl-1\\",\\n \\"Format\\": \\"JSON\\",\\n \\"Description\\": \\"Test configuration template\\",\\n \\"Content\\": \\"{\\\\\\"name\\\\\\":\\\\\\"William\\\\\\"}\\",\\n \\"GmtCreate\\": 1638171689626,\\n \\"GmtModified\\": 1638171689626\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取配置模板列表',
'changeSet' => [
['createdAt' => '2022-01-13T07:39:34.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConfigTemplates'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListConfigTemplates',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListConsumedServices' => [
'path' => '/pop/v5/service/listConsumedServices',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'a66c5d1f-****-****-8c2b-6925f781b203'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'ConsumedServicesList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ListConsumedServices' => [
'description' => '消费的服务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DockerApplication' => ['description' => '是否是Docker应用:'."\n"
.'- true: 是。'."\n"
.'- false:否。', 'type' => 'boolean', 'example' => 'true'],
'Type' => ['description' => '消费的服务类型。', 'type' => 'string', 'example' => 'HSF'],
'Version' => ['description' => '消费的服务版本。', 'type' => 'string', 'example' => '1.0'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'Group2Ip' => ['description' => '保留字段。', 'type' => 'string', 'example' => '""'],
'Name' => ['description' => '消费的服务名称。', 'type' => 'string', 'example' => 'service'],
'Ips' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ip' => [
'type' => 'array',
'items' => ['description' => '服务订阅地址。', 'type' => 'string', 'example' => '102.XX.XX.23'],
'description' => '',
],
],
'description' => '',
],
'Groups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'group' => [
'type' => 'array',
'items' => ['description' => '消费的服务对应的组别。', 'type' => 'string', 'example' => '”group“'],
'description' => '',
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '查询消费的服务',
'summary' => '调用ListConsumedServices查询消费的服务。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:02:12.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConsumedServices'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NamespaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"ConsumedServicesList\\": {\\n \\"ListConsumedServices\\": [\\n {\\n \\"DockerApplication\\": true,\\n \\"Type\\": \\"HSF\\",\\n \\"Version\\": \\"1.0\\",\\n \\"AppId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"Group2Ip\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Name\\": \\"service\\",\\n \\"Ips\\": {\\n \\"ip\\": [\\n \\"102.XX.XX.23\\"\\n ]\\n },\\n \\"Groups\\": {\\n \\"group\\": [\\n \\"”group“\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ConsumedServicesList>\\n</ConsumedServicesList>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ListConvertableEcu' => [
'path' => '/pop/v5/resource/convertable_ecu_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'clusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。获取集群ID,请参见[ListCluster](~~154995~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b3e3f77b-462e-****-****-bec8727a****'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'InstanceList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Instance' => [
'description' => '可导入该集群的ECS实例列表。',
'type' => 'array',
'items' => [
'description' => 'ECS实例对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-2zef6ob8m************'],
'Status' => ['description' => '实例状态:'."\n"
.'- Pending:创建中。'."\n"
.'- Running:运行中。'."\n"
.'- Starting:启动中。'."\n"
.'- Stopping:停止中。'."\n"
.'- Stopped:已停止。', 'type' => 'string', 'example' => ' Running'],
'PrivateIp' => ['description' => 'ECS实例私网IP,当ECS网络类型为VPC专有网络类型时。 ', 'type' => 'string', 'example' => '192.XX.XX.123'],
'Expired' => ['description' => '是否过期。', 'type' => 'boolean', 'example' => 'false'],
'InstanceId' => ['description' => 'ECS实例ID。', 'type' => 'string', 'example' => 'i-2ze7s2v0b***********'],
'Mem' => ['description' => 'ECS实例MEM。', 'type' => 'integer', 'format' => 'int32', 'example' => '4096'],
'RegionId' => ['description' => '所在地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'VpcName' => ['description' => 'VPC网络名称。', 'type' => 'string', 'example' => 'jianwei-test'],
'EcuId' => ['description' => 'ECU ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'Cpu' => ['description' => 'ECS实例CPU。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'InnerIp' => ['description' => 'ECS实例内网IP,当ECS网络类型为专有网络类型时。', 'type' => 'string', 'example' => '192.168.13.xx'],
'Eip' => ['description' => 'ECS弹性公网IP,可更换绑定目标。', 'type' => 'string', 'example' => '13.xx.xxx.xx'],
'InstanceName' => ['description' => 'ECS实例名称。', 'type' => 'string', 'example' => 'worker-k8s'],
'PublicIp' => ['description' => 'ECS实例公网IP,固定给该ECS实例使用。 ', 'type' => 'string', 'example' => '13.xx.xx.xxx'],
],
],
],
],
'description' => '',
],
],
],
],
],
'errorCodes' => [],
'title' => '列出可导入到指定集群的ECS实例列表',
'summary' => '调用ListConvertableEcu接口列出可导入到指定集群的ECS实例列表。本API适用于ECS集群。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConvertableEcu'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"InstanceList\\": {\\n \\"Instance\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zef6ob8m************\\",\\n \\"Status\\": \\" Running\\",\\n \\"PrivateIp\\": \\"192.XX.XX.123\\",\\n \\"Expired\\": false,\\n \\"InstanceId\\": \\"i-2ze7s2v0b***********\\",\\n \\"Mem\\": 4096,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"VpcName\\": \\"jianwei-test\\",\\n \\"EcuId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"Cpu\\": 2,\\n \\"InnerIp\\": \\"192.168.13.xx\\",\\n \\"Eip\\": \\"13.xx.xxx.xx\\",\\n \\"InstanceName\\": \\"worker-k8s\\",\\n \\"PublicIp\\": \\"13.xx.xx.xxx\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<InstanceList>\\n <Instance>\\n <Status> Running</Status>\\n <VpcName>test</VpcName>\\n <Cpu>2</Cpu>\\n <InnerIp/>\\n <Mem>4096</Mem>\\n <RegionId>cn-beijing</RegionId>\\n <Expired>false</Expired>\\n <InstanceId>i-2ze7s2v0b789k60p****</InstanceId>\\n <PrivateIp>192.168.0.86</PrivateIp>\\n <Eip/>\\n <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>\\n <InstanceName>worker-k8s</InstanceName>\\n </Instance>\\n</InstanceList>","errorExample":""}]',
],
'ListDeployGroup' => [
'summary' => '调用ListDeployGroup接口获取部署分组列表。',
'path' => '/pop/v5/app/deploy_group_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413-****-************'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '3FDE-DS9R-*********************'],
'DeployGroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DeployGroup' => [
'description' => '部署分组列表。',
'type' => 'array',
'items' => [
'description' => '部署分组对象。',
'type' => 'object',
'properties' => [
'VServerGroupId' => ['description' => '部署分组关联的私网SLB的虚拟服务器组ID。', 'type' => 'string', 'example' => 'rsp-cige6******'],
'Status' => ['description' => '分组状态:'."\n"
.'- 0:准备。'."\n"
.'- 1:执行中。'."\n"
.'- 2:执行成功。'."\n"
.'- 3:执行失败 。'."\n"
.'- 6:终止 。'."\n"
.'- 10:系统异常执行失败。', 'type' => 'string', 'example' => '2'],
'CpuRequest' => ['description' => '应用运行过程中,应用实例需要申请的CPU配额,单位:核数,设置为0表示不限制。', 'type' => 'string', 'example' => '1'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627695779'],
'MemoryRequest' => ['description' => '应用运行过程中,应用实例的内存配额。单位:MB,设置为0表示不限制。', 'type' => 'string', 'example' => '512'],
'NameSpace' => ['description' => '命名空间。', 'type' => 'string', 'example' => 'ping****est'],
'AppVersionId' => ['description' => '分组部署记录ID。', 'type' => 'string', 'example' => 'changeorder_a**_*******_**'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627695779'],
'DeploymentName' => ['description' => '部署名称。', 'type' => 'string', 'example' => 'test'],
'PreStop' => ['description' => '停止前脚本。', 'type' => 'string', 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
'PackageUrl' => ['description' => '部署包地址。', 'type' => 'string', 'example' => 'http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar'],
'PackageVersion' => ['description' => '部署包版本。', 'type' => 'string', 'example' => 'E'],
'BaseComponentMetaName' => ['description' => '基础组件名称。', 'type' => 'string', 'example' => 'k8s-sc-consumer-****'],
'CsClusterId' => ['description' => '容器集群ID。', 'type' => 'string', 'example' => 'c66e65950db****cba92f17434df1****'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
'LastUpdateTime' => ['description' => '最近更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1587888503825'],
'Env' => ['description' => '容器服务集群ID。', 'type' => 'string', 'example' => '497806cb-****-6a7'],
'CpuLimit' => ['description' => '应用运行过程中,应用实例的CPU限制,单位:核数。', 'type' => 'string', 'example' => '400'],
'GroupType' => ['description' => '分组类型:'."\n"
.'- 0:默认分组。'."\n"
.'- 1:流量管理没有启用灰度。'."\n"
.'- 2:流量管理启用灰度。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '0d247b93-8d62-4e34-****-************'],
'PostStart' => ['description' => '启动后脚本。', 'type' => 'string', 'example' => '{\\"exec\\":{\\"command\\":[\\"ls\\",\\"/\\"]}}"'],
'Labels' => ['description' => '标签。', 'type' => 'string', 'example' => 'test'],
'MemoryLimit' => ['description' => '应用运行过程中,应用实例的内存限制。单位:MB,设置为0表示不限制。', 'type' => 'string', 'example' => '0'],
'Strategy' => ['description' => '限流策略(保留字段)。', 'type' => 'string', 'example' => 'RollingUpdate'],
'Selector' => ['description' => 'EDAS容器服务K8s集群中部署的应用的ID。', 'type' => 'string', 'example' => '53dd85cc-25b4-4d0e-****-6bf5465****4'],
'GroupId' => ['description' => '分组ID。', 'type' => 'string', 'example' => '577f4c50-16ee-43d8-****-************'],
'GroupName' => ['description' => '分组名称。', 'type' => 'string', 'example' => '_DEFAULT_GROUP'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'doc-test'],
'PackageVersionId' => ['description' => '该分组部署的版本ID。', 'type' => 'string', 'example' => 'a7d48fe8-ad8f-****-89bd-74cc1ee6****'],
'Reversion' => ['description' => '应用版本,取值在0~7之间逐次递增。', 'type' => 'string', 'example' => '2'],
'VExtServerGroupId' => ['description' => '部署分组关联的公网SLB的虚拟服务器组ID。', 'type' => 'string', 'example' => 'rsp-cige6******'],
'PackagePublicUrl' => ['description' => '部署包对外下载地址。', 'type' => 'string', 'example' => 'http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar'],
'EphemeralStorageRequest' => ['description' => '临时存储最小资源需求,单位:GB。值为0表示不限制。', 'type' => 'string', 'example' => '4'],
'EphemeralStorageLimit' => ['description' => '临时存储资源需求上限,单位:GB。值为0表示不限制。', 'type' => 'string', 'example' => '8'],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '获取部署分组列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-07-12T09:36:15.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListDeployGroup'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"3FDE-DS9R-*********************\\",\\n \\"DeployGroupList\\": {\\n \\"DeployGroup\\": [\\n {\\n \\"VServerGroupId\\": \\"rsp-cige6******\\",\\n \\"Status\\": \\"2\\",\\n \\"CpuRequest\\": \\"1\\",\\n \\"UpdateTime\\": 1573627695779,\\n \\"MemoryRequest\\": \\"512\\",\\n \\"NameSpace\\": \\"ping****est\\",\\n \\"AppVersionId\\": \\"changeorder_a**_*******_**\\",\\n \\"CreateTime\\": 1573627695779,\\n \\"DeploymentName\\": \\"test\\",\\n \\"PreStop\\": \\"{\\\\\\\\\\\\\\"exec\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"command\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"ls\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\"]}}\\\\\\"\\",\\n \\"PackageUrl\\": \\"http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar\\",\\n \\"PackageVersion\\": \\"E\\",\\n \\"BaseComponentMetaName\\": \\"k8s-sc-consumer-****\\",\\n \\"CsClusterId\\": \\"c66e65950db****cba92f17434df1****\\",\\n \\"AppId\\": \\"3616cdca-4f92-4413-****-************\\",\\n \\"LastUpdateTime\\": 1587888503825,\\n \\"Env\\": \\"497806cb-****-6a7\\",\\n \\"CpuLimit\\": \\"400\\",\\n \\"GroupType\\": 1,\\n \\"ClusterId\\": \\"0d247b93-8d62-4e34-****-************\\",\\n \\"PostStart\\": \\"{\\\\\\\\\\\\\\"exec\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"command\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\"ls\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\"]}}\\\\\\"\\",\\n \\"Labels\\": \\"test\\",\\n \\"MemoryLimit\\": \\"0\\",\\n \\"Strategy\\": \\"RollingUpdate\\",\\n \\"Selector\\": \\"53dd85cc-25b4-4d0e-****-6bf5465****4\\",\\n \\"GroupId\\": \\"577f4c50-16ee-43d8-****-************\\",\\n \\"GroupName\\": \\"_DEFAULT_GROUP\\",\\n \\"ClusterName\\": \\"doc-test\\",\\n \\"PackageVersionId\\": \\"a7d48fe8-ad8f-****-89bd-74cc1ee6****\\",\\n \\"Reversion\\": \\"2\\",\\n \\"VExtServerGroupId\\": \\"rsp-cige6******\\",\\n \\"PackagePublicUrl\\": \\"http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar\\",\\n \\"EphemeralStorageRequest\\": \\"4\\",\\n \\"EphemeralStorageLimit\\": \\"8\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DeployGroupList>\\n <DeployGroup>\\n <GroupName>_DEFAULT_GROUP</GroupName>\\n <MemoryRequest>512</MemoryRequest>\\n <NameSpace>ping****est</NameSpace>\\n <AppVersionId>“”</AppVersionId>\\n <Env>497806cb-****-6a7</Env>\\n <CsClusterId>c66e65950db****cba92f17434df1****</CsClusterId>\\n <PackageVersion>E</PackageVersion>\\n <Reversion>2</Reversion>\\n <PreStop>\\"\\"</PreStop>\\n <LastUpdateTime>1587888503825</LastUpdateTime>\\n <ClusterName>doc-test</ClusterName>\\n <Selector>53dd85cc-25b4-4d0e-****-6bf5465****4</Selector>\\n <Status>2</Status>\\n <DeploymentName>test</DeploymentName>\\n <CpuLimit>400</CpuLimit>\\n <ClusterId>0d247b93-8d62-4e34-****-************</ClusterId>\\n <CreateTime>1573627695779</CreateTime>\\n <PostStart>\\"\\"</PostStart>\\n <Labels>test</Labels>\\n <PackageVersionId>“”</PackageVersionId>\\n <BaseComponentMetaName>k8s-sc-consumer-****</BaseComponentMetaName>\\n <GroupId>577f4c50-16ee-43d8-****-************</GroupId>\\n <MemoryLimit>0</MemoryLimit>\\n <AppId>3616cdca-4f92-4413-****-************</AppId>\\n <GroupType>1</GroupType>\\n <UpdateTime>1573627695779</UpdateTime>\\n <PackageUrl>http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar</PackageUrl>\\n <Strategy>RollingUpdate</Strategy>\\n <CpuRequest>1</CpuRequest>\\n <PackagePublicUrl>http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar</PackagePublicUrl>\\n </DeployGroup>\\n</DeployGroupList>\\n<Message>sucess</Message>\\n<RequestId>3FDE-DS9R-*********************</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'ListEcsNotInCluster' => [
'path' => '/pop/v5/resource/ecs_not_in_cluster',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'NetworkMode',
'in' => 'query',
'schema' => ['description' => '网络类型。'."\n"
.'- 1:经典网络'."\n"
.'- 2:VPC网络', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '2'],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => 'VPC ID,当NetworkMode为2时,该参数为必选。', 'type' => 'string', 'required' => false, 'example' => 'vpc-2zef6ob8****v8x3q46kp'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'EcsEntityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcsEntity' => [
'description' => 'ECS列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC实例的ID。', 'type' => 'string', 'example' => 'vpc-2zef6ob8mrlzv8x3q****'],
'Status' => ['description' => '实例状态。'."\n"
.'- **Pending**:创建中'."\n"
.'- **Running**:运行中'."\n"
.'- **Starting**:启动中'."\n"
.'- **Stopping**:停止中'."\n"
.'- **Stopped**:已停止', 'type' => 'string', 'example' => ' Running'],
'PrivateIp' => ['description' => 'ECS实例的私网IP。', 'type' => 'string', 'example' => '192.168.*.**'],
'Expired' => ['description' => 'ECS是否过期。'."\n"
."\n"
.'- **true**:已过期'."\n"
."\n"
.'- **false**:未过期', 'type' => 'boolean', 'example' => 'false'],
'InstanceId' => ['description' => 'ECS实例的ID。', 'type' => 'string', 'example' => 'i-2ze7s2v0b***********'],
'Mem' => ['description' => '内存大小(B)。', 'type' => 'integer', 'format' => 'int32', 'example' => '4096'],
'RegionId' => ['description' => 'ECS实例所在地域的ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'VpcName' => ['description' => 'VPC实例名称。', 'type' => 'string', 'example' => 'test'],
'Cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'InnerIp' => ['description' => 'ECS实例内网IP。', 'type' => 'string', 'example' => '192.168.20.113'],
'Eip' => ['description' => 'ECS实例的弹性公网IP', 'type' => 'string', 'example' => '139.30.xxx.xx'],
'InstanceName' => ['description' => 'ECS实例名称。', 'type' => 'string', 'example' => 'worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****'],
'PublicIp' => ['description' => 'ECS实例的公网IP。', 'type' => 'string', 'example' => '131.30.xxx.xx'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取所有未导入集群的 ECS',
'summary' => '调用ListEcsNotInCluster接口获取所有未导入集群的ECS实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:02:12.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListEcsNotInCluster'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListEcsNotInCluster',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"EcsEntityList\\": {\\n \\"EcsEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zef6ob8mrlzv8x3q****\\",\\n \\"Status\\": \\" Running\\",\\n \\"PrivateIp\\": \\"192.168.*.**\\",\\n \\"Expired\\": false,\\n \\"InstanceId\\": \\"i-2ze7s2v0b***********\\",\\n \\"Mem\\": 4096,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"VpcName\\": \\"test\\",\\n \\"Cpu\\": 2,\\n \\"InnerIp\\": \\"192.168.20.113\\",\\n \\"Eip\\": \\"139.30.xxx.xx\\",\\n \\"InstanceName\\": \\"worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****\\",\\n \\"PublicIp\\": \\"131.30.xxx.xx\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>b197-40ab-9155-****</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>\\n<EcsEntityList>\\n <EcsEntity>\\n <Status> Running</Status>\\n <InstanceName>worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****</InstanceName>\\n <InnerIp>192.168.20.113</InnerIp>\\n <Mem>4096</Mem>\\n <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>\\n <PrivateIp>192.168.*.**</PrivateIp>\\n <PublicIp>131.30.xxx.xx</PublicIp>\\n <InstanceId>i-2ze7s2v0b***********</InstanceId>\\n <Cpu>2</Cpu>\\n <Expired>false</Expired>\\n <VpcName>test</VpcName>\\n <RegionId>cn-beijing</RegionId>\\n <Eip>139.30.xxx.xx</Eip>\\n </EcsEntity>\\n</EcsEntityList>","errorExample":""}]',
],
'ListEcuByRegion' => [
'path' => '/pop/v5/resource/ecu_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID:'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:cn-beijing:tdy218。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:cn-beijing。', 'type' => 'string', 'required' => false, 'example' => 'Cn-beijing or cn-beijing:tdy218'],
],
[
'name' => 'Act',
'in' => 'query',
'schema' => ['description' => '固定值为`pop-query`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'pop-query'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '00000000-0000-0000-****'],
'EcuEntityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcuEntity' => [
'description' => 'ECU列表。',
'type' => 'array',
'items' => [
'description' => 'ECU列表对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'ECU所在的VPC ID。', 'type' => 'string', 'example' => 'vpc-2zew8mi6gqbo5wf****'],
'UpdateTime' => ['description' => '最后变更时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1572867895575'],
'IpAddr' => ['description' => 'ECU的私网IP。', 'type' => 'string', 'example' => '192.168.xxx.xxx'],
'AvailableCpu' => ['description' => 'ECU的可用CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1572539283168'],
'UserId' => ['description' => '主账号ID。', 'type' => 'string', 'example' => 'edas@aliyun-****.com'],
'InstanceId' => ['description' => 'ECU ID。', 'type' => 'string', 'example' => 'i-2ze82h8f4zcn449y****'],
'Mem' => ['description' => '总内存,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'RegionId' => ['description' => 'ECU所在地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'EcuId' => ['description' => '这台ECU的唯一标示ID,可以在ECS上执行`dmidecode`获取。', 'type' => 'string', 'example' => 'c96c494c-1b91-4456-bbb3-b5afcd16****'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DockerEnv' => ['description' => '是否安装了Docker:'."\n"
.'- true:已安装Docker。'."\n"
.'- false:未安装Docker。', 'type' => 'boolean', 'example' => 'true'],
'Online' => ['description' => '是否在线:'."\n"
.'- true:在线。'."\n"
.'- false:不在线。', 'type' => 'boolean', 'example' => 'false'],
'AvailableMem' => ['description' => 'ECU的可用内存数,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '8192'],
'ZoneId' => ['description' => 'ECU所在可用区ID。', 'type' => 'string', 'example' => 'cn-beijing-a'],
'Name' => ['description' => 'ECU名称。', 'type' => 'string', 'example' => 'worker-k8s-for'],
'HeartbeatTime' => ['description' => '上一次心跳检测的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1572867865221'],
],
],
],
],
'description' => '',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"00000000-0000-0000-****\\",\\n \\"EcuEntityList\\": {\\n \\"EcuEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zew8mi6gqbo5wf****\\",\\n \\"UpdateTime\\": 1572867895575,\\n \\"IpAddr\\": \\"192.168.xxx.xxx\\",\\n \\"AvailableCpu\\": 4,\\n \\"CreateTime\\": 1572539283168,\\n \\"UserId\\": \\"edas@aliyun-****.com\\",\\n \\"InstanceId\\": \\"i-2ze82h8f4zcn449y****\\",\\n \\"Mem\\": 0,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"EcuId\\": \\"c96c494c-1b91-4456-bbb3-b5afcd16****\\",\\n \\"Cpu\\": 0,\\n \\"DockerEnv\\": true,\\n \\"Online\\": false,\\n \\"AvailableMem\\": 8192,\\n \\"ZoneId\\": \\"cn-beijing-a\\",\\n \\"Name\\": \\"worker-k8s-for\\",\\n \\"HeartbeatTime\\": 1572867865221\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<EcuEntityList>\\n <EcuEntity>\\n <AvailableMem>8192</AvailableMem>\\n <Mem>0</Mem>\\n <AvailableCpu>4</AvailableCpu>\\n <InstanceId>i-2ze82h8f4zcn449y****</InstanceId>\\n <Online>false</Online>\\n <UpdateTime>1572867895575</UpdateTime>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <ZoneId>cn-beijing-a</ZoneId>\\n <VpcId>vpc-2zew8mi6gqbo5wf3r****</VpcId>\\n <IpAddr>192.168.0.115</IpAddr>\\n <Name>worker-k8s-for-cs</Name>\\n <Cpu>0</Cpu>\\n <HeartbeatTime>1572867865221</HeartbeatTime>\\n <CreateTime>1572539283168</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>c96c494c-1b91-4456-bbb3-b5afcd16****</EcuId>\\n <DockerEnv>true</DockerEnv>\\n </EcuEntity>\\n <EcuEntity>\\n <AvailableMem>2048</AvailableMem>\\n <Mem>0</Mem>\\n <AvailableCpu>2</AvailableCpu>\\n <InstanceId>i-2zej4i2jdf3ntwh****</InstanceId>\\n <Online>true</Online>\\n <UpdateTime>1573281041150</UpdateTime>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>\\n <IpAddr>192.168.0.154</IpAddr>\\n <Name>product_test004</Name>\\n <Cpu>0</Cpu>\\n <HeartbeatTime>1573281041143</HeartbeatTime>\\n <CreateTime>1573281041143</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>cfe7f474-3861-453e-b236-887d4932****</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuEntity>\\n</EcuEntityList>","errorExample":""}]',
'title' => '获取指定命名空间下可用的ECU列表',
'summary' => '获取指定命名空间下可用的ECU列表。',
'description' => '## 基本概念'."\n"
."\n"
.'- **命名空间**:指的是EDAS中设计的用于隔离集群、ECS实例和应用等资源及在EDAS中发布的微服务的一个逻辑概念,包括默认命名空间和自定义命名空间,每个地域下面包括一个默认命名空间和若干个自定义命名空间,默认情况下只有默认命名空间,如果不想隔离资源及微服务,则不必创建自定义命名空间。'."\n"
.'- **ECU**:ECS导入到集群中后即为ECU。'."\n"
.'- **ECC**:集群中的ECU在应用中部署后即成为ECC。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:02:12.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListEcuByRegion'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListEcuByRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListHistoryDeployVersion' => [
'path' => '/pop/v5/app/deploy_history_version_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。获取应用ID,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413-****-************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 ', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D16979DC-4D42-************'],
'PackageVersionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'PackageVersion' => [
'description' => '部署包版本列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '部署类型。'."\n"
.'- url:通过JAR或WAR包部署'."\n"
.'- image:通过镜像部署', 'type' => 'string', 'example' => 'url'],
'PublicUrl' => ['description' => '部署包的URL', 'type' => 'string', 'example' => 'http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar'],
'UpdateTime' => ['description' => '更新时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627440892'],
'Description' => ['description' => '历史版本的描述信息', 'type' => 'string', 'example' => 'deploy'],
'CreateTime' => ['description' => '创建时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627440892'],
'AppId' => ['description' => '应用ID', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
'WarUrl' => ['description' => '部署包的URL', 'type' => 'string', 'example' => 'http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar'],
'Id' => ['description' => '历史版本的唯一标识', 'type' => 'string', 'example' => '441beb18-da42-44dc-****-************'],
'PackageVersion' => ['description' => '发布版本(提供给回滚接口使用)', 'type' => 'string', 'example' => '1.0'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '应用发布历史版本列表',
'summary' => '调用ListHistoryDeployVersion接口,获取应用部署的历史版本列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListHistoryDeployVersion'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-************\\",\\n \\"PackageVersionList\\": {\\n \\"PackageVersion\\": [\\n {\\n \\"Type\\": \\"url\\",\\n \\"PublicUrl\\": \\"http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar\\",\\n \\"UpdateTime\\": 1573627440892,\\n \\"Description\\": \\"deploy\\",\\n \\"CreateTime\\": 1573627440892,\\n \\"AppId\\": \\"3616cdca-4f92-4413-****-************\\",\\n \\"WarUrl\\": \\"http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar\\",\\n \\"Id\\": \\"441beb18-da42-44dc-****-************\\",\\n \\"PackageVersion\\": \\"1.0\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<PackageVersionList>\\n <PackageVersion>\\n <Type>url</Type>\\n <Description>deploy</Description>\\n <AppId>3616cdca-4f92-4413-****-************</AppId>\\n <PublicUrl>http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar</PublicUrl>\\n <WarUrl>http://edas-sz.oss-cn-shenzhen**********/SPRING_CLOUD_PROVIDER.jar</WarUrl>\\n <CreateTime>1573627440892</CreateTime>\\n <UpdateTime>1573627440892</UpdateTime>\\n <Id>441beb18-da42-44dc-****-************</Id>\\n <PackageVersion>1.0</PackageVersion>\\n </PackageVersion>\\n</PackageVersionList>\\n<RequestId>D16979DC-4D42-************</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ListK8sConfigMaps' => [
'summary' => '调用ListK8sConfigMaps接口获取K8s配置项列表。',
'path' => '/pop/v5/k8s/acs/k8s_config_map',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '阿里云地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'example' => 'c0830281-366c-41b6-80fb-542e76******'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'example' => 'default'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '当前页面,从0开始计数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询,每页显示的条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
[
'name' => 'Condition',
'in' => 'query',
'schema' => ['description' => '过滤条件,JSON对象字符串,示例:{"field":"Name", "pattern":"configmap-"}。'."\n", 'type' => 'string', 'required' => false, 'example' => '{"field":"Name", "pattern":"configmap-"}'],
],
[
'name' => 'ShowRelatedApps',
'in' => 'query',
'schema' => ['description' => '是否返回使用该配置项的应用列表,true表示返回,false表示不返回。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或pop错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
'Result' => [
'description' => '检索结果。',
'type' => 'object',
'properties' => [
'Total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'ConfigMaps' => [
'description' => '配置项列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CreationTime' => ['description' => '创建时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。', 'type' => 'string', 'example' => '2022-01-31T02:46:14Z'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'my-cluster'],
'Namespace' => ['description' => 'K8s命名空间。', 'type' => 'string', 'example' => 'default'],
'Name' => ['description' => '配置项名称。', 'type' => 'string', 'example' => 'my-config'],
'ClusterId' => ['description' => '集群ID,可通过调用GetK8sCluster接口获取,请参见[GetK8sCluster](~~181437~~)。', 'type' => 'string', 'example' => 'd73918f4-3b08-4c17-bb07-eaf8********'],
'Data' => [
'description' => '配置项数据列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => '用户自定义ConfigMap键。', 'type' => 'string', 'example' => 'name'],
'Value' => ['description' => '用户自定义ConfigMap值。', 'type' => 'string', 'example' => 'william'],
],
'description' => '',
],
],
'RelatedApps' => [
'description' => '关联的应用列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'my-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '728cbdf2-da10-49b8-b69c-9168a********'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '获取K8s配置项列表',
'changeSet' => [
['createdAt' => '2022-04-12T12:53:09.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sConfigMaps'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\",\\n \\"Result\\": {\\n \\"Total\\": 6,\\n \\"ConfigMaps\\": [\\n {\\n \\"CreationTime\\": \\"2022-01-31T02:46:14Z\\",\\n \\"ClusterName\\": \\"my-cluster\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Name\\": \\"my-config\\",\\n \\"ClusterId\\": \\"d73918f4-3b08-4c17-bb07-eaf8********\\",\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"william\\"\\n }\\n ],\\n \\"RelatedApps\\": [\\n {\\n \\"AppName\\": \\"my-app\\",\\n \\"AppId\\": \\"728cbdf2-da10-49b8-b69c-9168a********\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListK8sIngressRules' => [
'path' => '/pop/v5/k8s/acs/k8s_ingress',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '阿里云地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'example' => 'default'],
],
[
'name' => 'Condition',
'in' => 'query',
'schema' => ['description' => '过滤条件,JSON类型,格式为{"field":"Name", "pattern":"my-"},其中:'."\n"
."\n"
.'- field:需要匹配的字段,支持Name和ClusterName。'."\n"
."\n"
.'- pattern:匹配内容。'."\n"
."\n"
.'以{"field":"Name", "pattern":"my-"}这条过滤条件为例,该条过滤规则会匹配名称为“my-”开头的路由规则。'."\n", 'type' => 'string', 'required' => false, 'example' => '{"field":"Name", "pattern":"my-"}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5C1C9DE7-88FF-4B56-A47B-3DBBCEB******'],
'Data' => [
'description' => '接口响应数据。',
'type' => 'array',
'items' => [
'description' => '接口响应数据对象。',
'type' => 'object',
'properties' => [
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'my-dev-cluster'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '5b2b4ab4-efbc-4a81-9c45-a5942881****'],
'RegionId' => ['description' => '阿里云地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'IngressConfs' => [
'description' => '应用路由列表。',
'type' => 'array',
'items' => [
'description' => '应用路由列表对象。',
'type' => 'object',
'properties' => [
'CreationTime' => ['description' => '应用路由创建时间。', 'type' => 'string', 'example' => '2021-04-27 20:16:52'],
'SslRedirect' => ['description' => '是否启用SSL重定向:'."\n"
.'- true:启用。'."\n"
.'- false:关闭。', 'type' => 'boolean', 'example' => 'true'],
'Endpoint' => ['description' => '应用路由入口IP地址。', 'type' => 'string', 'example' => '47.11x.xx.xx'],
'Namespace' => ['description' => '应用路由所属K8s命名空间。', 'type' => 'string', 'example' => 'default'],
'Name' => ['description' => '应用路由名称。', 'type' => 'string', 'example' => 'my-ingress'],
'DashboardUrl' => ['description' => '应用路由监控URL。', 'type' => 'string', 'example' => 'http://grafana.console.aliyun.com/d/10xxxx/ingress'],
'Rules' => [
'description' => '应用路由规则列表。',
'type' => 'array',
'items' => [
'description' => '应用路由规则对象。',
'type' => 'object',
'properties' => [
'SecretName' => ['description' => '保存TLS证书的Secret名称。', 'type' => 'string', 'example' => 'my-secret'],
'Host' => ['description' => '应用路由域名。', 'type' => 'string', 'example' => 'example.com'],
'Paths' => [
'description' => '应用路由匹配路径列表。',
'type' => 'array',
'items' => [
'description' => '应用路由匹配路径对象。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '应用路由状态,支持以下状态:'."\n"
."\n"
.'- **Normal**:状态正常。'."\n"
."\n"
.'- **ServiceNotFound**:后端Service不存在。'."\n"
."\n"
.'- **InvalidServicePort**:无效服务端口。'."\n"
."\n"
.'- **NotManagedService**:非EDAS管控Service。'."\n"
."\n"
.'- **Unknown**:未知错误。', 'type' => 'string', 'example' => 'Normal'],
'Path' => ['description' => '匹配路径。', 'type' => 'string', 'example' => '/foo/bar'],
'AppName' => ['description' => 'EDAS应用名称。', 'type' => 'string', 'example' => 'my-app'],
'AppId' => ['description' => 'EDAS应用ID。', 'type' => 'string', 'example' => '43d30ba5-c568-460c-8080-d447ed1a****'],
'Backend' => [
'description' => '后端服务配置。',
'type' => 'object',
'properties' => [
'ServiceName' => ['description' => '后端服务名称。', 'type' => 'string', 'example' => 'http-service'],
'ServicePort' => ['description' => '后端服务端口。', 'type' => 'string', 'example' => '8080'],
],
],
'CollectRate' => ['description' => '基于EDAS为网关注入TraceId支持调用链路查询能力,设置匹配该条规则流量的采样率。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'PathType' => ['description' => '路径匹配类型:'."\n"
.'- ImplementationSpecific:默认。'."\n"
.'- Exact:完整匹配。'."\n"
.'- Prefix:前缀匹配。', 'type' => 'string', 'example' => 'ImplementationSpecific'],
],
],
],
'EnableTls' => ['description' => '是否启用TLS:'."\n"
.'- true:启用。'."\n"
.'- false:不启用。', 'type' => 'boolean', 'example' => 'false'],
],
],
],
'AlbId' => ['description' => '应用型负载均衡ALB实例ID。', 'type' => 'string', 'example' => 'alb-5sde0tq62r********'],
'IngressType' => ['description' => '应用路由类型:'."\n"
.'- **NginxIngress**:使用nginx应用路由控制器。'."\n"
.'- **AlbIngress**:使用ALB应用路由控制器。'."\n"
."\n"
.'默认使用NginxIngress。', 'type' => 'string', 'example' => 'NginxIngress'],
'OfficalBasicUrl' => ['description' => '社区版本基础监控地址。', 'type' => 'string', 'example' => 'https://g.console.aliyun.com/d/xxxxxx/nginx-ingress-dashboard-official'],
'OfficalRequestUrl' => ['description' => '社区版本请求性能监控地址。', 'type' => 'string', 'example' => 'https://g.console.aliyun.com/d/xxxxxx/request-handling-performance-official'],
'MseGatewayId' => ['description' => 'MSE网关实例ID。', 'type' => 'string', 'example' => 'gw-xxxxxxxx'],
'MseGatewayName' => ['description' => 'MSE网关实例名称。', 'type' => 'string', 'example' => 'gw-test-name'],
'Annotations' => ['description' => '注解。', 'type' => 'string', 'example' => '{"test-annotation":"test-annotation-value"}'],
'Labels' => ['description' => '标签。', 'type' => 'string', 'example' => '{"test-label": "test-labels"}'],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '获取应用路由列表',
'summary' => '获取应用路由列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-09-25T02:57:36.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-05-17T03:19:06.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-10-27T06:18:56.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-09-16T11:40:24.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-09-16T11:40:24.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-07-27T08:01:03.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sIngressRules'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"5C1C9DE7-88FF-4B56-A47B-3DBBCEB******\\",\\n \\"Data\\": [\\n {\\n \\"ClusterName\\": \\"my-dev-cluster\\",\\n \\"ClusterId\\": \\"5b2b4ab4-efbc-4a81-9c45-a5942881****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"IngressConfs\\": [\\n {\\n \\"CreationTime\\": \\"2021-04-27 20:16:52\\",\\n \\"SslRedirect\\": true,\\n \\"Endpoint\\": \\"47.11x.xx.xx\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Name\\": \\"my-ingress\\",\\n \\"DashboardUrl\\": \\"http://grafana.console.aliyun.com/d/10xxxx/ingress\\",\\n \\"Rules\\": [\\n {\\n \\"SecretName\\": \\"my-secret\\",\\n \\"Host\\": \\"example.com\\",\\n \\"Paths\\": [\\n {\\n \\"Status\\": \\"Normal\\",\\n \\"Path\\": \\"/foo/bar\\",\\n \\"AppName\\": \\"my-app\\",\\n \\"AppId\\": \\"43d30ba5-c568-460c-8080-d447ed1a****\\",\\n \\"Backend\\": {\\n \\"ServiceName\\": \\"http-service\\",\\n \\"ServicePort\\": \\"8080\\"\\n },\\n \\"CollectRate\\": 100,\\n \\"PathType\\": \\"ImplementationSpecific\\"\\n }\\n ],\\n \\"EnableTls\\": false\\n }\\n ],\\n \\"AlbId\\": \\"alb-5sde0tq62r********\\",\\n \\"IngressType\\": \\"NginxIngress\\",\\n \\"OfficalBasicUrl\\": \\"https://g.console.aliyun.com/d/xxxxxx/nginx-ingress-dashboard-official\\",\\n \\"OfficalRequestUrl\\": \\"https://g.console.aliyun.com/d/xxxxxx/request-handling-performance-official\\",\\n \\"MseGatewayId\\": \\"gw-xxxxxxxx\\",\\n \\"MseGatewayName\\": \\"gw-test-name\\",\\n \\"Annotations\\": \\"{\\\\\\"test-annotation\\\\\\":\\\\\\"test-annotation-value\\\\\\"}\\",\\n \\"Labels\\": \\"{\\\\\\"test-label\\\\\\": \\\\\\"test-labels\\\\\\"}\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<RequestId>5C1C9DE7-88FF-4B56-A47B-3DBBCEB23256</RequestId>\\n<Message>success</Message>\\n<Data>\\n <ClusterId>5b2b4ab4-efbc-4a81-9c45-a5942881****</ClusterId>\\n <ClusterName>my-dev-cluster</ClusterName>\\n <RegionId>cn-hangzhou</RegionId>\\n <IngressConfs>\\n <SslRedirect/>\\n <Endpoint>47.11x.xx.xx</Endpoint>\\n <CreationTime>2021-04-27 20:16:52</CreationTime>\\n <Namespace>default</Namespace>\\n <DashboardUrl>http://grafana.console.aliyun.com/d/10xxxx/ingress</DashboardUrl>\\n <Name>my-ingress</Name>\\n <Rules>\\n <SecretName>my-secret</SecretName>\\n <Host>abc.com</Host>\\n <Paths>\\n <Path>/foo/bar</Path>\\n <Status>Normal</Status>\\n <AppId>43d30ba5-c568-460c-8080-d447ed1a****</AppId>\\n <AppName>my-app</AppName>\\n <Backend>\\n <ServicePort>8080</ServicePort>\\n <ServiceName>http-service</ServiceName>\\n </Backend>\\n </Paths>\\n </Rules>\\n </IngressConfs>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
],
'ListK8sNamespaces' => [
'summary' => '调用ListK8sNamespaces接口获取K8s命名空间列表。',
'path' => '/pop/v5/k8s/acs/k8s_namespace',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['title' => 'A short description of struct', 'description' => 'EDAS集群ID', 'type' => 'string', 'required' => false, 'example' => '5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx'],
],
],
'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' => '57F146F6-3C94-****-****-A66EF4B9*****'],
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '接口响应数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Namespace' => ['description' => 'K8s命名空间。', 'type' => 'string', 'example' => 'development'],
],
'description' => '',
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '获取K8s命名空间列表',
'changeSet' => [
['createdAt' => '2022-06-02T03:28:40.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sNamespaces'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"57F146F6-3C94-****-****-A66EF4B9*****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": [\\n {\\n \\"Namespace\\": \\"development\\"\\n }\\n ]\\n}","type":"json"}]',
],
'ListK8sSecrets' => [
'path' => '/pop/v5/k8s/acs/k8s_secret',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '7a953f9a-2946-4c7a-9d82-9939db******'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'default'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '阿里云地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '当前页码,从0开始计数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询,每页显示的条数。值为0时不进行分页,返回所有内容。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
'name' => 'Condition',
'in' => 'query',
'schema' => ['description' => '过滤条件,JSON对象字符串,示例:{"field":"Name", "pattern":"configmap-"}。', 'type' => 'string', 'required' => false, 'example' => '{\\"field\\":\\"Name\\",\\"pattern\\":\\"product\\"}'],
],
[
'name' => 'ShowRelatedApps',
'in' => 'query',
'schema' => ['description' => '返回使用该保密配置的应用列表。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'Result' => [
'description' => 'K8s保密配置查询结果。',
'type' => 'object',
'properties' => [
'Total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
'Secrets' => [
'description' => '保密配置列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '保密配置类型,支持以下两种类型:'."\n"
."\n"
.'- Opaque:用户自定义数据类型。'."\n"
."\n"
.'- kubernetes.io/tls:TLS证书类型。', 'type' => 'string', 'example' => 'Opaque'],
'CreationTime' => ['description' => '创建时间。格式为:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。'."\n", 'type' => 'string', 'example' => '2022-05-26T02:57:02Z'],
'ClusterName' => ['description' => '集群名称。', 'type' => 'string', 'example' => 'test-cluster'],
'Namespace' => ['description' => 'K8s集群命名空间。', 'type' => 'string', 'example' => 'default'],
'Base64Encoded' => ['description' => '数据是否进过base64编码:'."\n"
.'- true:已编码。'."\n"
.'- false:未编码。', 'type' => 'boolean', 'example' => 'false'],
'CertRegionId' => ['description' => '证书所属的区域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'CertId' => ['description' => '阿里云证书服务的证书ID。', 'type' => 'string', 'example' => '123456'],
'Name' => ['description' => '保密配置名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。'."\n", 'type' => 'string', 'example' => 'my-secret'],
'ClusterId' => ['description' => 'EDAS集群ID。', 'type' => 'string', 'example' => '4472a6d3-f01d-4087-85a7-3dc52********'],
'RelatedIngressRules' => [
'description' => '关联的应用路由规则列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['description' => '应用路由规则名称。', 'type' => 'string', 'example' => 'testrulename'],
'Namespace' => ['description' => 'K8s命名空间。', 'type' => 'string', 'example' => 'default'],
'RelatedApps' => [
'description' => '应用路由关联应用列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AppName' => ['description' => 'EDAS应用名称。', 'type' => 'string', 'example' => 'app-test'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '6dc74432-5a35-4e68-8aaa-3700********'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'Data' => [
'description' => '保密配置数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => '用户自定义的secret键。', 'type' => 'string', 'example' => 'name'],
'Value' => ['description' => '用户自定义的secret值。', 'type' => 'string', 'example' => 'william'],
],
'description' => '',
],
],
'RelatedApps' => [
'description' => '使用了该保密配置的应用列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'my-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'b08eeb18-8946-410c-a1ea-dbbc********'],
],
'description' => '',
],
],
'CertDetail' => [
'description' => 'SSL证书详情。',
'type' => 'object',
'properties' => [
'EndTime' => ['description' => '证书结束时间。', 'type' => 'string', 'example' => '2022-02-22T02:32:41Z'],
'Status' => ['description' => '证书状态:'."\n"
.'- normal:有效证书。'."\n"
.'- invalid:无效证书。'."\n"
.'- expired:证书已过期。'."\n"
.'- not\\_yet\\_valid:尚未到生效时间。'."\n"
.'- about\\_to\\_expire:证书即将过期。'."\n", 'type' => 'string', 'example' => 'normal'],
'StartTime' => ['description' => '证书生效时间。', 'type' => 'string', 'example' => '2022-01-02T22:40:00Z'],
'Issuer' => ['description' => '证书颁发机构。', 'type' => 'string', 'example' => 'CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE'],
'DomainNames' => [
'description' => 'SSL证书关联的域名列表。',
'type' => 'array',
'items' => ['description' => '域名。', 'type' => 'string', 'example' => 'example.com'],
],
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '获取K8s保密配置列表',
'summary' => '调用ListK8sSecrets接口获取K8s保密配置列表。',
'changeSet' => [
['createdAt' => '2021-09-14T03:02:40.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2021-09-14T03:02:40.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sSecrets'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"Result\\": {\\n \\"Total\\": 6,\\n \\"Secrets\\": [\\n {\\n \\"Type\\": \\"Opaque\\",\\n \\"CreationTime\\": \\"2022-05-26T02:57:02Z\\",\\n \\"ClusterName\\": \\"test-cluster\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Base64Encoded\\": false,\\n \\"CertRegionId\\": \\"cn-hangzhou\\",\\n \\"CertId\\": \\"123456\\",\\n \\"Name\\": \\"my-secret\\",\\n \\"ClusterId\\": \\"4472a6d3-f01d-4087-85a7-3dc52********\\",\\n \\"RelatedIngressRules\\": [\\n {\\n \\"Name\\": \\"testrulename\\",\\n \\"Namespace\\": \\"default\\",\\n \\"RelatedApps\\": [\\n {\\n \\"AppName\\": \\"app-test\\",\\n \\"AppId\\": \\"6dc74432-5a35-4e68-8aaa-3700********\\"\\n }\\n ]\\n }\\n ],\\n \\"Data\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"william\\"\\n }\\n ],\\n \\"RelatedApps\\": [\\n {\\n \\"AppName\\": \\"my-app\\",\\n \\"AppId\\": \\"b08eeb18-8946-410c-a1ea-dbbc********\\"\\n }\\n ],\\n \\"CertDetail\\": {\\n \\"EndTime\\": \\"2022-02-22T02:32:41Z\\",\\n \\"Status\\": \\"normal\\",\\n \\"StartTime\\": \\"2022-01-02T22:40:00Z\\",\\n \\"Issuer\\": \\"CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE\\",\\n \\"DomainNames\\": [\\n \\"example.com\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListMethods' => [
'path' => '/pop/v5/service/list_methods',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'be213a4a-c7e4-473b-ab0****'],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '服务名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Method'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口响应码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '69AD2AA7-DB47-449B-941B-B14409DF****'],
'ServiceMethodList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ServiceMethod' => [
'description' => '返回的服务方法列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MethodName' => ['description' => '方法名称。', 'type' => 'string', 'example' => 'echo'],
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'App'],
'Output' => ['description' => '方法返回类型。', 'type' => 'string', 'example' => 'java.lang.string'],
'ServiceName' => ['description' => '服务名称。', 'type' => 'string', 'example' => 'com.alibaba.edas.demo.EchoService'],
'ParamTypes' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ParamType' => [
'description' => '方法入参类型列表。',
'type' => 'array',
'items' => ['type' => 'string', 'example' => 'string', 'description' => ''],
],
],
'description' => '',
],
'InputParams' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'InputParam' => [
'description' => '方法入参列表。',
'type' => 'array',
'items' => ['type' => 'string', 'example' => 'test', 'description' => ''],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '查询服务方法列表',
'summary' => '调用ListMethods接口查询服务方法列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-25T06:12:00.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListMethods'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"69AD2AA7-DB47-449B-941B-B14409DF****\\",\\n \\"ServiceMethodList\\": {\\n \\"ServiceMethod\\": [\\n {\\n \\"MethodName\\": \\"echo\\",\\n \\"AppName\\": \\"App\\",\\n \\"Output\\": \\"java.lang.string\\",\\n \\"ServiceName\\": \\"com.alibaba.edas.demo.EchoService\\",\\n \\"ParamTypes\\": {\\n \\"ParamType\\": [\\n \\"string\\"\\n ]\\n },\\n \\"InputParams\\": {\\n \\"InputParam\\": [\\n \\"test\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'ListPublishedServices' => [
'path' => '/pop/v5/service/listPublishedServices',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1fbd8b72-****-****-bdfe-478dbc914121'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => '1D6FC-4307-4583-BA6F-215F3857E****'],
'PublishedServicesList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ListPublishedServices' => [
'description' => '发布的服务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DockerApplication' => ['description' => '是否是Docker应用:'."\n"
.'- true:是。'."\n"
.'- false:否。', 'type' => 'boolean', 'example' => 'false'],
'Type' => ['description' => '发布的服务类型。', 'type' => 'string', 'example' => 'RESTful'],
'Version' => ['description' => '发布的服务版本。', 'type' => 'string', 'example' => '--'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'ECD1D6FC-4307-4583-BA6F-215F3857E****'],
'Group2Ip' => ['description' => '保留字段。', 'type' => 'string', 'example' => '""'],
'Name' => ['description' => '发布的服务名称。', 'type' => 'string', 'example' => 'providers:com.****'],
'Ips' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ip' => [
'type' => 'array',
'items' => ['description' => '服务订阅地址。', 'type' => 'string', 'example' => '112.XX.XX.24'],
'description' => '',
],
],
'description' => '',
],
'Groups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'group' => [
'type' => 'array',
'items' => ['description' => '发布的服务对应的组别。', 'type' => 'string', 'example' => 'DEFAULT_GROUP'],
'description' => '',
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '查询发布的服务',
'summary' => '调用ListPublishedServices查询发布的服务。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListPublishedServices'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1D6FC-4307-4583-BA6F-215F3857E****\\",\\n \\"PublishedServicesList\\": {\\n \\"ListPublishedServices\\": [\\n {\\n \\"DockerApplication\\": false,\\n \\"Type\\": \\"RESTful\\",\\n \\"Version\\": \\"--\\",\\n \\"AppId\\": \\"ECD1D6FC-4307-4583-BA6F-215F3857E****\\",\\n \\"Group2Ip\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Name\\": \\"providers:com.****\\",\\n \\"Ips\\": {\\n \\"ip\\": [\\n \\"112.XX.XX.24\\"\\n ]\\n },\\n \\"Groups\\": {\\n \\"group\\": [\\n \\"DEFAULT_GROUP\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<PublishedServicesList>\\n <ListPublishedServices>\\n <Groups>\\n <group>DEFAULT_GROUP</group>\\n </Groups>\\n <Name>providers:com.****</Name>\\n <DockerApplication>false</DockerApplication>\\n <Type>RESTful</Type>\\n <Group2Ip/>\\n <Version>--</Version>\\n <Ips>\\n </Ips>\\n </ListPublishedServices>\\n</PublishedServicesList>","errorExample":""}]',
],
'ListRecentChangeOrder' => [
'path' => '/pop/v5/changeorder/change_order_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413-****-************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-************'],
'ChangeOrderList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ChangeOrder' => [
'description' => '变更记录列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => '变更流程状态。'."\n"
.'- 0:准备开始执行'."\n"
.'- 1:执行中'."\n"
.'- 2:执行成功'."\n"
.'- 3:执行失败'."\n"
.'- 6:执行终止'."\n"
.'- 8:等待手工确认(手工分批的时候能看到)'."\n"
.'- 9:等待自动执行'."\n"
.'- 10:由于系统错误而失败', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'FinishTime' => ['description' => '结束时间。', 'type' => 'string', 'example' => '2019-11-13 14:24:02'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2019-11-13 14:23:46'],
'UserId' => ['description' => '创建变更流程用户ID。', 'type' => 'string', 'example' => '1432536****'],
'ChangeOrderDescription' => ['description' => '变更流程描述信息。', 'type' => 'string', 'example' => 'Version: 2020-05-14 20:02:33 | Package: hsf-pandora-boot-provider-1.0.jar | Deployment target: All groups'],
'Source' => ['description' => '变更来源。'."\n"
.'- console:EDAS控制台'."\n"
.'- pop:POP API或工具', 'type' => 'string', 'example' => 'pop'],
'BatchCount' => ['description' => '分批次数。最少1批,最多5批。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreateUserId' => ['description' => '创建变更单的用户。', 'type' => 'string', 'example' => 'edas_test1@aliyun-test.com'],
'CoTypeCode' => ['description' => '变更流程类型:'."\n"
.'- CoCreateApp:创建应用。'."\n"
.'- CoStartApplication:启动应用。'."\n"
.'- CoStopApplication:停止应用。'."\n"
.'- CoRestartApplication:重启应用。'."\n"
.'- CoDeleteApp:删除应用。'."\n"
.'- CoStart:启动应用实例。'."\n"
.'- CoStop:停止应用实例。'."\n"
.'- CoRestart:重启实例。'."\n"
.'- CoDeploy:部署应用。'."\n"
.'- CoReset:重置应用实例。'."\n"
.'- CoRollback:回滚应用。'."\n"
.'- CoScaleIn:缩容应用实例。'."\n"
.'- CoScaleOut:扩容应用实例。'."\n"
.'- CoChangeGroup:更改应用实例分组。'."\n"
.'- CoUpdateContainer:更新应用部署包版本。'."\n"
.'- CoBindSlb:绑定SLB。'."\n"
.'- CoBindECSSlb:绑定ECS SLB。'."\n"
.'- CoUnbindECSSlb:解绑ECS SLB。'."\n"
.'- CoUnbindSlb:解绑SLB。'."\n"
.'- CoModifySlb:配置SLB。'."\n"
.'- CoModifyConfig:修改应用配置。'."\n"
.'- CoClusterScaleOut:集群扩容。'."\n"
.'- CoRescaleApplicationVertically:垂直扩缩容。', 'type' => 'string', 'example' => 'CoDeploy'],
'ChangeOrderId' => ['description' => '变更流程唯一标识ID。', 'type' => 'string', 'example' => '1074f3e2-e974-4a0e-****-************'],
'BatchType' => ['description' => '分批发布时下一批变更的执行方式。'."\n"
."\n"
.'- Automatic:自动'."\n"
.'- Manual:手动', 'type' => 'string', 'example' => 'Automatic'],
'GroupId' => ['description' => '变更的应用分组ID。', 'type' => 'string', 'example' => '8123db90-880f-486f-****-************'],
'CoType' => ['description' => '变更流程类型。', 'type' => 'string', 'example' => 'Application Scale Out'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-************\\",\\n \\"ChangeOrderList\\": {\\n \\"ChangeOrder\\": [\\n {\\n \\"Status\\": 2,\\n \\"FinishTime\\": \\"2019-11-13 14:24:02\\",\\n \\"CreateTime\\": \\"2019-11-13 14:23:46\\",\\n \\"UserId\\": \\"1432536****\\",\\n \\"ChangeOrderDescription\\": \\"Version: 2020-05-14 20:02:33 | Package: hsf-pandora-boot-provider-1.0.jar | Deployment target: All groups\\",\\n \\"Source\\": \\"pop\\",\\n \\"BatchCount\\": 1,\\n \\"CreateUserId\\": \\"edas_test1@aliyun-test.com\\",\\n \\"CoTypeCode\\": \\"CoDeploy\\",\\n \\"ChangeOrderId\\": \\"1074f3e2-e974-4a0e-****-************\\",\\n \\"BatchType\\": \\"Automatic\\",\\n \\"GroupId\\": \\"8123db90-880f-486f-****-************\\",\\n \\"CoType\\": \\"Application Scale Out\\",\\n \\"AppId\\": \\"3616cdca-4f92-4413-****-************\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ChangeOrderList>\\n <ChangeOrder>\\n <Status>2</Status>\\n <BatchCount>1</BatchCount>\\n <FinishTime>2019-11-13 14:24:02</FinishTime>\\n <CreateTime>2019-11-13 14:23:46</CreateTime>\\n <BatchType>Automatic</BatchType>\\n <CoType>Application Scale Out</CoType>\\n <AppId>3616cdca-4f92-4413-****-************</AppId>\\n <ChangeOrderId>1074f3e2-e974-4a0e-****-************</ChangeOrderId>\\n <GroupId>8123db90-880f-486f-****-************</GroupId>\\n </ChangeOrder>\\n</ChangeOrderList>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
'title' => '列出应用历史变更单列表',
'summary' => '调用ListRecentChangeOrder列出应用历史变更单列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-22T03:32:27.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListRecentChangeOrder'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'ListResourceGroup' => [
'path' => '/pop/v5/resource/reg_group_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'ResourceGroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ResGroupEntity' => [
'description' => '详见ResGroupEntity定义资源组列表。',
'type' => 'array',
'items' => [
'description' => '资源组对象。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040827'],
'Description' => ['description' => '资源组描述。', 'type' => 'string', 'example' => 'QqLZDA3pBZ'],
'AdminUserId' => ['description' => '用户UID。', 'type' => 'string', 'example' => '****@aliyun.com'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1557890594376'],
'Name' => ['description' => '资源组名称。', 'type' => 'string', 'example' => 'TIa2LGixyD'],
'Id' => ['description' => '资源组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '8592'],
'RegionId' => ['description' => '所属地域ID。', 'type' => 'string', 'example' => 'cn-qingdao'],
'ecsList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcsEntity' => [
'description' => '实例列表。',
'type' => 'array',
'items' => [
'description' => '实例对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC唯一标识。', 'type' => 'string', 'example' => 'vpc-bp13evu4aayj2t1er****'],
'SgId' => ['description' => '安全组ID。', 'type' => 'string', 'example' => 'sg-m5eajgzn6b8sg9mv****'],
'Status' => ['description' => '实例状态,取值如下:'."\n"
."\n"
.'- Pending:创建中。'."\n"
.'- Running:运行中。'."\n"
.'- Starting:启动中。'."\n"
.'- Stopping:停止中。'."\n"
.'- Stopped:已停止。', 'type' => 'string', 'example' => 'Running'],
'PrivateIp' => ['description' => '私网IP。', 'type' => 'string', 'example' => '192.168.xx.xxx'],
'Expired' => ['description' => '是否过期:'."\n"
.'- true:已过期。'."\n"
.'- false:未过期。', 'type' => 'boolean', 'example' => 'true'],
'UserId' => ['description' => '用户账号。', 'type' => 'string', 'example' => '****_common_****@aliyun.com'],
'HostName' => ['description' => '主机名。', 'type' => 'string', 'example' => 'iZm5e853hvvrodnvqus****'],
'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'i-m5e853hvvrodnvqu****'],
'Mem' => ['description' => '内存总量,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'ch-hangzhou'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'InnerIp' => ['description' => '内网IP。', 'type' => 'string', 'example' => '192.168.xx.xxx'],
'GroupId' => ['description' => 'EDAS资源组ID。', 'type' => 'string', 'example' => '64189****'],
'Eip' => ['description' => '弹性IP。', 'type' => 'string', 'example' => '192.168.xxx.xx'],
'Description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test'],
'InstanceName' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'betabjmixcoud_01'],
'ZoneId' => ['description' => '所在地域ID。', 'type' => 'string', 'example' => 'cn-qingdao-h'],
'SerialNum' => ['description' => '序列号。', 'type' => 'string', 'example' => '98b480b8-458b-4ff3-84b9-cf7097c5****'],
'PublicIp' => ['description' => '公网IP。', 'type' => 'string', 'example' => '192.168.xx.xxx'],
'EcuEntity' => [
'description' => 'ECU实体。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-2ze1ram356umxs598****'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040827'],
'IpAddr' => ['description' => 'ECU的内网IP。', 'type' => 'string', 'example' => '192.168.xxx.xx'],
'AvailableCpu' => ['description' => '可用CPU。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1557890594376'],
'UserId' => ['description' => '关联用户ID。', 'type' => 'string', 'example' => 'edas_****_test@aliyun-****.com'],
'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'i-2zej4i2jdf*********'],
'Mem' => ['description' => '内存总量,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing '],
'EcuId' => ['description' => '这台ECU的唯一标示ID,可以通过在ECS上执行`dmidecode`获取。', 'type' => 'string', 'example' => '0de2ebdb-9490-4fc4-be41***************'],
'Cpu' => ['description' => 'CPU总核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'DockerEnv' => ['description' => '是否安装了Docker:'."\n"
.'- true:安装了Docker。'."\n"
.'- false:未安装Docker。', 'type' => 'boolean', 'example' => 'true'],
'Online' => ['description' => '是否在线:'."\n"
.'- true:在线。'."\n"
.'- false:不在线。', 'type' => 'boolean', 'example' => 'true'],
'AvailableMem' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ZoneId' => ['description' => '所在地域ID。', 'type' => 'string', 'example' => 'cn-beijing-b'],
'Name' => ['description' => 'ECU名称。', 'type' => 'string', 'example' => 'test'],
'HeartbeatTime' => ['description' => '上一次心跳检测的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040819'],
],
],
'VpcEntity' => [
'description' => 'VPC实例。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '实例状态。', 'type' => 'string', 'example' => 'Running'],
'VpcName' => ['description' => 'VPC名称。', 'type' => 'string', 'example' => 'test'],
'VpcId' => ['description' => 'VPC唯一标识。', 'type' => 'string', 'example' => 'vpc-bp13evu42t1er****'],
'Description' => ['description' => '描述。', 'type' => 'string', 'example' => '""'],
'Expired' => ['description' => '是否过期:'."\n"
."\n"
.'- true:已过期。'."\n"
.'- false:未过期。', 'type' => 'boolean', 'example' => 'true'],
'Cidrblock' => ['description' => '交换机的IPv4网段。', 'type' => 'string', 'example' => '192.168.xx.xxx'],
'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => '****_common_****@aliyun.com'],
'EcsNum' => ['description' => '实例数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RegionId' => ['description' => '所在地域。', 'type' => 'string', 'example' => 'cn-qingdao'],
],
],
],
],
],
],
'description' => '',
],
'SlbList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SlbEntity' => [
'description' => 'SLB列表。',
'type' => 'array',
'items' => [
'description' => 'SLB对象。',
'type' => 'object',
'properties' => [
'SlbId' => ['description' => 'SLB唯一标识。', 'type' => 'string', 'example' => 'lb-2zebf1fpbpkc7dnro****'],
'VpcId' => ['description' => 'VPC ID。', 'type' => 'string', 'example' => 'vpc-m5e666n89m2bx8jar****'],
'VswitchId' => ['description' => '交换机ID。', 'type' => 'string', 'example' => 'vsw-mktkxkhah14****'],
'Expired' => ['description' => '是否过期:'."\n"
."\n"
.'- true:已过期。'."\n"
.'- false:未过期。', 'type' => 'boolean', 'example' => 'true'],
'UserId' => ['description' => '用户UID。', 'type' => 'string', 'example' => '****@aliyun.com'],
'AddressType' => ['description' => '地址类型:'."\n"
.'- Internet:公网地址。'."\n"
.'- Intranet:私网地址。', 'type' => 'string', 'example' => 'Intranet'],
'NetworkType' => ['description' => '网络类型:'."\n"
.'- 经典网络。'."\n"
.'- VPC。', 'type' => 'string', 'example' => 'vpc'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'GroupId' => ['description' => '分组ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '64189****'],
'Address' => ['description' => 'IP地址。', 'type' => 'string', 'example' => '192.168.xxx.xx'],
'SlbName' => ['description' => 'SLB名称。', 'type' => 'string', 'example' => 'a9315af59b4cd11e9a18c00163e1****'],
'SlbStatus' => ['description' => 'SLB状态。', 'type' => 'string', 'example' => 'active'],
],
],
],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '查询资源组信息',
'summary' => '获取资源组列表。',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-03-07T07:46:18.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListResourceGroup'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListResourceGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"ResourceGroupList\\": {\\n \\"ResGroupEntity\\": [\\n {\\n \\"UpdateTime\\": 1573281040827,\\n \\"Description\\": \\"QqLZDA3pBZ\\",\\n \\"AdminUserId\\": \\"****@aliyun.com\\",\\n \\"CreateTime\\": 1557890594376,\\n \\"Name\\": \\"TIa2LGixyD\\",\\n \\"Id\\": 8592,\\n \\"RegionId\\": \\"cn-qingdao\\",\\n \\"ecsList\\": {\\n \\"EcsEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-bp13evu4aayj2t1er****\\",\\n \\"SgId\\": \\"sg-m5eajgzn6b8sg9mv****\\",\\n \\"Status\\": \\"Running\\",\\n \\"PrivateIp\\": \\"192.168.xx.xxx\\",\\n \\"Expired\\": true,\\n \\"UserId\\": \\"****_common_****@aliyun.com\\",\\n \\"HostName\\": \\"iZm5e853hvvrodnvqus****\\",\\n \\"InstanceId\\": \\"i-m5e853hvvrodnvqu****\\",\\n \\"Mem\\": 1,\\n \\"RegionId\\": \\"ch-hangzhou\\",\\n \\"Cpu\\": 2,\\n \\"InnerIp\\": \\"192.168.xx.xxx\\",\\n \\"GroupId\\": \\"64189****\\",\\n \\"Eip\\": \\"192.168.xxx.xx\\",\\n \\"Description\\": \\"test\\",\\n \\"InstanceName\\": \\"betabjmixcoud_01\\",\\n \\"ZoneId\\": \\"cn-qingdao-h\\",\\n \\"SerialNum\\": \\"98b480b8-458b-4ff3-84b9-cf7097c5****\\",\\n \\"PublicIp\\": \\"192.168.xx.xxx\\",\\n \\"EcuEntity\\": {\\n \\"VpcId\\": \\"vpc-2ze1ram356umxs598****\\",\\n \\"UpdateTime\\": 1573281040827,\\n \\"IpAddr\\": \\"192.168.xxx.xx\\",\\n \\"AvailableCpu\\": 1,\\n \\"CreateTime\\": 1557890594376,\\n \\"UserId\\": \\"edas_****_test@aliyun-****.com\\",\\n \\"InstanceId\\": \\"i-2zej4i2jdf*********\\",\\n \\"Mem\\": 200,\\n \\"RegionId\\": \\"cn-beijing \\",\\n \\"EcuId\\": \\"0de2ebdb-9490-4fc4-be41***************\\",\\n \\"Cpu\\": 2,\\n \\"DockerEnv\\": true,\\n \\"Online\\": true,\\n \\"AvailableMem\\": 200,\\n \\"ZoneId\\": \\"cn-beijing-b\\",\\n \\"Name\\": \\"test\\",\\n \\"HeartbeatTime\\": 1573281040819\\n },\\n \\"VpcEntity\\": {\\n \\"Status\\": \\"Running\\",\\n \\"VpcName\\": \\"test\\",\\n \\"VpcId\\": \\"vpc-bp13evu42t1er****\\",\\n \\"Description\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Expired\\": true,\\n \\"Cidrblock\\": \\"192.168.xx.xxx\\",\\n \\"UserId\\": \\"****_common_****@aliyun.com\\",\\n \\"EcsNum\\": 1,\\n \\"RegionId\\": \\"cn-qingdao\\"\\n }\\n }\\n ]\\n },\\n \\"SlbList\\": {\\n \\"SlbEntity\\": [\\n {\\n \\"SlbId\\": \\"lb-2zebf1fpbpkc7dnro****\\",\\n \\"VpcId\\": \\"vpc-m5e666n89m2bx8jar****\\",\\n \\"VswitchId\\": \\"vsw-mktkxkhah14****\\",\\n \\"Expired\\": true,\\n \\"UserId\\": \\"****@aliyun.com\\",\\n \\"AddressType\\": \\"Intranet\\",\\n \\"NetworkType\\": \\"vpc\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"GroupId\\": 0,\\n \\"Address\\": \\"192.168.xxx.xx\\",\\n \\"SlbName\\": \\"a9315af59b4cd11e9a18c00163e1****\\",\\n \\"SlbStatus\\": \\"active\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>b197-40ab-9155-7ca7</RequestId>\\n<Message>success</Message>\\n<ResourceGroupList>\\n <ResGroupEntity>\\n <Description>QqLZDA3pBZ</Description>\\n <CreateTime>1557890594376</CreateTime>\\n <UpdateTime>1573281040827</UpdateTime>\\n <AdminUserId>117274586608****</AdminUserId>\\n <RegionId>cn-qingdao</RegionId>\\n <Id>8592</Id>\\n <ecsList>\\n <EcsEntity>\\n <Status>Running</Status>\\n <VpcEntity>\\n <Status>Running</Status>\\n <Description>\\"\\"</Description>\\n <VpcId>vpc-bp13evu4aayj2t1er****</VpcId>\\n <UserId>****_common_****@aliyun.com</UserId>\\n <EcsNum>1</EcsNum>\\n <Expired>true</Expired>\\n <Cidrblock>130.3</Cidrblock>\\n <VpcName>test</VpcName>\\n <RegionId>cn-qingdao</RegionId>\\n </VpcEntity>\\n <Description>\\"\\"</Description>\\n <ZoneId>cn-qingdao-h</ZoneId>\\n <InnerIp>192.168.xx.xxx</InnerIp>\\n <PublicIp>130.30.xx.xxx</PublicIp>\\n <InstanceId>i-m5e853hvvrodnvqu****</InstanceId>\\n <SgId>sg-m5eajgzn6b8sg9mv****</SgId>\\n <Cpu>2</Cpu>\\n <Expired>true</Expired>\\n <Eip>130.30.xx.xxx</Eip>\\n <GroupId>0</GroupId>\\n <InstanceName>betabjmixcoud_01</InstanceName>\\n <SerialNum>98b480b8-458b-4ff3-84b9-cf7097c5****</SerialNum>\\n <Mem>1</Mem>\\n <VpcId>vpc-bp13evu4aayj2t1er****</VpcId>\\n <PrivateIp>192.168.xx.xxx</PrivateIp>\\n <UserId>****_common_****@aliyun.com</UserId>\\n <EcuEntity>\\n <IpAddr>192.168.xxx.xx</IpAddr>\\n <ZoneId>cn-beijing-b</ZoneId>\\n <InstanceId>i-2zej4i2jdf*********</InstanceId>\\n <CreateTime>1557890594376</CreateTime>\\n <Cpu>2</Cpu>\\n <EcuId>0de2ebdb-9490-4fc4-be41***************</EcuId>\\n <AvailableMem>200</AvailableMem>\\n <HeartbeatTime>1573281040819</HeartbeatTime>\\n <Name>test</Name>\\n <Mem>200</Mem>\\n <VpcId>vpc-2ze1ram356umxs598****</VpcId>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <UpdateTime>1573281040827</UpdateTime>\\n <RegionId>cn-beijing</RegionId>\\n <Online>true</Online>\\n <AvailableCpu>1</AvailableCpu>\\n <DockerEnv>true</DockerEnv>\\n </EcuEntity>\\n <RegionId>ch-hangzhou</RegionId>\\n <HostName>iZm5e853hvvrodnvqus****</HostName>\\n </EcsEntity>\\n </ecsList>\\n <SlbList>\\n <SlbEntity>\\n <SlbId>lb-2zebf1fpbpkc7dnro****</SlbId>\\n <VpcId>641897243</VpcId>\\n <Address>192.168.xxx.xx</Address>\\n <NetworkType>vpc</NetworkType>\\n <UserId>641897243</UserId>\\n <Expired>true</Expired>\\n <RegionId>cn-beijing</RegionId>\\n <AddressType>Intranet</AddressType>\\n <VswitchId>641897243</VswitchId>\\n <SlbName>a9315af59b4cd11e9a18c00163e1****</SlbName>\\n <GroupId>641897243</GroupId>\\n <SlbStatus>active</SlbStatus>\\n </SlbEntity>\\n </SlbList>\\n <Name>TIa2LGixyD</Name>\\n </ResGroupEntity>\\n</ResourceGroupList>\\n<Code>200</Code>","errorExample":""}]',
],
'ListRole' => [
'summary' => '获取角色列表。',
'path' => '/pop/v5/account/role_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57609587-DFA2-41EC-****-*********'],
'RoleList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'RoleItem' => [
'description' => '角色列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ActionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Action' => [
'description' => '操作权限集合',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '权限码', 'type' => 'string', 'example' => '1'],
'Description' => ['description' => '权限描述', 'type' => 'string', 'example' => 'Operation log'],
'GroupId' => ['description' => '权限组ID', 'type' => 'string', 'example' => '31'],
'Name' => ['description' => '权限名称', 'type' => 'string', 'example' => '操作记录'],
],
'description' => '',
],
],
],
'description' => '',
],
'Role' => [
'description' => '角色列表',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '角色更新时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1542717260156'],
'IsDefault' => ['description' => '是否是默认生成的角色', 'type' => 'boolean', 'example' => 'false'],
'AdminUserId' => ['description' => '云账号ID', 'type' => 'string', 'example' => 'test**@aliyun.com'],
'CreateTime' => ['description' => '角色创建时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1542717260156'],
'Name' => ['description' => '角色名称', 'type' => 'string', 'example' => 'Super Admin(All privileges)'],
'Id' => ['description' => '角色ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57609587-DFA2-41EC-****-*********\\",\\n \\"RoleList\\": {\\n \\"RoleItem\\": [\\n {\\n \\"ActionList\\": {\\n \\"Action\\": [\\n {\\n \\"Code\\": \\"1\\",\\n \\"Description\\": \\"Operation log\\",\\n \\"GroupId\\": \\"31\\",\\n \\"Name\\": \\"操作记录\\"\\n }\\n ]\\n },\\n \\"Role\\": {\\n \\"UpdateTime\\": 1542717260156,\\n \\"IsDefault\\": false,\\n \\"AdminUserId\\": \\"test**@aliyun.com\\",\\n \\"CreateTime\\": 1542717260156,\\n \\"Name\\": \\"Super Admin(All privileges)\\",\\n \\"Id\\": 1\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<RoleList>\\n <RoleItem>\\n <Role>\\n <Name>Super Admin(All privileges)</Name>\\n <CreateTime>1542717260156</CreateTime>\\n <UpdateTime>1542717260156</UpdateTime>\\n <Id>15691</Id>\\n </Role>\\n <ActionList>\\n <Action>\\n <Name>操作记录</Name>\\n <Description>操作记录</Description>\\n <Code>1</Code>\\n <GroupId>31</GroupId>\\n </Action>\\n </ActionList>\\n </RoleItem>\\n</RoleList>","errorExample":""}]',
'title' => '获取角色列表',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T09:31:16.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListRole'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListRole',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListScaleOutEcu' => [
'path' => '/pop/v5/resource/scale_out_ecu_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID。'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:cn-beijing:test。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:cn-beijing。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing:test'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '以集群为查询条件,查询该集群内可用的ECU列表。'."\n"
."\n"
.'> ClusterId与AppId需要至少填入一个作为查询参数。'."\n", 'type' => 'string', 'required' => false, 'example' => '52984524-6d48-4bbd-******************'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '以应用为查询条件,查询该应用所在集群内可用的ECU列表。'."\n"
."\n"
.'> ClusterId与AppId需要至少填入一个作为查询参数。', 'type' => 'string', 'required' => false, 'example' => 'b93024fd-8a9d-4ef7-99f1-5f0d65cc****'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '查询该应用分组所在集群内可用的ECU列表。', 'type' => 'string', 'required' => false, 'example' => '8123db90-880f-486f-****-****'],
],
[
'name' => 'Cpu',
'in' => 'query',
'schema' => ['description' => '查询满足CPU核数要求的ECU。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'Mem',
'in' => 'query',
'schema' => ['description' => '查询满足剩余可用内存要求的ECU,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '200'],
],
[
'name' => 'InstanceNum',
'in' => 'query',
'schema' => ['description' => '查询并列出指定数量的ECU,如果不设置则代表列出所有满足筛查结果的ECU列表。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'AF860D6C-ACE3-4429-9D54-3BD15A******'],
'EcuInfoList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcuInfo' => [
'description' => 'ECU列表。',
'type' => 'array',
'items' => [
'description' => 'ECU对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'ECU所在的VPC ID。', 'type' => 'string', 'example' => 'vpc-2zef6ob8**********'],
'UpdateTime' => ['description' => '最后变更时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040827'],
'IpAddr' => ['description' => 'ECU的私网IP。', 'type' => 'string', 'example' => '192.168.XX.XX'],
'AvailableCpu' => ['description' => 'ECU的可用CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040819'],
'UserId' => ['description' => '主账号ID。', 'type' => 'string', 'example' => '1172****6608****'],
'InstanceId' => ['description' => 'ECU实例ID。', 'type' => 'string', 'example' => 'i-2zej4i2jdf*********'],
'RegionId' => ['description' => 'ECU所在地域ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'EcuId' => ['description' => '这台ECU的唯一标识ID,可以通过在ECS上执行`dmidecode`获取。', 'type' => 'string', 'example' => '0de2ebdb-9490-4fc4-be41***************'],
'Online' => ['description' => '是否在线,且实例当前是否受EDAS管控:'."\n"
.'- true:在线。'."\n"
.'- false:不在线。', 'type' => 'boolean', 'example' => 'true'],
'DockerEnv' => ['description' => '是否安装了Docker:'."\n"
.'- true:已安装Docker。'."\n"
.'- false:未安装Docker。', 'type' => 'boolean', 'example' => 'false'],
'AvailableMem' => ['description' => 'ECU的可用内存数,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
'ZoneId' => ['description' => 'ECU所在可用区。', 'type' => 'string', 'example' => 'cn-beijing-h'],
'Name' => ['description' => 'ECU名称。', 'type' => 'string', 'example' => 'test'],
'HeartbeatTime' => ['description' => '上一次心跳检测的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281040819'],
],
],
],
],
'description' => '',
],
],
],
],
],
'errorCodes' => [],
'title' => '获取用于应用扩容的ECU列表',
'summary' => '从指定集群或应用关联集群获取可用于应用扩容的ECU列表。该接口仅适用于ECS集群。',
'description' => '## 基本概念'."\n"
."\n"
.'- **命名空间**:指的是EDAS中用于隔离集群、ECS实例和应用等资源及在EDAS中发布的微服务的一个逻辑概念,包括默认命名空间和自定义命名空间,每个地域下面包括一个默认命名空间和若干个自定义命名空间,默认情况下只有默认命名空间,如果不想隔离资源及微服务,则不必创建自定义命名空间。'."\n"
.'- **ECU**:ECS导入到集群中后即为ECU。'."\n"
.'- **ECC**:集群中的ECU在应用中部署后即成为ECC。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListScaleOutEcu'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"AF860D6C-ACE3-4429-9D54-3BD15A******\\",\\n \\"EcuInfoList\\": {\\n \\"EcuInfo\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zef6ob8**********\\",\\n \\"UpdateTime\\": 1573281040827,\\n \\"IpAddr\\": \\"192.168.XX.XX\\",\\n \\"AvailableCpu\\": 2,\\n \\"CreateTime\\": 1573281040819,\\n \\"UserId\\": \\"1172****6608****\\",\\n \\"InstanceId\\": \\"i-2zej4i2jdf*********\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"EcuId\\": \\"0de2ebdb-9490-4fc4-be41***************\\",\\n \\"Online\\": true,\\n \\"DockerEnv\\": false,\\n \\"AvailableMem\\": 111,\\n \\"ZoneId\\": \\"cn-beijing-h\\",\\n \\"Name\\": \\"test\\",\\n \\"HeartbeatTime\\": 1573281040819\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<EcuInfoList>\\n <EcuInfo>\\n <AvailableMem>2048</AvailableMem>\\n <InstanceId>i-2zej4i2jdf*********</InstanceId>\\n <AvailableCpu>2</AvailableCpu>\\n <Online>true</Online>\\n <UpdateTime>1573281040827</UpdateTime>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2zef6ob8**********</VpcId>\\n <IpAddr>192.168.*.**</IpAddr>\\n <HeartbeatTime>1573281040819</HeartbeatTime>\\n <CreateTime>1573281040819</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>0de2ebdb-9490-4fc4-be41***************</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuInfo>\\n <EcuInfo>\\n <AvailableMem>2048</AvailableMem>\\n <InstanceId>i-2zej4i2j*********</InstanceId>\\n <AvailableCpu>2</AvailableCpu>\\n <Online>true</Online>\\n <UpdateTime>1573281041362</UpdateTime>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2ze************</VpcId>\\n <IpAddr>192.168.0.**</IpAddr>\\n <HeartbeatTime>1573281041355</HeartbeatTime>\\n <CreateTime>1573281041355</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>6f9cb7fd-bb*****************</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuInfo>\\n <EcuInfo>\\n <AvailableMem>2048</AvailableMem>\\n <InstanceId>i-2*******e</InstanceId>\\n <AvailableCpu>2</AvailableCpu>\\n <Online>true</Online>\\n <UpdateTime>1573281041109</UpdateTime>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2zef6ob********p</VpcId>\\n <IpAddr>192.168.0.***</IpAddr>\\n <HeartbeatTime>1573281041101</HeartbeatTime>\\n <CreateTime>1573281041101</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>70ed3f59-b476-49aa***********</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuInfo>\\n <EcuInfo>\\n <AvailableMem>2048</AvailableMem>\\n <InstanceId>i-2z********</InstanceId>\\n <AvailableCpu>2</AvailableCpu>\\n <Online>true</Online>\\n <UpdateTime>1573281041150</UpdateTime>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2ze************</VpcId>\\n <IpAddr>192.168.0.**</IpAddr>\\n <HeartbeatTime>1573281041143</HeartbeatTime>\\n <CreateTime>1573281041143</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>cfe7f474-386******************</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuInfo>\\n <EcuInfo>\\n <AvailableMem>2048</AvailableMem>\\n <InstanceId>i-2zej4i*********</InstanceId>\\n <AvailableCpu>2</AvailableCpu>\\n <Online>true</Online>\\n <UpdateTime>1573281041300</UpdateTime>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2zef**********</VpcId>\\n <IpAddr>192.168.0.***</IpAddr>\\n <HeartbeatTime>1573281041292</HeartbeatTime>\\n <CreateTime>1573281041292</CreateTime>\\n <RegionId>cn-beijing</RegionId>\\n <EcuId>f6917537-******************</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuInfo>\\n</EcuInfoList>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ListServiceGroups' => [
'path' => '/pop/v5/service/serviceGroups',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'ServiceGroupsList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ListServiceGroups' => [
'description' => '服务分组列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'GroupId' => ['description' => '服务分组ID', 'type' => 'string', 'example' => '789d9cda-74b1-****-****-05e21a0a7661'],
'GroupName' => ['description' => '服务分组名称', 'type' => 'string', 'example' => 'edas-test-group'],
'CreateTime' => ['description' => '创建时间的时间戳', 'type' => 'string', 'example' => '1575357165770'],
],
],
],
],
],
],
],
],
],
'title' => '查询服务分组列表',
'summary' => '调用ListServiceGroups查询HSF应用的服务分组列表。',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'parameters' => [],
'changeSet' => [
['createdAt' => '2024-02-07T09:31:16.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListServiceGroups'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListServiceGroups',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"ServiceGroupsList\\": {\\n \\"ListServiceGroups\\": [\\n {\\n \\"GroupId\\": \\"789d9cda-74b1-****-****-05e21a0a7661\\",\\n \\"GroupName\\": \\"edas-test-group\\",\\n \\"CreateTime\\": \\"1575357165770\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ServiceGroupsList>\\n <ListServiceGroups>\\n <GroupName>edas-test-group</GroupName>\\n <CreateTime>1575357165770</CreateTime>\\n <GroupId>789d9cda-74b1-****-****-05e21a0a7661</GroupId>\\n </ListServiceGroups>\\n</ServiceGroupsList>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'ListSlb' => [
'path' => '/pop/v5/slb_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => 'VPC网络ID。', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1f90rfybszjogyw****'],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['description' => '地址类型:'."\n"
.'- Internet:公网地址。'."\n"
.'- Intranet:私网地址。', 'type' => 'string', 'required' => false, 'example' => 'internet'],
],
[
'name' => 'SlbType',
'in' => 'query',
'schema' => ['description' => 'SLB类型:'."\n"
.'- clb:传统型负载均衡。'."\n"
.'- alb:应用型负载均衡。', 'type' => 'string', 'required' => false, 'example' => 'clb'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'SlbList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SlbEntity' => [
'description' => 'SLB列表。',
'type' => 'array',
'items' => [
'description' => 'SLB对象。',
'type' => 'object',
'properties' => [
'SlbId' => ['description' => 'SLB实例ID。', 'type' => 'string', 'example' => 'lb-2ze055t3xv7s8****'],
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-bp1f90rfybszjogyw****'],
'VswitchId' => ['description' => 'VPC交换机ID。', 'type' => 'string', 'example' => 'vsw-bp156w1gpbv0o50hs****'],
'Expired' => ['description' => 'SLB是否过期:'."\n"
.'- true:已过期。'."\n"
.'- false:未过期。', 'type' => 'boolean', 'example' => 'false'],
'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => 'edas_****_**st@aliyun-****.com'],
'AddressType' => ['description' => '地址类型:'."\n"
.'- internet:公网地址。'."\n"
.'- intranet:私网地址。', 'type' => 'string', 'example' => 'internet'],
'NetworkType' => ['description' => '网络类型。', 'type' => 'string', 'example' => 'classic'],
'RegionId' => ['description' => '地区ID。', 'type' => 'string', 'example' => 'cn-beijing'],
'GroupId' => ['description' => 'EDAS资源组ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Address' => ['description' => 'IP地址。', 'type' => 'string', 'example' => '39.176.XX.XX'],
'SlbName' => ['description' => 'SLB名称。', 'type' => 'string', 'example' => 'adce'],
'SlbStatus' => ['description' => 'SLB状态。', 'type' => 'string', 'example' => 'active'],
'Tags' => ['description' => '标签。', 'type' => 'string', 'example' => '[{"tagKey":"tag","tagValue":"value"}]'],
'Reusable' => ['description' => '是否允许K8s应用复用:'."\n"
.'- true: 允许复用。'."\n"
.'- false: 不允许复用。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '获取SLB列表',
'summary' => '获取SLB列表。',
'requestParamsDescription' => '无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSlb'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListSlb',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"SlbList\\": {\\n \\"SlbEntity\\": [\\n {\\n \\"SlbId\\": \\"lb-2ze055t3xv7s8****\\",\\n \\"VpcId\\": \\"vpc-bp1f90rfybszjogyw****\\",\\n \\"VswitchId\\": \\"vsw-bp156w1gpbv0o50hs****\\",\\n \\"Expired\\": false,\\n \\"UserId\\": \\"edas_****_**st@aliyun-****.com\\",\\n \\"AddressType\\": \\"internet\\",\\n \\"NetworkType\\": \\"classic\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"GroupId\\": 0,\\n \\"Address\\": \\"39.176.XX.XX\\",\\n \\"SlbName\\": \\"adce\\",\\n \\"SlbStatus\\": \\"active\\",\\n \\"Tags\\": \\"[{\\\\\\"tagKey\\\\\\":\\\\\\"tag\\\\\\",\\\\\\"tagValue\\\\\\":\\\\\\"value\\\\\\"}]\\",\\n \\"Reusable\\": true\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>b197-40ab-9155-7ca7</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>\\n<SlbList>\\n <SlbEntity>\\n <SlbId>lb-2ze055t3xv7s8****</SlbId>\\n <VpcId>vpc-bp1f90rfybszjogyw****</VpcId>\\n <Address>39.XX.XX.176</Address>\\n <NetworkType>classic</NetworkType>\\n <UserId>edas_****_**st@aliyun-****.com</UserId>\\n <Expired>false</Expired>\\n <RegionId>cn-beijing</RegionId>\\n <AddressType>internet</AddressType>\\n <VswitchId>vsw-bp156w1gpbv0o50hs****</VswitchId>\\n <SlbName>adce</SlbName>\\n <GroupId>0</GroupId>\\n <SlbStatus>active</SlbStatus>\\n </SlbEntity>\\n</SlbList>","errorExample":""}]',
],
'ListSubAccount' => [
'path' => '/pop/v5/account/sub_account_list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'message'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '57609587-DFA2-41EC-****-*********'],
'SubAccountList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SubAccount' => [
'description' => '子账号和RAM用户列表',
'type' => 'array',
'items' => [
'description' => '子账号和RAM用户列表对象',
'type' => 'object',
'properties' => [
'SubEdasId' => ['description' => '子账号或RAM用户的EdasId', 'type' => 'string', 'example' => '28382009411268****'],
'SubUserId' => ['description' => '子账号或RAM用户的UserId', 'type' => 'string', 'example' => 'ram1@117274586608****'],
'Email' => ['description' => '电子邮箱', 'type' => 'string', 'example' => 'email@aliyun.com'],
'AdminUserId' => ['description' => '云账号的UserId', 'type' => 'string', 'example' => 'test@13624697***'],
'AdminUserKp' => ['description' => '云账号的Kp(旧概念,实际上就是云账号的EdasId)', 'type' => 'string', 'example' => '12456889****'],
'AdminEdasId' => ['description' => '云账号的EdasId。', 'type' => 'string', 'example' => '12456889****'],
'SubUserKp' => ['description' => '子账号或RAM用户的Kp(旧概念,实际上就是子账号或RAM用户的EdasId)', 'type' => 'string', 'example' => '28382009411268****'],
'Phone' => ['description' => '联系方式', 'type' => 'string', 'example' => '1373322****'],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '获取子账号列表',
'summary' => '获取子账号和RAM用户列表。',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:12:49.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSubAccount'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListSubAccount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"message\\",\\n \\"RequestId\\": \\"57609587-DFA2-41EC-****-*********\\",\\n \\"SubAccountList\\": {\\n \\"SubAccount\\": [\\n {\\n \\"SubEdasId\\": \\"28382009411268****\\",\\n \\"SubUserId\\": \\"ram1@117274586608****\\",\\n \\"Email\\": \\"email@aliyun.com\\",\\n \\"AdminUserId\\": \\"test@13624697***\\",\\n \\"AdminUserKp\\": \\"12456889****\\",\\n \\"AdminEdasId\\": \\"12456889****\\",\\n \\"SubUserKp\\": \\"28382009411268****\\",\\n \\"Phone\\": \\"1373322****\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>57609587-DFA2-41EC-****-*********</RequestId>\\n<Message>message</Message>\\n<SubAccountList>\\n <SubAccount>\\n <AdminEdasId>12456889****</AdminEdasId>\\n <AdminUserKp>12456889****</AdminUserKp>\\n <Email>email@aliyun.com</Email>\\n <SubEdasId>28382009411268****</SubEdasId>\\n <Phone>1373322****</Phone>\\n <AdminUserId>test@13624697***</AdminUserId>\\n <SubUserId>ram1@117274586608****</SubUserId>\\n <SubUserKp>28382009411268****</SubUserKp>\\n </SubAccount>\\n</SubAccountList>\\n<Code>200</Code>","errorExample":""}]',
],
'ListSwimmingLane' => [
'path' => '/pop/v5/trafficmgnt/swimming_lanes',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '79'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C2CDBBF9-9C9A-5AA1-9F39-094ADEB3****'],
'Data' => [
'description' => '响应数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '微服务空间。', 'type' => 'string', 'example' => 'cn-hangzhou:pre2'],
'GroupId' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '156'],
'ScenarioSign' => ['description' => '预期标签。', 'type' => 'string', 'example' => 'd0ad1052'],
'EntryRule' => ['description' => '条件列表。', 'type' => 'string', 'example' => '[{\\"condition\\":\\"AND\\",\\"enable\\":true,\\"path\\":\\"/\\",\\"priority\\":1,\\"restItems\\":[{\\"cond\\":\\"==\\",\\"datum\\":\\"value\\",\\"name\\":\\"tags\\",\\"operator\\":\\"rawvalue\\",\\"type\\":\\"header\\",\\"value\\":\\"value\\"}]}]'],
'Tag' => ['description' => '标签。', 'type' => 'string', 'example' => '2cb6b8a'],
'EnableRules' => ['description' => '流控规则是否开启。', 'type' => 'boolean', 'example' => 'true'],
'Name' => ['description' => '泳道名称。', 'type' => 'string', 'example' => 'name'],
'Id' => ['description' => '流控泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '348'],
'SwimmingLaneAppRelationShipList' => [
'description' => '流控泳道涉及应用列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'prod-app-58846'],
'Rules' => ['description' => '关联规则。', 'type' => 'string', 'example' => '""'],
'LaneId' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '348'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3b615783-01f1-4569-baa3-cb71bdb6****'],
'Extra' => ['description' => '补充信息。', 'type' => 'string', 'example' => 'edas-canary'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
],
],
],
'errorCodes' => [
601 => [
['errorCode' => 'Edas.errorcode.ParameterInvalid.PointedParameter.message', 'errorMessage' => 'The value of parameter {0} is invalid.', 'description' => '无效输入参数:{0}'],
],
],
'title' => '获取泳道列表',
'summary' => '获取泳道组下的泳道列表。',
'changeSet' => [
['createdAt' => '2023-05-08T08:27:32.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSwimmingLane'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListSwimmingLane',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"C2CDBBF9-9C9A-5AA1-9F39-094ADEB3****\\",\\n \\"Data\\": [\\n {\\n \\"NamespaceId\\": \\"cn-hangzhou:pre2\\",\\n \\"GroupId\\": 156,\\n \\"ScenarioSign\\": \\"d0ad1052\\",\\n \\"EntryRule\\": \\"[{\\\\\\\\\\\\\\"condition\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"AND\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"priority\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"restItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"cond\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"==\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"datum\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"tags\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"rawvalue\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"header\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\"}]}]\\",\\n \\"Tag\\": \\"2cb6b8a\\",\\n \\"EnableRules\\": true,\\n \\"Name\\": \\"name\\",\\n \\"Id\\": 348,\\n \\"SwimmingLaneAppRelationShipList\\": [\\n {\\n \\"AppName\\": \\"prod-app-58846\\",\\n \\"Rules\\": \\"\\\\\\"\\\\\\"\\",\\n \\"LaneId\\": 348,\\n \\"AppId\\": \\"3b615783-01f1-4569-baa3-cb71bdb6****\\",\\n \\"Extra\\": \\"edas-canary\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
],
'ListSwimmingLaneGroup' => [
'path' => '/pop/v5/trafficmgnt/swimming_lane_groups',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID。'."\n"
."\n"
.'自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:`cn-beijing:test`。 '."\n"
.'默认命名空间ID格式为:地域ID,例如:cn-beijing。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shenzhen:publish'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BF238E37-671A-5045-B49A-0B29C166****'],
'Data' => [
'description' => '泳道组列表数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '微服务空间ID。', 'type' => 'string', 'example' => 'cn-shanghai:daily'],
'Name' => ['description' => '泳道组名称。', 'type' => 'string', 'example' => 'name'],
'Id' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '257'],
'ApplicationList' => [
'description' => '泳道组涉及应用列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'java-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '406073bf-afc2-4142-b3d7-629a0308****'],
],
'description' => '',
],
],
'EntryApplication' => [
'description' => 'EDAS入口/网关信息。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'java-app'],
'Source' => ['description' => '数据来源,需配置为EDAS。', 'type' => 'string', 'example' => 'EDAS'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '406073bf-afc2-4142-b3d7-629a0308****'],
],
],
],
'description' => '',
],
],
],
],
],
],
'errorCodes' => [
601 => [
['errorCode' => 'Edas.errorcode.ParameterInvalid.PointedParameter.message', 'errorMessage' => 'The value of parameter {0} is invalid.', 'description' => '无效输入参数:{0}'],
],
],
'title' => '获取泳道组列表',
'summary' => '获取泳道组列表。',
'changeSet' => [
['createdAt' => '2022-09-19T08:14:45.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSwimmingLaneGroup'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ListSwimmingLaneGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"BF238E37-671A-5045-B49A-0B29C166****\\",\\n \\"Data\\": [\\n {\\n \\"NamespaceId\\": \\"cn-shanghai:daily\\",\\n \\"Name\\": \\"name\\",\\n \\"Id\\": 257,\\n \\"ApplicationList\\": [\\n {\\n \\"AppName\\": \\"java-app\\",\\n \\"AppId\\": \\"406073bf-afc2-4142-b3d7-629a0308****\\"\\n }\\n ],\\n \\"EntryApplication\\": {\\n \\"AppName\\": \\"java-app\\",\\n \\"Source\\": \\"EDAS\\",\\n \\"AppId\\": \\"406073bf-afc2-4142-b3d7-629a0308****\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'ListTagResources' => [
'path' => '/pop/v5/tag/tags',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => '资源类型,取值:'."\n"
."\n"
.'- **application**:EDAS应用。'."\n"
."\n"
.'- **cluster**:EDAS集群。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'application'],
],
[
'name' => 'ResourceIds',
'in' => 'query',
'schema' => ['description' => '资源ID列表, 列表的长度范围为1~20,JSON数组格式。', 'type' => 'string', 'required' => false, 'example' => '["000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"]'],
],
[
'name' => 'Tags',
'in' => 'query',
'schema' => ['description' => '标签键值对。'."\n"
.'- 单个资源最多贴20个标签。'."\n"
.'- key不能以**aliyun**和**acs:**开头,不能包含**http://**或者**https://**。'."\n"
.'- key和value最大不超过128字符,仅支持英文字母、数字和短划线(-)、半角逗号(,)、星号(*)、正斜线(/)、半角问号(?)和半角冒号(:)的组合。'."\n"
.'- JSON数组格式。', 'type' => 'string', 'required' => false, 'example' => '[{"key":"key1","value":"v1"},{"key":"key2","value":"v2"}]'],
],
[
'name' => 'ResourceRegionId',
'in' => 'query',
'schema' => ['description' => '资源所属地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx'],
'TagResources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagResource' => [
'description' => '资源标签列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => 'value1'],
'ResourceType' => ['description' => '资源类型。', 'type' => 'string', 'example' => 'ALIYUN::EDAS::APPLICATION'],
'ResourceId' => ['description' => '资源ID。', 'type' => 'string', 'example' => '000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877'],
'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'key1'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.InstanceNotExist.Instance.message', 'errorMessage' => 'The instance does not exist.', 'description' => '实例不存在'],
],
],
'title' => '查询资源绑定的标签列表',
'summary' => '查询云资源已经绑定的标签列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListTagResources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"TagValue\\": \\"value1\\",\\n \\"ResourceType\\": \\"ALIYUN::EDAS::APPLICATION\\",\\n \\"ResourceId\\": \\"000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877\\",\\n \\"TagKey\\": \\"key1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx</RequestId>\\n<TagResources>\\n <TagResource>\\n <ResourceId>000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877</ResourceId>\\n <TagKey>key1</TagKey>\\n <ResourceType>ALIYUN::EDAS::APPLICATION</ResourceType>\\n <TagValue>value1</TagValue>\\n </TagResource>\\n</TagResources>\\n<Code>200</Code>","errorExample":""}]',
],
'ListUserDefineRegion' => [
'path' => '/pop/v5/user_region_defs',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'DebugEnable',
'in' => 'query',
'schema' => ['description' => '是否允许远程调试。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'UserDefineRegionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'UserDefineRegionEntity' => [
'description' => '命名空间列表。',
'type' => 'array',
'items' => [
'description' => '命名空间对象。',
'type' => 'object',
'properties' => [
'BelongRegion' => ['description' => '隶属的物理地域ID。', 'type' => 'string', 'example' => 'cn-shenzhen'],
'RegionName' => ['description' => '命名空间名称。', 'type' => 'string', 'example' => 'betaappManager'],
'Description' => ['description' => '命名空间描述信息。', 'type' => 'string', 'example' => 'betaappManager'],
'DebugEnable' => ['description' => '是否允许远程调试。', 'type' => 'boolean', 'example' => 'false'],
'UserId' => ['description' => '用户主账号ID。', 'type' => 'string', 'example' => 'edas_****_test@aliyun-****.com'],
'Id' => ['description' => '唯一标识。', 'type' => 'integer', 'format' => 'int64', 'example' => '1330'],
'RegionId' => ['description' => '命名空间ID。'."\n"
."\n"
.'> 创建后不可变,格式为`物理地域ID:逻辑地域标识符`。', 'type' => 'string', 'example' => 'cn-shenzhen:betaappManager'],
'MseInstanceId' => ['description' => '注册中心类型:'."\n"
."\n"
.'* default:EDAS共享注册中心。'."\n"
.'* exclusive_mse:MSE Nacos注册中心。', 'type' => 'string', 'example' => 'default:EDAS'],
'RegistryType' => ['description' => 'MSE注册中心实例ID。', 'type' => 'string', 'example' => 'mse_prepaid_public_cn-tl32n******'],
],
],
],
],
'description' => '',
],
],
],
],
],
'title' => '获取用户自定义命名空间列表',
'summary' => '获取用户自定义命名空间列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-10-27T00:30:38.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2022-09-28T03:07:55.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListUserDefineRegion'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListUserDefineRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"UserDefineRegionList\\": {\\n \\"UserDefineRegionEntity\\": [\\n {\\n \\"BelongRegion\\": \\"cn-shenzhen\\",\\n \\"RegionName\\": \\"betaappManager\\",\\n \\"Description\\": \\"betaappManager\\",\\n \\"DebugEnable\\": false,\\n \\"UserId\\": \\"edas_****_test@aliyun-****.com\\",\\n \\"Id\\": 1330,\\n \\"RegionId\\": \\"cn-shenzhen:betaappManager\\",\\n \\"MseInstanceId\\": \\"default:EDAS\\",\\n \\"RegistryType\\": \\"mse_prepaid_public_cn-tl32n******\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<UserDefineRegionList>\\n <UserDefineRegionEntity>\\n <Description>betaappManager</Description>\\n <RegionName>betaappManager</RegionName>\\n <BelongRegion>cn-shenzhen</BelongRegion>\\n <RegionId>cn-shenzhen:betaappManager</RegionId>\\n <Id>1330</Id>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <DebugEnable>false</DebugEnable>\\n </UserDefineRegionEntity>\\n</UserDefineRegionList>","errorExample":""}]',
],
'ListVpc' => [
'path' => '/pop/v5/vpc_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'VpcList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'VpcEntity' => [
'description' => 'VPC列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID', 'type' => 'string', 'example' => 'vpc-wz9pcq3jofczwpujq****'],
'VpcName' => ['description' => 'VPC名称', 'type' => 'string', 'example' => 'edas-default-vpc4'],
'Expired' => ['description' => 'VPC的状态是否可用'."\n"
.'- true:可用'."\n"
.'- false:不可用', 'type' => 'boolean', 'example' => 'false'],
'UserId' => ['description' => '用户ID', 'type' => 'string', 'example' => 'edas_****_test@aliyun-****.com'],
'EcsNum' => ['description' => '关联的ECS实例数量', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'RegionId' => ['description' => '所在地域', 'type' => 'string', 'example' => 'cn-shenzhen'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取 VPC 列表',
'summary' => '获取VPC列表,该接口适用于ECS集群和K8s集群。',
'requestParamsDescription' => '无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:12:49.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListVpc'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:ListVpc',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"VpcList\\": {\\n \\"VpcEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-wz9pcq3jofczwpujq****\\",\\n \\"VpcName\\": \\"edas-default-vpc4\\",\\n \\"Expired\\": false,\\n \\"UserId\\": \\"edas_****_test@aliyun-****.com\\",\\n \\"EcsNum\\": 0,\\n \\"RegionId\\": \\"cn-shenzhen\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<VpcList>\\n <VpcEntity>\\n <VpcName>public_auto_test_vpc_</VpcName>\\n <Expired>false</Expired>\\n <RegionId>cn-shenzhen</RegionId>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <EcsNum>2</EcsNum>\\n <VpcId>vpc-wz90fbqjyyvxznxpy****</VpcId>\\n </VpcEntity>\\n <VpcEntity>\\n <VpcName>edas-default-vpc2</VpcName>\\n <Expired>false</Expired>\\n <RegionId>cn-shenzhen</RegionId>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <EcsNum>8</EcsNum>\\n <VpcId>vpc-wz90iikh8t4kdlwlj****</VpcId>\\n </VpcEntity>\\n</VpcList>\\n<Code>200</Code>","errorExample":""}]',
],
'MigrateEcu' => [
'summary' => '转移ECU到指定命名空间的默认集群。',
'path' => '/pop/v5/resource/migrate_ecu',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => '实例ID,多个实例之间可用英文逗号(,)分隔。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i-2zej4i2jdf3ntwhj****'],
],
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID:'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:cn-beijing:tdy218。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:cn-beijing。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:test_region'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '返回数据:'."\n"
."\n"
.'- true:成功。'."\n"
.'- false:失败。', 'type' => 'string', 'example' => 'true'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '04B0ABAF-95F2-42B6-A7B1****'],
],
],
],
],
'title' => '转移ECU到指定命名空间的默认集群',
'description' => '## 限制说明'."\n"
.'该接口已不推荐使用,建议使用接口TransformClusterMember代替,详情请参见[TransformClusterMember](~~71514~~)。'."\n"
."\n"
.'调用该接口导入ECS实例时,会重装ECS实例的操作系统,重装后,实例中所有数据都会被删除并且需要重新设置实例登录密码。请确保您要导入的ECS实例上没有重要的数据或数据已备份。'."\n"
."\n"
.'## 基本概念'."\n"
.'- **命名空间**:指的是EDAS中设计的用于隔离集群、ECS实例和应用等资源及在EDAS中发布的微服务的一个逻辑概念,包括默认命名空间和自定义命名空间,每个地域下面包括一个默认命名空间和若干个自定义命名空间,默认情况下只有默认命名空间,如果不想隔离资源及微服务,则不必创建自定义命名空间。'."\n"
.'- **ECU**:ECS导入到集群中后即为ECU。'."\n"
.'- **ECC**:集群中的ECU在应用中部署后即成为ECC。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:12:49.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'MigrateEcu'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:MigrateEcu',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"04B0ABAF-95F2-42B6-A7B1****\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>04B0ABAF-95F2-42B6-A7B1-8A832E863C92</RequestId>\\n<Data>true</Data>\\n<Code>200</Code>","errorExample":""}]',
],
'ModifyScalingRule' => [
'summary' => '调用ModifyScalingRule接口修改弹性扩、缩容规则。',
'path' => '/pop/v5/app/scaling_rules',
'methods' => ['post', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '74ee****-db65-4322-a1f6-bcb60e5b****'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '部署分组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '8123db90-880f-486f-****-************'],
],
[
'name' => 'InCondition',
'in' => 'query',
'schema' => [
'description' => '触发条件。'."\n"
."\n"
.'- OR:任一条件'."\n"
.'- AND:所有条件',
'type' => 'string',
'required' => false,
'docRequired' => false,
'example' => '"OR"',
'enum' => ['OR', 'AND'],
],
],
[
'name' => 'InEnable',
'in' => 'query',
'schema' => ['description' => '是否包含缩容规则。'."\n"
."\n"
.'- true:包含'."\n"
.'- false:不包含', 'type' => 'boolean', 'required' => false, 'docRequired' => false, 'example' => 'true'],
],
[
'name' => 'InCpu',
'in' => 'query',
'schema' => ['description' => '触发指标:CPU使用率。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'InDuration',
'in' => 'query',
'schema' => ['description' => '持续时间,单位为分钟。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'InInstanceNum',
'in' => 'query',
'schema' => ['description' => '分组缩容时需要保留的最小实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '3'],
],
[
'name' => 'InLoad',
'in' => 'query',
'schema' => ['description' => '触发指标:系统负载。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'InRT',
'in' => 'query',
'schema' => ['description' => '触发指标:服务时延。单位为毫秒,最小值为0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'InStep',
'in' => 'query',
'schema' => ['description' => '每次缩容的实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1'],
],
[
'name' => 'OutCondition',
'in' => 'query',
'schema' => [
'description' => '触发条件。'."\n"
."\n"
.'- OR:任一条件'."\n"
.'- AND:所有条件',
'type' => 'string',
'required' => false,
'docRequired' => false,
'example' => '"OR"',
'enum' => ['OR', 'AND'],
],
],
[
'name' => 'OutCPU',
'in' => 'query',
'schema' => ['description' => '触发指标:CPU使用率。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'OutDuration',
'in' => 'query',
'schema' => ['description' => '持续时间,单位为分钟。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'OutEnable',
'in' => 'query',
'schema' => ['description' => '是否包含扩容规则。', 'type' => 'boolean', 'required' => false, 'docRequired' => false, 'example' => 'true'],
],
[
'name' => 'OutInstanceNum',
'in' => 'query',
'schema' => ['description' => '分组扩容时的最大实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '10'],
],
[
'name' => 'OutLoad',
'in' => 'query',
'schema' => ['description' => '触发指标:系统负载。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '50'],
],
[
'name' => 'OutRT',
'in' => 'query',
'schema' => ['description' => '触发指标:服务时延。单位为毫秒,最小值为0。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '0'],
],
[
'name' => 'OutStep',
'in' => 'query',
'schema' => ['description' => '每次扩容的实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '0'],
],
[
'name' => 'ResourceFrom',
'in' => 'query',
'schema' => [
'description' => '扩容实例来源。'."\n"
.'- NEW:弹性资源。'."\n"
.'- AVAILABLE:已有资源。已有资源优先为AVAILABLE_FIRST。'."\n"
."\n"
.'NEW或AVAILABLE_FIRST需指定弹性扩容参数,弹性扩容包括两种模式:启动模版和基于现有实例规则。',
'type' => 'string',
'required' => false,
'docRequired' => false,
'example' => '"AVAILABLE"',
'enum' => ['AVAILABLE', 'NEW', 'AVAILABLE_FIRST'],
],
],
[
'name' => 'MultiAzPolicy',
'in' => 'query',
'schema' => [
'description' => '弹性扩容的多可用区扩缩容策略。包含两种策略:'."\n"
.'- PRIORITY:优先级策略。'."\n"
.'- BALANCE:均衡分布策略。',
'type' => 'string',
'required' => false,
'example' => '"PRIORITY"',
'enum' => ['PRIORITY', 'BALANCE'],
],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => ['description' => '弹性扩容的“启动模版”或“基于现有实例规则”所关联的VPC ID。', 'type' => 'string', 'required' => false, 'example' => '"vpc-bp1j55oz3bg*****"'],
],
[
'name' => 'VSwitchIds',
'in' => 'query',
'schema' => ['description' => 'VPC相关的vswitch ID列表,多个以半角逗号(,)分割。', 'type' => 'string', 'required' => false, 'example' => '"vsw-bp1ldxs3d4fd*****"'],
],
[
'name' => 'ScalingPolicy',
'in' => 'query',
'schema' => [
'description' => '弹性缩容的回收模式。'."\n"
.'- release:释放模式'."\n"
.'- recycle:停机回收模式。',
'type' => 'string',
'required' => false,
'example' => '"release"',
'enum' => ['release', 'recycle'],
],
],
[
'name' => 'TemplateInstanceId',
'in' => 'query',
'schema' => ['description' => '弹性扩容“基于现有实例规则”的实例ID。OutEnable为true(真)才有效。', 'type' => 'string', 'required' => false, 'example' => '"1"'],
],
[
'name' => 'TemplateInstanceName',
'in' => 'query',
'schema' => ['description' => '弹性扩容“基于现有实例规则”的实例名称。TemplateInstanceId存在才有效。', 'type' => 'string', 'required' => false, 'example' => '"tpl-tdy218"'],
],
[
'name' => 'Password',
'in' => 'query',
'schema' => ['description' => '实例登录密码。当弹性扩容使用“基于现有实例规则”才有效。', 'type' => 'string', 'required' => false, 'example' => '"Pwd*****"'],
],
[
'name' => 'KeyPairName',
'in' => 'query',
'schema' => ['description' => '实例登录密钥名称。当弹性扩容使用“基于现有实例规则”才有效。', 'type' => 'string', 'required' => false, 'example' => '"tdy218"'],
],
[
'name' => 'AcceptEULA',
'in' => 'query',
'schema' => ['description' => '若使用弹性扩容,则必须设置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => '弹性扩容“启动模版”ID。OutEnable为true(真)才有效,优先级高于TemplateInstanceId。', 'type' => 'string', 'required' => false, 'example' => '"lt-wz9hkhn8wp*****"'],
],
[
'name' => 'TemplateVersion',
'in' => 'query',
'schema' => ['description' => '弹性扩容“启动模版”版本。OutEnable为true(真)才有效。若使用默认模版,则设置为`-1`,否则设置为相应的版本号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '-1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码 ', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'CB36E997-FE54-476C-8C0D-********'],
],
'description' => '',
],
],
],
'title' => '设置扩缩容规则',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyScalingRule'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"CB36E997-FE54-476C-8C0D-********\\"\\n}","errorExample":""},{"type":"xml","example":"<Code>200</Code>\\n<Message>success</Message>","errorExample":""}]',
],
'QueryApplicationStatus' => [
'path' => '/pop/v5/app/app_status',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-441**************'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-********'],
'AppInfo' => [
'description' => '应用信息。',
'type' => 'object',
'properties' => [
'EcuList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Ecu' => [
'description' => 'ECU信息。',
'type' => 'array',
'items' => [
'description' => 'ECU信息对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-wz9b246zg************'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573635952012'],
'IpAddr' => ['description' => 'ECU的内网IP。', 'type' => 'string', 'example' => '172.16.*.**'],
'AvailableCpu' => ['description' => '可用CPU。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573626207270'],
'UserId' => ['description' => '关联用户ID。', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'i-wz9fp1ljg***********'],
'RegionId' => ['description' => '所在RegionID。', 'type' => 'string', 'example' => 'cn-shen****-*'],
'EcuId' => ['description' => '这台ECU的唯一标示ID,可以通过在ECS实例上执行`dmidecode`获取。', 'type' => 'string', 'example' => '07bd417a-b863-477d-****-************'],
'GroupId' => ['description' => '分组ID。', 'type' => 'string', 'example' => '8123db90-880f-486f-****-************'],
'DockerEnv' => ['description' => '是否安装了Docker。', 'type' => 'boolean', 'example' => 'false'],
'Online' => ['description' => '是否在线。', 'type' => 'boolean', 'example' => 'true'],
'AvailableMem' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ZoneId' => ['description' => '所在地域ID。', 'type' => 'string', 'example' => 'cn-shen****-*'],
'Name' => ['description' => '名称。', 'type' => 'string', 'example' => 'EDAS-scaled-cluster: default cluster'],
'HeartbeatTime' => ['description' => '心跳时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573635952012'],
],
],
],
],
'description' => '',
],
'EccList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Ecc' => [
'description' => 'ECC信息。',
'type' => 'array',
'items' => [
'description' => 'ECC信息对象。',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC网络ID。', 'type' => 'string', 'example' => 'vpc-wz9b246zg************'],
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573635952012'],
'EcuId' => ['description' => 'ECU唯一标识。', 'type' => 'string', 'example' => '07bd417a-b863-477d-****-************'],
'EccId' => ['description' => 'ECC唯一标识。', 'type' => 'string', 'example' => '0cf49a6c-95a8-4aa8-****-************'],
'GroupId' => ['description' => '分组ID。', 'type' => 'string', 'example' => '8123db90-880f-486f-****-************'],
'AppState' => ['description' => '应用实例状态:'."\n"
.'- 0:AGENT_OFF:Agent下线。'."\n"
.'- 1:STOPPED:应用已停止。'."\n"
.'- 3:RUNNING\\_BUT\\_URL\\_FAILED:健康检查失败。'."\n"
.'- 7:RUNNING:应用运行中。', 'type' => 'integer', 'format' => 'int32', 'example' => '7'],
'TaskState' => ['description' => '实例上最近的一次任务的任务状态:'."\n"
.'- 0:UNKNOWN:未知状态。'."\n"
.'- 1:PROCESSING:任务处理中。'."\n"
.'- 2:SUCCESS:任务执行成功。'."\n"
.'- 3:FAILED:任务执行失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573626226691'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
'ContainerStatus' => ['description' => '容器状态。', 'type' => 'string', 'example' => '“”'],
'Ip' => ['description' => 'ECU的内网IP。', 'type' => 'string', 'example' => '172.16.*.***'],
],
],
],
],
'description' => '',
],
'GroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Group' => [
'description' => '分组信息。',
'type' => 'array',
'items' => [
'description' => '分组信息对象。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573627441388'],
'GroupName' => ['description' => '分组名称。', 'type' => 'string', 'example' => '_DEFAULT_GROUP'],
'GroupId' => ['description' => '分组ID。', 'type' => 'string', 'example' => '8123db90-880f-486f-****-************'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573626155185'],
'AppVersionId' => ['description' => '分组部署记录ID。', 'type' => 'string', 'example' => 'changeorder_a**_*******_**'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
'PackageVersionId' => ['description' => '分组部署的包ID。', 'type' => 'string', 'example' => '441beb18-da42-44dc-****-************'],
'GroupType' => ['description' => '表示分组类型:'."\n"
."\n"
.'- 0:表示默认。'."\n"
.'- 1:表示用户创建。'."\n"
.'- 2:表示灰度分组。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '0d247b93-8d62-4e34-****-************'],
],
],
],
],
'description' => '',
],
'DeployRecordList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DeployRecord' => [
'description' => 'DeployRecord信息。',
'type' => 'array',
'items' => [
'description' => 'DeployRecord信息对象。',
'type' => 'object',
'properties' => [
'EccId' => ['description' => 'ECC唯一标识。', 'type' => 'string', 'example' => '0cf49a6c-95a8-4aa8-****-************'],
'EcuId' => ['description' => 'ECU唯一标识。', 'type' => 'string', 'example' => '07bd417a-b863-477d-****-************'],
'PackageMd5' => ['description' => '部署包MD5值。', 'type' => 'string', 'example' => 'd0db5bcb442e492104d0f00e10a03dd9'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573626226691'],
'PackageVersionId' => ['description' => '分组部署的包ID。', 'type' => 'string', 'example' => '441beb18-da42-44dc-****-************'],
'DeployRecordId' => ['description' => '部署记录ID。', 'type' => 'string', 'example' => 'bbc6c0d5-d792-4907-****-************'],
],
],
],
],
'description' => '',
],
'Application' => [
'description' => '应用基础信息。',
'type' => 'object',
'properties' => [
'HealthCheckUrl' => ['description' => '健康检查URL。', 'type' => 'string', 'example' => '“”'],
'Owner' => ['description' => '应用创建者。', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1573626207270'],
'UserId' => ['description' => '云账号ID。', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'Port' => ['description' => '应用所占用的端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'RunningInstanceCount' => ['description' => '运行中的应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Phone' => ['description' => '电话。', 'type' => 'string', 'example' => '1886666****'],
'RegionId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-shenzhen:test'],
'BuildPackageId' => ['description' => '容器版本ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Dockerize' => ['description' => '是否为Docker应用。', 'type' => 'boolean', 'example' => 'false'],
'Email' => ['description' => '电子邮箱地址。', 'type' => 'string', 'example' => '1234567@qq.com'],
'Cpu' => ['description' => 'CPU数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'InstanceCount' => ['description' => '包含的应用实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'LaunchTime' => ['description' => '运行时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'Memory' => ['description' => '内存。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Name' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'EDAS-scaled-cluster:默认集群'],
'ApplicationId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '3616cdca-4f92-4413-****-************'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '0d247b93-8d62-4e34-****-************'],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-********\\",\\n \\"AppInfo\\": {\\n \\"EcuList\\": {\\n \\"Ecu\\": [\\n {\\n \\"VpcId\\": \\"vpc-wz9b246zg************\\",\\n \\"UpdateTime\\": 1573635952012,\\n \\"IpAddr\\": \\"172.16.*.**\\",\\n \\"AvailableCpu\\": 0,\\n \\"CreateTime\\": 1573626207270,\\n \\"UserId\\": \\"edas_com***_****@******-*****.***\\",\\n \\"InstanceId\\": \\"i-wz9fp1ljg***********\\",\\n \\"RegionId\\": \\"cn-shen****-*\\",\\n \\"EcuId\\": \\"07bd417a-b863-477d-****-************\\",\\n \\"GroupId\\": \\"8123db90-880f-486f-****-************\\",\\n \\"DockerEnv\\": false,\\n \\"Online\\": true,\\n \\"AvailableMem\\": 0,\\n \\"ZoneId\\": \\"cn-shen****-*\\",\\n \\"Name\\": \\"EDAS-scaled-cluster: default cluster\\",\\n \\"HeartbeatTime\\": 1573635952012\\n }\\n ]\\n },\\n \\"EccList\\": {\\n \\"Ecc\\": [\\n {\\n \\"VpcId\\": \\"vpc-wz9b246zg************\\",\\n \\"UpdateTime\\": 1573635952012,\\n \\"EcuId\\": \\"07bd417a-b863-477d-****-************\\",\\n \\"EccId\\": \\"0cf49a6c-95a8-4aa8-****-************\\",\\n \\"GroupId\\": \\"8123db90-880f-486f-****-************\\",\\n \\"AppState\\": 7,\\n \\"TaskState\\": 3,\\n \\"CreateTime\\": 1573626226691,\\n \\"AppId\\": \\"3616cdca-4f92-4413-****-************\\",\\n \\"ContainerStatus\\": \\"“”\\",\\n \\"Ip\\": \\"172.16.*.***\\"\\n }\\n ]\\n },\\n \\"GroupList\\": {\\n \\"Group\\": [\\n {\\n \\"UpdateTime\\": 1573627441388,\\n \\"GroupName\\": \\"_DEFAULT_GROUP\\",\\n \\"GroupId\\": \\"8123db90-880f-486f-****-************\\",\\n \\"CreateTime\\": 1573626155185,\\n \\"AppVersionId\\": \\"changeorder_a**_*******_**\\",\\n \\"AppId\\": \\"3616cdca-4f92-4413-****-************\\",\\n \\"PackageVersionId\\": \\"441beb18-da42-44dc-****-************\\",\\n \\"GroupType\\": 0,\\n \\"ClusterId\\": \\"0d247b93-8d62-4e34-****-************\\"\\n }\\n ]\\n },\\n \\"DeployRecordList\\": {\\n \\"DeployRecord\\": [\\n {\\n \\"EccId\\": \\"0cf49a6c-95a8-4aa8-****-************\\",\\n \\"EcuId\\": \\"07bd417a-b863-477d-****-************\\",\\n \\"PackageMd5\\": \\"d0db5bcb442e492104d0f00e10a03dd9\\",\\n \\"CreateTime\\": 1573626226691,\\n \\"PackageVersionId\\": \\"441beb18-da42-44dc-****-************\\",\\n \\"DeployRecordId\\": \\"bbc6c0d5-d792-4907-****-************\\"\\n }\\n ]\\n },\\n \\"Application\\": {\\n \\"HealthCheckUrl\\": \\"“”\\",\\n \\"Owner\\": \\"edas_com***_****@******-*****.***\\",\\n \\"CreateTime\\": 1573626207270,\\n \\"UserId\\": \\"edas_com***_****@******-*****.***\\",\\n \\"Port\\": 8080,\\n \\"RunningInstanceCount\\": 1,\\n \\"Phone\\": \\"1886666****\\",\\n \\"RegionId\\": \\"cn-shenzhen:test\\",\\n \\"BuildPackageId\\": 0,\\n \\"Dockerize\\": false,\\n \\"Email\\": \\"1234567@qq.com\\",\\n \\"Cpu\\": 0,\\n \\"InstanceCount\\": 1,\\n \\"LaunchTime\\": 0,\\n \\"Memory\\": 0,\\n \\"Name\\": \\"EDAS-scaled-cluster:默认集群\\",\\n \\"ApplicationId\\": \\"3616cdca-4f92-4413-****-************\\",\\n \\"ClusterId\\": \\"0d247b93-8d62-4e34-****-************\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<AppInfo>\\n <EcuList>\\n <Ecu>\\n <AvailableMem>0</AvailableMem>\\n <AvailableCpu>0</AvailableCpu>\\n <InstanceId>i-wz9fp1ljg***********</InstanceId>\\n <Online>true</Online>\\n <UpdateTime>1573635952012</UpdateTime>\\n <UserId>edas_com***_****@******-*****.***</UserId>\\n <ZoneId>cn-shen****-*</ZoneId>\\n <GroupId>8123db90-880f-486f-****-************</GroupId>\\n <VpcId>vpc-wz9b246zg************</VpcId>\\n <IpAddr>172.16.0.107</IpAddr>\\n <Name>EDAS-scaled-cluster:默认集群</Name>\\n <HeartbeatTime>1573635952012</HeartbeatTime>\\n <CreateTime>1573626207270</CreateTime>\\n <RegionId>cn-shenzhen:xuanye</RegionId>\\n <EcuId>07bd417a-b863-477d-****-************</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </Ecu>\\n </EcuList>\\n <EccList>\\n <Ecc>\\n <Ip>172.16.*.***</Ip>\\n <AppState>7</AppState>\\n <EccId>0cf49a6c-95a8-4aa8-****-************</EccId>\\n <CreateTime>1573626226691</CreateTime>\\n <AppId>3616cdca-4f92-4413-****-************</AppId>\\n <UpdateTime>1573635952024</UpdateTime>\\n <EcuId>07bd417a-b863-477d-****-************</EcuId>\\n <TaskState>3</TaskState>\\n <GroupId>8123db90-880f-486f-****-************</GroupId>\\n <VpcId>vpc-wz9b246zg************</VpcId>\\n </Ecc>\\n </EccList>\\n <Application>\\n <HealthCheckUrl/>\\n <Owner>edas_com***_****@******-*****.***</Owner>\\n <Phone>1886666****</Phone>\\n <RunningInstanceCount>1</RunningInstanceCount>\\n <BuildPackageId>0</BuildPackageId>\\n <UserId>edas_com***_****@******-*****.***</UserId>\\n <ApplicationId>3616cdca-4f92-4413-****-************</ApplicationId>\\n <Name>testPopApi</Name>\\n <InstanceCount>1</InstanceCount>\\n <Memory>0</Memory>\\n <Cpu>0</Cpu>\\n <Port>8080</Port>\\n <Email>1234567@qq.com</Email>\\n <ClusterId>0d247b93-8d62-4e34-****-************</ClusterId>\\n <Dockerize>false</Dockerize>\\n <RegionId>cn-*******</RegionId>\\n <CreateTime>1573626155177</CreateTime>\\n <LaunchTime>0</LaunchTime>\\n </Application>\\n <DeployRecordList>\\n <DeployRecord>\\n <EccId>0cf49a6c-95a8-4aa8-****-************</EccId>\\n <PackageVersionId>441beb18-da42-44dc-****-************</PackageVersionId>\\n <CreateTime>1573627453139</CreateTime>\\n <DeployRecordId>bbc6c0d5-d792-4907-****-************</DeployRecordId>\\n <EcuId>07bd417a-b863-477d-****-************</EcuId>\\n <PackageMd5>d0db5bcb442e492104d0f00e10a03dd9</PackageMd5>\\n </DeployRecord>\\n </DeployRecordList>\\n <GroupList>\\n <Group>\\n <GroupType>0</GroupType>\\n <GroupName>_DEFAULT_GROUP</GroupName>\\n <ClusterId>0d247b93-8d62-4e34-****-************</ClusterId>\\n <PackageVersionId>441beb18-da42-44dc-****-************</PackageVersionId>\\n <CreateTime>1573626155185</CreateTime>\\n <AppId>3616cdca-4f92-4413-****-************</AppId>\\n <UpdateTime>1573627441388</UpdateTime>\\n <AppVersionId>changeorder_a**_*******_**</AppVersionId>\\n <GroupId>8123db90-880f-486f-****-************</GroupId>\\n </Group>\\n </GroupList>\\n</AppInfo>\\n<Code>200</Code>","errorExample":""}]',
'title' => '查询应用状态',
'summary' => '调用QueryApplicationStatus接口查询应用状态。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-05-23T06:09:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryApplicationStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'QueryEccInfo' => [
'path' => '/pop/v5/ecc',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'EccId',
'in' => 'query',
'schema' => ['description' => 'ECC ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b197-40ab-9155-****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
'EccInfo' => [
'description' => 'ECC信息',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID', 'type' => 'string', 'example' => 'vpc-23727****'],
'EccId' => ['description' => 'ECC ID', 'type' => 'string', 'example' => 'a5b9****-40b4-4d7b-9c2a-55d6c1c0****'],
'EcuId' => ['description' => 'ECU ID', 'type' => 'string', 'example' => '0d4e****-6d87-401f-ba81-13df9877****'],
'GroupId' => ['description' => '分组ID', 'type' => 'string', 'example' => '57cd****-2d3b-496f-bcce-646d0a4d****'],
'GroupName' => ['description' => '分组名', 'type' => 'string', 'example' => '_DEFAULT_GROUP'],
'PackageMd5' => ['description' => '包版本的MD5码', 'type' => 'string', 'example' => 'bab6****7a090e41ca9445c9b3cd****'],
'AppId' => ['description' => '应用ID', 'type' => 'string', 'example' => 'e809****-43d7-4c6b-8e01-b0d9d1db****'],
'PackageVersion' => ['description' => '包版本', 'type' => 'string', 'example' => '20210209.153400'],
],
],
],
'description' => '',
],
],
],
'title' => '查询ECC信息',
'summary' => '适用于容器服务K8s集群。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:40:57.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryEccInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NamespaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\",\\n \\"EccInfo\\": {\\n \\"VpcId\\": \\"vpc-23727****\\",\\n \\"EccId\\": \\"a5b9****-40b4-4d7b-9c2a-55d6c1c0****\\",\\n \\"EcuId\\": \\"0d4e****-6d87-401f-ba81-13df9877****\\",\\n \\"GroupId\\": \\"57cd****-2d3b-496f-bcce-646d0a4d****\\",\\n \\"GroupName\\": \\"_DEFAULT_GROUP\\",\\n \\"PackageMd5\\": \\"bab6****7a090e41ca9445c9b3cd****\\",\\n \\"AppId\\": \\"e809****-43d7-4c6b-8e01-b0d9d1db****\\",\\n \\"PackageVersion\\": \\"20210209.153400\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<EccInfo>\\n <GroupName>_DEFAULT_GROUP</GroupName>\\n <VpcId>vpc-23727****</VpcId>\\n <AppId>e809****-43d7-4c6b-8e01-b0d9d1db****</AppId>\\n <PackageMd5>bab6****7a090e41ca9445c9b3cd****</PackageMd5>\\n <EcuId>0d4e****-6d87-401f-ba81-13df9877****</EcuId>\\n <EccId>a5b9****-40b4-4d7b-9c2a-55d6c1c0****</EccId>\\n <PackageVersion>20210209.153400</PackageVersion>\\n <GroupId>57cd****-2d3b-496f-bcce-646d0a4d****</GroupId>\\n</EccInfo>\\n<RequestId>b197-40ab-9155-****</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'QueryMigrateEcuList' => [
'path' => '/pop/v5/resource/migrate_ecu_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID。'."\n"
.'- 自定义命名空间ID格式为:`地域ID:命名空间标示符`,例如:`cn-beijing:test`。'."\n"
.'- 默认命名空间ID格式为:`地域ID`,例如:`cn-beijing`。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou or cn-hangzhou:test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'EcuEntityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EcuEntity' => [
'description' => '可供迁移的实例列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'VPC ID', 'type' => 'string', 'example' => 'vpc-2zef6ob8m************'],
'UpdateTime' => ['description' => '更新时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281041109'],
'IpAddr' => ['description' => 'ECU的私网IP', 'type' => 'string', 'example' => '192.168.0.150'],
'AvailableCpu' => ['description' => '可用CPU,单位为核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'CreateTime' => ['description' => '创建时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281041101'],
'UserId' => ['description' => '主账号ID', 'type' => 'string', 'example' => 'edas_com***_****@******-*****.***'],
'InstanceId' => ['description' => '实例ID', 'type' => 'string', 'example' => 'i-2zej4i2jd***********'],
'Mem' => ['description' => '总内存', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'RegionId' => ['description' => '所在地域ID', 'type' => 'string', 'example' => 'cn-beijing'],
'EcuId' => ['description' => '这台ECU的唯一标识ID,可以通过在ECS上执行`dmidecode`获取。', 'type' => 'string', 'example' => '70ed3f59-b476-49aa-****-************'],
'Cpu' => ['description' => 'CPU限制配额,单位为核数。0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'DockerEnv' => ['description' => '是否安装了Docker:'."\n"
.'- true:已安装Docker'."\n"
.'- false:未安装Docker', 'type' => 'boolean', 'example' => 'false'],
'Online' => ['description' => '是否在线。'."\n"
.'- true:在线'."\n"
.'- false:不在线', 'type' => 'boolean', 'example' => 'true'],
'AvailableMem' => ['description' => '可用内存,单位为MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '2048'],
'ZoneId' => ['description' => '可用区ID', 'type' => 'string', 'example' => 'cn-bei****-*'],
'Name' => ['description' => '实例名称', 'type' => 'string', 'example' => 'product_test003'],
'HeartbeatTime' => ['description' => '心跳时间的时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1573281041101'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"EcuEntityList\\": {\\n \\"EcuEntity\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zef6ob8m************\\",\\n \\"UpdateTime\\": 1573281041109,\\n \\"IpAddr\\": \\"192.168.0.150\\",\\n \\"AvailableCpu\\": 2,\\n \\"CreateTime\\": 1573281041101,\\n \\"UserId\\": \\"edas_com***_****@******-*****.***\\",\\n \\"InstanceId\\": \\"i-2zej4i2jd***********\\",\\n \\"Mem\\": 0,\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"EcuId\\": \\"70ed3f59-b476-49aa-****-************\\",\\n \\"Cpu\\": 0,\\n \\"DockerEnv\\": false,\\n \\"Online\\": true,\\n \\"AvailableMem\\": 2048,\\n \\"ZoneId\\": \\"cn-bei****-*\\",\\n \\"Name\\": \\"product_test003\\",\\n \\"HeartbeatTime\\": 1573281041101\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>\\n<EcuEntityList>\\n <EcuEntity>\\n <AvailableMem>2048</AvailableMem>\\n <Mem>0</Mem>\\n <AvailableCpu>2</AvailableCpu>\\n <InstanceId>i-2zej4i2jdf3ntw****</InstanceId>\\n <Online>true</Online>\\n <UpdateTime>1573281041109</UpdateTime>\\n <UserId>edas_****_test@aliyun-****.com</UserId>\\n <ZoneId>cn-beijing-h</ZoneId>\\n <VpcId>vpc-2zef6ob8mrlzv8x3****</VpcId>\\n <IpAddr>192.168.0.150</IpAddr>\\n <Name>product_test003</Name>\\n <Cpu>0</Cpu>\\n <HeartbeatTime>1573281041101</HeartbeatTime>\\n <CreateTime>1573281041101</CreateTime>\\n <RegionId>test_region</RegionId>\\n <EcuId>70ed3f59-b476-49aa-be09-9e6c37****</EcuId>\\n <DockerEnv>false</DockerEnv>\\n </EcuEntity>\\n</EcuEntityList>","errorExample":""}]',
'title' => '查询可迁移的实例列表',
'summary' => '调用QueryMigrateEcuList来查询可迁移的实例列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:40:57.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryMigrateEcuList'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'edas:QueryMigrateEcuList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'QueryMigrateRegionList' => [
'path' => '/pop/v5/resource/migrate_region_select',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'LogicalRegionId',
'in' => 'query',
'schema' => ['description' => '命名空间ID', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou:test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'RegionEntityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'RegionEntity' => [
'description' => '命名空间列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RegionName' => ['description' => '命名空间名称', 'type' => 'string', 'example' => 'Beta'],
'RegionNo' => ['description' => '命名空间ID', 'type' => 'string', 'example' => 'cn-beijing:beta'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '查询可供迁移的命名空间列表',
'summary' => '查询可供迁移的命名空间列表。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T12:40:57.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryMigrateRegionList'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:QueryMigrateRegionList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"RegionEntityList\\": {\\n \\"RegionEntity\\": [\\n {\\n \\"RegionName\\": \\"Beta\\",\\n \\"RegionNo\\": \\"cn-beijing:beta\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RegionEntityList>\\n <RegionEntity>\\n <RegionName>Beta</RegionName>\\n <RegionNo>cn-beijing:beta</RegionNo>\\n </RegionEntity>\\n <RegionEntity>\\n <RegionName>AllFlow</RegionName>\\n <RegionNo>cn-beijing:AllFlow</RegionNo>\\n </RegionEntity>\\n <RegionEntity>\\n <RegionName>doc-test</RegionName>\\n <RegionNo>cn-beijing:doc</RegionNo>\\n </RegionEntity>\\n <RegionEntity>\\n <RegionName>test_region</RegionName>\\n <RegionNo>cn-beijing:test</RegionNo>\\n </RegionEntity>\\n</RegionEntityList>\\n<Code>200</Code>","errorExample":""}]',
],
'QueryRegionConfig' => [
'path' => '/pop/v5/region_config',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'b197-40ab-9155-7ca7'],
'RegionConfig' => [
'description' => '地域配置信息',
'type' => 'object',
'properties' => [
'No' => ['description' => '地域序号,该参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AddressServerHost' => ['description' => '地址服务器域名', 'type' => 'string', 'example' => '****.edas.aliyun.com'],
'Tag' => ['description' => '地域标识。固定值,即`ALIYUN_SHARE`。', 'type' => 'string', 'example' => 'ALIYUN_SHARE'],
'AgentInstallScript' => ['description' => 'Agent脚本安装路径', 'type' => 'string', 'example' => 'http://edas-qd.oss-cn-****-internal.aliyuncs.com/****sh'],
'FileServerType' => ['description' => '文件服务器类型', 'type' => 'string', 'example' => 'oss'],
'Name' => ['description' => '地域配置名称', 'type' => 'string', 'example' => '华北2'],
'ImageId' => ['description' => '官方镜像ID', 'type' => 'string', 'example' => 'm-2zea4hx8f9zxqah2****'],
'Id' => ['description' => '地域配置ID', 'type' => 'string', 'example' => 'cn-beijing'],
'FileServerConfig' => [
'description' => '文件服务信息',
'type' => 'object',
'properties' => [
'InternalUrl' => ['description' => '文件服务器内部URL', 'type' => 'string', 'example' => 'oss-cn-beijing-****.aliyuncs.com'],
'PublicUrl' => ['description' => '文件服务器公网URL', 'type' => 'string', 'example' => 'oss-cn-beijing.aliyuncs.com'],
'VpcUrl' => ['description' => '文件服务器VPC URL', 'type' => 'string', 'example' => 'v*****-oss-cn-beijing.aliyuncs.com'],
'Bucket' => ['description' => '文件服务器OSS Bucket', 'type' => 'string', 'example' => 'edas-bj'],
],
],
],
],
],
'description' => '',
],
],
],
'title' => '获取不同地域的配置内容',
'summary' => '获取不同地域的配置内容。',
'requestParamsDescription' => ' 无请求参数。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-13T11:26:59.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryRegionConfig'],
],
],
'ramActions' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-7ca7\\",\\n \\"RegionConfig\\": {\\n \\"No\\": 1,\\n \\"AddressServerHost\\": \\"****.edas.aliyun.com\\",\\n \\"Tag\\": \\"ALIYUN_SHARE\\",\\n \\"AgentInstallScript\\": \\"http://edas-qd.oss-cn-****-internal.aliyuncs.com/****sh\\",\\n \\"FileServerType\\": \\"oss\\",\\n \\"Name\\": \\"华北2\\",\\n \\"ImageId\\": \\"m-2zea4hx8f9zxqah2****\\",\\n \\"Id\\": \\"cn-beijing\\",\\n \\"FileServerConfig\\": {\\n \\"InternalUrl\\": \\"oss-cn-beijing-****.aliyuncs.com\\",\\n \\"PublicUrl\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"VpcUrl\\": \\"v*****-oss-cn-beijing.aliyuncs.com\\",\\n \\"Bucket\\": \\"edas-bj\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RegionConfig>\\n <Name>华北2</Name>\\n <ImageId>m-2zea****qah2as71</ImageId>\\n <FileServerType>oss</FileServerType>\\n <FileServerConfig>\\n <InternalUrl>oss-cn-****-internal.aliyuncs.com</InternalUrl>\\n <PublicUrl>oss-cn-****.aliyuncs.com</PublicUrl>\\n <Bucket>edas-bj</Bucket>\\n <VpcUrl>****-oss-cn-beijing.aliyuncs.com</VpcUrl>\\n </FileServerConfig>\\n <Tag>ALIYUN_SHARE</Tag>\\n <AddressServerHost>addr-bj-****.edas.aliy*un.com</AddressServerHost>\\n <Id>cn-beijing</Id>\\n <No>0</No>\\n <AgentInstallScript>http://edas-****-cn-qingdao-***.aliyuncs.com/****.sh</AgentInstallScript>\\n</RegionConfig>\\n<Code>200</Code>","errorExample":""}]',
],
'QuerySlsLogStoreList' => [
'path' => '/pop/v5/k8s/sls/query_sls_log_store_list',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'af58edcf-f7eb-****-****-db4e425f****'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '日志服务采集类型:'."\n"
."\n"
.'- file: 文件类型。'."\n"
.'- stdout: 标准输出类型。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'file'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '查询页面大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
'schema' => ['description' => '查询页码,从1开始编号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回消息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'd6834ee9-5045-*************'],
'TotalSize' => ['description' => '日志服务配置数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Result' => [
'description' => '日志服务配置结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Link' => ['description' => '日志服务链接。', 'type' => 'string', 'example' => 'https://sls.console.aliyun.com/lognext/project/k8s-log-c846f28edbd1d4c6aa9d78c0e********/logsearch/thisisiss'],
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-05-18 22:08:46'],
'Logstore' => ['description' => 'logstore名称。', 'type' => 'string', 'example' => 'thisisatestlogstore'],
'ConsumerSide' => ['description' => '日志服务类型。', 'type' => 'string', 'example' => 'SLS log service'],
'Project' => ['description' => 'project名称。', 'type' => 'string', 'example' => 'k8s-log-c846f28edbd1d4c6aa9d78c0e********'],
'Source' => ['description' => '日志来源:'."\n"
."\n"
.'- 标准输出:stdout.log。'."\n"
.'- 文件日志:采集路径。', 'type' => 'string', 'example' => '/var/log/*'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"d6834ee9-5045-*************\\",\\n \\"TotalSize\\": 1,\\n \\"Result\\": [\\n {\\n \\"Link\\": \\"https://sls.console.aliyun.com/lognext/project/k8s-log-c846f28edbd1d4c6aa9d78c0e********/logsearch/thisisiss\\",\\n \\"CreateTime\\": \\"2020-05-18 22:08:46\\",\\n \\"Logstore\\": \\"thisisatestlogstore\\",\\n \\"ConsumerSide\\": \\"SLS log service\\",\\n \\"Project\\": \\"k8s-log-c846f28edbd1d4c6aa9d78c0e********\\",\\n \\"Source\\": \\"/var/log/*\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<code>200</code>\\n<message>success</message>\\n<result>\\n <consumerSide>SLS日志服务</consumerSide>\\n <createTime>2020-05-18 22:08:46</createTime>\\n <link>https://sls.console.aliyun.com/lognext/project/k8s-log-c846f28edbd1d4c6aa9d78c0e********/logsearch/thisisiss</link>\\n <logstore>thisisatestlogstore</logstore>\\n <project>k8s-log-c846f28edbd1d4c6aa9d78c0e********</project>\\n <source>/var/log/*</source>\\n</result>\\n<totalSize>1</totalSize>","errorExample":""}]',
'title' => '查询应用的日志服务配置详情',
'summary' => '调用 QuerySlsLogStoreList 接口查询应用的日志服务配置详情。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-05-10T06:20:24.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ReadApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'ResetApplication' => [
'summary' => '重置一个应用。',
'path' => '/pop/v5/changeorder/co_reset',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过[ListApplication](~~149390~~)获取。', 'type' => 'string', 'required' => true, 'example' => '3616cdca-4f92*********'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '应用下需要重置机器的eccid,多个用半角逗号(,)分隔,可通过调用[QueryApplicationStatus](~~149394~~)接口获取eccid。', 'type' => 'string', 'required' => true, 'example' => '0cf49a6c-***********'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID,调用[GetChangeOrderInfo](~~62072~~)接口获取这次重置具体执行进展。', 'type' => 'string', 'example' => '1c66548e-a082-40************'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-*********'],
],
],
],
],
'title' => '重置应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:04:11.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:04:11.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ResetApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"1c66548e-a082-40************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-*********\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>1c66548e-a082-40************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'RestartApplication' => [
'summary' => '适用于ECS应用。',
'path' => '/pop/v5/changeorder/co_restart',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。可以通过调用ListApplication接口获取,具体操作,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c627c157-560d*******'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '应用中需要重启的ECS实例的EccId。可以通过调用QueryApplicationStatus接口获取EccId,具体操作,请参见[QueryApplicationStatus](~~149394~~)。'."\n"
.'- 如果包含多个EccId,用半角逗号(,)分隔。'."\n"
.'- 不设置该参数,表示重启该应用中的所有实例。', 'type' => 'string', 'required' => false, 'example' => '006c0ea5-5f8d-4398-af1e-**********'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。'."\n"
."\n"
.'可以调用GetChangeOrderInfo接口查询此次重启的详细执行进展,具体操作,请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'example' => 'a9557bac-ddd7-*********************'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
],
],
],
],
'title' => '重启应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T11:59:52.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T11:59:52.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"a9557bac-ddd7-*********************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>a9557bac-ddd7-*********************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'RestartK8sApplication' => [
'path' => '/pop/v5/k8s/acs/restart_k8s_app',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-********ed2ae98de18d'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更记录超时时间,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '此次操作的变更记录ID。', 'type' => 'string', 'example' => '*********-ed2ae98de18d'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
],
],
],
],
'errorCodes' => [],
'title' => '重启K8s应用',
'summary' => '调用RestartK8sApplication接口来重启部署在容器服务K8s集群或Serverless K8s集群中的应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [
['conditionKey' => 'edas:tag', 'validationType' => 'always'],
],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"*********-ed2ae98de18d\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>*********-ed2ae98de18d</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'RetryChangeOrderTask' => [
'path' => '/pop/v5/changeorder/task_retry',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => '发布单任务ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '823-bhjf-23u4-eiuf*'],
],
[
'name' => 'RetryStatus',
'in' => 'query',
'schema' => ['description' => '重试状态。', 'type' => 'boolean', 'required' => false, 'docRequired' => true, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '重试信息。', 'type' => 'string', 'example' => 'success retry task'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '重试失败的发布单任务',
'summary' => '调用RetryChangeOrderTask接口重试失败的发布单任务。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"success retry task\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\"\\n}","errorExample":""},{"type":"xml","example":"<RetryChangeOrderTaskResponse>\\n<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<Data>success retry task</Data>\\n<Code>200</Code>\\n</RetryChangeOrderTaskResponse>","errorExample":""}]',
],
'RollbackApplication' => [
'path' => '/pop/v5/changeorder/co_rollback',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。可以通过调用ListApplication接口获取,具体操作,请参见[ListApplication](~~423162~~)。', 'type' => 'string', 'required' => true, 'example' => '3616cdca-4f92-4413-************'],
],
[
'name' => 'HistoryVersion',
'in' => 'query',
'schema' => ['description' => '设置应用要回滚到的历史版本。请根据调用ListHistoryDeployVersion接口返回的`PackageVersion`填写,具体操作,请参见[ListHistoryDeployVersion](~~423163~~)。', 'type' => 'string', 'required' => true, 'example' => '2019-11-13 14:22:22'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '应用分组ID。可以调用ListDeployGroup接口获取,具体操作,请参见[ListDeployGroup](~~423184~~)。'."\n"
."\n"
.'<note>如果需要回滚全部分组的应用,请设置为`all`。</note>'."\n", 'type' => 'string', 'required' => true, 'example' => '8123db90-880f-48***************'],
],
[
'name' => 'Batch',
'in' => 'query',
'schema' => ['description' => '分批次数。默认1批,最多5批。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'BatchWaitTime',
'in' => 'query',
'schema' => ['description' => '分批间等待时间,默认0表示不等待,最多等待5分钟。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。可以调用GetChangeOrderInfo接口获取此次回滚变更的详细执行进展,具体操作,请参见[GetChangeOrderInfo](~~423155~~)。', 'type' => 'string', 'example' => '921026b8-d1be-************'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-*********'],
],
'description' => '',
],
],
],
'title' => '回滚应用',
'summary' => '调用RollbackApplication接口回滚应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RollbackApplication'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"921026b8-d1be-************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-*********\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D16979DC-4D42-*********</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>921026b8-d1be-************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'RollbackChangeOrder' => [
'summary' => '调用RollbackChangeOrder终止应用的变更流程,并回滚应用。该接口适用于ECS集群中的应用。',
'path' => '/pop/v5/oam/changeorder/rollback',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ChangeOrderId',
'in' => 'query',
'schema' => ['description' => '变更记录ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'dc5133d7-773f-4c81-****-e2103dce****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID', 'type' => 'string', 'example' => 'B909AB1F-3763-4963-B1CE-0BDFA192****'],
'TraceId' => ['description' => '调用链ID', 'type' => 'string', 'example' => '000000000000000000000000000000'],
'ErrorCode' => ['description' => '错误码', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '变更单信息',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更单ID', 'type' => 'string', 'example' => '4f40e616-cdcd-4250-a018-efd4599c****'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '回滚变更单',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RollbackChangeOrder'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"B909AB1F-3763-4963-B1CE-0BDFA192****\\",\\n \\"TraceId\\": \\"000000000000000000000000000000\\",\\n \\"ErrorCode\\": \\"success\\",\\n \\"Data\\": {\\n \\"ChangeOrderId\\": \\"4f40e616-cdcd-4250-a018-efd4599c****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>B909AB1F-3763-4963-B1CE-0BDFA192****</RequestId>\\n<TraceId>000000000000000000000000000000</TraceId>\\n<Data>\\n <ChangeOrderId>xxx-xxxx-xxx-xxxx</ChangeOrderId>\\n</Data>\\n<ErrorCode>success</ErrorCode>\\n<Code>200</Code>","errorExample":""}]',
],
'ScaleInApplication' => [
'summary' => '使用ScaleInApplication缩容应用实例。',
'path' => '/pop/v5/changeorder/co_scale_in',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,您可通过查询[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => true, 'example' => '3616cdca-4f92-44***********************'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '应用下需要缩容的机器的eccid,多个用“,”分开,您可以通过调用[QueryApplicationStatus](~~149394~~)接口获取eccid。', 'type' => 'string', 'required' => true, 'example' => '7040f221-42df-48e8-9*******************'],
],
[
'name' => 'ForceStatus',
'in' => 'query',
'schema' => ['description' => '是否要强制下线,一般只有ECS过期了才会设为true,正常情况不用填写。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID,调用[GetChangeOrderInfo](~~62072~~)接口获取这次下线具体执行进展。如果forceStatus置为true则不产生ID,根据code判断是否成功。', 'type' => 'string', 'example' => 'ddf5a4c7-a507-4a6e****************'],
'Code' => ['description' => 'code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息。', 'type' => 'string', 'example' => 'success'],
],
'description' => '',
],
],
],
'title' => '缩容应用实例',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:32:01.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:32:01.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleInApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"ddf5a4c7-a507-4a6e****************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>ddf5a4c7-a507-4a6e****************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'ScaleK8sApplication' => [
'summary' => '扩容或下线容器服务K8s集群的应用实例。',
'path' => '/pop/v5/k8s/acs/k8s_apps',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '23bf94d9-****-4994-****-616a827aa777'],
],
[
'name' => 'Replicas',
'in' => 'query',
'schema' => ['description' => '需要扩容或保留的应用实例数量,最小为 0。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'minimum' => '0', 'example' => '2'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更流程超时时间,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。可调用[GetChangeOrderInfo](~~62072~~)接口获取这次扩容或下线的具体执行进展。', 'type' => 'string', 'example' => '9d7232b2-****-****-b9d9-7e17695779ab'],
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一标识ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
],
],
],
],
'errorCodes' => [],
'title' => '扩容或下线容器服务K8s集群应用实例',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"9d7232b2-****-****-b9d9-7e17695779ab\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>9d7232b2-****-****-b9d9-7e17695779ab</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'ScaleOutApplication' => [
'summary' => '调用ScaleOutApplication接口扩容应用。',
'path' => '/pop/v5/changeorder/co_scale_out',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。获取应用ID,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413*****************'],
],
[
'name' => 'EcuInfo',
'in' => 'query',
'schema' => ['description' => '指定ECU进行扩容。获取ecuid,请参见[ListScaleOutEcu](~~149371~~)。多个ECU,用半角逗号(,)分开。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '8123db90-880f-486f-b***************'],
],
[
'name' => 'DeployGroup',
'in' => 'query',
'schema' => ['description' => '需要扩容的应用实例分组。获取应用实例分组,请参见[QueryApplicationStatus](~~149394~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4f1fb6f5-6769-4bd6******************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。可以调用GetChangeOrderInfo接口获取这次扩容具体执行进展,更多信息,请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'example' => 'f4208118-7171-4e20-92************'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-***********************'],
],
'description' => '',
],
],
],
'title' => '扩容应用实例',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T05:51:32.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T05:51:32.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleOutApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"f4208118-7171-4e20-92************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-***********************\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>f4208118-7171-4e20-92************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'ScaleoutApplicationWithNewInstances' => [
'summary' => '在EDAS中代购ECS实例,并将代购的实例扩容到指定的应用分组。',
'path' => '/pop/v5/scaling/scale_out',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '扩容的目标应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'e370c17f-*****-3df0721a327'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '扩容应用的目标分组ID,可通过调用ListDeployGroup接口来获取,详情请参见[ListDeployGroup](~~62077~~)。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'e37**********-33df0721a327'],
],
[
'name' => 'ScalingNum',
'in' => 'query',
'schema' => ['description' => '此次扩容的实例数量。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '2'],
],
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => 'ECS启动模板ID,可通过调用DescribeLaunchTemplates接口获取,详情请参见[DescribeLaunchTemplates](~~73759~~)。', 'type' => 'string', 'required' => false, 'example' => 'lt-****hy9s2 '],
],
[
'name' => 'TemplateVersion',
'in' => 'query',
'schema' => ['description' => 'ECS启动模板版本,可通过调用DescribeLaunchTemplateVersions接口获取,详情请参见[DescribeLaunchTemplateVersions](~~73761~~)。'."\n"
."\n"
.'> 设置为`-1`代表使用默认的启动模板版本。', 'type' => 'string', 'required' => false, 'example' => '-1'],
],
[
'name' => 'ScalingPolicy',
'in' => 'query',
'schema' => ['description' => '指定伸缩组的回收模式,取值范围:'."\n"
."\n"
.'- recycle:伸缩组的回收模式为停机回收模式。'."\n"
.'- release:伸缩组的回收模式为释放模式。'."\n"
."\n"
.'从一个伸缩组删除实例,详情请参见[RemoveInstances](~~25955~~)。', 'type' => 'string', 'required' => false, 'example' => 'release'],
],
[
'name' => 'TemplateInstanceId',
'in' => 'query',
'schema' => ['description' => '扩容时使用的现有ECS实例ID,若填写此项,将以指定的ECS实例的规格和配置为模板来购买新的ECS实例。', 'type' => 'string', 'required' => false, 'example' => 'i-28wt4****'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '扩容的集群ID,若指定了应用和分组进行扩容,此参数将被忽略。', 'type' => 'string', 'required' => false, 'example' => 'e37**********-33df0721a327'],
],
[
'name' => 'InstanceChargeType',
'in' => 'query',
'schema' => ['description' => '实例的付费方式。取值范围:'."\n"
.'- PrePaid:包年包月。'."\n"
.'- PostPaid(默认):按量付费。'."\n", 'type' => 'string', 'required' => false, 'example' => 'PrePaid'],
],
[
'name' => 'InstanceChargePeriodUnit',
'in' => 'query',
'schema' => ['description' => '包年包月计费方式的时长单位。取值范围:'."\n"
."\n"
.'- Week:按周计费。'."\n"
.'- Month(默认):按月计费。', 'type' => 'string', 'required' => false, 'example' => 'Month'],
],
[
'name' => 'InstanceChargePeriod',
'in' => 'query',
'schema' => ['description' => '购买资源的时长,单位由InstanceChargePeriodUnit指定。当参数InstanceChargeType取值为PrePaid时才生效。'."\n"
."\n"
.'- InstanceChargePeriodUnit=Week时,Period取值:{“1”, “2”, “3”, “4”}。'."\n"
.'- InstanceChargePeriodUnit=Month时,Period取值:{“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “24”, “36”, ”48”, ”60”}。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'AutoRenew',
'in' => 'query',
'schema' => ['description' => '是否要自动续费。当参数InstanceChargeType取值PrePaid时才生效。取值范围:'."\n"
."\n"
.'- true:自动续费。'."\n"
.'- false(默认):不自动续费。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'AutoRenewPeriod',
'in' => 'query',
'schema' => ['description' => '单次自动续费的续费时长。取值范围:'."\n"
."\n"
.'- InstanceChargePeriodUnit=Week时:{“1”, “2”, “3”}。'."\n"
.'- InstanceChargePeriodUnit=Month时:{“1”, “2”, “3”, “6”, “12”, "24", "36", "48", "60"}。'."\n"
."\n"
.'默认值:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '应用扩容的变更记录ID。', 'type' => 'string', 'example' => 'e370c17f-*****-3df0721a327'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加消息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'e370c17f-*****-3df0721a327'],
'InstanceIds' => [
'description' => 'ECS实例ID列表。',
'type' => 'array',
'items' => ['description' => '代购产生的ECS实例列表。', 'type' => 'string', 'example' => '["i-28wt4****","i-28wt4****"]'],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '代购实例并扩容到指定分组',
'description' => '## 限制说明'."\n"
."\n"
.'若应用配置并开启了弹性伸缩规则,在触发自动缩容时将优先移除此接口代购的实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleoutApplicationWithNewInstances'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ECSPurchase',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"e370c17f-*****-3df0721a327\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"e370c17f-*****-3df0721a327\\",\\n \\"InstanceIds\\": [\\n \\"[\\\\\\"i-28wt4****\\\\\\",\\\\\\"i-28wt4****\\\\\\"]\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>e370c17f-*****-3df0721a327</RequestId>\\n<ChangeOrderId>e370c17f-*****-3df0721a327</ChangeOrderId>\\n<InstanceIds>i-28wt4****</InstanceIds>\\n<InstanceIds>i-28wt4****</InstanceIds>\\n<Code>200</Code>","errorExample":""}]',
],
'StartApplication' => [
'summary' => '调用StartApplication来启动应用。',
'path' => '/pop/v5/changeorder/co_start',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过[ListApplication](~~149390~~)获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3616cdca-4f92-4413**********'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '应用下需要重置机器的eccid,多个用“,”分开,可通过调用[QueryApplicationStatus](~~149394~~)接口获取eccid。', 'type' => 'string', 'required' => false, 'example' => '""'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '变更流程ID,调用[GetChangeOrderInfo](~~62072~~)接口获取这次启动的执行进展。', 'type' => 'string', 'example' => '426d3328-11a***************'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-**************'],
],
'description' => '',
],
],
],
'title' => '启动应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"426d3328-11a***************\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-**************\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>426d3328-11a***************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'StartK8sAppPrecheck' => [
'summary' => '调用StartK8sAppPrecheck接口开始K8s应用变更预检。',
'path' => '/pop/v5/k8s/app_precheck',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => true, 'example' => 'c37aec2a-bcca-4ec1-****-****'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群的命名空间,它将决定您的应用部署在哪个K8s命名空间。默认为default。', 'type' => 'string', 'required' => true, 'example' => 'default'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['title' => 'A short description of struct', 'description' => '应用ID。', 'type' => 'string', 'required' => false, 'example' => 'af58edcf-f7eb-****-****-db4e425f****'],
],
[
'name' => 'AppName',
'in' => 'query',
'schema' => ['description' => '应用名称。必须以字母开头,支持数字、字母和短划线(-),最多支持36个字符。', 'type' => 'string', 'required' => false, 'example' => 'testapp'],
],
[
'name' => 'Replicas',
'in' => 'query',
'schema' => ['description' => '应用实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'LimitmCpu',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的CPU限额。 单位:毫核数,设置为0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'RequestsmCpu',
'in' => 'query',
'schema' => ['description' => '应用创建时,应用实例的CPU限额,单位:毫核数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '500'],
],
[
'name' => 'LimitMem',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的内存限额,单位:MB。LimitMem取值要不小于RequestsMem。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4096'],
],
[
'name' => 'RequestsMem',
'in' => 'query',
'schema' => ['description' => '应用创建时,应用实例的内存限额,单位:MB。设置为0时表示不限制。RequestsMem的取值不能大于LimitMem的取值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1024'],
],
[
'name' => 'LimitEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储资源需求上限,单位:GB。设置0表示不限制。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '4'],
],
[
'name' => 'RequestsEphemeralStorage',
'in' => 'query',
'schema' => ['description' => '临时存储最小资源需求,单位:GB。设置0表示不限制。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'Envs',
'in' => 'query',
'schema' => ['description' => '部署环境变量,格式需要符合JSON对象数组。支持三种类型的环境变量,分别是普通环境变量,K8s ConfigMap环境变量,K8s Secret环境变量。普通环境变量格式如下所示:'."\n"
."\n"
.'`{"name":"x", "value": "y"}`'."\n"
."\n"
.'ConfigMap环境变量配置可以将指定的ConfigMap中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x2",'."\n"
.' "valueFrom": {'."\n"
.' "configMapKeyRef": {'."\n"
.' "name": "my-config",'."\n"
.' "key": "y2"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'Secret环境变量配置可以将指定的Secret中对应的key的值注入到容器的环境变量中,配置的格式如下所示:'."\n"
."\n"
.'`{'."\n"
.' "name": "x3",'."\n"
.' "valueFrom": {'."\n"
.' "secretKeyRef": {'."\n"
.' "name": "my-secret",'."\n"
.' "key": "y3"'."\n"
.' }'."\n"
.' }'."\n"
.'}`'."\n"
."\n"
.'> 如果要取消该配置,需设置一个空JSON数组“[]”来表示不做配置。', 'type' => 'string', 'required' => false, 'example' => '[{"name":"x1","value":"y1"},{"name":"x2","valueFrom":{"configMapKeyRef":{"name":"my-config","key":"y2"}}},{"name":"x3","valueFrom":{"secretKeyRef":{"name":"my-secret","key":"y3"}}}]'],
],
[
'name' => 'EnvFroms',
'in' => 'query',
'schema' => ['description' => '配置K8s EnvFrom类型的环境变量,将指定的ConfigMap或Secret挂载到指定目录,每个key对应目录下的一个文件,文件的内容为该key对应的value。'."\n"
."\n"
.'EnvFroms的配置参数说明如下:'."\n"
.' - configMapRef:ConfigMap引用,该字段包括以下参数:'."\n"
."\n"
.' name:ConfigMap名称。'."\n"
."\n"
.'- secretRef:Secret引用,该字段包括以下参数:'."\n"
."\n"
.' name:Secret名称。', 'type' => 'string', 'required' => false, 'example' => '['."\n"
.' {'."\n"
.' "name": "appname",'."\n"
.' "valueFrom": {'."\n"
.' "configMapKeyRef": {'."\n"
.' "name": "appconf"'."\n"
.' }'."\n"
.' }'."\n"
.' }'."\n"
.']'],
],
[
'name' => 'EmptyDirs',
'in' => 'query',
'schema' => ['description' => '配置K8s emptyDir挂载,支持将emptyDir卷挂载到指定的容器目录。EmptyDirs的配置参数说明如下:'."\n"
."\n"
.'- mountPath:容器挂载路径,必填。'."\n"
.'- readOnly:是否只读,可选,true为只读,false为读写,默认为false。'."\n"
.'- subPathExpr:子目录表达式,可选。', 'type' => 'string', 'required' => false, 'example' => '[{"mountPath":"/app-log","subPathExpr":"$(POD_IP)"},{"readOnly":true,"mountPath":"/etc/nginx"}]'],
],
[
'name' => 'JavaStartUpConfig',
'in' => 'query',
'schema' => ['description' => 'Java启动参数用于在Java应用启动时配置启动参数。可配置:内存配置、应用、GC策略、工具、服务注册和发现配置和自定义等配置,正确配置这些参数有助于降低垃圾回收(GC)开销,从而缩短服务器响应时间并提高吞吐量。参数格式为JSON字符串:original为配置值,startup为启动参数,系统将自动拼接所有的startup作为应用程序的Java启动参数。设置为`""`或`"{}"`表示删除配置。JSON中key取值如下:'."\n"
."\n"
.'- InitialHeapSize:代表初始化堆大小。'."\n"
.'- MaxHeapSize:代表最大堆大小。'."\n"
.'- CustomParams:代表用户自定义内容,如JVM -D参数等。'."\n"
.'- 其它情况:可自行查看前端提交的JSON结构。', 'type' => 'string', 'required' => false, 'example' => '{"InitialHeapSize":{"original":512,"startup":"-Xms512m"},"MaxHeapSize":{"original":1024,"startup":"-Xmx1024m"}}'],
],
[
'name' => 'ConfigMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s ConfigMap和Secret挂载,支持将ConfigMap和Secret挂载到指定的容器目录。ConfigMountDescs的配置参数说明如下:'."\n"
.'- name:ConfigMap或Secret的名称。'."\n"
.'- type:配置类型,支持ConfigMap和Secret两种类型。'."\n"
.'- mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。', 'type' => 'string', 'required' => false, 'example' => '[{"name":"nginx-config","type":"ConfigMap","mountPath":"/etc/nginx"},{"name":"tls-secret","type":"secret","mountPath":"/etc/ssh"}]'],
],
[
'name' => 'PvcMountDescs',
'in' => 'query',
'schema' => ['description' => '配置K8s PVC(PersistentVolumeClaim)挂载,支持将K8s PVC卷挂载到指定的容器目录。PvcMountDescs的配置参数说明如下:'."\n"
."\n"
.'- pvcName:PVC卷名称,PVC卷必须已经存在,且处于Bound状态。'."\n"
.'- mountPaths:挂载目录列表,支持配置多个挂载目录。每个挂载目录支持两个配置参数。'."\n"
.' * mountPath:挂载路径,以正斜线(/)开头的容器绝对路径。'."\n"
.' * readOnly:挂载模式,true为只读,false为可读写,默认为false。', 'type' => 'string', 'required' => false, 'example' => '[{"pvcName":"nas-pvc-1","mountPaths":[{"mountPath":"/usr/share/nginx/data"},{"mountPath":"/usr/share/nginx/html","readOnly":true}]}]'],
],
[
'name' => 'Annotations',
'in' => 'query',
'schema' => ['description' => '应用Pod注解。', 'type' => 'string', 'required' => false, 'example' => '{"annotation-name-1":"annotation-value-1","annotation-name-2":"annotation-value-2"}'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => '应用Pod标签。', 'type' => 'string', 'required' => false, 'example' => '{"label-name-1":"label-value-1","label-name-2":"label-value-2"}'],
],
[
'name' => 'ImageUrl',
'in' => 'query',
'schema' => ['description' => '镜像URL。', 'type' => 'string', 'required' => false, 'example' => 'registry.cn-hangzhou.aliyuncs.com/mw/testapp:latest'],
],
[
'name' => 'PackageUrl',
'in' => 'query',
'schema' => ['description' => '部署包地址。', 'type' => 'string', 'required' => false, 'example' => 'https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar'],
],
[
'name' => 'LocalVolume',
'in' => 'query',
'schema' => ['description' => '宿主机文件挂载到容器内的配置。例如:`\\[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}\\]`。其中:'."\n"
."\n"
.'- `nodePath`为宿主机路径。'."\n"
."\n"
.'- `mountPath`为容器内的路径。'."\n"
."\n"
.'- `type`为挂载类型。', 'type' => 'string', 'required' => false, 'example' => '[{"type":"","nodePath":"/localfiles","mountPath":"/app/files"},{"type":"Directory","nodePath":"/mnt","mountPath":"/app/storage"}]'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => '阿里云地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ComponentIds',
'in' => 'query',
'schema' => ['description' => '应用组件ID。可通过查询组件列表接口ListComponents接口获取。当创建的应用运行环境使用Apache Tomcat(适用于WAR包部署的Dubbo应用)或者标准Java应用运行环境(适用于JAR包部署的Spring Boot或Spring Cloud应用)时需要指定。'."\n"
."\n"
.'常用的应用组件ID及含义:'."\n"
.'* 4:Apache Tomcat 7.0.91。'."\n"
.'* 5:表示OpenJDK 1.8.x。'."\n"
.'* 6:表示 OpenJDK 1.7.x。'."\n"
.'* 7:Apache Tomcat 8.5.42。'."\n"
."\n"
.'该参数需要更新Java或者Python SDK版本到2.57.3或以上版本才可以设置,未使用EDAS提供的SDK的(例如在使用aliyun-python-sdk-core、aliyun-java-sdk-core、aliyun cli等)用户可直接设置该参数。', 'type' => 'string', 'required' => false, 'example' => '7'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '7638276F-****-****-884F-54CC0BC84A8D'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息 。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '接口返回数据。',
'type' => 'object',
'properties' => [
'Jobs' => [
'description' => '任务列表及任务详情。',
'type' => 'array',
'items' => ['description' => '任务名称。', 'type' => 'string', 'example' => '集群健康检查。'],
'example' => 'Cluster health check.',
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7638276F-****-****-884F-54CC0BC84A8D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Jobs\\": [\\n \\"集群健康检查。\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '开始K8s应用变更预检',
'changeSet' => [
['createdAt' => '2022-11-02T07:06:12.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-07-29T08:12:20.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartK8sAppPrecheck'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ReadCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'StartK8sApplication' => [
'summary' => '启动容器服务K8s或Serverless K8s集群中的应用。',
'path' => '/pop/v5/k8s/acs/start_k8s_app',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Replicas',
'in' => 'query',
'schema' => ['description' => '启动的应用实例数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更流程超时时间,单位秒,取值范围1~1800秒,不填默认值为600秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-*******-ed2ae98de18d'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '此次操作的变更流程ID。', 'type' => 'string', 'example' => '*********d237-4827-a4f4-ed2ae98de18d'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '启动K8s应用',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"*********d237-4827-a4f4-ed2ae98de18d\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>*********d237-4827-a4f4-ed2ae98de18d</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'StopApplication' => [
'path' => '/pop/v5/changeorder/co_stop',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。可以通过调用ListApplication接口获取,具体操作,请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c627c157-560d*******'],
],
[
'name' => 'EccInfo',
'in' => 'query',
'schema' => ['description' => '应用下需要停止的ECS实例的EccId。可以通过调用QueryApplicationStatus接口获取EccId,具体操作,请参见[QueryApplicationStatus](~~149394~~)。'."\n"
."\n"
.'- 如果包含多个ECS实例,用半角逗号(,)分开。'."\n"
.'- 不设置该参数,表示停止该应用下所有实例。', 'type' => 'string', 'required' => false, 'example' => '74ee9166-****1f6-bcb60e5b****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。可以通过调用GetChangeOrderInfo接口获取变更流程的详细信息,具体操作,请参见[GetChangeOrderInfo](~~62072~~)。', 'type' => 'string', 'example' => 'a9557bac-ddd7-*********************'],
'Code' => ['description' => 'Code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
],
'description' => '',
],
],
],
'title' => '停止应用',
'summary' => '停止应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:21:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"a9557bac-ddd7-*********************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>a9557bac-ddd7-*********************</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'StopK8sApplication' => [
'path' => '/pop/v5/k8s/acs/stop_k8s_app',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口来获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '93fdd228-d237-*******8de18d'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更流程超时时间,单位:秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '此次变更的变更流程ID。', 'type' => 'string', 'example' => '*******27-a4f4-ed2ae98de18d'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '03FD1520-0FD6-436A-****-265318D7****'],
],
],
],
],
'errorCodes' => [],
'title' => '停止K8s应用',
'summary' => '停止部署在容器服务K8s集群或Serverless K8s集群中的应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopK8sApplication'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"*******27-a4f4-ed2ae98de18d\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"03FD1520-0FD6-436A-****-265318D7****\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>*******27-a4f4-ed2ae98de18d</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'SwitchAdvancedMonitoring' => [
'path' => '/pop/v5/monitor/advancedMonitorInfo',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '需要查询或者修改应用高级监控功能的应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '9e224bc6-a646-4484-****-e617b7e7****'],
],
[
'name' => 'EnableAdvancedMonitoring',
'in' => 'query',
'schema' => ['description' => '应用高级监控的开关,可选参数如下:'."\n"
."\n"
.'- true:打开。'."\n"
.'- false:关闭。'."\n"
."\n"
.'在查询应用高级监控状态时,此参数不必填写。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'The advanced monitoring status is disabled already for application which app_id is 9e224bc6-a646-4484-ae31-e617b7e7****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '577AED12-32D8-40B6-991F-17D7A601****'],
'AdvancedMonitoringEnabled' => ['description' => '应用高级监控的开关状态:'."\n"
."\n"
.'- true:打开。'."\n"
.'- false:关闭。', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
],
],
'errorCodes' => [
600 => [
['errorCode' => 'Edas.Errorcode.OperationFailed.CloseAdvancedMonitor.Message', 'errorMessage' => 'Failed to disable advanced monitoring.', 'description' => '关闭应用高级监控失败'],
['errorCode' => 'Edas.Errorcode.OperationFailed.OpenAdvancedMonitor.Message', 'errorMessage' => 'Failed to enable advanced monitoring.', 'description' => '打开应用高级监控失败'],
],
],
'title' => '查询或启停高级监控',
'summary' => '调用SwitchAdvancedMonitoring接口查询ECS和K8s集群中应用高级监控开关状态及控制接口。',
'description' => '使用SwitchAdvancedMonitoring接口需要保证EDAS POP API Java or Python SDK为3.15.2及以上版本。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'SwitchAdvancedMonitoring'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The advanced monitoring status is disabled already for application which app_id is 9e224bc6-a646-4484-ae31-e617b7e7****\\",\\n \\"RequestId\\": \\"577AED12-32D8-40B6-991F-17D7A601****\\",\\n \\"AdvancedMonitoringEnabled\\": false\\n}","errorExample":""},{"type":"xml","example":"<AdvancedMonitoringEnabled>false</AdvancedMonitoringEnabled>\\n<Message>The advanced monitoring status is disabled already for application which app_id is 9e224bc6-a646-4484-ae31-e617b7e7****</Message>\\n<RequestId>577AED12-32D8-40B6-991F-17D7A601****</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'SynchronizeResource' => [
'path' => '/pop/v5/resource/pop_sync_resource',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '同步的资源类型,该参数可选的参数值为:`ecs、slb、vpc、all`其中的一个,不支持其他格式的参数值。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs'],
],
[
'name' => 'ResourceIds',
'in' => 'query',
'schema' => ['description' => '指定的资源ID,仅当Type为`ecs`时支持填写此参数,如有多个ID,需要以逗号分隔,一次最多同步50个资源。', 'type' => 'string', 'required' => false, 'example' => 'i-bp17c***5q8x,i-bp1**5q8x'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口请求返回的状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '接口请求返回的消息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '接口请求返回的数据。', 'type' => 'string', 'example' => 'PopSyncResource success'],
'RequestId' => ['description' => '接口请求唯一标识符。', 'type' => 'string', 'example' => 'F8DFGED-K98***************'],
'Success' => ['description' => '接口请求结果,取值如下:'."\n"
."\n"
.'- **true**:请求成功。'."\n"
."\n"
.'- **false**:请求失败。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'title' => '同步阿里云基础资源到EDAS',
'summary' => '同步用户下的阿里云基础资源到EDAS。适用于ECS集群。',
'description' => '调用此接口同步ECS资源信息时,将从ECS同步全量的实例数据,当ECS实例数超过100时,不建议频繁调用此接口。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => '## 注意事项'."\n"
.'该接口在实际执行中,会遇到在API接口Client程序端在连接API网关超时(默认10秒)的情况,所以,用户在使用该接口时,须手工设置调用该接口时读取POP API网关返回的数据的超时时间(推荐设置为30秒,因POP API网关到接口Server端的服务处理时间最长即为30秒)。'."\n"
."\n"
.'- 使用Java SDK时,Client端代码中使用该接口时设置读取超时时间方法:'."\n"
.'```'."\n"
.'SynchronizeResourceRequest request = new SynchronizeResourceRequest();'."\n"
.'request.setSysReadTimeout(30000); //单位毫秒,客户端API接口程序等待POP API网关返回数据的超时时间。'."\n"
.'request.setType("ecs");'."\n"
.'........'."\n"
.'```'."\n"
."\n"
.'- 使用Python SDK时,Client端代码中使用该接口时设置读取超时时间方法:'."\n"
.'```'."\n"
.'request = SynchronizeResourceRequest()'."\n"
.'request.set_read_timeout(30000)'."\n"
.'request.set_Type(\'ecs\')'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'SynchronizeResource'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:SynchronizeResource',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"PopSyncResource success\\",\\n \\"RequestId\\": \\"F8DFGED-K98***************\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Data>PopSyncResource success</Data>\\n<Code>200</Code>\\n<Success>true</Success>","errorExample":""}]',
],
'TagResources' => [
'summary' => '调用TagResources为指定的资源统一创建并绑定标签。',
'path' => '/pop/v5/tag/tags',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => '资源类型,取值:'."\n"
.'- **application:EDAS**应用。 '."\n"
.'- **cluster**:EDAS集群。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'application'],
],
[
'name' => 'ResourceIds',
'in' => 'query',
'schema' => ['description' => '资源ID列表, 列表的长度范围为1~20,JSON数组格式。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '["000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"]'],
],
[
'name' => 'Tags',
'in' => 'query',
'schema' => ['description' => '标签键值对。设置时,请注意以下限制:'."\n"
.'- 单个资源最多贴20个标签。'."\n"
.'- key不能以**aliyun**和**acs:**开头,不能包含**http://**或者**https://**。'."\n"
.'- key和value最大不超过128字符,仅支持英文字母、数字和短划线(-)、半角逗号(,)、星号(*)、正斜线(/)、半角问号(?)和半角冒号(:)的组合。'."\n"
.'- JSON格式字符串。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"key":"key1","value":"v1"},{"key":"key2","value":"v2"}]'],
],
[
'name' => 'ResourceRegionId',
'in' => 'query',
'schema' => ['description' => '资源所属地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => '000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.InstanceNotExist.Instance.message', 'errorMessage' => 'The instance does not exist.', 'description' => '实例不存在'],
],
],
'title' => '为资源绑定标签',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:TagResources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'TransformClusterMember' => [
'path' => '/pop/v5/resource/transform_cluster_member',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => '实例ID集合 ,用半角逗号(,)分割:'."\n"
.'- 实例可以不属于任何集群,但一个实例最多只能归属于一个集群。'."\n"
.'- ECS实例和目标集群需在同一个VPC内。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i-2ze7s2v0b789k60p****'],
],
[
'name' => 'TargetClusterId',
'in' => 'query',
'schema' => ['description' => '目标集群ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'b3e3f77b-462e-****-****-bec8727a****'],
],
[
'name' => 'Password',
'in' => 'query',
'schema' => ['description' => '加入目标集群的实例需要设置的登录密码。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Hello****'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'Data' => ['description' => '提交成功返回`Transform submit success!`。', 'type' => 'string', 'example' => 'Transform submit success!'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
],
],
],
],
'errorCodes' => [],
'title' => '导入或转移ECS实例',
'summary' => '接口导入或转移ECS实例。',
'description' => '## 限制说明'."\n"
.'调用该接口导入ECS实例时,会重装ECS实例的操作系统,重装后,实例中所有数据都会被删除并且需要重新设置实例登录密码。请确保您要导入的ECS实例上没有重要的数据或数据已备份。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TransformClusterMember'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"Transform submit success!\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\"\\n}","errorExample":""},{"type":"xml","example":"<TransformClusterMemberResponse>\\n<Message>success</Message>\\n<RequestId>b197-40ab-9155-****</RequestId>\\n<Data>Transform submit success!</Data>\\n<Code>200</Code>\\n</TransformClusterMemberResponse>","errorExample":""}]',
],
'UnbindK8sSlb' => [
'summary' => '调用UnbindK8sSlb解绑容器服务k8s应用的SLB。',
'path' => '/pop/v5/k8s/acs/k8s_slb_binding',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可以通过调用[ListApplication](~~149390~~)获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,可以通过调用[GetK8sCluster](~~181437~~)获取。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '712082c3-****-****-9217-a947b5cde6ee'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '设置SLB的类型:'."\n"
."\n"
.'- **internet**:公网'."\n"
."\n"
.'- **intranet**:私网', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet'],
],
[
'name' => 'SlbName',
'in' => 'query',
'schema' => ['description' => '负载均衡SLB实例名称。', 'type' => 'string', 'required' => false, 'example' => 'a2d4ab12666544a479cdd0711a97****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '请求状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'b0a8441e-****-4e8e-9874-b56dea02952f'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1234-1sda-321d-1234'],
],
'description' => '',
],
],
],
'title' => '解绑容器服务 k8s 应用的 SLB',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:38:18.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:38:18.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnbindK8sSlb'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"b0a8441e-****-4e8e-9874-b56dea02952f\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1234-1sda-321d-1234\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>1234-1sda-321d-1234</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>b0a8441e-****-4e8e-9874-b56dea02952f</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'UnbindSlb' => [
'summary' => '调用UnbindSlb接口解除绑定SLB。',
'path' => '/pop/app/unbind_slb_json',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c627c157-560d-********************'],
],
[
'name' => 'SlbId',
'in' => 'query',
'schema' => ['description' => 'SLB实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'lb-wz9vo49****************'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'SLB网络类型:'."\n"
."\n"
.'- **internet**:外网实例。'."\n"
."\n"
.'- **intranet**:内网实例。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet'],
],
[
'name' => 'DeleteListener',
'in' => 'query',
'schema' => ['description' => '是否删除监听:'."\n"
.'* true: 删除。'."\n"
.'* false:不删除。', 'type' => 'string', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '请求状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'Unbind slb success'],
'Data' => ['description' => '空值,无实际含义。', 'type' => 'string', 'example' => '{}'],
'RequestId' => ['description' => '请求唯一ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-************'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'title' => '解除绑定SLB',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnbindSlb'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"Unbind slb success\\",\\n \\"Data\\": \\"{}\\",\\n \\"RequestId\\": \\"D16979DC-4D42-************\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D16979DC-4D42-************</RequestId>\\n<Message>Unbind slb success</Message>\\n<Data>{}</Data>\\n<Code>200</Code>","errorExample":""}]',
],
'UntagResources' => [
'summary' => '调用UntagResources接口为指定的资源列表统一解绑标签。',
'path' => '/pop/v5/tag/tags',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ResourceRegionId',
'in' => 'query',
'schema' => ['description' => '资源所属地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-beijing'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => '资源类型,取值:'."\n"
.'- **application**:EDAS应用。 '."\n"
.'- **cluster**:EDAS集群。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'application'],
],
[
'name' => 'ResourceIds',
'in' => 'query',
'schema' => ['description' => '资源ID列表,列表范围为1~20。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '["f5ad6ff7-xxxx-xxxx-xxxx-2axxxx82xxxx"]'],
],
[
'name' => 'TagKeys',
'in' => 'query',
'schema' => ['description' => '要解绑的标签键列表,列表的取值范围1~20,json数组格式。', 'type' => 'string', 'required' => false, 'example' => '["tagKey1","tagKey2"]'],
],
[
'name' => 'DeleteAll',
'in' => 'query',
'schema' => ['description' => '是否删除选定资源下所有的用户标签,默认为false。'."\n"
."\n"
.'- **true**:删除资源的标签。'."\n"
."\n"
.'- **false**:不删除资源的标签。'."\n"
."\n"
.'> 仅当**tagKeys**为空,**deleteAll=true**时,才可以删除所有的客户标签。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => '000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.InstanceNotExist.Instance.message', 'errorMessage' => 'The instance does not exist.', 'description' => '实例不存在'],
],
],
'title' => '删除资源标签',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:UntagResources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateAccountInfo' => [
'summary' => '编辑账号信息。',
'path' => '/pop/v5/account/edit_account_info',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '账号名称', 'type' => 'string', 'required' => false, 'example' => 'edas-test'],
],
[
'name' => 'Telephone',
'in' => 'query',
'schema' => ['description' => '联系方式', 'type' => 'string', 'required' => false, 'example' => '1321234****'],
],
[
'name' => 'Email',
'in' => 'query',
'schema' => ['description' => '电子邮箱地址', 'type' => 'string', 'required' => false, 'example' => '1321234****@alibaba-inc.com'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'edit successfully'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'ECD1D6FC-4307-4583-BA6F-215F3857EAF4'],
],
'description' => '',
],
],
],
'title' => '编辑账号信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T05:51:32.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T05:51:32.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateAccountInfo'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:UpdateAccountInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"edit successfully\\",\\n \\"RequestId\\": \\"ECD1D6FC-4307-4583-BA6F-215F3857EAF4\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>edit successfully</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateApplicationBaseInfo' => [
'summary' => '描述信息、Owner信息。',
'path' => '/pop/v5/app/update_app_info',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'c627c157-560d-43ff-****-************'],
],
[
'name' => 'AppName',
'in' => 'query',
'schema' => ['description' => '应用名称必须以字母开头,允许数字、字母、下划线(_)以及短划线(-)组合,最多支持36个字符。', 'type' => 'string', 'required' => false, 'example' => 'hello-edas'],
],
[
'name' => 'Desc',
'in' => 'query',
'schema' => ['description' => '描述信息,最多支持256个字符。', 'type' => 'string', 'required' => false, 'example' => 'Test application'],
],
[
'name' => 'Owner',
'in' => 'query',
'schema' => ['description' => '应用负责人,最大长度为127个字符。', 'type' => 'string', 'required' => false, 'example' => 'test@aliyun_xxx.com'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-**************'],
'Applcation' => [
'description' => '应用列表。',
'type' => 'object',
'properties' => [
'ExtSlbIp' => ['description' => '公网SLB实例的IP。', 'type' => 'string', 'example' => '39.97.XX.XX'],
'Owner' => ['description' => '应用负责人。', 'type' => 'string', 'example' => 'test@aliyun_XXX.com'],
'SlbPort' => ['description' => '私网SLB端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'],
'ExtSlbName' => ['description' => '公网SLB名称。', 'type' => 'string', 'example' => 'test'],
'CreateTime' => ['description' => '创建时间的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1577259573911'],
'UserId' => ['description' => '云账号ID。', 'type' => 'string', 'example' => 'edas_com***@****.***'],
'Port' => ['description' => '应用所占用的端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'RunningInstanceCount' => ['description' => '正在运行的应用实例数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SlbIp' => ['description' => '私网SLB IP。', 'type' => 'string', 'example' => '192.168.XX.XX'],
'Dockerize' => ['description' => '是否为Docker应用。', 'type' => 'boolean', 'example' => 'false'],
'Description' => ['description' => '应用描述。', 'type' => 'string', 'example' => 'test'],
'InstanceCount' => ['description' => '包含实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'c627c157-560d-43ff-****-************'],
'Memory' => ['description' => '配置的应用实例内存大小,单位为M。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Name' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test'],
'ClusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'd7730a49-629a-47bd-****-f45eb01f****'],
'SlbId' => ['description' => '私网SLB实例的ID。', 'type' => 'string', 'example' => 'a3d4*******'],
'HealthCheckUrl' => ['description' => '健康检查URL。', 'type' => 'string', 'example' => 'http://127.0.XX.XX:8080/_etc.html'],
'ApplicationType' => ['description' => '应用部署类型:'."\n"
.'- War代表WAR包部署。'."\n"
.'- FatJar代表JAR包部署。'."\n"
.'- Image代表镜像部署。'."\n"
.'- 空代表未部署。', 'type' => 'string', 'example' => 'FatJar'],
'ExtSlbId' => ['description' => '公网SLB实例的ID。', 'type' => 'string', 'example' => 'ace93*******'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing:****'],
'BuildPackageId' => ['description' => '容器版本ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '58'],
'Cpu' => ['description' => 'CPU核数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ClusterType' => ['description' => '应用集群环境类型:'."\n"
.'- 0:普通Docker集群。'."\n"
.'- 1:Swarm集群。'."\n"
.'- 2:ECS集群。'."\n"
.'- 3:EDAS自带K8s集群。'."\n"
.'- 4:Pandora自动注册应用集群类型。'."\n"
.'- 5:容器服务K8s集群。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'SlbName' => ['description' => '私网SLB名称。', 'type' => 'string', 'example' => 'test'],
],
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-**************\\",\\n \\"Applcation\\": {\\n \\"ExtSlbIp\\": \\"39.97.XX.XX\\",\\n \\"Owner\\": \\"test@aliyun_XXX.com\\",\\n \\"SlbPort\\": 80,\\n \\"ExtSlbName\\": \\"test\\",\\n \\"CreateTime\\": 1577259573911,\\n \\"UserId\\": \\"edas_com***@****.***\\",\\n \\"Port\\": 8080,\\n \\"RunningInstanceCount\\": 1,\\n \\"SlbIp\\": \\"192.168.XX.XX\\",\\n \\"Dockerize\\": false,\\n \\"Description\\": \\"test\\",\\n \\"InstanceCount\\": 1,\\n \\"AppId\\": \\"c627c157-560d-43ff-****-************\\",\\n \\"Memory\\": 0,\\n \\"Name\\": \\"test\\",\\n \\"ClusterId\\": \\"d7730a49-629a-47bd-****-f45eb01f****\\",\\n \\"SlbId\\": \\"a3d4*******\\",\\n \\"HealthCheckUrl\\": \\"http://127.0.XX.XX:8080/_etc.html\\",\\n \\"ApplicationType\\": \\"FatJar\\",\\n \\"ExtSlbId\\": \\"ace93*******\\",\\n \\"RegionId\\": \\"cn-beijing:****\\",\\n \\"BuildPackageId\\": 58,\\n \\"Cpu\\": 0,\\n \\"ClusterType\\": 2,\\n \\"SlbName\\": \\"test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Applcation>\\n <SlbPort>0</SlbPort>\\n <BuildPackageId>0</BuildPackageId>\\n <AppId>c627c157-560d-43ff-****-************</AppId>\\n <Memory>0</Memory>\\n <Cpu>0</Cpu>\\n <Dockerize>false</Dockerize>\\n <ApplicationType>FatJar</ApplicationType>\\n <Owner>edas_com***_****@******-*****.***</Owner>\\n <Description>Ol432236</Description>\\n <RunningInstanceCount>0</RunningInstanceCount>\\n <UserId>edas_com***_****@******-*****.***</UserId>\\n <InstanceCount>1</InstanceCount>\\n <Name>testpopapi1120</Name>\\n <Port>8080</Port>\\n <ClusterId>0d247b93-8d62-4e34-****-************</ClusterId>\\n <RegionId>cn-shenzhen:****</RegionId>\\n <CreateTime>1574249022930</CreateTime>\\n <ClusterType>2</ClusterType>\\n</Applcation>\\n<Code>200</Code>","errorExample":""}]',
'title' => '修改应用名称',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateApplicationBaseInfo'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ConfigApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'UpdateApplicationScalingRule' => [
'summary' => '调用UpdateApplicationScalingRule接口更新应用的弹性伸缩规则。',
'path' => '/pop/v1/eam/scale/application_scaling_rule',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可调用[ListApplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => false, 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
],
[
'name' => 'ScalingRuleName',
'in' => 'query',
'schema' => ['description' => '弹性伸缩策略的名称。', 'type' => 'string', 'required' => false, 'example' => 'cpu-trigger'],
],
[
'name' => 'ScalingRuleType',
'in' => 'query',
'schema' => ['description' => '弹性策略类型,当前仅支持以下类型:'."\n"
.'* trigger:触发器类型。', 'type' => 'string', 'required' => false, 'example' => 'trigger'],
],
[
'name' => 'ScalingRuleEnable',
'in' => 'query',
'schema' => ['description' => '弹性策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ScalingRuleMetric',
'in' => 'query',
'schema' => ['description' => '此参数已废弃。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'ScalingRuleTimer',
'in' => 'query',
'schema' => ['description' => '此参数已废弃。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'ScalingRuleTrigger',
'in' => 'query',
'schema' => ['description' => '触发器策略,为ScalingRuleTriggerDTO的JSON格式,具体样式,请参见请求参数补充说明。', 'type' => 'string', 'required' => false, 'example' => 'ScalingRuleTriggerDTO{......}'],
],
[
'name' => 'ScalingBehaviour',
'in' => 'query',
'schema' => ['description' => '配置自定义弹性行为,具体数据结构参考样例。', 'type' => 'string', 'required' => false, 'example' => '{"scaleUp":{"stabilizationWindowSeconds":"0","selectPolicy":"Max","policies":[{"type":"Pods","value":5,"periodSeconds":15}]},"scaleDown":{"stabilizationWindowSeconds":"300","selectPolicy":"Max","policies":[{"type":"Percent","value":200,"periodSeconds":15}]}}'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求唯一表示ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de7b5a'],
'AppScalingRule' => [
'description' => '弹性伸缩策略。',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => '更新弹性伸缩策略的时间戳,单位毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'CreateTime' => ['description' => '创建弹性伸缩策略的时间戳,单位毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'AppId' => ['description' => '弹性伸缩策略所属应用的应用ID。', 'type' => 'string', 'example' => '78194c76-3dca-418e-a263-cccd1ab4****'],
'LastDisableTime' => ['description' => '弹性伸缩策略最近一次被禁用的时间戳,单位毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1574251601785'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleEnabled' => ['description' => '弹性伸缩策略的启用状态。'."\n"
."\n"
.'- **true**:启用'."\n"
."\n"
.'- **false**:禁用', 'type' => 'boolean', 'example' => 'true'],
'ScaleRuleType' => ['description' => '弹性伸缩策略类型,仅支持trigger类型。', 'type' => 'string', 'example' => 'trigger'],
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScaleRuleName' => ['description' => '弹性伸缩的策略名称。', 'type' => 'string', 'example' => 'cpu-trigger'],
'Metric' => [
'description' => '此参数已废弃。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Metrics' => [
'description' => '此参数已废弃。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'MetricTargetAverageUtilization' => ['description' => '此参数已废弃。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MetricType' => ['description' => '此参数已废弃。', 'type' => 'string', 'example' => 'cpu'],
],
'description' => '',
],
],
],
],
'Trigger' => [
'description' => '触发器配置列表。',
'type' => 'object',
'properties' => [
'MinReplicas' => ['description' => '最小副本数,不能低于0。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxReplicas' => ['description' => '最大副本数,不能超过1000。', 'type' => 'integer', 'format' => 'int32', 'example' => '122'],
'Triggers' => [
'description' => '触发器配置列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => '触发器类型,只支持cron和app_metric。', 'type' => 'string', 'example' => 'cron'],
'MetaData' => ['description' => '触发器元信息。', 'type' => 'string', 'example' => '{"dryRun":true}'],
'Name' => ['description' => '触发器名称。', 'type' => 'string', 'example' => 'cpu'],
],
'description' => '',
],
],
],
],
'Behaviour' => [
'description' => '弹性行为配置。',
'type' => 'object',
'properties' => [
'ScaleUp' => [
'description' => '弹性扩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '扩容冷却时间。取值范围\\[0, 3600\\],单位为秒。默认为0秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'SelectPolicy' => ['description' => '弹性扩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
'description' => '',
],
],
],
],
'ScaleDown' => [
'description' => '弹性缩容行为配置。',
'type' => 'object',
'properties' => [
'StabilizationWindowSeconds' => ['description' => '缩容冷却时间。取值范围\\[0, 3600\\],单位为秒。默认为300秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
'SelectPolicy' => ['description' => '弹性缩容步长策略,可选值Max、Min、Disable。', 'type' => 'string', 'example' => 'Max'],
'Policies' => [
'description' => '策略配置。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PeriodSeconds' => ['description' => '检查执行的周期,取值范围[0, 1800],单位为秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
'Type' => ['description' => '策略类型,可为Pods或Percent。', 'type' => 'string', 'example' => 'Pods'],
'Value' => ['description' => '弹性行为的策略值,大于零的整数。若策略类型为Pods,则该值表示Pods数量;若策略类型为Percent,则该值表示百分比,允许超过100%。', 'type' => 'string', 'example' => '10'],
],
'description' => '',
],
],
],
],
],
],
],
],
],
'description' => '',
],
],
],
'title' => '更新应用的弹性伸缩规则',
'requestParamsDescription' => '## 请求参数补充说明'."\n"
.'```'."\n"
.'public class ScalingRuleTriggerDTO {'."\n"
.' /**'."\n"
.' * 最大实例数,上限1000。'."\n"
.' */'."\n"
.' Integer maxReplicas;'."\n"
.' /**'."\n"
.' * 最小实例数,下限0。'."\n"
.' */'."\n"
.' Integer minReplicas;'."\n"
."\n"
.' /**'."\n"
.' * 触发器列表,支持多个触发器。'."\n"
.' */'."\n"
.' List<Trigger> triggers;'."\n"
."\n"
.' @Data'."\n"
.' @ToString'."\n"
.' @Builder'."\n"
.' @AllArgsConstructor'."\n"
.' @NoArgsConstructor'."\n"
.' public static class Trigger {'."\n"
.' /**'."\n"
.' * 触发器类型,支持cron(定时), app_metric(应用监控)。'."\n"
.' */'."\n"
.' String type;'."\n"
."\n"
.' /**'."\n"
.' * 触发器名称,必须以字母开头,允许数字、字母、短划线(-)或下划线(_)组成。最大长度30个字符。'."\n"
.' */'."\n"
.' String name;'."\n"
."\n"
.' /**'."\n"
.' 触发器元数据,string->string的map Json,不同类型的触发器支持的元数据不同。'."\n"
.' 1. cron'."\n"
.' {"period":"weekly","dryRun":"false","timerInDay":[{"atTime":"08:00","targetReplicas":2},{"atTime":"20:00","targetReplicas":1}],"timerInWeek":["Sat","Thu"]}'."\n"
.' * period周期:daily, weekly, monthly。'."\n"
.' * dryRun: false是观测并扩缩,true是仅观测。'."\n"
.' * timerInDay:描述每天的扩缩周期,指在什么时候开始维持多少副本数。'."\n"
.' * timerInWeek:cron表达式的周,比如Fri。'."\n"
."\n"
.' 2. app_metric'."\n"
.' {\\"metricName\\":\\"arms_appstat.incall_QPS\\",\\"dryRun\\":\\"false\\",\\"targetValAvg\\":\\"true\\",\\"targetAverageValue\\":\\"100\\"}'."\n"
.' '."\n"
.' * metricName:'."\n"
.' * arms_appstat.incall_QPS(qps)'."\n"
.' * arms_appstat.incall_rt(rt)'."\n"
.' * arms_appstat.system_CPU(cpu使用率)'."\n"
.' * arms_appstat.system_MEM(内存使用率)'."\n"
.' * dryRun同cron。'."\n"
.' * targetValAvg:true为需要进行平均,false为不需要平均, 除了qps为true,其他均为false。'."\n"
.' * targetAverageValue/targetValue: targetValAvg为true则为targetAverageValue,targetValAvg为false则为targetValue。'."\n"
.' */'."\n"
.' String metadata;'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-01-03T03:43:53.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2023-01-03T03:15:48.000Z', 'description' => '请求参数发生变更、错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de7b5a\\",\\n \\"AppScalingRule\\": {\\n \\"UpdateTime\\": 1574251601785,\\n \\"CreateTime\\": 1574251601785,\\n \\"AppId\\": \\"78194c76-3dca-418e-a263-cccd1ab4****\\",\\n \\"LastDisableTime\\": 1574251601785,\\n \\"MaxReplicas\\": 1,\\n \\"ScaleRuleEnabled\\": true,\\n \\"ScaleRuleType\\": \\"trigger\\",\\n \\"MinReplicas\\": 1,\\n \\"ScaleRuleName\\": \\"cpu-trigger\\",\\n \\"Metric\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 1,\\n \\"Metrics\\": [\\n {\\n \\"MetricTargetAverageUtilization\\": 1,\\n \\"MetricType\\": \\"cpu\\"\\n }\\n ]\\n },\\n \\"Trigger\\": {\\n \\"MinReplicas\\": 1,\\n \\"MaxReplicas\\": 122,\\n \\"Triggers\\": [\\n {\\n \\"Type\\": \\"cron\\",\\n \\"MetaData\\": \\"{\\\\\\"dryRun\\\\\\":true}\\",\\n \\"Name\\": \\"cpu\\"\\n }\\n ]\\n },\\n \\"Behaviour\\": {\\n \\"ScaleUp\\": {\\n \\"StabilizationWindowSeconds\\": 0,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n },\\n \\"ScaleDown\\": {\\n \\"StabilizationWindowSeconds\\": 300,\\n \\"SelectPolicy\\": \\"Max\\",\\n \\"Policies\\": [\\n {\\n \\"PeriodSeconds\\": 15,\\n \\"Type\\": \\"Pods\\",\\n \\"Value\\": \\"10\\"\\n }\\n ]\\n }\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<AppScalingRule>\\n <ScaleRuleEnabled>true</ScaleRuleEnabled>\\n <LastDisableTime>23212323123</LastDisableTime>\\n <AppId>78194c76-3dca-418e-a263-cccd1ab4****</AppId>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <CreateTime>23212323123</CreateTime>\\n <UpdateTime>23212323123</UpdateTime>\\n <ScaleRuleName>cpu-trigger</ScaleRuleName>\\n <ScaleRuleType>trigger</ScaleRuleType>\\n <Metric>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>1</MaxReplicas>\\n <Metrics>\\n <MetricType>cpu</MetricType>\\n <MetricTargetAverageUtilization>1</MetricTargetAverageUtilization>\\n </Metrics>\\n </Metric>\\n <Trigger>\\n <MinReplicas>1</MinReplicas>\\n <MaxReplicas>122</MaxReplicas>\\n <Triggers>\\n <Type>cron</Type>\\n <MetaData>{\\"dryRun\\":true}</MetaData>\\n <Name>cpu</Name>\\n </Triggers>\\n </Trigger>\\n</AppScalingRule>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateConfigTemplate' => [
'summary' => '调用UpdateConfigTemplate接口更新配置模板。'."\n"
.'。',
'path' => '/pop/v5/config_template',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'formData',
'schema' => ['title' => '配置模板ID', 'description' => '配置模板ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['title' => '配置模板名称', 'description' => '配置模板名称,不限字符类型,最长不超过64个字符。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'configtmpl1'],
],
[
'name' => 'Format',
'in' => 'formData',
'schema' => ['title' => '模板数据格式', 'description' => '模板数据格式,支持以下格式:'."\n"
."\n"
.'- JSON:JSON格式;'."\n"
.'- XML:XML格式;'."\n"
.'- YAML:YAML格式;'."\n"
.'- Properties:Properties格式;'."\n"
.'- KeyValue:键值对;'."\n"
.'- Custom:自定义格式。', 'type' => 'string', 'required' => false, 'example' => 'JSON'],
],
[
'name' => 'Description',
'in' => 'formData',
'schema' => ['title' => '模板描述', 'description' => '模板描述,不限字符类型,最长不超过255个字符。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'Test configuration template'],
],
[
'name' => 'Content',
'in' => 'formData',
'schema' => ['title' => '模板内容', 'description' => '模板内容,需要与Format标注的格式相匹配。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '{"name":"william","age":18}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '请求ID', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-*************'],
'Code' => ['title' => '响应码', 'description' => '接口状态或POP错误码。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['title' => '响应码文本描述', 'description' => '附加信息。'."\n"
."\n", 'type' => 'string', 'example' => 'success'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation. ', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D16979DC-4D42-*************\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
'title' => '更新配置模板',
'changeSet' => [
['createdAt' => '2022-01-13T07:39:34.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateConfigTemplate'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:UpdateConfigTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'UpdateContainer' => [
'path' => '/pop/v5/changeorder/co_update_container',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'e83acea6-****-47e1-96ae-c0e953772cdc'],
],
[
'name' => 'BuildPackId',
'in' => 'query',
'schema' => ['description' => 'EDAS-Container的构建包ID。可以在容器版本说明文档的表格中获取对应版本的构建包ID,更多信息,请参见[容器版本说明](~~92614~~)。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '59'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'eb1b9862-****-476f-9e78-d6aa0842835a'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323******'],
],
],
],
],
'errorCodes' => [],
'title' => '更新HSF应用的EDAS-Container版本',
'summary' => '调用UpdateContainer接口更新HSF应用的EDAS-Container版本。EDAS-Container包含Ali-Tomcat和Pandora。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainer'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"ChangeOrderId\\": \\"eb1b9862-****-476f-9e78-d6aa0842835a\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323******\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>eb1b9862-****-476f-9e78-d6aa0842835a</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateContainerConfiguration' => [
'summary' => '调用UpdateContainerConfiguration接口设置ECS集群中应用或应用分组的Tomcat。',
'path' => '/pop/v5/app/container_config',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'example' => 'c627c157-560d-43ff-************'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。'."\n"
.'- 如果ID不为空,则设置指定应用分组的Tomcat。'."\n"
.'- 如果ID为“”,则设置应用的Tomcat。', 'type' => 'string', 'required' => false, 'example' => '8123db90-880f-**************'],
],
[
'name' => 'ContextPath',
'in' => 'query',
'schema' => ['description' => 'Tomcat的ContextPath,支持空字符串、null-war包名称、ROOT-根目录或其他非空自定义字符串。'."\n"
.'支持英文字母、数字、 短划线(-)和下划线(_)。'."\n"
.'- 应用分组不设置该参数,则使用应用配置。'."\n"
.'- 应用不设置该参数,则使用根目录`/`。', 'type' => 'string', 'required' => false, 'example' => '/'],
],
[
'name' => 'HttpPort',
'in' => 'query',
'schema' => ['description' => '应用端口。'."\n"
.'- 应用分组不设置该参数,则使用应用配置。'."\n"
.'- 应用不设置该参数,则使用默认值8080。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'],
],
[
'name' => 'MaxThreads',
'in' => 'query',
'schema' => ['description' => '最大线程数。'."\n"
.'- 应用分组不设置该参数,则使用应用配置。'."\n"
.'- 应用不设置该参数,使用默认值250。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
[
'name' => 'URIEncoding',
'in' => 'query',
'schema' => ['description' => 'URI编码方式,支持ISO-8859-1、GBK、GB2312和UTF-8。'."\n"
.'- 应用分组不设置该参数,则使用应用配置。'."\n"
.'- 应用不设置该参数,则使用Tomcat默认值。', 'type' => 'string', 'required' => false, 'example' => 'ISO-8859-1'],
],
[
'name' => 'UseBodyEncoding',
'in' => 'query',
'schema' => ['description' => 'useBodyEncodingForURI是否启用。'."\n"
.'- 应用分组不设置该参数,则使用应用配置。'."\n"
.'- 应用不设置该参数,则使用默认值false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-***************'],
'ContainerConfiguration' => [
'description' => '容器配置信息。',
'type' => 'object',
'properties' => [
'HttpPort' => ['description' => '应用端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'],
'ContextPath' => ['description' => 'Tomcat的ContextPath。', 'type' => 'string', 'example' => '/'],
'UseBodyEncoding' => ['description' => 'useBodyEncodingForURI是否启用。', 'type' => 'boolean', 'example' => 'true'],
'MaxThreads' => ['description' => '最大线程数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'URIEncoding' => ['description' => 'URI编码方式,支持ISO-8859-1、GBK、GB2312和UTF-8。', 'type' => 'string', 'example' => 'ISO-8859-1'],
],
],
],
],
],
],
'title' => '设置应用下的分组设置',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T08:04:11.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T08:04:11.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainerConfiguration'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-***************\\",\\n \\"ContainerConfiguration\\": {\\n \\"HttpPort\\": 8080,\\n \\"ContextPath\\": \\"/\\",\\n \\"UseBodyEncoding\\": true,\\n \\"MaxThreads\\": 20,\\n \\"URIEncoding\\": \\"ISO-8859-1\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ContainerConfiguration>\\n <UseBodyEncoding>true</UseBodyEncoding>\\n <MaxThreads>20</MaxThreads>\\n <HttpPort>8080</HttpPort>\\n <URIEncoding>ISO-8859-1</URIEncoding>\\n</ContainerConfiguration>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateHealthCheckUrl' => [
'path' => '/pop/v5/app/modify_hc_url',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'example' => 'c627c157-560d-43ff-***************'],
],
[
'name' => 'hcURL',
'in' => 'query',
'schema' => ['description' => '健康检查URL,需要以`http://`开头,最大长度不超过255字符,例如:`http://127.0.0.1:8080/_ehc.html`。不传该参数,可不修改应用检查URL。', 'type' => 'string', 'required' => false, 'example' => 'http://127.0.0.1:8080/_ehc.html'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'code码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D16979DC-4D42-*****************'],
'HealthCheckURL' => ['description' => '健康检查URL', 'type' => 'string', 'example' => 'http://127.0.0.1:8080/_ehc.html'],
],
'description' => '',
],
],
],
'title' => '设置健康检查 URL',
'summary' => '调用UpdateHealthCheckUrl来设置健康检查URL。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-14T09:28:45.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateHealthCheckUrl'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-*****************\\",\\n \\"HealthCheckURL\\": \\"http://127.0.0.1:8080/_ehc.html\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D16979DC-4D42-*****************</RequestId>\\n<Message>success</Message>\\n<HealthCheckURL>http://127.0.0.1:8080/_ehc.html</HealthCheckURL>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateHookConfiguration' => [
'summary' => '调用UpdateHookConfiguration来为应用或分组设置挂载脚本。',
'path' => '/pop/app/config_app_hook_json',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'd498****-1dd8ec229862'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID', 'type' => 'string', 'required' => false, 'example' => 'd498****-1dd8ec229862'],
],
[
'name' => 'Hooks',
'in' => 'query',
'schema' => ['description' => '挂载脚本配置,为一段JSON格式文本,如:'."\n"
.'`[{"ignoreFail":false,"name":"postprepareInstanceEnvironmentOnScaleOut","script":"ls"},{"ignoreFail":true,"name":"postdeleteInstanceDataOnScaleIn","script":""},{"ignoreFail":true,"name":"prestartInstance","script":""},{"ignoreFail":true,"name":"poststartInstance","script":""},{"ignoreFail":true,"name":"prestopInstance","script":""},{"ignoreFail":true,"name":"poststopInstance","script":""}]`', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"ignoreFail":false,"name":"postprepareInstanceEnvironmentOnScaleOut","script":"ls"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'd498****-1dd8ec229862'],
'HooksConfiguration' => [
'description' => '挂载脚本配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'IgnoreFail' => ['description' => '是否忽略失败,取值如下:'."\n"
."\n"
.'- **true**:忽略失败'."\n"
."\n"
.'- **false**:不忽略失败', 'type' => 'boolean', 'example' => 'true'],
'Name' => ['description' => '挂载脚本名', 'type' => 'string', 'example' => 'postprepareInstanceEnvironmentOnScaleOut'],
'Script' => ['description' => '挂载脚本内容', 'type' => 'string', 'example' => 'ls'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '为应用或分组设置挂载脚本',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateHookConfiguration'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"d498****-1dd8ec229862\\",\\n \\"HooksConfiguration\\": [\\n {\\n \\"IgnoreFail\\": true,\\n \\"Name\\": \\"postprepareInstanceEnvironmentOnScaleOut\\",\\n \\"Script\\": \\"ls\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<HooksConfiguration>\\n <Script>ls</Script>\\n <IgnoreFail>true</IgnoreFail>\\n <Name>postprepareInstanceEnvironmentOnScaleOut</Name>\\n</HooksConfiguration>\\n<Message>success</Message>\\n<RequestId>d498****-1dd8ec229862</RequestId>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateJvmConfiguration' => [
'summary' => '调用UpdateJvmConfiguration来配置应用或应用分组的JVM。',
'path' => '/pop/v5/app/app_jvm_config',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID', 'type' => 'string', 'required' => true, 'example' => 'c627c157-560d-*************'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID,您可调用[ListDeployGroup](~~62077~~)来查询。'."\n"
."\n"
.'> - 如果ID不为空,设置分组信息。'."\n"
.'- ID为空,则设置应用的配置信息。'."\n", 'type' => 'string', 'required' => false, 'example' => '0afc726e-077e-4357-98b2-db9f7145****'],
],
[
'name' => 'Options',
'in' => 'query',
'schema' => ['description' => '自定义参数:'."\n"
."\n"
.'> - 分组配置不设置该参数,使用应用配置。'."\n"
.'- 应用配置不设置该参数,使用默认值。', 'type' => 'string', 'required' => false, 'example' => '-Dproperty=value'],
],
[
'name' => 'MinHeapSize',
'in' => 'query',
'schema' => ['description' => '初始化堆内存大小,单位MB:'."\n"
."\n"
.'> - 分组配置不设置该参数,使用应用配置。'."\n"
.'- 应用配置不设置该参数,使用默认值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '500'],
],
[
'name' => 'MaxPermSize',
'in' => 'query',
'schema' => ['description' => '持久代内存大小,单位MB:'."\n"
.'> - 分组配置不设置该参数,使用应用配置。'."\n"
.'- 应用配置不设置该参数,使用默认值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'],
],
[
'name' => 'MaxHeapSize',
'in' => 'query',
'schema' => ['description' => '最大堆内存大小,单位MB:'."\n"
.'> - 分组配置不设置该参数,使用应用配置。'."\n"
.'- 应用配置不设置该参数,使用默认值。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '500'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D16979DC-4D42-********************'],
'JvmConfiguration' => [
'description' => 'JVM参数',
'type' => 'object',
'properties' => [
'MaxPermSize' => ['description' => '持久代内存大小,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'],
'Options' => ['description' => '可选参数', 'type' => 'string', 'example' => '”“'],
'MaxHeapSize' => ['description' => '最大堆内存大小,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'MinHeapSize' => ['description' => '初始化堆内存大小,单位MB。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
],
],
],
'description' => '',
],
],
],
'title' => '来配置应用分组内的JVM设置',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-09-13T06:36:42.000Z', 'description' => '错误码发生变更'],
['createdAt' => '2022-09-13T06:36:42.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateJvmConfiguration'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ConfigApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-********************\\",\\n \\"JvmConfiguration\\": {\\n \\"MaxPermSize\\": 1000,\\n \\"Options\\": \\"”“\\",\\n \\"MaxHeapSize\\": 500,\\n \\"MinHeapSize\\": 500\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<JvmConfiguration>\\n <MaxPermSize>1000</MaxPermSize>\\n <MaxHeapSize>500</MaxHeapSize>\\n <MinHeapSize>500</MinHeapSize>\\n <Options/>\\n</JvmConfiguration>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateK8sApplicationBaseInfo' => [
'summary' => '调用UpdateK8sApplicationBaseInfo接口修改K8s应用基本信息。',
'path' => '/pop/v5/oam/update_app_basic_info',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '待修改的应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '4f038ddf-b27b-****-****-88e44375****'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => '应用描述,不超过256个字符。', 'type' => 'string', 'required' => false, 'example' => 'app for pre-production'],
],
[
'name' => 'Owner',
'in' => 'query',
'schema' => ['description' => '应用负责人,不超过128个字符。', 'type' => 'string', 'required' => false, 'example' => 'John Doe'],
],
[
'name' => 'PhoneNumber',
'in' => 'query',
'schema' => ['description' => '应用负责人电话号码。', 'type' => 'string', 'required' => false, 'example' => '1361234xxxx'],
],
[
'name' => 'Email',
'in' => 'query',
'schema' => ['description' => '应用负责人电子邮箱。', 'type' => 'string', 'required' => false, 'example' => 'mymail@example.com'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '57F146F6-3C94-****-****-A66EF4B9*****'],
'Result' => ['description' => '修改结果。', 'type' => 'string', 'example' => 'success'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"57F146F6-3C94-****-****-A66EF4B9*****\\",\\n \\"Result\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>57F146F6-3C94-****-****-A66EF4B9*****</RequestId>\\n<Code>200</Code>\\n<Result>success</Result>","errorExample":""}]',
'title' => '更新K8s应用基本信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sApplicationBaseInfo'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ConfigApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
],
'UpdateK8sApplicationConfig' => [
'path' => '/pop/v5/k8s/acs/k8s_app_configuration',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可以调用ListApplication接口获取,详情请参见[ListApplication](~~423162~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '23bf94d9-****-4994-9917-616a827aa777'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,可以调用ListCluster接口获取,详情请参见[ListCluster](~~411844~~)。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '9c28bbb9-****-44b3-b953-54ef8a2d0be2'],
],
[
'name' => 'CpuLimit',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的CPU限额,单位:核。设置为0表示不做限制。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '1'],
],
[
'name' => 'MemoryLimit',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例的内存限额,单位:MB。设置为0表示不做限制。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '4'],
],
[
'name' => 'McpuLimit',
'in' => 'query',
'schema' => ['description' => 'CPU能使用的最大值,单位:核数。设置为0表示不做限制。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'CpuRequest',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例需要申请的CPU配额,推荐设置。单位:核数,设置为0表示不限制。'."\n"
."\n"
.'> 设置该参数时,还需要设置CpuLimit参数,且需要小于等于CpuLimit的参数值。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'McpuRequest',
'in' => 'query',
'schema' => ['description' => 'CPU最小资源需求,单位:核数。设置为0表示不限制。'."\n"
."\n"
.'> 设置该参数时,还需要设置CpuLimit参数,且需要小于等于CpuLimit的参数值。', 'type' => 'string', 'required' => false, 'example' => '1000'],
],
[
'name' => 'MemoryRequest',
'in' => 'query',
'schema' => ['description' => '应用运行过程中,应用实例需要申请的内存配额,推荐设置。单位:MB。设置为0表示不申请。'."\n"
."\n"
.'> 设置该参数时,还需要设置MemoryLimit参数,且需要小于等于MemoryLimit的参数值。', 'type' => 'string', 'required' => false, 'example' => '400'],
],
[
'name' => 'Timeout',
'in' => 'query',
'schema' => ['description' => '变更流程超时时间,单位:秒。取值范围1~1800秒,默认值为600秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60'],
],
[
'name' => 'EphemeralStorageRequest',
'in' => 'query',
'schema' => ['description' => '临时存储最小资源需求,单位:GB。设置0表示不限制。'."\n"
."\n"
.'> 设置该参数时,还需要设置EphemeralStorageLimit参数,且需要小于等于EphemeralStorageLimit的参数值。', 'type' => 'string', 'required' => false, 'example' => '2'],
],
[
'name' => 'EphemeralStorageLimit',
'in' => 'query',
'schema' => ['description' => '临时存储资源需求上限,单位:GB。设置0表示不限制。', 'type' => 'string', 'required' => false, 'example' => '4'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => '8806d1c6-****-48eb-9373-6bdef3007466'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-****'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Edas.errorcode.K8SAppConfiguration.UpdateFail', 'errorMessage' => 'Failed to set app configuration.', 'description' => ''],
],
],
'title' => '修改K8s集群中应用配置',
'summary' => '调用UpdateK8sApplicationConfig接口修改容器服务K8s或Serverless K8s集群中应用的配置。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-07-04T06:00:03.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sApplicationConfig'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'edas:ConfigApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"8806d1c6-****-48eb-9373-6bdef3007466\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-****\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<ChangeOrderId>8806d1c6-87ab-48eb-9373-6bdef3007466</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateK8sConfigMap' => [
'summary' => '调用UpdateK8sConfigMap接口更新K8s配置项。',
'path' => '/pop/v5/k8s/acs/k8s_config_map',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '7246cxxx-53xx-xxxx-xxxx-xxxxxxxx'],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'K8s命名空间。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => '配置项名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'my-configmap'],
],
[
'name' => 'Data',
'in' => 'formData',
'schema' => ['description' => '配置项数据,JSON数组字符串。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'b197-40ab-9155-****'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '更新K8s配置项',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sConfigMap'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"b197-40ab-9155-****\\"\\n}","type":"json"}]',
],
'UpdateK8sIngressRule' => [
'path' => '/pop/v5/k8s/acs/k8s_ingress',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'example' => '5b2b4ab4-efbc-4a81-9c45-xxxxxxxxxxxxx'],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'K8s集群命名空间。'."\n", 'type' => 'string', 'required' => false, 'example' => 'default'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '路由规则名称。只能为小写字母、数字和短划线(-),必须以小写字母开头,不以短划线(-)结尾,长度不超过63个字符。'."\n", 'type' => 'string', 'required' => false, 'example' => 'my-ingress-rule'],
],
[
'name' => 'IngressConf',
'in' => 'query',
'schema' => ['description' => 'JSON对象字符串表示的应用路由规则,格式如下所示:'."\n"
.'```'."\n"
.'{'."\n"
.' "rules": ['."\n"
.' {'."\n"
.' "host": "abc.com",'."\n"
.' "secretName": "tls-secret",'."\n"
.' "paths": ['."\n"
.' {'."\n"
.' "path": "/path",'."\n"
.' "backend": {'."\n"
.' "servicePort": 80,'."\n"
.' "serviceName": "xxx"'."\n"
.' }'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'代码字段解释如下:'."\n"
.'- rules:路由规则列表。'."\n"
.'- host:路由规则域名。'."\n"
.'- secretName:TLS证书类型的Secret,当需要支持HTTPS协议时需要配置该证书。'."\n"
.'- paths:匹配路径列表。'."\n"
.'- path:匹配路径。'."\n"
.'- backend:后端服务,支持配置由EDAS控制台创建的Service。'."\n"
.'- serviceName:后端服务名称。'."\n"
.'- servicePort:后端服务端口。', 'type' => 'string', 'required' => false, 'example' => '{"rules":[{"host":"abc.com","secretName":"tls-secret","paths":[{"path":"/path","backend":{"servicePort":80,"serviceName":"xxx"}}]}]}'],
],
[
'name' => 'Annotations',
'in' => 'query',
'schema' => ['description' => '注解。', 'type' => 'string', 'required' => false, 'example' => '{\\"nginx.ingress.kubernetes.io/ssl-redirect\\":\\"true\\",\\"nginx.ingress.kubernetes.io/configuration-snippet\\":\\"set $test value\\"}'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => '标签。', 'type' => 'string', 'required' => false, 'example' => '{\\"test-label\\":\\"test-label-value\\"}'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '更新应用路由规则',
'summary' => '更新应用路由规则。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-10-27T06:18:56.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sIngressRule'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateK8sResource' => [
'path' => '/pop/v5/oam/update_k8s_resource_config',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '集群ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '2e7059e9-2d********5e8ecac64ff'],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'K8s命名空间ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'app-namespace'],
],
[
'name' => 'ResourceContent',
'in' => 'formData',
'schema' => ['description' => 'YAML格式的描述内容。', 'type' => 'string', 'required' => false, 'example' => 'apiVersion: apps/v1 kind: Deployment metadata: name: demo-app namespace: app-namespace spec: replicas: 3 selector: matchLabels: cluster: abc template: # create pods using pod definition in this template metadata: labels: cluster: abc spec: containers: - image: registry-vpc.cn-hangzhou.aliyuncs.com/edas-demo-image/consumer:1.0 imagePullPolicy: Always name: test-container ports: - containerPort: 80 env: - name: foo value: bar'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Code码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '唯一请求ID。', 'type' => 'string', 'example' => '7638276F-****-****-884F-54CC0BC84A8D'],
],
],
],
],
'title' => '更新容器服务K8s资源',
'summary' => '更新K8s资源。',
'description' => '> 当前仅支持Deployment资源的修改。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-06T08:28:53.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2022-05-10T06:57:02.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sResource'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7638276F-****-****-884F-54CC0BC84A8D\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>7638276F-****-****-884F-54CC0BC84A8D</RequestId>\\n<Message>success</Message>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateK8sSecret' => [
'summary' => '调用UpdateK8sSecret接口更新K8s保密配置。',
'path' => '/pop/v5/k8s/acs/k8s_secret',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ClusterId',
'in' => 'formData',
'schema' => ['description' => '集群ID。'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '9c28bbb9-****-44b3-b953-54ef8a2d0be2'],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => '保密配置名称,必须以字母开头,支持数字、字母和短划线(-),最多支持63个字符。'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'my-secret'],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'K8s集群命名空间。'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'default'],
],
[
'name' => 'Type',
'in' => 'formData',
'schema' => ['description' => '保密配置类型,支持以下两种类型:'."\n"
."\n"
.'- Opaque:用户自定义数据类型'."\n"
."\n"
.'- kubernetes.io/tls:TLS证书类型', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'Opaque'],
],
[
'name' => 'Data',
'in' => 'formData',
'schema' => ['description' => '保密配置数据,使用JSON数组表示,数组对象包括以下内容:'."\n"
.'- Key:保密配置键'."\n"
.'- Value:保密配置值', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}]'],
],
[
'name' => 'CertId',
'in' => 'formData',
'schema' => ['description' => '证书ID。', 'type' => 'string', 'required' => false, 'example' => '6650277'],
],
[
'name' => 'CertRegionId',
'in' => 'formData',
'schema' => ['description' => '证书所在地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Base64Encoded',
'in' => 'formData',
'schema' => ['description' => '数据部分是否已经经过Base64编码。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D16979DC-4D42-****************'],
],
'description' => '',
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '更新K8s保密配置',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sSecret'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageCluster',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Cluster', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/cluster/{#ClusterId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-****************\\"\\n}","type":"json"}]',
],
'UpdateK8sService' => [
'path' => '/pop/v5/k8s/acs/k8s_service',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'K8s Service名称,需要遵循以下规范:'."\n"
."\n"
.'- 仅支持小写字母、数字和短划线(-)。'."\n"
.'- 只能以字母开头,并且以字母或数字结尾。'."\n"
.'- 长度范围为2~32字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'service-http'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'K8s服务类型,当前只支持ClusterIP类型。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ClusterIP'],
],
[
'name' => 'ServicePorts',
'in' => 'query',
'schema' => ['description' => 'K8s Service端口映射表,需要符合JsonArray格式,支持的参数如下:'."\n"
.'- **protocol**:必填,服务协议,支持TCP和UDP。'."\n"
.'- **port**:必填,前端服务端口,取值范围1~65535。'."\n"
.'- **targetPort**:必填,后端容器端口,取值范围1~65535。'."\n"
."\n"
.'参考示例:'."\n"
.'`[{"protocol": "TCP", "port": 80, "targetPort": 8080},{"protocol": "TCP", "port": 81, "targetPort": 8081}]`', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"protocol":"TCP","port":80,"targetPort":8080}]'],
],
[
'name' => 'ExternalTrafficPolicy',
'in' => 'query',
'schema' => ['description' => '设置外部流量管理策略:'."\n"
.'- Local:Local模式。'."\n"
.'- Cluster:Cluster模式。'."\n"
."\n"
.'默认为Local模式。', 'type' => 'string', 'required' => false, 'example' => 'Local'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => 'b4b37bde-a125-****-****-741f7f4a9ae3'],
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'Edas.errorcode.PermissionDenied.message', 'errorMessage' => 'You are not authorized to perform the operation.', 'description' => '无权限操作'],
],
],
'title' => '更新K8s服务',
'summary' => '更新K8s集群中应用的K8s服务Service。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-06-16T02:42:31.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sService'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"b4b37bde-a125-****-****-741f7f4a9ae3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>b4b37bde-a125-****-****-741f7f4a9ae3</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateK8sSlb' => [
'path' => '/pop/v5/k8s/acs/k8s_slb_binding',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用ID,可以通过调用[ListApplication](~~149390~~)获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5a166fbd-****-****-a286-781659d9f54c'],
],
[
'name' => 'ClusterId',
'in' => 'query',
'schema' => ['description' => '集群ID,可以通过调用[GetK8sCluster](~~181437~~)获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '712082c3-****-****-9217-a947b5cde6ee'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '设置SLB的类型:'."\n"
."\n"
.'* Internet:公网。'."\n"
.'* Intranet:私网。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Internet'],
],
[
'name' => 'SlbProtocol',
'in' => 'query',
'schema' => ['description' => 'SLB协议,目前仅支持TCP。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'TCP'],
],
[
'name' => 'TargetPort',
'in' => 'query',
'schema' => ['description' => '后端端口,即应用的服务端口,范围1~65535。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '8082'],
],
[
'name' => 'Port',
'in' => 'query',
'schema' => ['description' => '前端端口,范围1~65535。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '80'],
],
[
'name' => 'ServicePortInfos',
'in' => 'query',
'schema' => ['description' => '多个端口需求以及非TCP协议需求填写字段。必须符合JsonArray格式,参考示例:'."\n"
.'[{"targetPort":8080,"port":82,"loadBalancerProtocol":"TCP"},{"port":81,"certId":"1362469756373809_16c185d6fa2_1914500329_-xxxxxxx","targetPort":8181,"lo'."\n"
.'adBalancerProtocol":"HTTPS"}]'."\n"
.'- port:必填,前端端口,范围1~65535。不能重复。'."\n"
.'- targetPort:必填,后端端口,范围1~65535。'."\n"
.'- loadBalancerProtocol:必填,只支持TCP和HTTPS,对于HTTP类型的填写TCP即可。'."\n"
.'- certId:如果是HTTPS,则该参数必填证书ID,可以在slb控制台进行购买。'."\n"
.'- 注意该参数用来支持多端口支持,需要配合appId、clusterId、type、slbId进行使用。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '{"targetPort":8080,"port":82,"loadBalancerProtocol":"TCP"},{"port":81,"certId":"136246975637380916c185d6fa21914500329_-xxxxxxx","targetPort":8181,"lo adBalancerProtocol":"HTTPS"}'],
],
[
'name' => 'Specification',
'in' => 'query',
'schema' => ['description' => 'SLB规格,目前支持以下SLB实例的规格:'."\n"
.'* slb.s1.small'."\n"
.'* slb.s2.small'."\n"
.'* slb.s2.medium'."\n"
.'* slb.s3.small'."\n"
.'* slb.s3.medium'."\n"
.'* slb.s3.large'."\n"
."\n"
.'不填默认为slb.s1.small。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'slb.s1.small'],
],
[
'name' => 'Scheduler',
'in' => 'query',
'schema' => ['description' => 'SLB调度算法。不填写则默认值为rr。支持负载均衡支持轮询 (rr)、加权轮询 (wr) 两种调度算法。'."\n"
."\n"
.'- 加权轮询 (wrr):权重值越高的后端服务器,被轮询到的次数(概率)也越高。'."\n"
.'- 轮询 (rr):按照访问顺序依次将外部请求分发到后端服务器。', 'type' => 'string', 'required' => false, 'example' => 'wrr'],
],
[
'name' => 'SlbName',
'in' => 'query',
'schema' => ['description' => 'SLB实例名称。', 'type' => 'string', 'required' => false, 'example' => 'SLB_doctest'],
],
[
'name' => 'DisableForceOverride',
'in' => 'query',
'schema' => ['description' => '禁止覆盖SLB监听配置:'."\n"
.'* true:禁止覆盖。'."\n"
.'* false:允许覆盖。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ChangeOrderId' => ['description' => '变更流程ID。', 'type' => 'string', 'example' => '9a1dcdee-****-****-ad37-cbf9dc91fba9'],
'Code' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-eiufh'],
],
'description' => '',
],
],
],
'title' => '更新K8s负载均衡SLB',
'summary' => '调用UpdateK8sSlb更新容器服务K8s应用绑定的负载均衡SLB。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-10-18T16:44:18.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sSlb'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ChangeOrderId\\": \\"9a1dcdee-****-****-ad37-cbf9dc91fba9\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-eiufh\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>4823-bhjf-23u4-eiufh</RequestId>\\n<Message>success</Message>\\n<ChangeOrderId>9a1dcdee-****-****-ad37-cbf9dc91fba9</ChangeOrderId>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateLocalitySetting' => [
'path' => '/pop/sp/applications/locality/setting',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
'schema' => ['description' => 'ecu所在地域id。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['description' => '命名空间id>创建后不可变,格式为[unk]物理空间标识符[unk]。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'AppId',
'in' => 'query',
'schema' => ['description' => '应用id,可调用[listapplication](~~149390~~)接口获取。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'bfa00cfb-9642-4292-bb78-1d7d4c86004c'],
],
[
'name' => 'Enabled',
'in' => 'query',
'schema' => ['description' => '设置是否已生效:'."\n"
.' '."\n"
.'- true:已生效。'."\n"
.'- false:未生效。', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'false'],
],
[
'name' => 'Threshold',
'in' => 'query',
'schema' => ['description' => '满足阈值表达式的总个数。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '15'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'HttpStatusCode' => ['description' => 'http状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Code' => ['description' => '接口状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'a5281053-08e4-47a5-b2ab-5c0323de*****'],
'Success' => ['description' => '调用是否成功。', 'type' => 'boolean', 'example' => 'True'],
'Data' => [
'description' => '变更执行结果',
'type' => 'object',
'properties' => [
'Threshold' => ['description' => 'ecu的阈值', 'type' => 'number', 'format' => 'float', 'example' => '15'],
'Enabled' => ['description' => '是否可用', 'type' => 'boolean', 'example' => 'true'],
],
],
],
'description' => '',
],
],
],
'title' => '更新微服务治理本地化配置',
'summary' => '调用 UpdateLocalitySetting 接口更新本地化配置',
'description' => '> 当前仅支持Deployment资源的修改。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageApplication',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NamespaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"a5281053-08e4-47a5-b2ab-5c0323de*****\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Threshold\\": 15,\\n \\"Enabled\\": true\\n }\\n}","type":"json"}]',
],
'UpdateRole' => [
'summary' => '编辑角色。',
'path' => '/pop/v5/account/edit_role',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RoleId',
'in' => 'query',
'schema' => ['description' => '角色ID,可以使用[ListRole](~~149410~~)获取。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '32371'],
],
[
'name' => 'ActionData',
'in' => 'query',
'schema' => ['description' => '操作权限集合,格式:`权限组ID1:权限码1;...;权限组IDn:权限码n`,例如`1:1;1:2;2:1;2:2`。详细权限组及权限码含义请参见[ListAuthority](~~149409~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '15:1'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'edit successfully'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4823-bhjf-23u4-****'],
],
],
],
],
'title' => '编辑角色',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-07T13:17:15.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateRole'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:UpdateRole',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"edit successfully\\",\\n \\"RequestId\\": \\"4823-bhjf-23u4-****\\"\\n}","errorExample":""},{"type":"xml","example":"<Message>edit successfully</Message>\\n<RequestId/>\\n<Code>200</Code>","errorExample":""}]',
],
'UpdateSlsLogStore' => [
'path' => '/pop/v5/k8s/sls/update_sls_log_store',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AppId',
'in' => 'formData',
'schema' => ['description' => '应用ID,可通过调用ListApplication接口获取,详情请参见[ListApplication](~~149390~~)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'af58edcf-f7eb-****-****-db4e425f****'],
],
[
'name' => 'Configs',
'in' => 'formData',
'schema' => ['description' => 'Logstore配置:'."\n"
.'- **Configs**:'."\n"
.' - **type**:采集类型,文件类型为file,标准输出类型为stdout。'."\n"
.' - **Logstore**:Logstore名称。请确保Logstore名称在同一个集群中不重复,其命名应符合规则:'."\n"
.' - 日志库名称仅支持小写字母、数字、短划线(-)和下划线(_)。'."\n"
.' - 必须以小写字母和数字开头和结尾。'."\n"
.' - 名称长度为3~63个字符。'."\n"
.' '."\n"
.' > 若为空,则由系统自动生成。'."\n"
.' '."\n"
.' - **LogDir**:若为标准输出类型,则采集路径为stdout.log,若为文件类型,则为采集的文件路径,支持通配符,采集路径应符合正则:`^/(.+)/(.*)[^/]$`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '[{"logstore":"thisisanotherfilelog","type":"file","logDir":"/var/log/*"},{"logstore":"","type":"stdout","logDir":"stdout.log"},{"logstore":"thisisafilelog","type":"file","logDir":"/tmp/log/*"}]'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口状态或POP错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D16979DC-4D42-**************'],
],
],
],
],
'title' => '配置应用的日志服务',
'summary' => '调用UpdateSlsLogStore接口配置应用的日志服务。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-05-10T06:20:24.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSlsLogStore'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageAppLog',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => 'Application', 'arn' => 'acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D16979DC-4D42-**************\\"\\n}","errorExample":""},{"type":"xml","example":"<code>200</code>\\n<message>success</message>\\n<requestId>D16979DC-4D42-**************</requestId>","errorExample":""}]',
],
'UpdateSwimmingLane' => [
'path' => '/pop/v5/trafficmgnt/swimming_lanes',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LaneId',
'in' => 'query',
'schema' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '224'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '泳道名称。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'test-swimlane'],
],
[
'name' => 'EnableRules',
'in' => 'query',
'schema' => ['description' => '流控规则是否开启。', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'true'],
],
[
'name' => 'AppInfos',
'in' => 'query',
'schema' => ['description' => '流控泳道涉及应用列表。', 'type' => 'string', 'required' => false, 'example' => '[{"appId":"8e7689af-6ddd-4676-8ee6-5fbecdf2****"},{"appId":"f72deaac-26ba-429a-948d-5fa47c4a****"},{"appId":"99a2d4b5-99a5-4e25-a964-1bd03a17****"}]'],
],
[
'name' => 'EntryRules',
'in' => 'query',
'schema' => ['description' => '流控规则配置。', 'type' => 'string', 'required' => false, 'example' => '[{"priority":1,"path":"/traffictest","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testheadervalue","cond":"==","operator":"rawvalue"}]}]'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => ' 请求ID。', 'type' => 'string', 'example' => '6CB46AEA-309C-5041-9EC7-FCF4478F****'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-beijing:qa'],
'GroupId' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '171'],
'EntryRule' => ['description' => '泳道规则。', 'type' => 'string', 'example' => '[{\\"condition\\":\\"AND\\",\\"enable\\":true,\\"path\\":\\"/traffictest\\",\\"priority\\":1,\\"restItems\\":[{\\"cond\\":\\"==\\",\\"datum\\":\\"testheadervalue\\",\\"name\\":\\"testheader\\",\\"operator\\":\\"rawvalue\\",\\"type\\":\\"header\\",\\"value\\":\\"testheadervalue\\"}]}]"'],
'Tag' => ['description' => '泳道标签。', 'type' => 'string', 'example' => '2cb6b8a'],
'Name' => ['description' => '泳道名称。', 'type' => 'string', 'example' => 'test-swimlane'],
'Id' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '321'],
'SwimmingLaneAppRelationShipList' => [
'description' => '流控泳道涉及应用关联关系列表。',
'type' => 'array',
'items' => [
'description' => '流控泳道涉及应用关联关系。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-app'],
'Rules' => ['description' => '关联规则。', 'type' => 'string', 'example' => 'dubbo'],
'LaneId' => ['description' => '泳道ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '321'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '476d26d9-b54c-40b8-8af9-d898cdc2****'],
],
],
],
],
],
],
],
],
],
'title' => '更新泳道',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSwimmingLane'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageTraffic',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"6CB46AEA-309C-5041-9EC7-FCF4478F****\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"cn-beijing:qa\\",\\n \\"GroupId\\": 171,\\n \\"EntryRule\\": \\"[{\\\\\\\\\\\\\\"condition\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"AND\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"enable\\\\\\\\\\\\\\":true,\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/traffictest\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"priority\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"restItems\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"cond\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"==\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"datum\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testheadervalue\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testheader\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"operator\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"rawvalue\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"header\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"testheadervalue\\\\\\\\\\\\\\"}]}]\\\\\\"\\",\\n \\"Tag\\": \\"2cb6b8a\\",\\n \\"Name\\": \\"test-swimlane\\",\\n \\"Id\\": 321,\\n \\"SwimmingLaneAppRelationShipList\\": [\\n {\\n \\"AppName\\": \\"test-app\\",\\n \\"Rules\\": \\"dubbo\\",\\n \\"LaneId\\": 321,\\n \\"AppId\\": \\"476d26d9-b54c-40b8-8af9-d898cdc2****\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'UpdateSwimmingLaneGroup' => [
'summary' => '更新泳道组。',
'path' => '/pop/v5/trafficmgnt/swimming_lane_groups',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '98'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '泳道组名称。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'test-swimlanegroup'],
],
[
'name' => 'EntryApp',
'in' => 'query',
'schema' => ['description' => '入口应用。格式为:EDAS:{应用ID}。', 'type' => 'string', 'required' => false, 'example' => 'EDAS:dd2690a7-3fe4-4975-9a4c-5a60ffd6****'],
],
[
'name' => 'AppIds',
'in' => 'query',
'schema' => ['description' => '泳道组涉及应用ID列表。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '8e7689af-6ddd-4676-8ee6-5fbecdf2****,f72deaac-26ba-429a-948d-5fa47c4a****,5049d2c8-f997-4fc9-92a2-153506a6****,99a2d4b5-99a5-4e25-a964-1bd03a17****'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '接口响应。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['description' => '附加信息。', 'type' => 'string', 'example' => 'success'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7580ED24-A2F0-5ECC-9F2B-B92E2509****'],
'Data' => [
'description' => '响应数据。',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-hangzhou:test'],
'Name' => ['description' => '泳道组名称。', 'type' => 'string', 'example' => 'name'],
'Id' => ['description' => '泳道组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '98'],
'ApplicationList' => [
'description' => '泳道组涉及应用列表。',
'type' => 'array',
'items' => [
'description' => '应用列表对象。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-app'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => '476d26d9-b54c-40b8-8af9-d898cdc2****'],
],
],
],
'EntryApplication' => [
'description' => 'EDAS入口/网关信息。',
'type' => 'object',
'properties' => [
'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'test-gateway'],
'AppId' => ['description' => '应用ID。', 'type' => 'string', 'example' => 'd52c9de9-53d0-4191-aa72-88974a6f****'],
],
],
],
],
],
],
],
],
'errorCodes' => [
500 => [
['errorCode' => 'OperationFailed.AuthExchange', 'errorMessage' => 'Error transforming authentication data into whitelist rules.', 'description' => ''],
],
],
'title' => '更新泳道组',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSwimmingLaneGroup'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'edas:ManageTraffic',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'EDAS', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7580ED24-A2F0-5ECC-9F2B-B92E2509****\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"cn-hangzhou:test\\",\\n \\"Name\\": \\"name\\",\\n \\"Id\\": 98,\\n \\"ApplicationList\\": [\\n {\\n \\"AppName\\": \\"test-app\\",\\n \\"AppId\\": \\"476d26d9-b54c-40b8-8af9-d898cdc2****\\"\\n }\\n ],\\n \\"EntryApplication\\": {\\n \\"AppName\\": \\"test-gateway\\",\\n \\"AppId\\": \\"d52c9de9-53d0-4191-aa72-88974a6f****\\"\\n }\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => 'edas-vpc.ap-northeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.ap-southeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-southeast-1.aliyuncs.com', 'vpc' => 'edas-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-beijing.aliyuncs.com', 'endpoint' => 'edas.cn-beijing.aliyuncs.com', 'vpc' => 'edas-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => 'edas-vpc.cn-chengdu.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-hangzhou.aliyuncs.com', 'endpoint' => 'edas.cn-hangzhou.aliyuncs.com', 'vpc' => 'edas-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-hongkong.aliyuncs.com', 'endpoint' => 'edas.cn-hongkong.aliyuncs.com', 'vpc' => 'edas-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-qingdao.aliyuncs.com', 'endpoint' => 'edas.cn-qingdao.aliyuncs.com', 'vpc' => 'edas-vpc.cn-qingdao.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-shanghai.aliyuncs.com', 'endpoint' => 'edas.cn-shanghai.aliyuncs.com', 'vpc' => 'edas-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-shenzhen.aliyuncs.com', 'endpoint' => 'edas.cn-shenzhen.aliyuncs.com', 'vpc' => 'edas-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'edas.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'edas.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'edas-vpc.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => 'edas-vpc.us-west-1.aliyuncs.com'],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'edas.us-east-1.aliyuncs.com', 'endpoint' => 'edas.us-east-1.aliyuncs.com', 'vpc' => 'edas-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'edas.eu-central-1.aliyuncs.com', 'endpoint' => 'edas.eu-central-1.aliyuncs.com', 'vpc' => 'edas-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'edas.ap-northeast-1.aliyuncs.com', 'endpoint' => 'edas.ap-northeast-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => 'edas-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => 'edas-vpc.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'regionName' => '北京政务云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'edas.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'edas.cn-north-2-gov-1.aliyuncs.com', 'vpc' => 'edas-vpc.cn-north-2-gov-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'edas.aliyuncs.com', 'endpoint' => 'edas.aliyuncs.com', 'vpc' => 'edas-vpc.cn-beijing-finance-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'Edas.errorcode.changeGroup.group.expired', 'message' => 'The group that you want to change has already expired.', 'http_code' => 500, 'description' => '分组在切换应用分组时已经过期'],
['code' => 'Edas.errorcode.changeGroup.group.normalToGray', 'message' => 'You cannot assign the specified instance to the canary release group. Check the group that the instance belongs to.', 'http_code' => 500, 'description' => '实例无法切换到灰度应用分组,请确认目标应用分组类型'],
['code' => 'Edas.errorcode.InstanceNotExist.Cluster.message', 'message' => 'The cluster instance does not exist.', 'http_code' => 500, 'description' => '集群实例不存在'],
['code' => 'Edas.errorcode.InstanceNotExist.Instance.message', 'message' => 'The instance does not exist.', 'http_code' => 500, 'description' => '实例不存在'],
['code' => 'Edas.errorcode.K8SAppConfiguration.UpdateFail', 'message' => 'An error occurred while setting the application configuration.', 'http_code' => 500, 'description' => '设置应用配置失败。'],
['code' => 'Edas.errorcode.OperationFailed.ApplicationsDifferent.message', 'message' => 'The specified instance does not belong to the specified group.', 'http_code' => 500, 'description' => '所在分组的应用与所在实例的应用不匹配。'],
['code' => 'Edas.Errorcode.OperationFailed.CloseAdvancedMonitor.Message', 'message' => 'Failed to disable advanced monitoring.', 'http_code' => 600, 'description' => '关闭应用高级监控失败'],
['code' => 'Edas.Errorcode.OperationFailed.OpenAdvancedMonitor.Message', 'message' => 'Failed to enable advanced monitoring.', 'http_code' => 600, 'description' => '打开应用高级监控失败'],
['code' => 'Edas.errorcode.ParameterInvalid.NamespaceName.message', 'message' => 'The namespace name cannot exceed 63 characters in length.', 'http_code' => 601, 'description' => '命名空间名称的长度不能超过63个字符。'],
['code' => 'Edas.errorcode.ParameterInvalid.PointedParameter.message', 'message' => 'The value of parameter {0} is invalid.', 'http_code' => 601, 'description' => '无效输入参数:{0}'],
['code' => 'Edas.errorcode.ParameterMissing.message', 'message' => 'You must specify all required parameters.', 'http_code' => 400, 'description' => '参数不能为空。'],
['code' => 'Edas.errorcode.PermissionDenied.message', 'message' => 'You are not authorized to perform the operation.', 'http_code' => 500, 'description' => '无权限操作'],
['code' => 'Edas.errorcode.ScaleOut.NoTemplateFoundForTemplate.message', 'message' => 'The template set does not exist.', 'http_code' => 500, 'description' => '没有启动模板集'],
['code' => 'EntityNotExist.ResourceGroup', 'message' => 'The ResourceGroup does not exist.', 'http_code' => 404, 'description' => '资源组不存在'],
['code' => 'EntityNotExist.ResourceId', 'message' => 'The ResourceId does not exist.', 'http_code' => 404, 'description' => '资源不存在'],
['code' => 'EntityNotExist.ResourceType', 'message' => 'The ResourceType does not exist.', 'http_code' => 404, 'description' => '资源类型不存在'],
['code' => 'InstanceExist.Config', 'message' => 'The configuration identifier already exists. Enter a new Data ID or select another group.', 'http_code' => null, 'description' => '您要创建的配置标示已经被别的应用占用,请重新命名Data ID或者选择不同分组'],
['code' => 'InstanceExist.PackageVersion', 'message' => 'Package version {0} already exists.', 'http_code' => null, 'description' => '版本号{0}已存在。'],
['code' => 'InstanceNotExist.AddedLogPath', 'message' => 'The added path does not exist.', 'http_code' => null, 'description' => '添加的路径不存在!'],
['code' => 'InstanceNotExist.DeletedLogPath', 'message' => 'The path to be deleted {0} does not exist.', 'http_code' => null, 'description' => '将要删除的路径{0}不存在'],
['code' => 'InstanceNotExist.LogPath', 'message' => 'Make sure the file path exists.', 'http_code' => null, 'description' => '请确认文件路径是否存在!'],
['code' => 'InstanceNotExist.PointedApplication', 'message' => 'Application {0} does not exist or is deleted.', 'http_code' => null, 'description' => '应用{0}不存在或已删除'],
['code' => 'InstanceNotExist.PointedECS', 'message' => 'Instance {0} does not exist. Select another one.', 'http_code' => null, 'description' => '实例{0}不存在,请重新选择'],
['code' => 'InstanceNotExist.ServiceGroup', 'message' => 'Group {0} does not exist.', 'http_code' => null, 'description' => '分组{0}不存在'],
['code' => 'InstanceNotExist.ServiceOrMethodName', 'message' => 'Authentication cancellation method is valid only when the service or method name exists.', 'http_code' => null, 'description' => '当取消授权方法时,服务或者方法名字必须存在才能操作'],
['code' => 'OperationFailed.AuthExchange', 'message' => 'Error transforming authentication data into whitelist rules.', 'http_code' => null, 'description' => '鉴权数据转换白名单规则异常'],
['code' => 'OperationFailed.CallLark', 'message' => 'Error calling lark: {0}', 'http_code' => null, 'description' => '调用lark报错: {0}'],
['code' => 'OperationFailed.DifferentRegion', 'message' => 'The requested resources are not in the same region. Request cannot be processed.', 'http_code' => null, 'description' => '所请求资源不在同一个 Region,无法继续。'],
['code' => 'OperationFailed.FeatureDisabled', 'message' => 'The feature is disabled.', 'http_code' => null, 'description' => '此功能在当前环境下已被关闭'],
['code' => 'OperationFailed.FileUnaccessible', 'message' => 'Make sure the file path can be accessed by admin users.', 'http_code' => null, 'description' => '请确认文件路径权限可被admin用户访问!'],
['code' => 'OperationFailed.InvalidAction', 'message' => 'Invalid action status: {0}', 'http_code' => null, 'description' => '无效指令类型 {0}'],
['code' => 'OperationFailed.InvalidActionStatus', 'message' => 'Invalid action status: {0}', 'http_code' => null, 'description' => '无效指令状态 {0}'],
['code' => 'OperationFailed.JVMConfig', 'message' => 'Error configuring JVM parameters.', 'http_code' => null, 'description' => 'JVM参数配置失败'],
['code' => 'OperationFailed.ModifyApplicationVersionDescription', 'message' => 'Error changing application version descriptions.', 'http_code' => null, 'description' => '修改应用版本描述错误'],
['code' => 'OperationFailed.ModifyClusterInfo', 'message' => 'Error when modifying cluster information.', 'http_code' => null, 'description' => '修改集群信息失败'],
['code' => 'OperationFailed.QuotaExceedInServiceGroup', 'message' => 'A maximum of {0} configurations are allowed in each group.', 'http_code' => null, 'description' => '每个分组下最多有 {0} 个配置'],
['code' => 'OperationFailed.RequestTooMuch', 'message' => 'Queries per second have exceeded the limit.', 'http_code' => null, 'description' => '每秒访问次数超过限制'],
['code' => 'OperationFailed.ResourceUsed', 'message' => 'The corresponding resources have been used.', 'http_code' => null, 'description' => '对应的资源已被使用。'],
['code' => 'OperationFailed.SignatureMismatched', 'message' => 'Authentication failed. The signature value calculated by the server does not match the input signature value.', 'http_code' => null, 'description' => '认证失败,服务端计算所得签名与传入签名值不匹配'],
['code' => 'ParameterInvalid', 'message' => 'The parameters are invalid.', 'http_code' => null, 'description' => '参数异常'],
['code' => 'ParameterInvalid.DeployTag', 'message' => 'The label does not meet the requirements.', 'http_code' => null, 'description' => '标签不符合要求'],
['code' => 'ParameterInvalid.DeployUrl', 'message' => 'The URL must start with \'http://\'.', 'http_code' => null, 'description' => 'URL必须以\'http://\'开头'],
['code' => 'ParameterInvalid.Encoding', 'message' => 'The encoding is not supported.', 'http_code' => null, 'description' => '编码不支持'],
['code' => 'ParameterInvalid.JVMConfig.IllegalCharactor', 'message' => 'Custom parameters contain illegal characters.', 'http_code' => null, 'description' => '自定义参数含有非法字符'],
['code' => 'ParameterInvalid.LicenseSerialNumber.Actived', 'message' => 'The serial number has been activated.', 'http_code' => null, 'description' => '该序列号已被激活'],
['code' => 'ParameterInvalid.LicenseSerialNumber.Expired', 'message' => 'The activated serial number has expired.', 'http_code' => null, 'description' => '激活序列号已过期'],
['code' => 'ParameterInvalid.PointedParameter', 'message' => 'Invalid parameters: {0}', 'http_code' => null, 'description' => '无效输入参数:{0}'],
['code' => 'ParameterInvalid.TimeDisorder', 'message' => 'The start time must be ealier than the end time.', 'http_code' => null, 'description' => '开始时间应该早于结束时间!'],
['code' => 'ParameterInvalid.TomcatConnectorType', 'message' => 'Select the BIO or NIO type for connectors.', 'http_code' => null, 'description' => '连接器类型请选择BIO或NIO'],
['code' => 'ParameterMissing.InstanceId', 'message' => 'instanceId cannot be empty.', 'http_code' => null, 'description' => 'instanceId 不得为空'],
['code' => 'ParameterMissing.PointedParameter', 'message' => '{0} cannot be empty.', 'http_code' => null, 'description' => '{0}为空'],
['code' => 'PermissionDenied.ActiveLicense', 'message' => 'Only the primary account is allowed to activate the serial number.', 'http_code' => null, 'description' => '对不起, 只有主账号才允许激活序列号'],
['code' => 'PermissionDenied.DeleteOtherServiceGroup', 'message' => 'You cannot delete service groups that you do not own.', 'http_code' => null, 'description' => '不能删除不属于您的服务分组'],
['code' => 'PermissionDenied.PointedResource', 'message' => 'You do not have access to the corresponding resources:{0}', 'http_code' => null, 'description' => '您没有对应资源的访问权限: {0}'],
['code' => 'TypeIncorrect.PushEvent', 'message' => 'User{0}cannot push events of type{1}.', 'http_code' => null, 'description' => '不允许用户{0}推送类型为{1}的事件'],
['code' => 'UnknownError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => '未知错误。请重试该操作,若再出现该错误请提交工单。'],
],
'changeSet' => [
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetServiceMethodPage'],
],
'createdAt' => '2024-02-19T03:47:13.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'UpdateRole'],
],
'createdAt' => '2024-02-07T13:17:37.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'QueryEccInfo'],
['description' => '错误码发生变更', 'api' => 'QueryMigrateEcuList'],
['description' => '错误码发生变更', 'api' => 'QueryMigrateRegionList'],
],
'createdAt' => '2024-02-07T12:41:28.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListSubAccount'],
['description' => '错误码发生变更', 'api' => 'ListVpc'],
['description' => '错误码发生变更', 'api' => 'MigrateEcu'],
],
'createdAt' => '2024-02-07T12:13:24.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListRole'],
['description' => '错误码发生变更', 'api' => 'ListServiceGroups'],
],
'createdAt' => '2024-02-07T09:31:50.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListCluster'],
['description' => '错误码发生变更', 'api' => 'ListComponents'],
['description' => '错误码发生变更', 'api' => 'ListConsumedServices'],
['description' => '错误码发生变更', 'api' => 'ListEcsNotInCluster'],
['description' => '错误码发生变更', 'api' => 'ListEcuByRegion'],
],
'createdAt' => '2024-02-07T09:02:37.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListAuthority'],
['description' => '错误码发生变更', 'api' => 'ListBuildPack'],
],
'createdAt' => '2024-02-07T08:40:41.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'DeleteRole'],
['description' => '错误码发生变更', 'api' => 'DeleteServiceGroup'],
],
'createdAt' => '2024-02-07T06:26:13.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'DeleteEcu'],
],
'createdAt' => '2024-02-07T04:26:59.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'AuthorizeRole'],
],
'createdAt' => '2024-02-06T09:34:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'AuthorizeResourceGroup'],
],
'createdAt' => '2024-02-06T08:28:51.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2024-01-30T08:21:05.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2023-11-13T02:33:01.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2023-10-10T06:55:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetApplication'],
],
'createdAt' => '2023-09-25T12:39:37.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListK8sIngressRules'],
],
'createdAt' => '2023-09-25T02:57:57.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'DeleteSwimmingLane'],
],
'createdAt' => '2023-07-18T12:33:04.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListApplication'],
],
'createdAt' => '2023-07-12T02:17:08.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2023-06-02T08:34:52.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetApplication'],
],
'createdAt' => '2023-05-22T11:41:39.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListK8sIngressRules'],
],
'createdAt' => '2023-05-17T03:19:31.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListSwimmingLane'],
],
'createdAt' => '2023-05-08T08:27:37.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
],
'createdAt' => '2023-04-11T05:48:10.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
],
'createdAt' => '2023-04-03T07:07:16.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2023-03-27T07:14:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListResourceGroup'],
],
'createdAt' => '2023-03-24T08:24:36.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListApplication'],
],
'createdAt' => '2023-03-24T08:21:38.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2023-03-24T08:20:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'CreateApplicationScalingRule'],
],
'createdAt' => '2023-01-09T08:28:42.000Z',
'description' => '- k8s弹性API更新',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
],
'createdAt' => '2023-01-09T08:03:11.000Z',
'description' => '增加参数',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'DescribeApplicationScalingRules'],
['description' => '响应参数发生变更', 'api' => 'UpdateApplicationScalingRule'],
],
'createdAt' => '2023-01-03T03:45:42.000Z',
'description' => '- 更新K8s弹性接口.',
],
[
'apis' => [
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'UpdateApplicationScalingRule'],
],
'createdAt' => '2023-01-03T03:16:36.000Z',
'description' => '- k8s弹性接口增加参数ScalingBehaviour',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetServiceProvidersPage'],
],
'createdAt' => '2023-01-03T01:53:26.000Z',
'description' => '调整实例备注字段',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetApplication'],
],
'createdAt' => '2022-12-13T09:41:57.000Z',
'description' => 'GetApplication接口增加HaveManageAccess返回',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetServiceProvidersPage'],
],
'createdAt' => '2022-12-08T11:31:37.000Z',
'description' => '增加实例标签返回',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'CreateK8sIngressRule'],
['description' => '请求参数发生变更', 'api' => 'DeleteConfigTemplate'],
['description' => '请求参数发生变更', 'api' => 'DeleteK8sIngressRule'],
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'GetServiceDetail'],
['description' => '请求参数发生变更', 'api' => 'ScaleoutApplicationWithNewInstances'],
['description' => '请求参数发生变更', 'api' => 'UpdateK8sResource'],
],
'createdAt' => '2022-12-06T08:29:46.000Z',
'description' => '订正接口参数是否为必填',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListMethods'],
],
'createdAt' => '2022-11-25T06:13:34.000Z',
'description' => '增加接口超时时间',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetServiceProvidersPage'],
],
'createdAt' => '2022-11-21T02:15:21.000Z',
'description' => '接口使用后端跨域域名',
],
[
'apis' => [
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'CreateApplicationScalingRule'],
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'DeleteApplicationScalingRule'],
],
'createdAt' => '2022-11-18T06:55:04.000Z',
'description' => '更新文档',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2022-11-17T05:57:29.000Z',
'description' => '增加参数映射',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DescribeApplicationScalingRules'],
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'DisableApplicationScalingRule'],
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'EnableApplicationScalingRule'],
],
'createdAt' => '2022-11-17T05:39:56.000Z',
'description' => '文档更新',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'ListClusterMembers'],
],
'createdAt' => '2022-11-07T08:52:39.000Z',
'description' => 'ListClusterMembers返回内容增加ECS私网IP字段PrivateIp',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListApplication'],
],
'createdAt' => '2022-11-07T01:08:05.000Z',
'description' => '修改ListApplication接口',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'StartK8sAppPrecheck'],
],
'createdAt' => '2022-11-02T07:07:00.000Z',
'description' => '支持微服务空间预检',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetApplication'],
],
'createdAt' => '2022-10-28T05:55:04.000Z',
'description' => '修改GetApplication接口',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'CreateK8sIngressRule'],
['description' => '响应参数发生变更', 'api' => 'ListK8sIngressRules'],
['description' => '请求参数发生变更', 'api' => 'UpdateK8sIngressRule'],
],
'createdAt' => '2022-10-27T06:19:40.000Z',
'description' => 'Ingress接口支持注解和标签',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListUserDefineRegion'],
],
'createdAt' => '2022-10-27T00:31:20.000Z',
'description' => '调整流控阈值',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
],
'createdAt' => '2022-10-19T15:36:27.000Z',
'description' => '增加查询参数',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
['description' => '错误码发生变更', 'api' => 'UpdateK8sSlb'],
],
'createdAt' => '2022-10-18T16:45:06.000Z',
'description' => '支持临时存储',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'GetApplication'],
],
'createdAt' => '2022-10-17T02:12:29.000Z',
'description' => 'GetApplication接口返回值增加字段enablePortCheck,enableUrlCheck',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'GetServiceListPage'],
],
'createdAt' => '2022-09-28T03:47:15.000Z',
'description' => '更新文档配置',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListUserDefineRegion'],
],
'createdAt' => '2022-09-28T03:08:15.000Z',
'description' => '修改流控策略',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListRecentChangeOrder'],
],
'createdAt' => '2022-09-22T03:32:41.000Z',
'description' => '修改接口流控阈值',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListSwimmingLaneGroup'],
],
'createdAt' => '2022-09-19T08:15:21.000Z',
'description' => 'ListSwimmingLaneGroup支持GroupId入参',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListK8sIngressRules'],
['description' => '响应参数发生变更', 'api' => 'ListK8sIngressRules'],
],
'createdAt' => '2022-09-16T11:41:25.000Z',
'description' => '新增MseIngress字段',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'ListApplication'],
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'ListApplication'],
],
'createdAt' => '2022-09-16T03:44:29.000Z',
'description' => 'listapplication添加',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ImportK8sCluster'],
['description' => '错误码发生变更', 'api' => 'ImportK8sCluster'],
],
'createdAt' => '2022-09-15T03:18:01.000Z',
'description' => '启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'InsertCluster'],
['description' => '错误码发生变更', 'api' => 'InsertCluster'],
['description' => '错误码发生变更', 'api' => 'RestartApplication'],
['description' => '错误码发生变更', 'api' => 'RestartApplication'],
],
'createdAt' => '2022-09-14T12:00:09.000Z',
'description' => '启用接口返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'BindK8sSlb'],
['description' => '错误码发生变更', 'api' => 'BindK8sSlb'],
],
'createdAt' => '2022-09-14T09:39:17.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'BindSlb'],
['description' => '错误码发生变更', 'api' => 'BindSlb'],
['description' => '错误码发生变更', 'api' => 'DeleteApplication'],
['description' => '错误码发生变更', 'api' => 'DeleteApplication'],
['description' => '错误码发生变更', 'api' => 'DeleteUserDefineRegion'],
['description' => '错误码发生变更', 'api' => 'DeleteUserDefineRegion'],
],
'createdAt' => '2022-09-14T09:29:09.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'UnbindK8sSlb'],
['description' => '错误码发生变更', 'api' => 'UnbindK8sSlb'],
],
'createdAt' => '2022-09-14T08:38:29.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'AuthorizeApplication'],
['description' => '错误码发生变更', 'api' => 'AuthorizeApplication'],
],
'createdAt' => '2022-09-14T08:32:27.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'AddLogPath'],
['description' => '错误码发生变更', 'api' => 'AddLogPath'],
['description' => '错误码发生变更', 'api' => 'ContinuePipeline'],
['description' => '错误码发生变更', 'api' => 'ContinuePipeline'],
['description' => '错误码发生变更', 'api' => 'DeleteClusterMember'],
['description' => '错误码发生变更', 'api' => 'DeleteClusterMember'],
['description' => '错误码发生变更', 'api' => 'InsertRole'],
['description' => '错误码发生变更', 'api' => 'InsertRole'],
],
'createdAt' => '2022-09-14T08:21:43.000Z',
'description' => 'API整改,增加响应记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ResetApplication'],
['description' => '错误码发生变更', 'api' => 'ResetApplication'],
['description' => '错误码发生变更', 'api' => 'UpdateContainerConfiguration'],
['description' => '错误码发生变更', 'api' => 'UpdateContainerConfiguration'],
],
'createdAt' => '2022-09-14T08:05:15.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ScaleOutApplication'],
['description' => '错误码发生变更', 'api' => 'ScaleOutApplication'],
['description' => '错误码发生变更', 'api' => 'UpdateAccountInfo'],
['description' => '错误码发生变更', 'api' => 'UpdateAccountInfo'],
],
'createdAt' => '2022-09-14T05:51:48.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'InsertDeployGroup'],
['description' => '错误码发生变更', 'api' => 'InsertDeployGroup'],
],
'createdAt' => '2022-09-14T05:44:24.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'DeleteCluster'],
['description' => '错误码发生变更', 'api' => 'DeleteCluster'],
['description' => '错误码发生变更', 'api' => 'DeleteDeployGroup'],
['description' => '错误码发生变更', 'api' => 'DeleteDeployGroup'],
['description' => '错误码发生变更', 'api' => 'DeployApplication'],
['description' => '错误码发生变更', 'api' => 'DeployApplication'],
],
'createdAt' => '2022-09-14T04:00:41.000Z',
'description' => '接口启用返回日志记录',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListAliyunRegion'],
['description' => '错误码发生变更', 'api' => 'ListAliyunRegion'],
],
'createdAt' => '2022-09-13T11:49:06.000Z',
'description' => '更新接口资源操作类型',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetContainerConfiguration'],
['description' => '错误码发生变更', 'api' => 'GetContainerConfiguration'],
['description' => '错误码发生变更', 'api' => 'GetScalingRules'],
['description' => '错误码发生变更', 'api' => 'GetScalingRules'],
],
'createdAt' => '2022-09-13T11:27:36.000Z',
'description' => '更新接口资源操作类型',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'UpdateJvmConfiguration'],
['description' => '错误码发生变更', 'api' => 'UpdateJvmConfiguration'],
],
'createdAt' => '2022-09-13T06:37:07.000Z',
'description' => '启用接口响应日志',
],
[
'apis' => [
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'DeleteK8sApplication'],
],
'createdAt' => '2022-08-17T07:24:41.000Z',
'description' => '删除k8s应用,增加参数。',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'StartK8sAppPrecheck'],
],
'createdAt' => '2022-07-29T08:53:07.000Z',
'description' => '移除StartK8sAppPrecheck接口regionId参数',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
],
'createdAt' => '2022-07-28T08:43:00.000Z',
'description' => '支持获取应用SLB信息',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListK8sIngressRules'],
],
'createdAt' => '2022-07-27T08:01:59.000Z',
'description' => '增加Ingress采样率回显参数',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'ListDeployGroup'],
],
'createdAt' => '2022-07-12T09:36:42.000Z',
'description' => 'ListDeployGroup支持获取临时存储配置',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'GetPackageStorageCredential'],
],
'createdAt' => '2022-07-12T06:44:03.000Z',
'description' => '为GetK8sCluster接口增加集群子类型参数信息',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'GetK8sAppPrecheckResult'],
],
'createdAt' => '2022-07-04T06:13:12.000Z',
'description' => '新增K8s应用变更预检接口',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'UpdateK8sApplicationConfig'],
],
'createdAt' => '2022-07-04T06:00:34.000Z',
'description' => '新增临时存储配置',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'CreateK8sService'],
['description' => '请求参数发生变更', 'api' => 'UpdateK8sService'],
],
'createdAt' => '2022-06-16T02:43:53.000Z',
'description' => '新增创建和查询K8s Service参数externalTrafficPolicy',
],
[
'apis' => [
['description' => '响应参数发生变更、错误码发生变更', 'api' => 'GetCluster'],
],
'createdAt' => '2022-06-16T02:14:41.000Z',
'description' => 'GetCluster返回增加SubClusterType字段',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'ListK8sNamespaces'],
],
'createdAt' => '2022-06-02T03:29:25.000Z',
'description' => '支持获取K8s命名空间',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
],
'createdAt' => '2022-05-30T08:25:27.000Z',
'description' => '增加GetK8sApplication接口输出字段deployGroup.env',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'QueryApplicationStatus'],
],
'createdAt' => '2022-05-23T06:10:30.000Z',
'description' => '调整API频率',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'DeployK8sApplication'],
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2022-05-18T08:55:11.000Z',
'description' => '创建、部署应用新增参数:标签和注解、推空保护开关、无损上线配置。',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ConvertK8sResource'],
['description' => '错误码发生变更', 'api' => 'DisableMockRule'],
['description' => '错误码发生变更', 'api' => 'EnableMockRule'],
['description' => '错误码发生变更', 'api' => 'UpdateK8sResource'],
],
'createdAt' => '2022-05-10T11:42:07.000Z',
'description' => '添加错误码映射',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'QuerySlsLogStoreList'],
['description' => '错误码发生变更', 'api' => 'UpdateSlsLogStore'],
],
'createdAt' => '2022-05-10T11:39:41.000Z',
'description' => '添加错误码映射',
],
[
'apis' => [
['description' => '请求参数发生变更、错误码发生变更', 'api' => 'InsertApplication'],
],
'createdAt' => '2022-04-25T08:57:53.000Z',
'description' => '新增GroupResourceId',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'InsertK8sApplication'],
],
'createdAt' => '2022-04-25T08:57:53.000Z',
'description' => '添加GroupResourceId参数',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListK8sConfigMaps'],
],
'createdAt' => '2022-04-12T12:53:52.000Z',
'description' => '参数订正',
],
[
'apis' => [
['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListK8sSecrets'],
],
'createdAt' => '2022-04-12T12:03:20.000Z',
'description' => '参数订正',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetK8sApplication'],
],
'createdAt' => '2022-03-14T07:26:59.000Z',
'description' => 'GetK8sApplication增加developType信息透出',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'CreateConfigTemplate'],
['description' => 'OpenAPI 下线', 'api' => 'DeleteConfigTemplate'],
['description' => 'OpenAPI 下线', 'api' => 'ListConfigTemplates'],
['description' => 'OpenAPI 下线', 'api' => 'UpdateConfigTemplate'],
],
'createdAt' => '2022-01-13T07:39:57.000Z',
'description' => '配置模板接口发布',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'ListK8sSecrets'],
],
'createdAt' => '2022-01-13T07:35:56.000Z',
'description' => '配置模板接口发布',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryApplicationStatus'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sIngressRules'],
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sNamespaces'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindEcsSlb'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListAuthority'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sIngressRule'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertK8sApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSwimmingLane'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteClusterMember'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListEcuByRegion'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainerConfiguration'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetChangeOrderInfo'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConfigTemplates'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleOutApplication'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sSecrets'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateJvmConfiguration'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetPackageStorageCredential'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteRole'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnbindK8sSlb'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TransformClusterMember'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddLogPath'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertDeployGroup'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryEccInfo'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InstallAgent'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeResourceGroup'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertSwimmingLane'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSlsLogStore'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartK8sAppPrecheck'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSwimmingLaneGroup'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sIngressRule'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryMigrateEcuList'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sService'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetScalingRules'],
['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListBuildPack'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RollbackChangeOrder'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sConfigMap'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertClusterMember'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSwimmingLaneGroup'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindSlb'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteDeployGroup'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetSecureToken'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAppInstanceList'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopK8sApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertSwimmingLaneGroup'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sAppPrecheckResult'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'MigrateEcu'],
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeApplication'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeployK8sApplication'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListRole'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListVpc'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sSecret'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListComponents'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sSlb'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sConfigMap'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sSecret'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sService'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListRecentChangeOrder'],
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSubAccount'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateConfigTemplate'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyScalingRule'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainer'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConsumedServices'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetWebContainerConfig'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AbortAndRollbackChangeOrder'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJvmConfiguration'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCluster'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertRole'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ResetApplication'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIDCImportCommand'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListHistoryDeployVersion'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListScaleOutEcu'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryMigrateRegionList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListUserDefineRegion'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListSlb'],
['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'SwitchAdvancedMonitoring'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJavaStartUpConfig'],
['threshold' => '50', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListClusterMembers'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sSecret'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertOrUpdateRegion'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetContainerConfiguration'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListCluster'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertApplication'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateAccountInfo'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RollbackApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sIngressRule'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'SynchronizeResource'],
['threshold' => '30', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ImportK8sCluster'],
['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sResource'],
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListDeployGroup'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListConvertableEcu'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListAliyunRegion'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListEcsNotInCluster'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AbortChangeOrder'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListPublishedServices'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateHealthCheckUrl'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteUserDefineRegion'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryRegionConfig'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateConfigTemplate'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeployApplication'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sService'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteCluster'],
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListK8sConfigMaps'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleK8sApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteServiceGroup'],
['threshold' => '600', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetAppDeployment'],
['threshold' => '120', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ConvertK8sResource'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateRole'],
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ContinuePipeline'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnbindSlb'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateHookConfiguration'],
['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BindK8sSlb'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteK8sApplication'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteSwimmingLane'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteEcu'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sApplicationBaseInfo'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sServices'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartK8sApplication'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ChangeDeployGroup'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListMethods'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AuthorizeRole'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleoutApplicationWithNewInstances'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateApplicationBaseInfo'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetK8sCluster'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListResourceGroup'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ScaleInApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateK8sConfigMap'],
['threshold' => '1200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetK8sApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateK8sApplicationConfig'],
['threshold' => '90', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StopApplication'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLogPath'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListServiceGroups'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'StartK8sApplication'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListApplicationEcu'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteConfigTemplate'],
['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetApplication'],
['threshold' => '40', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertCluster'],
['threshold' => '20', 'countWindow' => 60, 'regionId' => '*', 'api' => 'InsertServiceGroup'],
['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateSwimmingLane'],
],
],
'ram' => [
'productCode' => 'EDAS',
'productName' => '企业级分布式应用服务',
'ramCodes' => ['edas'],
'ramLevel' => '资源级',
'ramConditions' => [
[
'name' => 'edas:tag',
'schema' => ['type' => 'String'],
],
],
'ramActions' => [],
'resourceTypes' => [],
],
];
|