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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'Actiontrail', 'version' => '2020-07-06'],
'directories' => [
[
'children' => ['CreateTrail', 'DeleteTrail', 'StartLogging', 'UpdateTrail', 'StopLogging', 'GetTrailStatus', 'DescribeTrails', 'DescribeUserTrailCount', 'DescribeTrailDeliveryMetricData'],
'type' => 'directory',
'title' => '跟踪',
'id' => 24997,
],
[
'children' => ['LookupEvents'],
'type' => 'directory',
'title' => '事件',
'id' => 9931,
],
[
'children' => ['CreateDeliveryHistoryJob', 'DeleteDeliveryHistoryJob', 'ListDeliveryHistoryJobs', 'GetDeliveryHistoryJob'],
'type' => 'directory',
'title' => '数据回补',
'id' => 25007,
],
[
'children' => ['GetAccessKeyLastUsedEvents', 'GetAccessKeyLastUsedInfo', 'GetAccessKeyLastUsedIps', 'GetAccessKeyLastUsedProducts', 'GetAccessKeyLastUsedResources'],
'type' => 'directory',
'title' => 'AccessKey审计',
'id' => 25012,
],
[
'children' => ['ListDataEventSelectors', 'GetDataEventSelector', 'PutDataEventSelector', 'DeleteDataEventSelector'],
'type' => 'directory',
'title' => '数据事件选择器',
'id' => 237856,
],
[
'children' => ['EnableInsight', 'DisableInsight', 'GetInsightTypes', 'GetInsightSelectors', 'GetInsightsEventsCount', 'PutInsightSelectors', 'LookupInsightEvents'],
'type' => 'directory',
'title' => '事件洞察',
'id' => 352239,
],
[
'children' => ['UpdateAdvancedQueryTemplate', 'GetGlobalEventsStorageRegion', 'UpdateGlobalEventsStorageRegion', 'CreateAdvancedQueryTemplate', 'DeleteAdvancedQueryTemplate', 'DescribeAdvancedQueryTemplate', 'DescribeUserAlertCount', 'DescribeUserLogCount', 'GetAdvancedQueryTemplate', 'DeleteAdvancedQueryHistory', 'CreateAdvancedQueryHistory', 'DescribeAdvancedQueryHistory', 'DescribeResourceLifeCycleEvents', 'DescribeScenes', 'DescribeSearchTemplates', 'ListDataEventServices', 'GetGovernanceMetrics', 'DescribeRegions'],
'type' => 'directory',
'title' => '其他',
'id' => 120972,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateAdvancedQueryHistory' => [
'summary' => '本接口用于创建高级查询历史记录,支持保存自定义查询条件语句以供复用和管理。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'QuerySql',
'in' => 'query',
'schema' => ['description' => '查询条件语句。'."\n"
."\n"
.'您可以根据[高级查询的SQL语法](~~2557373~~)编辑查询语句。', 'type' => 'string', 'required' => false, 'example' => 'event.userIdentity.accessKeyId: *'],
],
[
'name' => 'SimpleQuery',
'in' => 'query',
'schema' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'required' => true, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'QueryId' => ['description' => '高级查询记录ID。', 'type' => 'string', 'example' => 'query-uIkIvLiVSuCKqg0yoa****'],
'QuerySql' => ['description' => '高级查询语句。', 'type' => 'string', 'example' => 'event.userIdentity.accessKeyId: *'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D0227506-AA8C-5998-8A62-74769106****'],
'SimpleQuery' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'example' => 'false'],
],
'description' => '',
],
],
],
'title' => '创建高级查询历史',
'description' => '本文将提供一个示例,为您演示如何将查询条件语句保存为一条高级查询历史记录,该查询语句用于在日志中查询所有`AccessKey`访问事件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"SimpleQuery\\": false\\n}","type":"json"}]',
],
'CreateAdvancedQueryTemplate' => [
'summary' => '创建高级查询模板。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'TemplateName',
'in' => 'query',
'schema' => ['description' => '模板名称最大长度64(可不唯一)。', 'type' => 'string', 'required' => false, 'example' => 'test1'],
],
[
'name' => 'TemplateSql',
'in' => 'query',
'schema' => ['description' => '模版查询语句。', 'type' => 'string', 'required' => true, 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *'],
],
[
'name' => 'SimpleQuery',
'in' => 'query',
'schema' => [
'description' => '是否开启简单查询模式。',
'type' => 'boolean',
'required' => true,
'enumValueTitles' => ['true' => '开启', 'false' => '不开启'],
'example' => 'false',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5'],
'SimpleQuery' => ['description' => '是否开启简单查询模式。', 'type' => 'string', 'example' => 'false'],
'TemplateId' => ['description' => '模板ID。', 'type' => 'string', 'example' => 'x4a0Tw5dQy2J6IRJxf4kng'],
'TemplateName' => ['description' => '模板名称', 'type' => 'string', 'example' => 'test1'],
'TemplateSql' => ['description' => '查询语句。', 'type' => 'string', 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *'],
],
'description' => '',
],
],
],
'title' => '创建高级查询模板',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E551964F5\\",\\n \\"SimpleQuery\\": \\"false\\",\\n \\"TemplateId\\": \\"x4a0Tw5dQy2J6IRJxf4kng\\",\\n \\"TemplateName\\": \\"test1\\",\\n \\"TemplateSql\\": \\"event.errorCode: * AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
],
'CreateDeliveryHistoryJob' => [
'summary' => '创建数据回补投递任务。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-name'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => '保证请求的幂等性。该值由客户端生成,并且必须全局唯一。 '."\n"
.'ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
.'更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665544****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'JobId' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '16602'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9D356A34-D5A9-41CD-9915-837B7F9D8722'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '创建数据回补投递任务',
'description' => '使用限制:'."\n"
."\n"
.'- 请确保您已经调用[CreateTrail](~~212313~~)接口创建了投递到日志服务SLS的单账号跟踪。'."\n"
.'- 一个阿里云账号同时只能存在一个正在运行的投递任务。'."\n"
."\n"
.'本文将提供一个示例,为跟踪`trail-name`创建数据回补投递任务。',
'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeliveryHistoryJob'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": 16602,\\n \\"RequestId\\": \\"9D356A34-D5A9-41CD-9915-837B7F9D8722\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'CreateTrail' => [
'summary' => '操作审计默认为每个阿里云账号记录最近90天的事件。为了能够追溯90天以前的事件,您可以创建跟踪,将操作事件投递到对象存储OSS、日志服务SLS或大数据计算服务MaxCompute,以便对事件进行分析。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '创建的跟踪名称。 '."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
.'>同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'],
],
[
'name' => 'OssBucketName',
'in' => 'query',
'schema' => ['description' => '跟踪投递的OSS存储空间。 '."\n"
.'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。 '."\n"
."\n"
.'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。', 'type' => 'string', 'required' => false, 'example' => 'audit-log'],
],
[
'name' => 'OssKeyPrefix',
'in' => 'query',
'schema' => ['description' => '跟踪投递的OSS存储空间文件名的前缀,可为空。 '."\n"
.'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'at-product-account-audit-B'],
],
[
'name' => 'OssWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。 '."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail'],
],
[
'name' => 'SlsProjectArn',
'in' => 'query',
'schema' => ['description' => '跟踪投递的日志服务项目的ARN。 '."\n"
."\n"
.'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。', 'type' => 'string', 'required' => false, 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project'],
],
[
'name' => 'SlsWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
],
[
'name' => 'EventRW',
'in' => 'query',
'schema' => ['description' => '投递事件的读写类型,取值:'."\n"
.'- Write:写类型。'."\n"
.'- Read:读类型。'."\n"
.'- All(默认值):读类型和写类型。', 'type' => 'string', 'required' => false, 'example' => 'Write'],
],
[
'name' => 'TrailRegion',
'in' => 'query',
'schema' => ['description' => '跟踪的地域。 '."\n"
.'默认值为All,表示跟踪全部地域的事件。 '."\n"
.'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~213597~~)接口查询。', 'type' => 'string', 'required' => false, 'example' => 'All'],
],
[
'name' => 'IsOrganizationTrail',
'in' => 'query',
'schema' => ['description' => '是否创建多账号跟踪,取值:'."\n"
."\n"
.'- true:创建多账号跟踪。'."\n"
.'- false(默认值):创建单账号跟踪。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'MaxComputeProjectArn',
'in' => 'query',
'schema' => ['description' => '跟踪投递的大数据计算服务项目的ARN。 '."\n"
."\n"
.'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。'."\n"
."\n"
.'> MaxComputeProjectArn中指定的大数据计算服务项目名称必须以actiontrail_作为前缀。', 'type' => 'string', 'required' => false, 'example' => 'acs:odps:cn-hangzhou:15127787691****:project/actiontrail_****'],
],
[
'name' => 'MaxComputeWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EventRW' => ['description' => '投递事件的读写类型。', 'type' => 'string', 'example' => 'Write'],
'HomeRegion' => ['description' => '跟踪的Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'MaxComputeProjectArn' => ['description' => '跟踪投递的大数据计算服务项目的ARN。', 'type' => 'string', 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****'],
'MaxComputeWriteRoleArn' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'Name' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'trail-test'],
'OssBucketName' => ['description' => 'OSS存储空间。', 'type' => 'string', 'example' => 'audit-log'],
'OssKeyPrefix' => ['description' => 'OSS存储空间文件名的前缀。', 'type' => 'string', 'example' => 'at-product-account-audit-B'],
'OssWriteRoleArn' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '442DDADF-DA58-4029-8E8B-82C73E9A7A70'],
'SlsProjectArn' => ['description' => '跟踪投递的日志服务项目的ARN。', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project'],
'SlsWriteRoleArn' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'All'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidDeliveryConfigurationException', 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.', 'description' => ''],
['errorCode' => 'InvalidPrefixException', 'errorMessage' => 'The specified OSS bucket prefix is invalid.', 'description' => '指定的OSS前缀无效。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
['errorCode' => 'InvalidTrailNameException', 'errorMessage' => 'The specified Trail name is invalid.', 'description' => '跟踪名称无效,请修改。'],
['errorCode' => 'RepeatOssBucket', 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.', 'description' => ''],
['errorCode' => 'SlsProjectDoesNotExistException', 'errorMessage' => 'The specified Log Service project does not exist.', 'description' => ''],
['errorCode' => 'TrailAlreadyExistsException', 'errorMessage' => 'The specified Trail name already exists.', 'description' => '您输入的跟踪名称已存在,如需创建新跟踪请修改跟踪名称。'],
['errorCode' => 'MaximumNumberOfOrganizationTrailExceeded', 'errorMessage' => 'Your account can create only one organization trail.', 'description' => '您的账号只能创建一个多账号跟踪。'],
['errorCode' => 'NotAllowCreateOrganizationTrail', 'errorMessage' => 'Your account does not allow you to create organization trail. Submit a ticket to get customer support.', 'description' => '您的账号不允许创建多账号跟踪,请提交工单联系客户支持。'],
],
403 => [
['errorCode' => 'InsufficientBucketPolicyException', 'errorMessage' => 'Access to the specified OSS bucket was denied.', 'description' => ''],
['errorCode' => 'InsufficientSlsPolicyException', 'errorMessage' => 'Access to the specified Log Service project was denied.', 'description' => '无法访问指定的SLS Project。'],
['errorCode' => 'MaximumNumberOfTrailsExceededException', 'errorMessage' => 'The number of Trails in the same region exceeds the upper limit (5).', 'description' => ' 同一地域最多可以创建5个跟踪。'],
],
[
['errorCode' => 'BucketDoesNotExistException', 'errorMessage' => 'The specified OSS bucket does not exist.', 'description' => ''],
],
],
'title' => '创建跟踪',
'description' => '> 通过API创建的跟踪默认处于**已关闭**状态,您需要调用接口[StartLogging](~~432246~~)开启跟踪,操作审计才能投递操作事件至目标云产品。'."\n"
."\n"
.'### 前提条件'."\n"
.'创建跟踪之前,请您确保至少完成下列的一项存储配置:'."\n"
.'- 投递到对象存储OSS'."\n"
."\n"
.' 请确保您已开通对象存储,且已创建存储空间(Bucket)。'."\n"
."\n"
.'- 投递到日志服务SLS'."\n"
.' '."\n"
.' 请确保您已开通日志服务,且已创建日志项目。 '."\n"
.' > 创建跟踪时,操作审计会自动在目标日志项目下创建一个名为`actiontrail_<跟踪名称>`的日志库(Logstore),该日志库禁止其他数据写入,保证审计数据的准确性。'."\n"
."\n"
.'- 投递到大数据计算服务MaxCompute'."\n"
."\n"
.' 请确保您已开通大数据计算服务MaxCompute。'."\n"
."\n"
.' > 创建跟踪时,操作审计会自动在项目管理中创建一个名为`actiontrail_<账号ID>`的项目,该项目禁止其他数据写入,保证审计数据的准确性。'."\n"
."\n"
.'### 使用说明'."\n"
.'本文将提供一个示例,为您创建一个名为`trail-test`的单账号跟踪,将操作事件投递到名为`audit-log`的OSS存储空间中。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrail'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EventRW\\": \\"Write\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Name\\": \\"trail-test\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"RequestId\\": \\"442DDADF-DA58-4029-8E8B-82C73E9A7A70\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:151266687691****:project/test-project\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DeleteAdvancedQueryHistory' => [
'summary' => '本接口用于删除指定高级查询历史记录。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'QueryId',
'in' => 'query',
'schema' => ['description' => '高级查询记录ID。', 'type' => 'string', 'required' => true, 'example' => 'query-uIkIvLiVSuCKqg0yoa****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '04857D99-8B0C-53EB-85F1-E64198E7****'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除高级查询历史',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"04857D99-8B0C-53EB-85F1-E64198E7****\\"\\n}","type":"json"}]',
],
'DeleteAdvancedQueryTemplate' => [
'summary' => '删除高级查询模板',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => false, 'example' => 'utpl-QNL3dpYkQcyjZxrIQCciqQ'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '95F2CD1D-9BD3-564A-A74A-743FFC5E46E5'],
],
'description' => '',
],
],
],
'title' => '删除高级查询模板',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"95F2CD1D-9BD3-564A-A74A-743FFC5E46E5\\"\\n}","type":"json"}]',
],
'DeleteDataEventSelector' => [
'summary' => '本接口用于删除指定跟踪名称的数据事件选择器。',
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'],
],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1D9DD159-DFFF-4882-ACEC-B4A727E9****'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除数据事件选择器',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:DeleteDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1D9DD159-DFFF-4882-ACEC-B4A727E9****\\"\\n}","type":"json"}]',
],
'DeleteDeliveryHistoryJob' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'],
],
'parameters' => [
[
'name' => 'JobId',
'in' => 'query',
'schema' => ['description' => '任务ID。 '."\n"
.'您可以调用[ListDeliveryHistoryJobs](~~188101~~)接口查询任务ID。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '0', 'example' => '16602'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D74DD20B-6598-429C-873B-B9B449B656B6'],
],
'description' => '',
],
],
],
'errorCodes' => [
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable. Please try again later.', 'description' => '系统暂时不可用,请稍后重试。'],
],
],
'title' => '删除数据回补投递任务',
'summary' => '删除数据回补投递任务。',
'description' => '本文将提供一个示例,删除任务ID为`16602`的投递任务。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeliveryHistoryJob'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D74DD20B-6598-429C-873B-B9B449B656B6\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DeleteTrail' => [
'summary' => '删除操作审计跟踪。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '要删除的跟踪名称。'."\n"
."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '删除跟踪',
'description' => '本文将提供一个示例,删除名为`my-test`的跟踪。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrail'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DescribeAdvancedQueryHistory' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'QueryHistoryList' => [
'description' => '高级查询历史记录列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'QueryId' => ['description' => '高级查询记录ID。', 'type' => 'string', 'example' => 'query-uIkIvLiVSuCKqg0yoa****'],
'QuerySql' => ['description' => '查询条件语句。', 'type' => 'string', 'example' => 'event.userIdentity.accessKeyId: *'],
'SimpleQuery' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'example' => 'false'],
'TimeStamp' => ['description' => '数据时间戳,表示高级查询历史记录创建时间。 '."\n"
.'日期格式遵循ISO 8601表示法,采用UTC时间。', 'type' => 'string', 'example' => '1753695874000'],
],
'description' => '',
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '19F032B7-5FD8-5AC9-97FD-ACF54371****'],
],
'description' => '',
],
],
],
'title' => '查询高级查询历史',
'summary' => '本接口用于获取所有高级查询历史记录。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryHistoryList\\": [\\n {\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"SimpleQuery\\": false,\\n \\"TimeStamp\\": \\"1753695874000\\"\\n }\\n ],\\n \\"RequestId\\": \\"19F032B7-5FD8-5AC9-97FD-ACF54371****\\"\\n}","type":"json"}]',
],
'DescribeAdvancedQueryTemplate' => [
'summary' => '查询高级查询模板。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'TemplateName',
'in' => 'query',
'schema' => ['description' => '模板名称。用户可以通过输入部分模板名称来检索符合条件的所有模板。如果输入的内容与多个模板名称的部分字符相匹配,则返回所有这些模板的列表。若不提供任何输入,则默认返回系统中所有可用的模板。'."\n"
.'输入: a'."\n"
.'输出: [a1, a2]'."\n"
.'输入: `` (无输入) 输出: [a1, a2, b1, c1]', 'type' => 'string', 'required' => false, 'example' => 'example-template'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '模板列表的页码。起始值:1。默认值:1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
.'默认值:20。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1EC1FDC7-6D01-559F-852C-30D86E9EEB3F'],
'TemplatePage' => [
'description' => '模板分页查询列表。',
'type' => 'object',
'properties' => [
'PageNumber' => ['description' => '模板列表的页码。', 'type' => 'string', 'example' => '1'],
'PageSize' => ['description' => '允许返回的最大结果数目。'."\n"
.'默认值:20。', 'type' => 'string', 'example' => '20'],
'TemplateList' => [
'description' => '模板详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'SimpleQuery' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'example' => 'false'],
'TemplateId' => ['description' => '模板ID。', 'type' => 'string', 'example' => 'utpl-7OaxbyJATDaoLOgZRc****'],
'TemplateName' => ['description' => '模板名称。', 'type' => 'string', 'example' => 'example-template'],
'TemplateSql' => ['description' => '查询语句。', 'type' => 'string', 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *'],
],
'description' => '',
],
],
'Total' => ['description' => '查询的总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
],
],
],
'description' => '',
],
],
],
'title' => '查询高级查询模板',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1EC1FDC7-6D01-559F-852C-30D86E9EEB3F\\",\\n \\"TemplatePage\\": {\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"20\\",\\n \\"TemplateList\\": [\\n {\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-7OaxbyJATDaoLOgZRc****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n }\\n ],\\n \\"Total\\": 5\\n }\\n}","type":"json"}]',
],
'DescribeRegions' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AcceptLanguage',
'in' => 'query',
'schema' => ['description' => '地域名称支持的语言,取值: '."\n"
."\n"
.'- zh-CN:中文。'."\n"
.'- en-US(默认值):英文。', 'type' => 'string', 'required' => false, 'example' => 'en-US'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Regions' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Region' => [
'description' => '地域列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LocalName' => ['title' => '地域名称', 'description' => '地域名称。 '."\n"
."\n"
.'> 当AcceptLanguage取值为zh-CN时,返回中文。当AcceptLanguage取值为en-US或不指定时,返回英文。', 'type' => 'string', 'example' => 'China (Hangzhou)'],
'RegionEndpoint' => ['title' => '地域链接地址', 'description' => '接入地址。', 'type' => 'string', 'example' => 'actiontrail.cn-hangzhou.aliyuncs.com'],
'RegionId' => ['title' => '地域ID', 'description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
],
'description' => '',
],
],
],
'description' => '',
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'ACA7C814-12BC-4D81-A0D2-72071C9D6D2C'],
],
'description' => '',
],
],
],
'title' => '查询可以使用的阿里云地域',
'summary' => '查询操作审计支持的阿里云地域。',
'description' => '更多信息,请参见[地域和可用区](~~40654~~)。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'],
],
],
'ramActions' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"LocalName\\": \\"China (Hangzhou)\\",\\n \\"RegionEndpoint\\": \\"actiontrail.cn-hangzhou.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"ACA7C814-12BC-4D81-A0D2-72071C9D6D2C\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DescribeResourceLifeCycleEvents' => [
'summary' => '本接口用于查询指定资源的生命周期事件。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '云产品名称。', 'type' => 'string', 'required' => false, 'example' => 'ECS'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => '资源类型。', 'type' => 'string', 'required' => false, 'example' => 'ACS::ECS::Instance'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '生命周期事件数据。 '."\n"
.'该字段以JSON序列化字符串的形式返回,内容为结构化的生命周期事件分类层级数据。您可使用对应编程语言的标准JSON反序列化工具将其解析为对象数组。', 'type' => 'string', 'example' => '[{"children":[{"children":[{"label":"Create Events","labelEn":"Create Events","value":"Create,CreateInstance,RunInstances"},{"label":"Delete Events","labelEn":"Delete Events","value":"DeleteInstance,DeleteInstances,Release"}],"label":"ECS Instance","labelEn":"ECS Instance","value":"ACS::ECS::Instance"}],"label":"Elastic Compute Service","labelEn":"Elastic Compute Service","value":"Ecs"}]'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'B10969CF-C743-55F8-9710-F0711504****'],
],
'description' => '',
],
],
],
'title' => '查询资源生命周期事件',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[{\\\\\\"children\\\\\\":[{\\\\\\"children\\\\\\":[{\\\\\\"label\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Create,CreateInstance,RunInstances\\\\\\"},{\\\\\\"label\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"DeleteInstance,DeleteInstances,Release\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ACS::ECS::Instance\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Ecs\\\\\\"}]\\",\\n \\"RequestId\\": \\"B10969CF-C743-55F8-9710-F0711504****\\"\\n}","type":"json"}]',
],
'DescribeScenes' => [
'summary' => '本接口用于查询所有高级查询场景。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SearchCode',
'in' => 'query',
'schema' => ['description' => '查询关键词。支持输入部分场景名称进行模糊匹配,查询时不区分大小写。', 'type' => 'string', 'required' => false, 'example' => 'ak'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****'],
'SceneList' => [
'description' => '场景列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Description' => ['description' => '场景描述。', 'type' => 'string', 'example' => 'Query access events for the primary and sub-accounts and access keys under various scenarios, such as access events occurrence, access without MFA authentication, and failed access attempts.'],
'Name' => ['description' => '场景名称。', 'type' => 'string', 'example' => 'Account-related or AccessKey Pair-related Events'],
'SceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q'],
'Token' => ['description' => '场景分类标识。', 'type' => 'string', 'example' => 'identity'],
'Type' => ['description' => '场景类型。', 'type' => 'string', 'example' => 'normal'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'title' => '查询高级查询场景',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeScenes',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"SceneList\\": [\\n {\\n \\"Description\\": \\"Query access events for the primary and sub-accounts and access keys under various scenarios, such as access events occurrence, access without MFA authentication, and failed access attempts.\\",\\n \\"Name\\": \\"Account-related or AccessKey Pair-related Events\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Token\\": \\"identity\\",\\n \\"Type\\": \\"normal\\"\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeSearchTemplates' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'query',
'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '页码。默认值:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '允许返回的最大结果数目。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '787DD24A-E322-5C0D-A730-057FE62B****'],
'TemplateList' => [
'description' => '模板详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Charts' => ['description' => '仪表盘列表(已废弃)。'."\n"
.'> 该字段已废弃,不再返回有效数据,当前返回值恒为空数组`[]`。建议您停止使用并从代码中移除对该字段的依赖。', 'type' => 'string', 'example' => '[]'],
'Description' => ['description' => '模板描述。', 'type' => 'string', 'example' => 'Events of Console Logons by Using Cloud Account'],
'Params' => ['description' => '查询条件参数。 '."\n"
.'该字段以JSON序列化字符串的形式返回,内容为结构化的查询条件列表。您可使用对应编程语言的标准JSON反序列化工具将其解析为对象数组。', 'type' => 'string', 'example' => '[{"key":"event.eventName","value":"ConsoleSignin","type":"system","display":true,"displayKey":"event.eventName","displayValue":"ConsoleSignin","displayValueEn":"ConsoleSignin"},{"oper":"AND","key":"event.userIdentity.type","value":"root-account","type":"system","display":true,"displayKey":"event.userIdentity.type","displayValueEn":"Alibaba Cloud Account"}]'],
'SceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q'],
'Sql' => ['description' => '查询条件语句。', 'type' => 'string', 'example' => 'select "event.userIdentity.accountId" as account_id, count(1) as cnt group by account_id limit 1000'],
'TemplateId' => ['description' => '模板ID。', 'type' => 'string', 'example' => 'tpl-wCZAFWx3Spq6CO9Ymp****'],
'TemplateName' => ['description' => '模板名称。', 'type' => 'string', 'example' => 'Events of Console Logons by Using Cloud Account'],
'Token' => ['description' => '模板分类标识。', 'type' => 'string', 'example' => 'identity.rootLogin'],
'Type' => ['description' => '模板类型。', 'type' => 'string', 'example' => 'audit'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'errorCodes' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询高级查询系统模板',
'summary' => '本接口用于查询指定场景下的高级查询系统模版。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeSearchTemplates',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"787DD24A-E322-5C0D-A730-057FE62B****\\",\\n \\"TemplateList\\": [\\n {\\n \\"Charts\\": \\"[]\\",\\n \\"Description\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Params\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"displayValue\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"ConsoleSignin\\\\\\"},{\\\\\\"oper\\\\\\":\\\\\\"AND\\\\\\",\\\\\\"key\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"value\\\\\\":\\\\\\"root-account\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"Alibaba Cloud Account\\\\\\"}]\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Sql\\": \\"select \\\\\\"event.userIdentity.accountId\\\\\\" as account_id, count(1) as cnt group by account_id limit 1000\\",\\n \\"TemplateId\\": \\"tpl-wCZAFWx3Spq6CO9Ymp****\\",\\n \\"TemplateName\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Token\\": \\"identity.rootLogin\\",\\n \\"Type\\": \\"audit\\"\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeTrailDeliveryMetricData' => [
'summary' => '获取投递监控指标。',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI'],
],
'parameters' => [
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => '监控指标名称:'."\n"
.'- delivery_sls_success_count:投递SLS成功日志数量'."\n"
.'- delivery_sls_fail_count:投递SLS失败日志数量'."\n"
.'- delivery_oss_success_count:投递OSS成功日志数量'."\n"
.'- delivery_oss_fail_count:投递OSS失败日志数量', 'type' => 'string', 'required' => true, 'example' => 'delivery_sls_success_count'],
],
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => '开始时间。格式:2026-02-25T00:35:00Z。', 'type' => 'string', 'required' => true, 'example' => '2026-04-09T01:00:00Z'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => '结束时间。格式同上。', 'type' => 'string', 'required' => true, 'example' => '2026-04-10T01:00:00Z'],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => '监控数据的统计周期。最小值60,支持60的倍数。'."\n"
."\n"
.'推荐取值:60、900 和 3600。单位:秒。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3600'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'MetricList' => [
'description' => '监控指标列表。',
'type' => 'array',
'items' => [
'description' => '监控指标对象。',
'type' => 'object',
'properties' => [
'Count' => ['description' => '监控指标数量。具体含义由入参MetricName决定。'."\n"
."\n"
.'例如:MetricName入参为`delivery_sls_success_count`时,返回中的`Count`代表投递SLS成功日志数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '21'],
'Timestamp' => ['description' => 'Count对应的时间窗口。', 'type' => 'integer', 'format' => 'int64', 'example' => '1775721600000'],
],
],
],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求 ID。', 'type' => 'string', 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****'],
],
],
],
],
'title' => '获取投递监控指标',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MetricList\\": [\\n {\\n \\"Count\\": 21,\\n \\"Timestamp\\": 1775721600000\\n }\\n ],\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
],
'DescribeTrails' => [
'summary' => '查看已创建的跟踪列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'IncludeShadowTrails',
'in' => 'query',
'schema' => ['description' => '是否显示影子跟踪,取值:'."\n"
."\n"
.'- false(默认值):不显示。'."\n"
.'- true:显示。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'NameList',
'in' => 'query',
'schema' => ['description' => '需要查询的跟踪名称列表。多个名称之间用半角逗号(,)分隔。', 'type' => 'string', 'required' => false, 'example' => 'abc,def'],
],
[
'name' => 'IncludeOrganizationTrail',
'in' => 'query',
'schema' => ['description' => '是否查询多账号跟踪,取值:'."\n"
."\n"
.'- true:查询多账号跟踪。'."\n"
.'- false(默认值):查询单账号跟踪。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'ED8BC689-69DA-42AC-855E-3B06C1271194'],
'TrailList' => [
'description' => '跟踪列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => '跟踪创建的时间。', 'type' => 'string', 'example' => '2021-03-01T06:27:28Z'],
'EventRW' => ['description' => '投递事件的读写类型,取值:'."\n"
."\n"
.'- Write(默认值):写类型。'."\n"
.'- Read:读类型。'."\n"
.'- All:读类型和写类型。', 'type' => 'string', 'example' => 'All'],
'HomeRegion' => ['description' => '跟踪的Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'IsOrganizationTrail' => ['description' => '是否是多账号跟踪,取值:'."\n"
."\n"
.'- false(默认值):否。'."\n"
.'- true:是。', 'type' => 'boolean', 'example' => 'false'],
'MaxComputeProjectArn' => ['description' => '跟踪投递的大数据计算服务项目的ARN。', 'type' => 'string', 'example' => 'acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****'],
'MaxComputeWriteRoleArn' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::141266687691****:role/aliyunserviceroleforactiontrail'],
'Name' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'test-4'],
'OrganizationId' => ['description' => '资源目录ID。 '."\n"
."\n"
.'> 只有多账号跟踪返回该参数。', 'type' => 'string', 'example' => 'rd-EV****'],
'OssBucketLocation' => ['description' => 'OSS存储空间所在地域。', 'type' => 'string', 'example' => 'oss-cn-hangzhou'],
'OssBucketName' => ['description' => 'OSS存储空间的名称。', 'type' => 'string', 'example' => 'secloud'],
'OssKeyPrefix' => ['description' => 'OSS存储空间文件名的前缀。', 'type' => 'string', 'example' => 'trail1'],
'OssWriteRoleArn' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'Region' => ['description' => '跟踪所在地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'SlsProjectArn' => ['description' => '跟踪投递的日志服务项目的ARN。', 'type' => 'string', 'example' => 'acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log'],
'SlsWriteRoleArn' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail'],
'StartLoggingTime' => ['description' => '最近一次开启跟踪的时间。', 'type' => 'string', 'example' => '2021-04-06T02:08:38Z'],
'Status' => ['description' => '跟踪状态,取值:'."\n"
."\n"
.'- Disable:停止。'."\n"
.'- Enable:开启。 '."\n"
.'- Fresh:已创建跟踪,但未开启。', 'type' => 'string', 'example' => 'Enable'],
'StopLoggingTime' => ['description' => '最近一次停止跟踪的时间。', 'type' => 'string', 'example' => '2021-04-06T02:09:04Z'],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other'],
'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'All'],
'UpdateTime' => ['description' => '跟踪配置最近一次更新的时间。', 'type' => 'string', 'example' => '2021-04-06T02:16:24Z'],
],
'description' => '',
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidTrailNameException', 'errorMessage' => 'The specified Trail name is invalid.', 'description' => '跟踪名称无效,请修改。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询某地域的跟踪列表',
'description' => '本文将提供一个示例,查询当前账号的单账号跟踪列表。返回结果显示只有一条名为`test-4`的跟踪。',
'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTrails'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:DescribeTrails',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ED8BC689-69DA-42AC-855E-3B06C1271194\\",\\n \\"TrailList\\": [\\n {\\n \\"CreateTime\\": \\"2021-03-01T06:27:28Z\\",\\n \\"EventRW\\": \\"All\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"IsOrganizationTrail\\": false,\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::141266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Name\\": \\"test-4\\",\\n \\"OrganizationId\\": \\"rd-EV****\\",\\n \\"OssBucketLocation\\": \\"oss-cn-hangzhou\\",\\n \\"OssBucketName\\": \\"secloud\\",\\n \\"OssKeyPrefix\\": \\"trail1\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\",\\n \\"StartLoggingTime\\": \\"2021-04-06T02:08:38Z\\",\\n \\"Status\\": \\"Enable\\",\\n \\"StopLoggingTime\\": \\"2021-04-06T02:09:04Z\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other\\",\\n \\"TrailRegion\\": \\"All\\",\\n \\"UpdateTime\\": \\"2021-04-06T02:16:24Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DescribeUserAlertCount' => [
'summary' => '查询用户时间段内每日告警量。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailR96AQB'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'StartDate',
'in' => 'query',
'schema' => ['description' => '开始时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-05-12'."\n"
."\n"],
],
[
'name' => 'EndDate',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '结束时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-10'."\n"],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回的数据内容。',
'type' => 'object',
'properties' => [
'Counts' => [
'description' => '返回的数据数量统计。',
'type' => 'array',
'items' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
],
'Dates' => [
'description' => '返回的日期列表。',
'type' => 'array',
'items' => ['description' => '生成日期。', 'type' => 'string', 'example' => '2025-01-17'."\n"],
],
],
],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'."\n"],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidParameterCombination', 'errorMessage' => 'The end time must be later than the start time.', 'description' => '结束时间必须晚于开始时间。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询用户时间段内每日告警量',
'requestParamsDescription' => '><notice>若StartDate与EndDate参数缺失,默认查询过去30天(截止到昨日)每天的日志量。></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DescribeUserAlertCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 500\\n ],\\n \\"Dates\\": [\\n \\"2025-01-17\\\\n\\"\\n ]\\n },\\n \\"RequestId\\": \\"90D6CC31-947F-5D8A-BEDC-F312EE9B31EA\\\\n\\"\\n}","type":"json"}]',
],
'DescribeUserLogCount' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'StartDate',
'in' => 'query',
'schema' => ['description' => '开始时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-05-12'],
],
[
'name' => 'EndDate',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '结束时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-10'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回的数据内容。',
'type' => 'object',
'properties' => [
'Counts' => [
'description' => '返回的数据数量统计。',
'type' => 'array',
'items' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '103493'."\n"],
],
'Dates' => [
'description' => '返回的日期列表。',
'type' => 'array',
'items' => ['description' => '日志生成日期。', 'type' => 'string', 'example' => '2025-05-10'],
],
],
],
'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidParameterCombination', 'errorMessage' => 'The end time must be later than the start time.', 'description' => '结束时间必须晚于开始时间。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询用户时间段内每日日志量',
'summary' => '查询用户时间段内每日日志量。',
'requestParamsDescription' => '><notice>若StartDate与EndDate参数缺失,默认查询过去30天(截止到昨日)每天的日志量></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DescribeUserLogCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 103493\\n ],\\n \\"Dates\\": [\\n \\"2025-05-10\\"\\n ]\\n },\\n \\"RequestId\\": \\"90D6CC31-947F-5D8A-BEDC-F312EE9B31EA\\"\\n}","type":"json"}]',
],
'DescribeUserTrailCount' => [
'summary' => '查询开启的跟踪个数,包含组织跟踪。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI', 'FEATUREactiontrailK0OCFQ', 'FEATUREactiontrailFXSRM0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
'Counts' => [
'description' => '跟踪数量。',
'type' => 'array',
'items' => ['description' => '跟踪数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '4'],
],
'Dates' => [
'description' => '日期列表。',
'type' => 'array',
'items' => ['description' => '当前日期。', 'type' => 'string', 'example' => '2025-05-10'],
],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EDDEBA6B-FFE2-4EF6-8BAB-2A6B98DC****'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidParameterCombination', 'errorMessage' => 'The end time must be later than the start time.', 'description' => '结束时间必须晚于开始时间。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询用户跟踪数量',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 4\\n ],\\n \\"Dates\\": [\\n \\"2025-05-10\\"\\n ]\\n },\\n \\"RequestId\\": \\"EDDEBA6B-FFE2-4EF6-8BAB-2A6B98DC****\\"\\n}","type":"json"}]',
],
'DisableInsight' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'InsightType',
'in' => 'query',
'schema' => ['description' => 'Insight事件类型,取值:'."\n"
."\n"
.'- IpInsight:IP请求事件。'."\n"
.'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
.'- ApiErrorRateInsight:API错误事件。'."\n"
.'- AkInsight:AccessKey调用事件。'."\n"
.'- PolicyChangeInsight:权限变更事件。'."\n"
.'- PasswordChangeInsight:密码变更事件。'."\n"
.'- TrailConcealmentInsight:隐匿行踪事件。', 'type' => 'string', 'required' => false, 'example' => 'IpInsight'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InsightTypeNotValid', 'errorMessage' => 'The input insightType is not valid', 'description' => '用户输入的参数不合法'],
],
],
'title' => '关闭审计事件洞察',
'summary' => '关闭特定的InsightType。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
],
'EnableInsight' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'InsightType',
'in' => 'query',
'schema' => ['description' => 'Insight事件类型,取值:'."\n"
."\n"
.'- IpInsight:IP请求事件。'."\n"
.'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
.'- ApiErrorRateInsight:API错误事件。'."\n"
.'- AkInsight:AccessKey调用事件。'."\n"
.'- PolicyChangeInsight:权限变更事件。'."\n"
.'- PasswordChangeInsight:密码变更事件。'."\n"
.'- TrailConcealmentInsight:隐匿行踪事件。', 'type' => 'string', 'required' => false, 'example' => 'IpInsight'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '45AA79B7-0240-52AB-B158-3F9A512228ED'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InsightTypeNotAvailable', 'errorMessage' => 'The input insightType is not available', 'description' => ''],
],
],
'title' => '开启审计事件洞察',
'summary' => '开启审计事件洞察。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableInsight'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:EnableInsight',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"45AA79B7-0240-52AB-B158-3F9A512228ED\\"\\n}","type":"json"}]',
],
'GetAccessKeyLastUsedEvents' => [
'summary' => '查询指定AccessKey的最后使用的事件记录。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'],
],
'parameters' => [
[
'name' => 'AccessKey',
'in' => 'query',
'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '用于请求下一页检索的结果。 '."\n"
."\n"
.'> 请求参数必须保证和上次请求一致。', 'type' => 'string', 'required' => false, 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
.'取值范围:0~100。'."\n"
.'默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Events' => [
'description' => '检索到的事件列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Detail' => ['description' => '事件详情。', 'type' => 'string', 'example' => '{'."\n"
.' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
.' "sourceIpAddress": "10.10.**.**",'."\n"
.' "eventType": "ApiCall",'."\n"
.' "userIdentity": {'."\n"
.' "accountId": "104758519118****",'."\n"
.' "principalId": "24549429003625****",'."\n"
.' "type": "ram-user",'."\n"
.' "userName": "alice"'."\n"
.' },'."\n"
.' "serviceName": "Ecs",'."\n"
.' "apiVersion": "2016-01-20",'."\n"
.' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
.' "eventTime": "2021-08-05T09:21:32Z",'."\n"
.' "isGlobal": false,'."\n"
.' "acsRegion": "cn-hangzhou",'."\n"
.' "eventName": "DescribeInstances"'."\n"
.'}'],
'EventName' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'DescribeInstances'],
'Source' => [
'description' => '最后使用记录来源。',
'type' => 'string',
'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'],
'example' => 'ManagementEvent',
],
'UsedTimestamp' => ['description' => '使用事件的时间戳。'."\n"
.'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'],
],
'description' => '',
],
'required' => true,
],
'NextToken' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询指定AccessKey的最后使用的事件记录',
'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分事件记录。关于支持的事件请参见[AccessKey审计支持的云服务及事件](~~419214~~) 。因该数据存在一定的延迟(一般小时级),且仅支持部分事件,请您务必谨慎变更AccessKey。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedEvents'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Events\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"EventName\\": \\"DescribeInstances\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedEventsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Events>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<EventName>DescribeInstances</EventName>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Events>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedEventsResponse>\\t","errorExample":""}]',
],
'GetAccessKeyLastUsedInfo' => [
'summary' => '查询指定AccessKey的最后使用记录。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'],
],
'parameters' => [
[
'name' => 'AccessKey',
'in' => 'query',
'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'AccessKeyId' => ['description' => 'AccessKey ID。', 'type' => 'string', 'example' => 'LTAI****************'],
'AccountId' => ['description' => '阿里云账号ID。', 'type' => 'string', 'example' => '104758519118****'],
'AccountType' => [
'description' => 'AccessKey所属账号身份类型。',
'type' => 'string',
'enumValueTitles' => ['root-account' => '阿里云账号', 'ram-user' => 'RAM用户'],
'example' => 'ram-user',
],
'Detail' => ['description' => '最后使用事件详情。', 'type' => 'string', 'example' => '{'."\n"
.' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
.' "sourceIpAddress": "10.10.**.**",'."\n"
.' "eventType": "ApiCall",'."\n"
.' "userIdentity": {'."\n"
.' "accountId": "104758519118****",'."\n"
.' "principalId": "24549429003625****",'."\n"
.' "type": "ram-user",'."\n"
.' "userName": "alice"'."\n"
.' },'."\n"
.' "serviceName": "Ecs",'."\n"
.' "apiVersion": "2016-01-20",'."\n"
.' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
.' "eventTime": "2021-08-05T09:21:32Z",'."\n"
.' "isGlobal": false,'."\n"
.' "acsRegion": "cn-hangzhou",'."\n"
.' "eventName": "DescribeInstances"'."\n"
.'}'],
'OwnerId' => ['description' => 'AccessKey所属账号ID。', 'type' => 'string', 'example' => '24549429003625****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '239EB588-CD24-522E-B0B5-174A1A588BE0'],
'ServiceName' => ['description' => '最后使用的云服务。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'],
'ServiceNameCn' => ['description' => '最后使用的云服务中文名称。', 'type' => 'string', 'example' => '云服务器ECS'],
'ServiceNameEn' => ['description' => '最后使用的云服务英文名称。', 'type' => 'string', 'example' => 'Elastic Compute Service'],
'Source' => [
'description' => '最后使用记录来源。',
'type' => 'string',
'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'],
'example' => 'ManagementEvent',
],
'UsedTimestamp' => ['description' => '最后使用时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1657247532000'],
'UserName' => [
'description' => 'AccessKey所属账号名称。'."\n"
.'如果AccountType为root-account,则userName记录为“root”;如果AccountType为ram-user,则userName记录为RAM用户名。',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'alice',
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询指定AccessKey的最后使用记录',
'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey的最后使用记录。因该数据存在一定的延迟(一般小时级),请您务必谨慎变更AccessKey。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AccessKeyId\\": \\"LTAI****************\\",\\n \\"AccountId\\": \\"104758519118****\\",\\n \\"AccountType\\": \\"ram-user\\",\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"OwnerId\\": \\"24549429003625****\\",\\n \\"RequestId\\": \\"239EB588-CD24-522E-B0B5-174A1A588BE0\\",\\n \\"ServiceName\\": \\"Ecs\\",\\n \\"ServiceNameCn\\": \\"云服务器ECS\\",\\n \\"ServiceNameEn\\": \\"Elastic Compute Service\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000,\\n \\"UserName\\": \\"alice\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedInfoResponse>\\n <RequestId>239EB588-CD24-522E-B0B5-174A1A588BE0</RequestId>\\n <AccessKeyId>LTAI4Fz1ykT4qxgNMvN6****</AccessKeyId>\\n <AccountId>104758519118****</AccountId>\\n <OwnerId>24549429003625****</OwnerId>\\n <UserName>alice</UserName>\\n <AccountType>ram-user</AccountType>\\n <UsedTimestamp>1657247532000</UsedTimestamp>\\n <Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n <Source>ManagementEvent</Source>\\n <ServiceName>Ecs</ServiceName>\\n <ServiceNameCn>Elastic Compute Service (ECS)</ServiceNameCn>\\n <ServiceNameEn>Elastic Compute Service</ServiceNameEn>\\n</GetAccessKeyLastUsedInfoResponse>","errorExample":""}]',
],
'GetAccessKeyLastUsedIps' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'],
],
'parameters' => [
[
'name' => 'AccessKey',
'in' => 'query',
'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '用于请求下一页检索的结果。'."\n"
."\n"
.'> 请求参数必须保证和上次请求一致。', 'type' => 'string', 'required' => false, 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
.'取值范围:0~100。'."\n"
.'默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Ips' => [
'description' => '检索到的IP列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Detail' => ['description' => '事件详情。', 'type' => 'string', 'example' => '{'."\n"
.' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
.' "sourceIpAddress": "10.10.**.**",'."\n"
.' "eventType": "ApiCall",'."\n"
.' "userIdentity": {'."\n"
.' "accountId": "104758519118****",'."\n"
.' "principalId": "24549429003625****",'."\n"
.' "type": "ram-user",'."\n"
.' "userName": "alice"'."\n"
.' },'."\n"
.' "serviceName": "Ecs",'."\n"
.' "apiVersion": "2016-01-20",'."\n"
.' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
.' "eventTime": "2021-08-05T09:21:32Z",'."\n"
.' "isGlobal": false,'."\n"
.' "acsRegion": "cn-hangzhou",'."\n"
.' "eventName": "DescribeInstances"'."\n"
.'}'],
'Ip' => ['description' => '最后使用的IP地址。', 'type' => 'string', 'example' => '10.10.**.**'],
'Source' => [
'description' => '最后使用记录来源。',
'type' => 'string',
'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'],
'example' => 'ManagementEvent',
],
'UsedTimestamp' => ['description' => '使用IP的时间戳。'."\n"
.'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'],
],
'description' => '',
],
'required' => true,
],
'NextToken' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询指定AccessKey的最后使用的IP记录',
'summary' => '查询指定AccessKey的最后使用的IP记录。',
'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分IP记录。因该数据存在一定的延迟(一般小时级),且仅支持部分IP,请您务必谨慎变更AccessKey。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedIps'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedIps',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Ips\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"Ip\\": \\"10.10.**.**\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedIpsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Ips>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t\\t<Ip>10.10.XX.XX</Ip>\\n\\t</Ips>\\t\\n <NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedIpsResponse>\\t","errorExample":""}]',
],
'GetAccessKeyLastUsedProducts' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'],
],
'parameters' => [
[
'name' => 'AccessKey',
'in' => 'query',
'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Products' => [
'description' => '检索到的云服务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Detail' => ['description' => '事件详情。', 'type' => 'string', 'example' => '{'."\n"
.' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
.' "sourceIpAddress": "10.10.**.**",'."\n"
.' "eventType": "ApiCall",'."\n"
.' "userIdentity": {'."\n"
.' "accountId": "104758519118****",'."\n"
.' "principalId": "24549429003625****",'."\n"
.' "type": "ram-user",'."\n"
.' "userName": "alice"'."\n"
.' },'."\n"
.' "serviceName": "Ecs",'."\n"
.' "apiVersion": "2016-01-20",'."\n"
.' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
.' "eventTime": "2021-08-05T09:21:32Z",'."\n"
.' "isGlobal": false,'."\n"
.' "acsRegion": "cn-hangzhou",'."\n"
.' "eventName": "DescribeInstances"'."\n"
.'}'],
'ServiceName' => ['description' => '使用的云服务。', 'type' => 'string', 'example' => 'Ecs'],
'ServiceNameCn' => ['description' => '云服务中文名称。', 'type' => 'string', 'example' => '云服务器ECS'],
'ServiceNameEn' => ['description' => '云服务英文名称。', 'type' => 'string', 'example' => 'Elastic Compute Service'],
'Source' => [
'description' => '最后使用记录来源。',
'type' => 'string',
'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'],
'example' => 'ManagementEvent',
],
'UsedTimestamp' => ['description' => '使用云服务的时间戳。'."\n"
.'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'],
],
'description' => '',
],
'required' => true,
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询指定AccessKey的最后使用的云服务记录',
'summary' => '查询指定AccessKey的最后使用的云服务记录。',
'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的云服务记录。因该数据存在一定的延迟(一般小时级),请您务必谨慎变更AccessKey。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedProducts'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Products\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"ServiceName\\": \\"Ecs\\",\\n \\"ServiceNameCn\\": \\"云服务器ECS\\",\\n \\"ServiceNameEn\\": \\"Elastic Compute Service\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedProductsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Products>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t\\t<ServiceName>Ecs</ServiceName>\\n\\t\\t<ServiceNameCn>云服务器ECS</ServiceNameCn>\\n\\t\\t<ServiceNameEn>Elastic Compute Service</ServiceNameEn>\\n\\t</Products>\\n</GetAccessKeyLastUsedProductsResponse>\\t","errorExample":""}]',
],
'GetAccessKeyLastUsedResources' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'],
],
'parameters' => [
[
'name' => 'AccessKey',
'in' => 'query',
'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI4Fz1ykT4qxgNMvN6****'."\n"],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '用于请求下一页检索的结果。'."\n"
.'>请求参数必须保证和上次请求一致。', 'type' => 'string', 'required' => false, 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
."\n"
.'- 取值范围:0~100。'."\n"
.'- 默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
'Resources' => [
'description' => '检索到的资源列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Detail' => ['description' => '事件详情。', 'type' => 'string', 'example' => '{'."\n"
.' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
.' "sourceIpAddress": "10.10.**.**",'."\n"
.' "eventType": "ApiCall",'."\n"
.' "userIdentity": {'."\n"
.' "accountId": "104758519118****",'."\n"
.' "principalId": "24549429003625****",'."\n"
.' "type": "ram-user",'."\n"
.' "userName": "alice"'."\n"
.' },'."\n"
.' "serviceName": "Ecs",'."\n"
.' "apiVersion": "2016-01-20",'."\n"
.' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
.' "eventTime": "2021-08-05T09:21:32Z",'."\n"
.' "isGlobal": false,'."\n"
.' "acsRegion": "cn-hangzhou",'."\n"
.' "eventName": "DescribeInstances"'."\n"
.'}'],
'ResourceName' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'i-bp1ltva99x1a****'],
'ResourceType' => ['description' => '资源类型。', 'type' => 'string', 'example' => 'ACS::ECS::Instance'],
'Source' => [
'description' => '最后使用记录来源。',
'type' => 'string',
'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'],
'example' => 'ManagementEvent',
],
'UsedTimestamp' => ['description' => '使用该资源的时间戳。'."\n"
.'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'],
],
'description' => '',
],
'required' => true,
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
],
],
'title' => '查询指定AccessKey的最后使用的资源记录',
'summary' => '查询指定AccessKey的最后使用的资源记录。',
'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分资源记录。因该数据存在一定的延迟(一般小时级),且仅支持部分资源,请您务必谨慎变更AccessKey。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedResources'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedResources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"Resources\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"ResourceName\\": \\"i-bp1ltva99x1a****\\",\\n \\"ResourceType\\": \\"ACS::ECS::Instance\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedResourcesResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Resources>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<ResourceName>i-bp1ltva99x1a****</ResourceName>\\n\\t\\t<ResourceType>ACS::ECS::Instance</ResourceType>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Resources>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedResourcesResponse>\\t","errorExample":""}]',
],
'GetAdvancedQueryTemplate' => [
'summary' => '获取单个高级模版信息。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'utpl-N9fpjnFBSWauSXhVNP****'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '32110C73-0004-5141-9DA7-4B8045C8173A'],
'SimpleQuery' => [
'description' => '是否开启简单查询模式。',
'type' => 'boolean',
'enumValueTitles' => ['true' => '开启', 'false' => '关闭'],
'example' => 'false',
],
'TemplateId' => ['description' => '模板 ID。', 'type' => 'string', 'example' => 'utpl-N9fpjnFBSWauSXhVNP****'],
'TemplateName' => ['description' => '模板名称。', 'type' => 'string', 'example' => 'example-template'],
'TemplateSql' => ['description' => '查询语句。', 'type' => 'string', 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *'],
],
'description' => '',
],
],
],
'title' => '获取单个高级模版信息',
'responseParamsDescription' => '><notice>接口响应中仅包含 RequestId 而没有其他信息(如 SimpleQuery, TemplateName, TemplateSql 等),这通常意味着请求中的 TemplateId 可能存在错误或未被正确识别。请仔细检查提供的 TemplateId 是否符合预期格式,并确认该 TemplateId 在系统中确实存在。></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"32110C73-0004-5141-9DA7-4B8045C8173A\\",\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-N9fpjnFBSWauSXhVNP****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
],
'GetDataEventSelector' => [
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'],
],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'DataEventSelectors' => ['description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
."\n"
.'json数组中每个元素字段说明:'."\n"
."\n"
.'- `ServiceName`:支持的数据事件云产品名称'."\n"
.'- `ReadWriteType`: Read、Write、All'."\n"
.'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
."\n"
.' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
."\n"
.' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
."\n"
.' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
."\n"
.'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
."\n"
.' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`', 'type' => 'string', 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]'],
'IsTrailAllRegion' => ['description' => '是否跟踪所有地域。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '90771C32-635B-529C-950C-75A9607D****'],
'SlsDeliveryConfigs' => [
'description' => 'SLS投递配置列表。',
'type' => 'array',
'items' => [
'description' => 'SLS投递配置信息对象。',
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => '跟踪创建的时间。', 'type' => 'string', 'example' => '2024-12-18T03:25:36Z'],
'ErrorCode' => ['description' => '资源初始化失败时返回的错误码。', 'type' => 'string', 'example' => 'LogServiceException'],
'ErrorMessage' => ['description' => '资源初始化失败时返回的错误信息。', 'type' => 'string', 'example' => 'RequestError Web request failed.'],
'RegionSlsProjectArn' => ['description' => '跟踪投递的区域日志服务项目ARN。', 'type' => 'string', 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai'],
'Status' => ['description' => '跟踪的资源初始化状态'."\n"
."\n"
.'- success-成功'."\n"
.'- failure-失败', 'type' => 'string', 'example' => 'success'],
'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
],
],
'required' => true,
],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取数据事件选择器',
'summary' => '本接口用于获取指定跟踪名称的数据事件选择器详细信息。',
'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataEventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"IsTrailAllRegion\\": true,\\n \\"RequestId\\": \\"90771C32-635B-529C-950C-75A9607D****\\",\\n \\"SlsDeliveryConfigs\\": [\\n {\\n \\"CreateTime\\": \\"2024-12-18T03:25:36Z\\",\\n \\"ErrorCode\\": \\"LogServiceException\\",\\n \\"ErrorMessage\\": \\"RequestError Web request failed.\\",\\n \\"RegionSlsProjectArn\\": \\"acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai\\",\\n \\"Status\\": \\"success\\",\\n \\"TrailRegion\\": \\"cn-shanghai\\"\\n }\\n ],\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
],
'GetDeliveryHistoryJob' => [
'summary' => '查询数据回补投递任务详情。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'],
],
'parameters' => [
[
'name' => 'JobId',
'in' => 'query',
'schema' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '16602'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'CreatedTime' => ['description' => '任务创建时间。', 'type' => 'string', 'example' => '2021-05-27T07:15:03Z'],
'EndTime' => ['description' => '任务结束时间。', 'type' => 'string', 'example' => '2021-05-27T07:20:03Z'],
'HomeRegion' => ['description' => '跟踪的Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'JobId' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '16602'],
'JobStatus' => ['description' => '任务状态。取值:'."\n"
."\n"
.'- 0:任务正在初始化。'."\n"
.'- 1:任务投递中。'."\n"
.'- 2:任务投递完成。'."\n"
.'- 3:任务投递失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'FAFEC427-A00D-5653-B837-D0FA52220D8C'],
'StartTime' => ['description' => '任务开始时间。', 'type' => 'string', 'example' => '2021-02-26T07:15:03Z'],
'Status' => [
'description' => '各地域的任务状态列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Region' => ['description' => '任务投递的地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'Status' => ['description' => '各地域的任务状态。取值:'."\n"
."\n"
.'- 0:任务正在初始化。'."\n"
.'- 1:任务投递中。'."\n"
.'- 2:任务投递完成。'."\n"
.'- 3:任务投递失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
'description' => '',
],
],
'TrailName' => ['description' => '任务关联的跟踪名称。', 'type' => 'string', 'example' => 'trail-name'],
'UpdatedTime' => ['description' => '任务更新时间。', 'type' => 'string', 'example' => '2021-05-27T07:28:47Z'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '查询数据回补投递任务详情',
'description' => '本文将提供一个示例,查询投递任务ID为`16602`的数据回补投递任务详情。返回结果显示,该任务将跟踪`trail-name`的历史事件投递到日志服务SLS,且任务已经投递完成。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeliveryHistoryJob'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"CreatedTime\\": \\"2021-05-27T07:15:03Z\\",\\n \\"EndTime\\": \\"2021-05-27T07:20:03Z\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"JobId\\": 16602,\\n \\"JobStatus\\": 2,\\n \\"RequestId\\": \\"FAFEC427-A00D-5653-B837-D0FA52220D8C\\",\\n \\"StartTime\\": \\"2021-02-26T07:15:03Z\\",\\n \\"Status\\": [\\n {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Status\\": 2\\n }\\n ],\\n \\"TrailName\\": \\"trail-name\\",\\n \\"UpdatedTime\\": \\"2021-05-27T07:28:47Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'GetGlobalEventsStorageRegion' => [
'summary' => '查询全局事件存储地域。',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'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' => '0474CD9D-DF37-55D4-8383-D265CFBE13A5'],
'StorageRegion' => [
'description' => '全局事件存储地域。',
'type' => 'string',
'enumValueTitles' => ['ap-southeast-1' => 'ap-southeast-1', 'cn-hangzhou' => 'cn-hangzhou'],
'example' => 'ap-southeast-1',
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询全局事件存储地域',
'description' => '默认您的全局事件存储在<props="china">华东1(杭州)</props>'."\n"
.'<props="intl">新加坡</props>。'."\n"
."\n"
.'您需要通过提交工单,获取该接口的使用权限。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetGlobalEventsStorageRegion'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetGlobalEventsStorageRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0474CD9D-DF37-55D4-8383-D265CFBE13A5\\",\\n \\"StorageRegion\\": \\"ap-southeast-1\\"\\n}","type":"json"}]',
],
'GetGovernanceMetrics' => [
'summary' => '本接口用于查询操作审计成熟度。',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回的数据内容。',
'type' => 'object',
'properties' => [
'AccountId' => ['description' => '阿里云账号ID。', 'type' => 'string', 'example' => '195622768501****'],
'GovernanceMetrics' => [
'description' => '治理项集合,包含多个合规评估维度。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ColumnsSchema' => ['description' => '治理资源详情。'."\n"
."\n"
.'包含治理项下所有合规资源的详细配置信息,仅当存在具体资源实例时返回该字段。', 'type' => 'string', 'example' => '{'."\n"
.' "trailName": "trail-test",'."\n"
.' "homeRegion": "cn-hangzhou",'."\n"
.' "trailRegion": "All",'."\n"
.' "trailStatus": "Enable",'."\n"
.' "eventRW": "All",'."\n"
.' "isOrganizationTrail": false,'."\n"
.' "ossDeliveryStatus": "normal",'."\n"
.' "deliveryObjectLifeCycle": "999",'."\n"
.' "ossBucketLifeCycle": "999",'."\n"
.' "trailTotal": 100'."\n"
.'}'],
'GovernanceItem' => ['description' => '治理项。表示具体的合规检查类别。', 'type' => 'string', 'example' => 'actiontrail_storage_audit_log'],
'GovernanceScore' => ['description' => '治理项的合规评分。评分值范围:0~100。', 'type' => 'string', 'example' => '100'],
],
],
],
],
],
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A****'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询操作审计成熟度',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetGovernanceMetrics',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"AccountId\\": \\"195622768501****\\",\\n \\"GovernanceMetrics\\": [\\n {\\n \\"ColumnsSchema\\": \\"{\\\\n \\\\\\"trailName\\\\\\": \\\\\\"trail-test\\\\\\",\\\\n \\\\\\"homeRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"trailRegion\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"trailStatus\\\\\\": \\\\\\"Enable\\\\\\",\\\\n \\\\\\"eventRW\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"isOrganizationTrail\\\\\\": false,\\\\n \\\\\\"ossDeliveryStatus\\\\\\": \\\\\\"normal\\\\\\",\\\\n \\\\\\"deliveryObjectLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"ossBucketLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"trailTotal\\\\\\": 100\\\\n}\\",\\n \\"GovernanceItem\\": \\"actiontrail_storage_audit_log\\",\\n \\"GovernanceScore\\": \\"100\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A****\\"\\n}","type":"json"}]',
],
'GetInsightSelectors' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-name'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'InsightSelectors' => [
'description' => 'Insight事件类型数组',
'type' => 'array',
'items' => ['description' => 'Insight事件类型(JSON格式)。', 'type' => 'string', 'example' => '{"insightType":"AkInsight"}'],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D0227506-AA8C-5998-8A62-74769106****'],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'],
],
'description' => '',
],
],
],
'title' => '获取洞察选择器',
'summary' => '获取跟踪需投递的InsightTypes。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
],
'GetInsightTypes' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'InsightTypes' => ['description' => 'Insight事件类型。', 'type' => 'object', 'example' => '{\'ApiCallRateInsight\': \'Enable\', \'ApiErrorRateInsight\': \'Enable\', \'IpInsight\': \'Enable\', \'AkInsight\': \'Enable\'}'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EC4A1F64-4927-5714-B205-5A0B16A2****'],
],
'description' => '',
],
],
],
'title' => '获取审计事件洞察类型',
'summary' => '获取用户开启的所有InsightTypes。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightTypes\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RequestId\\": \\"EC4A1F64-4927-5714-B205-5A0B16A2****\\"\\n}","type":"json"}]',
],
'GetInsightsEventsCount' => [
'summary' => '获取当前账号的Insights事件数量。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Date',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => '指定查询日期。格式:`yyyy-MM-dd`。', 'type' => 'string', 'required' => false, 'example' => '2026-01-07'],
],
[
'name' => 'EndTime',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => '检索事件的结束时间。日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。'."\n"
."\n"
.'>- - 当Date、StartTime、EndTime都为空时,查询距今24小时内的日志量。'."\n"
.'>- - 当Date不为空时,StartTime与EndTime参数无效,查询Date内的日志量。'."\n"
.'>- - 当Date为空且StartTime和EndTime都不为空时,查询范围内的日志量。', 'type' => 'string', 'required' => false, 'example' => '2026-01-07T06:00:00Z'],
],
[
'name' => 'StartTime',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => '检索事件的开始时间。日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'required' => false, 'example' => '2025-12-01T02:00:00Z'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回的数据列表。',
'type' => 'array',
'items' => [
'description' => '返回的数据对象。',
'type' => 'object',
'properties' => [
'Count' => ['description' => '事件数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'InsightType' => ['description' => 'Insight事件类型,取值:'."\n"
."\n"
.'- IpInsight:IP请求事件。'."\n"
.'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
.'- ApiErrorRateInsight:API错误事件。'."\n"
.'- AkInsight:AccessKey调用事件。'."\n"
.'- PolicyChangeInsight:权限变更事件。'."\n"
.'- PasswordChangeInsight:密码变更事件。'."\n"
.'- TrailConcealmentInsight:隐匿行踪事件。', 'type' => 'string', 'example' => 'IpInsight'],
'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'],
],
],
],
'NextToken' => ['description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidTimeRangeException', 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.', 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。'],
],
],
'title' => '获取洞察事件数量',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Count\\": 3,\\n \\"InsightType\\": \\"IpInsight\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
],
'GetTrailStatus' => [
'summary' => '查询跟踪的状态。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '跟踪名称。 '."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。 '."\n"
."\n"
.'> 同一账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'],
],
[
'name' => 'IsOrganizationTrail',
'in' => 'query',
'schema' => ['description' => '是否查询多账号跟踪状态,取值: '."\n"
."\n"
.'- true:查询多账号跟踪状态。'."\n"
."\n"
.'- false(默认值):查单账号跟踪状态。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'IsLogging' => ['description' => '是否开启日志记录,取值:'."\n"
."\n"
.'- true:开启。 '."\n"
.'- false:关闭。', 'type' => 'boolean', 'example' => 'true'],
'LatestDeliveryError' => ['description' => '最近一次行为跟踪异常的日志信息。', 'type' => 'string', 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1'],
'LatestDeliveryLogServiceError' => ['description' => '最近一次投递日志服务的错误信息。', 'type' => 'string', 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1'],
'LatestDeliveryLogServiceTime' => ['description' => '最近一次成功投递日志服务的时间。', 'type' => 'string', 'example' => '2021-02-26T09:19:44Z'],
'LatestDeliveryTime' => ['description' => '最近一次成功记录行为的时间。', 'type' => 'string', 'example' => '2021-02-26T09:19:44Z'],
'OssBucketStatus' => ['description' => 'OSS存储空间是否可用,取值:'."\n"
."\n"
.'- true:可用。'."\n"
.'- false:不可用。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8067369B-B923-4D26-85BC-61BF33922505'],
'SlsLogStoreStatus' => ['description' => 'SLS Logstore是否可用,取值:'."\n"
."\n"
.'- true:可用。 '."\n"
.'- false:不可用。', 'type' => 'boolean', 'example' => 'true'],
'StartLoggingTime' => ['description' => '最近一次开启跟踪的时间。', 'type' => 'string', 'example' => '2021-02-24T09:19:44Z'],
'StopLoggingTime' => ['description' => '最近一次停止跟踪的时间。', 'type' => 'string', 'example' => '2021-02-25T09:19:44Z'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '查询跟踪状态',
'description' => '本文将提供一个示例,为您查询单账号跟踪`trail-test`的状态。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrailStatus'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetTrailStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"IsLogging\\": true,\\n \\"LatestDeliveryError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\n \\"LatestDeliveryLogServiceError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\n \\"LatestDeliveryLogServiceTime\\": \\"2021-02-26T09:19:44Z\\",\\n \\"LatestDeliveryTime\\": \\"2021-02-26T09:19:44Z\\",\\n \\"OssBucketStatus\\": true,\\n \\"RequestId\\": \\"8067369B-B923-4D26-85BC-61BF33922505\\",\\n \\"SlsLogStoreStatus\\": true,\\n \\"StartLoggingTime\\": \\"2021-02-24T09:19:44Z\\",\\n \\"StopLoggingTime\\": \\"2021-02-25T09:19:44Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'ListDataEventSelectors' => [
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'],
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '分页游标。用于请求下一页检索的结果。'."\n"
."\n"
.'- 首次请求时置空。'."\n"
.'- 后续请求时传入上一次响应返回的`NextToken`值。', 'type' => 'string', 'required' => false, 'example' => 'VjE6dLbnNpVmbz06****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
."\n"
.'- 取值范围:1~100。'."\n"
.'- 默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
'DataEventSelectorInfos' => [
'description' => '数据事件选择器信息列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EventSelectors' => ['description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
."\n"
.'json数组中每个元素字段说明:'."\n"
."\n"
.'- `ServiceName`:支持的数据事件云产品名称'."\n"
.'- `ReadWriteType`: Read、Write、All'."\n"
.'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
."\n"
.' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
."\n"
.' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
."\n"
.' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
."\n"
.'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
."\n"
.' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`', 'type' => 'string', 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]'],
'IsTrailAllRegion' => ['description' => '是否跟踪所有地域', 'type' => 'boolean', 'example' => 'true'],
'SlsDeliveryConfigs' => [
'description' => 'SLS投递配置列表。',
'type' => 'array',
'items' => [
'description' => 'SLS投递配置信息。',
'type' => 'object',
'properties' => [
'CreateTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2023-09-30T16:11Z'],
'ErrorCode' => ['description' => '资源初始化失败时返回的错误码。', 'type' => 'string', 'example' => 'LogServiceException'],
'ErrorMessage' => ['description' => '资源初始化失败时返回的错误信息。', 'type' => 'string', 'example' => 'RequestError Web request failed.'],
'RegionSlsProjectArn' => ['description' => '跟踪投递的区域日志服务项目ARN。', 'type' => 'string', 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai'],
'Status' => ['description' => '跟踪的资源初始化状态。', 'type' => 'string', 'example' => 'success'],
'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'cn-shanghai'],
],
],
],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'],
'TrailName' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'trail-name'],
],
'description' => '',
],
],
'MaxResults' => ['description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8A74FD2E-A9B9-461C-BCE9-D9668DF1****'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列举所有数据事件选择器',
'summary' => '本接口用于列举所有数据事件选择器。',
'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDataEventSelectors',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"DataEventSelectorInfos\\": [\\n {\\n \\"EventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"IsTrailAllRegion\\": true,\\n \\"SlsDeliveryConfigs\\": [\\n {\\n \\"CreateTime\\": \\"2023-09-30T16:11Z\\",\\n \\"ErrorCode\\": \\"LogServiceException\\",\\n \\"ErrorMessage\\": \\"RequestError Web request failed.\\",\\n \\"RegionSlsProjectArn\\": \\"acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai\\",\\n \\"Status\\": \\"success\\",\\n \\"TrailRegion\\": \\"cn-shanghai\\"\\n }\\n ],\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\",\\n \\"TrailName\\": \\"trail-name\\"\\n }\\n ],\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\"\\n },\\n \\"RequestId\\": \\"8A74FD2E-A9B9-461C-BCE9-D9668DF1****\\"\\n}","type":"json"}]',
],
'ListDataEventServices' => [
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '分页游标。用于请求下一页检索的结果。'."\n"
.'- 首次请求时置空。'."\n"
.'- 后续请求时传入上一次响应返回的`NextToken`值。', 'type' => 'string', 'required' => false, 'example' => 'VjE6dLbnNpVmbz06****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
.'- 取值范围:1~100。'."\n"
.'- 默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Data' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
'MaxResults' => ['description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'NextToken' => ['description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'],
'ServiceInfos' => [
'description' => '支持云产品及对应云产品数据事件集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EventNames' => [
'description' => '云产品支持数据事件集合。',
'type' => 'array',
'items' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'PutHybridMonitorMetricData'],
],
'ServiceName' => ['description' => '云产品名称。', 'type' => 'string', 'example' => 'Cms'],
],
'description' => '',
],
],
],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询数据事件支持服务与事件名称',
'summary' => '本接口用于查询数据事件支持的服务与事件名称。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDataEventServices',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"ServiceInfos\\": [\\n {\\n \\"EventNames\\": [\\n \\"PutHybridMonitorMetricData\\"\\n ],\\n \\"ServiceName\\": \\"Cms\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
],
'ListDeliveryHistoryJobs' => [
'summary' => '查询数据回补投递任务列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'],
],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '分页查询时设置的每页行数。'."\n"
."\n"
.'- 取值范围:1~100。'."\n"
.'- 默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'example' => '20', 'default' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => '任务列表的页码。'."\n"
."\n"
.'- 起始值:1。'."\n"
.'- 默认值:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '0', 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DeliveryHistoryJobs' => [
'description' => '投递历史事件任务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CreatedTime' => ['description' => '任务创建时间。', 'type' => 'string', 'example' => '2021-04-26T03:17:04Z'],
'EndTime' => ['description' => '任务结束时间。', 'type' => 'string', 'example' => '2021-04-26T03:22:04Z'],
'HomeRegion' => ['description' => 'Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'JobId' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '16602'],
'JobStatus' => ['description' => '任务状态。取值:'."\n"
."\n"
.'- 0:任务正在初始化。'."\n"
.'- 1:任务投递中。'."\n"
.'- 2:任务投递完成。'."\n"
.'- 3:任务投递失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'StartTime' => ['description' => '任务开始时间。', 'type' => 'string', 'example' => '2021-01-26T03:17:04Z'],
'TrailName' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'trail-name'],
'UpdatedTime' => ['description' => '任务更新时间。', 'type' => 'string', 'example' => '2021-04-26T03:20:08Z'],
],
'description' => '',
],
],
'PageNumber' => ['description' => '任务列表的页码。'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '分页查询时设置的每页行数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'B190816C-6DCA-4DC5-9B8E-EE0367B57CFF'],
'TotalCount' => ['description' => '任务数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
'description' => '',
],
],
],
'errorCodes' => [
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable. Please try again later.', 'description' => '系统暂时不可用,请稍后重试。'],
],
],
'title' => '获取数据回补投递任务',
'description' => '本文将提供一个示例,查询数据回补投递任务列表。返回结果显示有一条任务ID为`16602`的投递任务,它用来将跟踪`trail-name`的历史事件投递到日志服务SLS。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeliveryHistoryJobs'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDeliveryHistoryJobs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DeliveryHistoryJobs\\": [\\n {\\n \\"CreatedTime\\": \\"2021-04-26T03:17:04Z\\",\\n \\"EndTime\\": \\"2021-04-26T03:22:04Z\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"JobId\\": 16602,\\n \\"JobStatus\\": 2,\\n \\"StartTime\\": \\"2021-01-26T03:17:04Z\\",\\n \\"TrailName\\": \\"trail-name\\",\\n \\"UpdatedTime\\": \\"2021-04-26T03:20:08Z\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"B190816C-6DCA-4DC5-9B8E-EE0367B57CFF\\",\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'LookupEvents' => [
'summary' => '检索详细历史事件。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '用于请求下一页检索的结果。 '."\n"
."\n"
.'> 请求参数必须保证和上次请求一致。', 'type' => 'string', 'required' => false, 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。 '."\n"
.'取值范围:1~50。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => '检索事件的开始时间,日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
.'>StartTime和EndTime需同时设置或均不设置,不设置时StartTime默认为当前时间7天前的时间点。', 'type' => 'string', 'required' => false, 'example' => '2020-10-08T11:00:00Z'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => '检索事件的结束时间,日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
.'>StartTime和EndTime需同时设置或均不设置,不设置时EndTime默认为当前时间点。', 'type' => 'string', 'required' => false, 'example' => '2020-10-15T11:00:00Z'],
],
[
'name' => 'Direction',
'in' => 'query',
'schema' => ['description' => '检索事件的读取顺序,取值:'."\n"
."\n"
.'- FORWARD:正序。'."\n"
.'- BACKWARD(默认值):反序。', 'type' => 'string', 'required' => false, 'example' => 'BACKWARD'],
],
[
'name' => 'LookupAttribute',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '检索条件。'."\n"
.'> 一次只能指定一个或两个检索条件,参考[限制说明](~~2920829~~)。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => '检索条件的Key。取值请参见: [调用LookupEvents接口检索事件时如何设置LookupAttribute参数](~~2920829~~)', 'type' => 'string', 'required' => false, 'example' => 'ServiceName'],
'Value' => ['description' => '检索条件的Value。取值请参见: [调用LookupEvents接口检索事件时如何设置LookupAttribute参数](~~2920829~~)', 'type' => 'string', 'required' => false, 'example' => 'Ecs'],
],
'required' => false,
'description' => '',
],
'required' => false,
'maxItems' => 2,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EndTime' => ['description' => '检索到事件的结束时间。', 'type' => 'string', 'example' => '2020-07-22T14:00:00Z'],
'Events' => [
'description' => '检索到的事件列表。',
'type' => 'array',
'items' => ['description' => '检索到的事件列表。'."\n"
."\n"
.'关于事件列表中事件字段的说明,请参见[操作事件结构定义](~~28819~~)。', 'type' => 'object', 'example' => ' {'."\n"
.' "eventId": "6EEC3A76-C207-5075-889D-A909E62F****",'."\n"
.' "eventVersion": 1,'."\n"
.' "eventName": "GetTemplate"'."\n"
.' }'],
],
'NextToken' => ['description' => '返回下一页的检索结果。'."\n"
."\n"
.'> 若无更多结果,则不返回此字段。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'FD79665A-CE8B-49D4-82E6-5EE2E0E7****'],
'StartTime' => ['description' => '检索到事件的开始时间。', 'type' => 'string', 'example' => '2020-07-15T14:00:00Z'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidParameterCombination', 'errorMessage' => 'The end time must be later than the start time.', 'description' => '结束时间必须晚于开始时间。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
['errorCode' => 'InvalidParameterEndTime', 'errorMessage' => 'The specified EndTime is invalid.', 'description' => '无效的参数EndTime。'],
['errorCode' => 'InvalidParameterStartTime', 'errorMessage' => 'The specified StartTime is invalid.', 'description' => '无效的参数StartTime。'],
],
],
'title' => '检索详细事件',
'description' => '> 请勿频繁调用该接口。您可以创建跟踪,将事件投递到日志服务SLS,通过SLS的实时消费功能来近实时地检索事件。具体操作,请参见[创建单账号跟踪](~~28810~~)、[创建多账号跟踪](~~160661~~)和[实时消费](~~28997~~)。',
'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'LookupEvents'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:LookupEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2020-07-22T14:00:00Z\\",\\n \\"Events\\": [\\n {\\n \\"eventId\\": \\"6EEC3A76-C207-5075-889D-A909E62F****\\",\\n \\"eventVersion\\": 1,\\n \\"eventName\\": \\"GetTemplate\\"\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"FD79665A-CE8B-49D4-82E6-5EE2E0E7****\\",\\n \\"StartTime\\": \\"2020-07-15T14:00:00Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'LookupInsightEvents' => [
'summary' => '查询Insight事件。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => '分页游标。用于请求下一页检索的结果。'."\n"
."\n"
.'- 首次请求时置空。'."\n"
.'- 后续请求时传入上一次响应返回的`NextToken`值。', 'type' => 'string', 'required' => false, 'example' => 'VjE6dLbnNpVmbz06****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => '允许返回的最大结果数目。'."\n"
."\n"
.'- 取值范围:1~50(包含)。'."\n"
.'- 默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => '检索事件的开始时间,默认为当前时间7天前的时间点。'."\n"
."\n"
.'日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。'."\n"
."\n"
.'> - 若时间跨度小于93天,查询范围内的时间。跨度超过93天时,只查询93天的内容。', 'type' => 'string', 'required' => false, 'example' => '2026-01-07T04:10:00Z'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => '检索事件的结束时间,默认为当前时间点。'."\n"
."\n"
.'日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'required' => false, 'example' => '2026-01-07T07:10:00Z'],
],
[
'name' => 'LookupAttribute',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '检索条件数组。'."\n"
."\n"
.'> - 一次只能指定一个或两个检索条件,参考[限制说明](~~3011147~~)。',
'type' => 'array',
'items' => [
'description' => '检索条件。',
'type' => 'object',
'properties' => [
'Key' => ['description' => '检索条件的 Key。取值请参见: [调用LookupInsightEvents接口检索Insights事件时如何设置LookupAttribute参数](~~3011147~~)。', 'type' => 'string', 'required' => false, 'example' => 'InsightType'],
'Value' => ['description' => '检索条件的 Value。取值请参见: [调用LookupInsightEvents接口检索Insights事件时如何设置LookupAttribute参数](~~3011147~~)。', 'type' => 'string', 'required' => false, 'example' => 'IpInsight'],
],
'required' => false,
],
'required' => false,
'maxItems' => 2,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'Events' => [
'description' => 'Insight事件对象列表。',
'type' => 'array',
'items' => ['description' => 'Insight事件对象。', 'type' => 'object', 'example' => '{'."\n"
.' "eventId": "408ACD94-4531-4D66-BA14-1F7248AC****",'."\n"
.' "eventCategory": "Insight",'."\n"
.' "sharedEventId": "55CF0739-97D8-4221-A6BE-8E60E746****",'."\n"
.' "eventVersion": "1",'."\n"
.' "eventTime": "2026-01-07T05:40:00Z",'."\n"
.' "insightDetails": {'."\n"
.' "insightContext": {'."\n"
.' "attributions": ['."\n"
.' {'."\n"
.' "insight": ['."\n"
.' {'."\n"
.' "average": 3,'."\n"
.' "value": "AlibabaCloud API Workbench"'."\n"
.' }'."\n"
.' ],'."\n"
.' "attribute": "userAgent"'."\n"
.' },'."\n"
.' {'."\n"
.' "insight": ['."\n"
.' {'."\n"
.' "average": 3,'."\n"
.' "value": "20376656170607****"'."\n"
.' }'."\n"
.' ],'."\n"
.' "attribute": "principalId"'."\n"
.' },'."\n"
.' {'."\n"
.' "insight": ['."\n"
.' {'."\n"
.' "average": 3,'."\n"
.' "value": "Actiontrail/EnableInsight"'."\n"
.' }'."\n"
.' ],'."\n"
.' "attribute": "apiRelated"'."\n"
.' },'."\n"
.' {'."\n"
.' "insight": ['."\n"
.' {'."\n"
.' "average": 3,'."\n"
.' "value": "null"'."\n"
.' }'."\n"
.' ],'."\n"
.' "attribute": "errorCode"'."\n"
.' }'."\n"
.' ],'."\n"
.' "statistics": {'."\n"
.' "insight": {'."\n"
.' "average": 3,'."\n"
.' "predict": 0'."\n"
.' },'."\n"
.' "insightDuration": 1,'."\n"
.' "baseline": {'."\n"
.' "threshold": 0.6'."\n"
.' },'."\n"
.' "insightCount": 3'."\n"
.' }'."\n"
.' },'."\n"
.' "state": "Start",'."\n"
.' "insightType": "IpInsight",'."\n"
.' "insightObject": "xxx.xxx.xxx.xxx"'."\n"
.' },'."\n"
.' "acsRegion": "cn-qingdao",'."\n"
.' "eventType": "ActionTrailInsight"'."\n"
.'}'],
],
'NextToken' => ['description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidParameterCombination', 'errorMessage' => 'The end time must be later than the start time.', 'description' => '结束时间必须晚于开始时间。'],
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => 'The specified query parameter is invalid.', 'description' => '无效的查询参数。'],
['errorCode' => 'InvalidParameterDateOutOfRange', 'errorMessage' => 'Query time range exceeds 30 days.', 'description' => '查询时间范围超出30天。'],
['errorCode' => 'InvalidParameterEndTime', 'errorMessage' => 'The specified EndTime is invalid.', 'description' => '无效的参数EndTime。'],
['errorCode' => 'InvalidParameterStartTime', 'errorMessage' => 'The specified StartTime is invalid.', 'description' => '无效的参数StartTime。'],
['errorCode' => 'InvalidParameterStartTimeExceedsCurrent', 'errorMessage' => 'The StartTime exceeds the current time. Use GMT time format for queries.', 'description' => '开始时间超过当前时间,请使用标准GMT时间查询。'],
['errorCode' => 'InvalidParameterStartTimeOutOfDate', 'errorMessage' => 'The StartTime exceeds the limit of 90 days.', 'description' => '开始时间超出90天限制。'],
['errorCode' => 'InvalidTimeRangeException', 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.', 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。'],
],
],
'title' => '查询洞察事件',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Events\\": [\\n {\\n \\"eventId\\": \\"408ACD94-4531-4D66-BA14-1F7248AC****\\",\\n \\"eventCategory\\": \\"Insight\\",\\n \\"sharedEventId\\": \\"55CF0739-97D8-4221-A6BE-8E60E746****\\",\\n \\"eventVersion\\": \\"1\\",\\n \\"eventTime\\": \\"2026-01-07T05:40:00Z\\",\\n \\"insightDetails\\": {\\n \\"insightContext\\": {\\n \\"attributions\\": [\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"AlibabaCloud API Workbench\\"\\n }\\n ],\\n \\"attribute\\": \\"userAgent\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"20376656170607****\\"\\n }\\n ],\\n \\"attribute\\": \\"principalId\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"Actiontrail/EnableInsight\\"\\n }\\n ],\\n \\"attribute\\": \\"apiRelated\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"null\\"\\n }\\n ],\\n \\"attribute\\": \\"errorCode\\"\\n }\\n ],\\n \\"statistics\\": {\\n \\"insight\\": {\\n \\"average\\": 3,\\n \\"predict\\": 0\\n },\\n \\"insightDuration\\": 1,\\n \\"baseline\\": {\\n \\"threshold\\": 0.6\\n },\\n \\"insightCount\\": 3\\n }\\n },\\n \\"state\\": \\"Start\\",\\n \\"insightType\\": \\"IpInsight\\",\\n \\"insightObject\\": \\"xxx.xxx.xxx.xxx\\"\\n },\\n \\"acsRegion\\": \\"cn-qingdao\\",\\n \\"eventType\\": \\"ActionTrailInsight\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
],
'PutDataEventSelector' => [
'summary' => '本接口用于创建或设置数据事件选择器。请注意:如要使用本接口创建数据事件选择器,必须保证跟踪名称存在。如不存在,请先调用CreateTrail接口创建跟踪。',
'path' => '',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'],
],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'],
],
[
'name' => 'EventSelectors',
'in' => 'query',
'schema' => ['description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
."\n"
.'json数组中每个元素字段说明:'."\n"
."\n"
.'- `ServiceName`:支持的数据事件云产品名称'."\n"
.'- `ReadWriteType`: Read、Write、All'."\n"
.'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
."\n"
.' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
."\n"
.' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
."\n"
.' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
."\n"
.'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
."\n"
.' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`', 'type' => 'string', 'required' => true, 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]'],
],
[
'name' => 'IsTrailAllRegion',
'in' => 'query',
'schema' => ['description' => '是否跟踪所有地域。默认值为:`false`。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'TrailRegionIds',
'in' => 'query',
'schema' => ['description' => '跟踪地域列表,逗号分隔。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai,cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'DataEventSelectors' => ['description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
."\n"
.'json数组中每个元素字段说明:'."\n"
."\n"
.'- `ServiceName`:支持的数据事件云产品名称'."\n"
.'- `ReadWriteType`: Read、Write、All'."\n"
.'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
."\n"
.' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
."\n"
.' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
."\n"
.' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
."\n"
.'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
."\n"
.' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`', 'type' => 'string', 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '243E1250-32DA-493B-9347-3C7EEE07****'],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '设置数据事件选择器',
'requestParamsDescription' => '- `EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。'."\n"
.'- 如缺省`IsTrailAllRegion`参数或将其设置为`false`,则该参数为必填项。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:PutDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataEventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"RequestId\\": \\"243E1250-32DA-493B-9347-3C7EEE07****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
],
'PutInsightSelectors' => [
'summary' => '设置跟踪需投递的InsightTypes。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'],
],
'parameters' => [
[
'name' => 'TrailName',
'in' => 'query',
'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-name'],
],
[
'name' => 'InsightSelectors',
'in' => 'query',
'schema' => ['description' => 'Insight事件类型(JSON格式)数组。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"insightType":"AkInsight"},{"insightType":"IpInsight"}]'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'InsightSelectors' => [
'description' => 'Insight事件类型数组。',
'type' => 'array',
'items' => ['description' => 'Insight事件类型(JSON格式)。', 'type' => 'string', 'example' => '{"insightType":"AkInsight"}'],
],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****'],
'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InsightSelectorDoesNotExistException', 'errorMessage' => 'The special Selector is not existed.', 'description' => ''],
],
],
'title' => '设置洞察选择器',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
],
'StartLogging' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '要启用的跟踪名称。'."\n"
."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '启用跟踪',
'summary' => '启用跟踪,开始将操作审计事件投递到 OSS 或 SLS 或 MaxCompute。',
'description' => '本文将提供一个示例,启用名为`trail-test`的跟踪。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartLogging'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:StartLogging',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'StopLogging' => [
'summary' => '停止跟踪,停止将操作审计事件投递到 OSS 或 SLS 或 MaxCompute。',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '要禁用的跟踪名称。'."\n"
."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1C488B66-B819-4D14-8711-C4EAAA13AC01'],
],
'description' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
],
],
'title' => '禁用跟踪',
'description' => '本文将提供一个示例,禁用名为`trail-test`的跟踪。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopLogging'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:StopLogging',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1C488B66-B819-4D14-8711-C4EAAA13AC01\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'UpdateAdvancedQueryTemplate' => [
'summary' => '更新高级查询模板。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****'],
],
[
'name' => 'TemplateName',
'in' => 'query',
'schema' => ['description' => '模板名称最大长度64。', 'type' => 'string', 'required' => false, 'example' => 'example-template'],
],
[
'name' => 'TemplateSql',
'in' => 'query',
'schema' => ['description' => '模版查询语句。', 'type' => 'string', 'required' => false, 'example' => 'event.eventName: ConsoleSignin AND event.userIdentity.type: root-account'],
],
[
'name' => 'SimpleQuery',
'in' => 'query',
'schema' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'required' => true, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'],
'SimpleQuery' => ['description' => '是否开启简单查询模式。', 'type' => 'string', 'example' => 'true'],
'TemplateId' => ['description' => '模板ID。', 'type' => 'string', 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****'],
'TemplateName' => ['description' => '模板名称最大长度64。', 'type' => 'string', 'example' => 'example-template'],
'TemplateSql' => ['description' => '模版查询语句。', 'type' => 'string', 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *'],
],
'description' => '',
],
],
],
'title' => '更新高级查询模板',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"SimpleQuery\\": \\"true\\",\\n \\"TemplateId\\": \\"utpl-QNL3dpYkQcyjZxrIQC****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
],
'UpdateGlobalEventsStorageRegion' => [
'summary' => '设置全局事件存储地域。',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREactiontrail321LUI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'StorageRegion',
'in' => 'query',
'schema' => [
'description' => '全局事件存储地域。',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['ap-southeast-1' => 'ap-southeast-1', 'cn-hangzhou' => 'cn-hangzhou'],
'example' => 'ap-southeast-1',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D7A0694E-C8FE-574E-92E3-63C5B5D23BD4'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '设置全局事件存储地域',
'description' => '默认您的全局事件存储在<props="china">华东1(杭州)</props>'."\n"
.'<props="intl">新加坡</props>。'."\n"
."\n"
.'- 您需要通过提交工单,获取该接口的使用权限。'."\n"
.'- 当前仅支持设置为华东1(杭州)(cn-hangzhou)或新加坡(ap-southeast-1)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGlobalEventsStorageRegion'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7A0694E-C8FE-574E-92E3-63C5B5D23BD4\\"\\n}","type":"json"}]',
],
'UpdateTrail' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '要更新的跟踪名称。'."\n"
."\n"
.'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
."\n"
.'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'],
],
[
'name' => 'OssBucketName',
'in' => 'query',
'schema' => ['description' => '跟踪投递的OSS存储空间名称。'."\n"
."\n"
.'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。'."\n"
."\n"
.'> 更新时必须确保该存储空间已经存在。', 'type' => 'string', 'required' => false, 'example' => 'audit-log'],
],
[
'name' => 'OssKeyPrefix',
'in' => 'query',
'schema' => ['description' => '跟踪投递的OSS存储空间文件名的前缀。'."\n"
."\n"
.'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。', 'type' => 'string', 'required' => false, 'example' => 'at-product-account-audit-B'],
],
[
'name' => 'OssWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
],
[
'name' => 'SlsProjectArn',
'in' => 'query',
'schema' => ['description' => '跟踪投递的日志服务项目的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project'],
],
[
'name' => 'SlsWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
],
[
'name' => 'EventRW',
'in' => 'query',
'schema' => ['description' => '投递事件的读写类型,取值:'."\n"
.'- Write(默认值):写类型。'."\n"
.'- Read:读类型。'."\n"
.'- All:读类型和写类型。', 'type' => 'string', 'required' => false, 'example' => 'All'],
],
[
'name' => 'TrailRegion',
'in' => 'query',
'schema' => ['description' => '跟踪的地域。'."\n"
.' '."\n"
.'- 默认值为All,表示跟踪全部地域的事件。 '."\n"
."\n"
.'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~213597~~)接口查询。', 'type' => 'string', 'required' => false, 'example' => 'All'],
],
[
'name' => 'MaxComputeProjectArn',
'in' => 'query',
'schema' => ['description' => '跟踪投递的大数据计算服务项目的ARN。'."\n"
."\n"
.'> MaxComputeProjectArn中指定的大数据计算服务项目名称必须以actiontrail_作为前缀。', 'type' => 'string', 'required' => false, 'example' => 'acs:odps:cn-hangzhou:、151277687691****:project/actiontrail_****'],
],
[
'name' => 'MaxComputeWriteRoleArn',
'in' => 'query',
'schema' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
."\n"
.'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
.'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151277687691****:role/aliyunserviceroleforactiontrail'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EventRW' => ['description' => '投递事件的读写类型。', 'type' => 'string', 'example' => 'Write'],
'HomeRegion' => ['description' => '跟踪的Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'MaxComputeProjectArn' => ['description' => '跟踪投递的大数据计算服务项目的ARN。', 'type' => 'string', 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****'],
'MaxComputeWriteRoleArn' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'Name' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'trail-test'],
'OssBucketName' => ['description' => 'OSS存储空间名称。', 'type' => 'string', 'example' => 'audit-log'],
'OssKeyPrefix' => ['description' => 'OSS存储空间文件名的前缀。', 'type' => 'string', 'example' => 'at-product-account-audit-B'],
'OssWriteRoleArn' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '2599A180-5236-44D8-9490-50B6F4F8BA35'],
'SlsProjectArn' => ['description' => '跟踪投递的日志服务项目的ARN。', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project'],
'SlsWriteRoleArn' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'],
'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'All'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'RepeatOssBucket', 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.', 'description' => ''],
['errorCode' => 'SlsProjectDoesNotExistException', 'errorMessage' => 'The specified Log Service project does not exist.', 'description' => ''],
['errorCode' => 'IncompleteSignature', 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.', 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['errorCode' => 'InvalidDeliveryConfigurationException', 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.', 'description' => ''],
['errorCode' => 'InvalidPrefixException', 'errorMessage' => 'The specified OSS bucket prefix is invalid.', 'description' => '指定的OSS前缀无效。'],
],
403 => [
['errorCode' => 'InsufficientBucketPolicyException', 'errorMessage' => 'Access to the specified OSS bucket was denied.', 'description' => ''],
['errorCode' => 'InsufficientSlsPolicyException', 'errorMessage' => 'Access to the specified Log Service project was denied.', 'description' => '无法访问指定的SLS Project。'],
],
[
['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'],
['errorCode' => 'BucketDoesNotExistException', 'errorMessage' => 'The specified OSS bucket does not exist.', 'description' => ''],
],
],
'title' => '更新跟踪',
'summary' => '调整操作审计跟踪的配置信息。',
'description' => '本文将提供一个示例,将跟踪`trail-test`投递的OSS存储空间更新为`audit-log`。',
'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrail'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EventRW\\": \\"Write\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Name\\": \\"trail-test\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"RequestId\\": \\"2599A180-5236-44D8-9490-50B6F4F8BA35\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:151266687691****:project/test-project\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
],
'endpoints' => [
['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'actiontrail.cn-wulanchabu.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-wulanchabu.aliyuncs.com'],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-beijing.aliyuncs.com', 'endpoint' => 'actiontrail.cn-beijing.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-qingdao.aliyuncs.com', 'endpoint' => 'actiontrail.cn-qingdao.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-qingdao.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-shanghai.aliyuncs.com', 'endpoint' => 'actiontrail.cn-shanghai.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-hongkong.aliyuncs.com', 'endpoint' => 'actiontrail.cn-hongkong.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-heyuan', 'regionName' => '华南2(河源)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-heyuan.aliyuncs.com', 'endpoint' => 'actiontrail.cn-heyuan.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-heyuan.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'actiontrail.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-shenzhen.aliyuncs.com', 'endpoint' => 'actiontrail.cn-shenzhen.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-nanjing', 'regionName' => '华东5(南京-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-nanjing.aliyuncs.com', 'endpoint' => 'actiontrail.cn-nanjing.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-nanjing.aliyuncs.com'],
['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-northeast-2.aliyuncs.com', 'endpoint' => 'actiontrail.ap-northeast-2.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-northeast-2.aliyuncs.com'],
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-northeast-1.aliyuncs.com', 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-northeast-1.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-chengdu.aliyuncs.com', 'endpoint' => 'actiontrail.cn-chengdu.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-chengdu.aliyuncs.com'],
['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-guangzhou.aliyuncs.com', 'endpoint' => 'actiontrail.cn-guangzhou.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-guangzhou.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-southeast-1.aliyuncs.com', 'endpoint' => 'actiontrail.ap-southeast-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-southeast-3.aliyuncs.com', 'endpoint' => 'actiontrail.ap-southeast-3.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-southeast-3.aliyuncs.com'],
['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-huhehaote.aliyuncs.com', 'endpoint' => 'actiontrail.cn-huhehaote.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-huhehaote.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-southeast-5.aliyuncs.com', 'endpoint' => 'actiontrail.ap-southeast-5.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-southeast-5.aliyuncs.com'],
['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.ap-southeast-7.aliyuncs.com', 'endpoint' => 'actiontrail.ap-southeast-7.aliyuncs.com', 'vpc' => 'actiontrail-vpc.ap-southeast-7.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'actiontrail.cn-hangzhou.aliyuncs.com', 'endpoint' => 'actiontrail.cn-hangzhou.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'actiontrail.us-east-1.aliyuncs.com', 'endpoint' => 'actiontrail.us-east-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'actiontrail.eu-west-1.aliyuncs.com', 'endpoint' => 'actiontrail.eu-west-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.eu-west-1.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'actiontrail.us-west-1.aliyuncs.com', 'endpoint' => 'actiontrail.us-west-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.us-west-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'actiontrail.eu-central-1.aliyuncs.com', 'endpoint' => 'actiontrail.eu-central-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'na-south-1', 'regionName' => '墨西哥', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'actiontrail.na-south-1.aliyuncs.com', 'endpoint' => 'actiontrail.na-south-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.na-south-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'actiontrail.me-east-1.aliyuncs.com', 'endpoint' => 'actiontrail.me-east-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.me-east-1.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'regionName' => '北京政务云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com', 'vpc' => 'actiontrail-vpc.cn-north-2-gov-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'AnalysisTimeRangeExceeded', 'message' => 'The time range between StartTime and EndTime cannot exceed 7 days.', 'http_code' => 400, 'description' => 'StartTime 和 EndTime 之间的时间范围不能超过 7 天。'],
['code' => 'BucketDoesNotExistException', 'message' => 'The specified OSS Bucket does not exist.', 'http_code' => 404, 'description' => '指定的OSS Bucket不存在。'],
['code' => 'CreateLogStoreError', 'message' => 'Failed to create or update the logstore.', 'http_code' => 400, 'description' => '创建或更新logstore失败。'],
['code' => 'DeliveryHistoryJobNotFound', 'message' => 'The special DeliveryHistoryJob is not found', 'http_code' => 404, 'description' => '没有找到对应的历史投递任务'],
['code' => 'ForbiddenDeleteTrail', 'message' => 'This Trail has a running deliveryHistoryJob. Please remove the deliveryHistoryJob before deleting it.', 'http_code' => 400, 'description' => '该跟踪正在执行历史投递任务。请先删除历史投递任务。'],
['code' => 'IncompleteSignature', 'message' => 'The request signature does not conform to Alibaba Cloud standards.', 'http_code' => 400, 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。'],
['code' => 'InsightTypeNotValid', 'message' => 'The input insightType is not valid', 'http_code' => 400, 'description' => '用户输入的参数不合法'],
['code' => 'InsufficientBucketPolicyException', 'message' => 'Access to the specified OSS Bucket was denied.', 'http_code' => 403, 'description' => '无法访问指定的OSS Bucket。'],
['code' => 'InsufficientSlsPolicyException', 'message' => 'Access to the specified Log Service project was denied.', 'http_code' => 403, 'description' => '无法访问指定的SLS Project。'],
['code' => 'InternalError', 'message' => 'An error occurred while processing your request. Please try again. If the problem still exists, submit a ticket.', 'http_code' => 500, 'description' => '内部错误,请重试。如果多次尝试失败,请提交工单。'],
['code' => 'InternalFailure', 'message' => 'The request has failed due to a temporary failure of the server', 'http_code' => 500, 'description' => '请求失败'],
['code' => 'InternalServerError', 'message' => 'The target server failed to respond', 'http_code' => 500, 'description' => '目标服务器未响应'],
['code' => 'InvalidAcceptLanguage', 'message' => 'Only Chinese (zh-CN), English (en-US) are allowed.', 'http_code' => 400, 'description' => '您选择的语言类型无效,现在只支持中文、英语'],
['code' => 'InvalidAction', 'message' => 'The specified Action is invalid.', 'http_code' => 404, 'description' => '指定的Action无效。'],
['code' => 'InvalidDeliveryConfigurationException', 'message' => 'You must specify at least one Log Service Project or OSS Bucket for a Trail.', 'http_code' => 400, 'description' => '跟踪至少指定一个投递的SLS Project或OSS Bucket。'],
['code' => 'InvalidLookupAttributesException', 'message' => 'LookupAttribute Key is not valid. Only support specific values or combinations.', 'http_code' => 400, 'description' => '检索条件的Key设置不正确。仅支持设置指定的检索条件或组合。'],
['code' => 'InvalidNextToken', 'message' => 'NextToken is not valid.', 'http_code' => 400, 'description' => 'NextToken不合法。'],
['code' => 'InvalidParameterCombination', 'message' => 'The end time must be later than the start time.', 'http_code' => 400, 'description' => '结束时间必须晚于开始时间。'],
['code' => 'InvalidParameterDateOutOfRange', 'message' => 'Query time range exceeds 30 days.', 'http_code' => 400, 'description' => '查询时间范围超出30天。'],
['code' => 'InvalidParameterEndTime', 'message' => 'The specified EndTime is invalid.', 'http_code' => 400, 'description' => '无效的参数EndTime。'],
['code' => 'InvalidParameterStartTime', 'message' => 'The specified StartTime is invalid.', 'http_code' => 400, 'description' => '无效的参数StartTime。'],
['code' => 'InvalidParameterStartTimeExceedsCurrent', 'message' => 'The StartTime exceeds the current time. Use GMT time format for queries.', 'http_code' => 400, 'description' => '开始时间超过当前时间,请使用标准GMT时间查询。'],
['code' => 'InvalidParameterStartTimeOutOfDate', 'message' => 'The StartTime exceeds the limit of 90 days.', 'http_code' => 400, 'description' => '开始时间超出90天限制。'],
['code' => 'InvalidParameterValue', 'message' => 'The specified parameter is invalid.', 'http_code' => 400, 'description' => '参数不合法。'],
['code' => 'InvalidPrefixException', 'message' => 'The specified OSS bucket prefix is invalid.', 'http_code' => 400, 'description' => '指定的OSS前缀无效。'],
['code' => 'InvalidQueryParameter', 'message' => 'The specified query parameter is invalid.', 'http_code' => 400, 'description' => '无效的查询参数。'],
['code' => 'InvalidTimeRangeException', 'message' => 'The end time must be later than the start time. The time span cannot exceed 30 days.', 'http_code' => 400, 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。'],
['code' => 'InvalidTrailNameException', 'message' => 'The specified Trail name is invalid.', 'http_code' => 400, 'description' => '跟踪名称无效,请修改。'],
['code' => 'LogServiceException', 'message' => 'RequestError Web request failed.', 'http_code' => 400, 'description' => '请求SLS服务失败。'],
['code' => 'LookupEventsParameterError', 'message' => 'LookupEvents params error.', 'http_code' => 400, 'description' => 'LookupEvents请求参数错误。'],
['code' => 'MaximumNumberOfDeliveryHistoryJobsExceededException', 'message' => 'There can only be one running deliveryHistoryJob', 'http_code' => 400, 'description' => '最多只能有一个正在执行的历史投递任务'],
['code' => 'MaximumNumberOfOrganizationTrailExceeded', 'message' => 'Your account can create only one organization trail.', 'http_code' => 400, 'description' => '您的账号只能创建一个多账号跟踪。'],
['code' => 'MaximumNumberOfTrailsExceededException', 'message' => 'The number of Trails in the same region exceeds the upper limit (5).', 'http_code' => 403, 'description' => ' 同一地域最多可以创建5个跟踪。'],
['code' => 'NeedOssRamAuthorize', 'message' => 'The role not exists', 'http_code' => 403, 'description' => '角色不存在'],
['code' => 'NeedServiceLinkedRole', 'message' => 'The role not exists: acs:ram::[accountid]:role/aliyunserviceroleforactiontrail.', 'http_code' => 403, 'description' => '缺少操作审计服务关联角色。'],
['code' => 'NeedSlsRamAuthorize', 'message' => 'The role not exists', 'http_code' => 403, 'description' => '角色不存在'],
['code' => 'NoPermission', 'message' => 'You are not authorized to perform this operation. Please apply for access in RAM first.', 'http_code' => 403, 'description' => '无权执行该操作,请您先在RAM中申请授权,再进行此操作。'],
['code' => 'NotAllowCreateOrganizationTrail', 'message' => 'Your account does not allow you to create organization trail. Submit a ticket to get customer support.', 'http_code' => 400, 'description' => '您的账号不允许创建多账号跟踪,请提交工单联系客户支持。'],
['code' => 'NotSupportDeliveryHistoryJob', 'message' => 'Your account does not allow you to use deliveryHistoryJob feature. Submit a ticket to get customer support.', 'http_code' => 400, 'description' => '您的帐号目前不能使用投递历史任务功能,请提交工单申请开通。'],
['code' => 'RepeatOssBucket', 'message' => 'The specified OSS Bucket is already in use. We recommend that you modify the existing Trail or specify another Bucket.', 'http_code' => 400, 'description' => '当前指定的OSS Bucket已经被使用,建议您修改之前的跟踪或指定新的Bucket。'],
['code' => 'ServiceTrailNotExist', 'message' => 'This account serviceTrail not existed.', 'http_code' => 400, 'description' => '账号下指定的服务跟踪不存在。'],
['code' => 'ServiceUnavailable', 'message' => 'The service is unavailable. Please try again later.', 'http_code' => 503, 'description' => '系统暂时不可用,请稍后重试。'],
['code' => 'SlsLogStoreDoesNotExistException', 'message' => 'LogStoreDoesNotExist.', 'http_code' => 404, 'description' => '指定的Logstore不存在。'],
['code' => 'SlsProjectDoesNotExistException', 'message' => 'The specified Log Service Project does not exist.', 'http_code' => 400, 'description' => '当前指定的SLS Project 不存在。'],
['code' => 'TrailAlreadyExistsException', 'message' => 'The specified Trail name already exists.', 'http_code' => 400, 'description' => '您输入的跟踪名称已存在,如需创建新跟踪请修改跟踪名称。'],
['code' => 'TrailNotFoundException', 'message' => 'The specified Trail does not exist.', 'http_code' => 404, 'description' => '指定的跟踪不存在。'],
['code' => 'TrailNotValid', 'message' => 'The special Trail is not valid.', 'http_code' => 400, 'description' => '不支持的跟踪。'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopLogging'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrail'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrail'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTrails'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetGlobalEventsStorageRegion'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrailStatus'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedResources'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeliveryHistoryJob'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedProducts'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedInfo'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartLogging'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeliveryHistoryJob'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrail'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGlobalEventsStorageRegion'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableInsight'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedIps'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeliveryHistoryJobs'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeRegions'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'LookupEvents'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeliveryHistoryJob'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedEvents'],
],
],
'ram' => [
'productCode' => 'ActionTrail',
'productName' => '操作审计',
'ramCodes' => ['actiontrail'],
'ramLevel' => '操作级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'GetAccessKeyLastUsedResources',
'description' => '查询指定AccessKey的最后使用的资源记录',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedResources',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'EnableInsight',
'description' => '开启审计事件洞察',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:EnableInsight',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDeliveryHistoryJobs',
'description' => '获取数据回补投递任务',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDeliveryHistoryJobs',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'],
],
],
],
[
'apiName' => 'GetGlobalEventsStorageRegion',
'description' => '查询全局事件存储地域',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetGlobalEventsStorageRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'],
],
],
],
[
'apiName' => 'GetTrailStatus',
'description' => '查询跟踪状态',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetTrailStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'CreateDeliveryHistoryJob',
'description' => '创建数据回补投递任务',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'],
],
],
],
[
'apiName' => 'GetGovernanceMetrics',
'description' => '查询操作审计成熟度',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetGovernanceMetrics',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetInsightsEventsCount',
'description' => '获取洞察事件数量',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetInsightsEventsCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateTrail',
'description' => '更新跟踪',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'LookupInsightEvents',
'description' => '查询洞察事件',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:LookupInsightEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'StopLogging',
'description' => '禁用跟踪',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:StopLogging',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'StartLogging',
'description' => '启用跟踪',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:StartLogging',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'DescribeUserLogCount',
'description' => '查询用户时间段内每日日志量',
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DescribeUserLogCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateTrail',
'description' => '创建跟踪',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
[
'apiName' => 'ListDataEventServices',
'description' => '查询数据事件支持服务与事件名称',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDataEventServices',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeUserAlertCount',
'description' => '查询用户时间段内每日告警量',
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DescribeUserAlertCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateAdvancedQueryTemplate',
'description' => '创建高级查询模板',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'],
],
],
],
[
'apiName' => 'PutDataEventSelector',
'description' => '设置数据事件选择器',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:PutDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'GetInsightSelectors',
'description' => '获取洞察选择器',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetInsightSelectors',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeAdvancedQueryTemplate',
'description' => '查询高级查询模板',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'],
],
],
],
[
'apiName' => 'DeleteAdvancedQueryTemplate',
'description' => '删除高级查询模板',
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
[
'apiName' => 'GetAdvancedQueryTemplate',
'description' => '获取单个高级模版信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
[
'apiName' => 'DescribeUserTrailCount',
'description' => '查询用户跟踪数量',
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DescribeUserTrailCount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeScenes',
'description' => '查询高级查询场景',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeScenes',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeTrailDeliveryMetricData',
'description' => '获取投递监控指标',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:DescribeTrailDeliveryMetricData',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDataEventSelectors',
'description' => '列举所有数据事件选择器',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:ListDataEventSelectors',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
[
'apiName' => 'UpdateAdvancedQueryTemplate',
'description' => '更新高级查询模板',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
],
],
],
[
'apiName' => 'DescribeAdvancedQueryHistory',
'description' => '查询高级查询历史',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAccessKeyLastUsedProducts',
'description' => '查询指定AccessKey的最后使用的云服务记录',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetDataEventSelector',
'description' => '获取数据事件选择器',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'LookupEvents',
'description' => '检索详细事件',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:LookupEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeResourceLifeCycleEvents',
'description' => '查询资源生命周期事件',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAccessKeyLastUsedIps',
'description' => '查询指定AccessKey的最后使用的IP记录',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedIps',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetDeliveryHistoryJob',
'description' => '查询数据回补投递任务详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'],
],
],
],
[
'apiName' => 'DeleteDeliveryHistoryJob',
'description' => '删除数据回补投递任务',
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteDeliveryHistoryJob',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'],
],
],
],
[
'apiName' => 'PutInsightSelectors',
'description' => '设置洞察选择器',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:PutInsightSelectors',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAccessKeyLastUsedInfo',
'description' => '查询指定AccessKey的最后使用记录',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeSearchTemplates',
'description' => '查询高级查询系统模板',
'operationType' => 'list',
'additionalActions' => [],
'ramAction' => [
'action' => 'actiontrail:DescribeSearchTemplates',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAccessKeyLastUsedEvents',
'description' => '查询指定AccessKey的最后使用的事件记录',
'operationType' => 'list',
'ramAction' => [
'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteDataEventSelector',
'description' => '删除数据事件选择器',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:DeleteDataEventSelector',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'DeleteAdvancedQueryHistory',
'description' => '删除高级查询历史',
'operationType' => 'delete',
'additionalActions' => [],
'ramAction' => [
'action' => 'actiontrail:DeleteAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DisableInsight',
'description' => '关闭审计事件洞察',
'operationType' => 'none',
'ramAction' => [
'action' => 'actiontrail:DisableInsight',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeTrails',
'description' => '查询某地域的跟踪列表',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:DescribeTrails',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
],
],
],
[
'apiName' => 'CreateAdvancedQueryHistory',
'description' => '创建高级查询历史',
'operationType' => 'create',
'ramAction' => [
'action' => 'actiontrail:CreateAdvancedQueryHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateGlobalEventsStorageRegion',
'description' => '设置全局事件存储地域',
'operationType' => 'update',
'ramAction' => [
'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'],
],
],
],
[
'apiName' => 'DeleteTrail',
'description' => '删除跟踪',
'operationType' => 'delete',
'ramAction' => [
'action' => 'actiontrail:DeleteTrail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
],
],
],
[
'apiName' => 'GetInsightTypes',
'description' => '获取审计事件洞察类型',
'operationType' => 'get',
'ramAction' => [
'action' => 'actiontrail:GetInsightTypes',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'],
['validationType' => 'always', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'],
['validationType' => 'always', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'],
['validationType' => 'always', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'],
['validationType' => 'always', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'],
['validationType' => 'always', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'],
['validationType' => 'always', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'],
],
],
];
|