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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'governance', 'version' => '2021-01-20'],
'directories' => [
[
'children' => ['EnrollAccount', 'BatchEnrollAccounts', 'ListEnrolledAccounts', 'GetEnrolledAccount', 'GetAccountFactoryBaseline', 'ListAccountFactoryBaselines', 'CreateAccountFactoryBaseline', 'DeleteAccountFactoryBaseline', 'ListAccountFactoryBaselineItems', 'UpdateAccountFactoryBaseline'],
'type' => 'directory',
'title' => 'Account factory',
],
[
'children' => ['RunEvaluation', 'ListEvaluationMetadata', 'ListEvaluationScoreHistory', 'ListEvaluationMetricDetails', 'ListEvaluationResults', 'GenerateEvaluationReport'],
'type' => 'directory',
'title' => 'Governance maturity detection',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'BatchEnrollAccounts' => [
'summary' => 'Applies an account baseline to multiple existing resource accounts at a time.',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceUXLQGP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Accounts',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The resource accounts.',
'type' => 'array',
'items' => [
'description' => 'The information about the resource account.',
'type' => 'object',
'properties' => [
'AccountUid' => ['description' => 'The ID of the account to enroll. This parameter is required.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12868156179****'."\n", 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'BaselineItems',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The baseline items.'."\n"
."\n"
.'If you specify this parameter, the baseline item configurations are merged with the configurations of the baseline specified by `BaselineId`. For duplicate baseline items, the configurations in this parameter take precedence. We recommend that you leave this parameter empty and use `BaselineId` to apply baseline configurations.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the baseline item.',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configurations of the baseline item.', 'type' => 'string', 'required' => false, 'example' => '{"Notifications":[{"GroupKey":"account_msg","Contacts":[{"Name":"aa"}],"PmsgStatus":1,"EmailStatus":1,"SmsStatus":1}]}', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'required' => false, 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Skip' => ['description' => 'Specifies whether to skip the baseline item. Valid values:'."\n"
."\n"
.'- false (default): does not skip the baseline item.'."\n"
."\n"
.'- true: skips the baseline item.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'required' => false, 'example' => '1.0'."\n", 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'BaselineId',
'in' => 'query',
'schema' => ['description' => 'The ID of the baseline. If you leave this parameter empty, the default baseline is used.', 'type' => 'string', 'required' => false, 'example' => 'afb-bp1durvn3lgqe28v****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<Void>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => '16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'BatchEnrollAccounts',
'description' => 'Applies an account baseline to multiple existing resource accounts at a time.'."\n"
."\n"
.'Account enrollment is an asynchronous process. After the accounts are enrolled, the account factory baseline is applied to each account. To query the enrollment details and check the baseline application result, call [GetEnrolledAccount](~~609062~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchEnrollAccounts'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'governance:BatchEnrollAccounts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1\\"\\n}","type":"json"}]',
],
'CreateAccountFactoryBaseline' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernance7SBZ97'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'BaselineName',
'in' => 'query',
'schema' => ['description' => 'The name of the baseline.', 'type' => 'string', 'default' => 'Default', 'required' => false, 'example' => 'Default', 'title' => ''],
],
[
'name' => 'BaselineItems',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'An array that contains the baseline items.'."\n"
."\n"
.'You can call the [ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~) operation to query a list of baseline items supported by the account factory in Cloud Governance Center.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the baseline item.',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configurations of the baseline item. The value of this parameter is a JSON string.', 'type' => 'string', 'required' => false, 'example' => '{"EnabledServices":["CEN_TR","CDT","CMS","KMS"]}', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'required' => false, 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'default' => '1.0', 'required' => false, 'example' => '1.0', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the baseline.', 'type' => 'string', 'required' => false, 'example' => 'Default Baseline.', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<Void>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'BaselineId' => ['description' => 'The ID of the baseline.', 'type' => 'string', 'example' => 'afb-bp1e6ixtiwupap8m****', 'title' => ''],
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'A5592E2E-0FC4-557C-B989-DF229B5EBE13'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'CreateAccountFactoryBaseline',
'summary' => 'Creates a baseline of the account factory.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAccountFactoryBaseline'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'governance:CreateAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineId\\": \\"afb-bp1e6ixtiwupap8m****\\",\\n \\"RequestId\\": \\"A5592E2E-0FC4-557C-B989-DF229B5EBE13\\"\\n}","type":"json"}]',
],
'DeleteAccountFactoryBaseline' => [
'summary' => 'Deletes an account factory baseline.',
'methods' => ['get', 'post'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'BaselineId',
'in' => 'query',
'schema' => ['description' => 'The baseline ID.', 'type' => 'string', 'required' => false, 'example' => 'afb-bp1durvn3lgqe28v****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<Void>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0F45D888-8C4D-55E5-ACA2-D1515159181D'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DeleteAccountFactoryBaseline',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAccountFactoryBaseline'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'governance:DeleteAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0F45D888-8C4D-55E5-ACA2-D1515159181D\\"\\n}","type":"json"}]',
],
'EnrollAccount' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceUXLQGP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AccountNamePrefix',
'in' => 'query',
'schema' => ['description' => 'The prefix for the account name.'."\n"
."\n"
.'- If you are creating a new resource account, this parameter is required.'."\n"
."\n"
.'- If you are enrolling an existing account, this parameter is not required.', 'type' => 'string', 'required' => false, 'example' => 'test-account', 'title' => ''],
],
[
'name' => 'DisplayName',
'in' => 'query',
'schema' => ['description' => 'The display name of the account.'."\n"
."\n"
.'- If you are creating a new resource account, this parameter is required.'."\n"
."\n"
.'- If you are enrolling an existing account, this parameter is not required.', 'type' => 'string', 'required' => false, 'example' => 'test-account', 'title' => ''],
],
[
'name' => 'FolderId',
'in' => 'query',
'schema' => ['description' => 'The ID of the parent folder.'."\n"
."\n"
.'- If you are creating a new resource account and do not specify this parameter, the account is created in the Root folder.'."\n"
."\n"
.'- If you are enrolling an existing account, this parameter is not required.', 'type' => 'string', 'example' => 'fd-5ESoku****', 'title' => '', 'required' => false],
],
[
'name' => 'PayerAccountUid',
'in' => 'query',
'schema' => ['description' => 'The ID of the billing account.'."\n"
."\n"
.'- If you are creating a new resource account and do not specify this parameter, the self-pay settlement method is used.'."\n"
."\n"
.'- If you are enrolling an existing account, this parameter is not required.', 'type' => 'integer', 'format' => 'int64', 'example' => '19534534552****', 'title' => '', 'required' => false],
],
[
'name' => 'AccountUid',
'in' => 'query',
'schema' => ['description' => 'The ID of the account to enroll.'."\n"
."\n"
.'- If you are creating a new resource account, this parameter is not required.'."\n"
."\n"
.'- If you are enrolling an existing account, this parameter is required.', 'type' => 'integer', 'format' => 'int64', 'example' => '12868156179****', 'title' => '', 'required' => false],
],
[
'name' => 'BaselineItems',
'in' => 'query',
'style' => 'flat',
'schema' => [
'title' => '',
'description' => 'The baseline items.'."\n"
."\n"
.'If you specify this parameter, the baseline item configurations are merged with the configurations of the baseline specified by `BaselineId`. For duplicate baseline items, the configurations in this parameter take precedence. We recommend that you leave this parameter empty and use `BaselineId` to apply baseline configurations.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the baseline item.',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configurations of the baseline item.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}'],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => '', 'required' => false],
'Skip' => ['description' => 'Specifies whether to skip the baseline item. Valid values:'."\n"
."\n"
.'- false (default): does not skip the baseline item.'."\n"
."\n"
.'- true: skips the baseline item.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'default' => '1.0', 'title' => '', 'required' => false],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'example' => '',
],
],
[
'name' => 'BaselineId',
'in' => 'query',
'schema' => ['description' => 'The ID of the baseline. If you leave this parameter empty, the default baseline is used.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'afb-bp1durvn3lgqe28v****'],
],
[
'name' => 'ResellAccountType',
'in' => 'query',
'schema' => ['description' => 'The identity type of the member. Valid values:'."\n"
."\n"
.'- resell (default): The member is a reseller account. A reseller relationship is automatically established between the member and the reseller. The management account of the resource directory is used as the billing account of the member.'."\n"
."\n"
.'- non\\_resell: The member is a non-reseller account. The member is not associated with a reseller and can directly purchase Alibaba Cloud resources. The member is used as its own billing account.'."\n"
."\n"
.'> This parameter is available only for resellers at the international site (alibabacloud.com).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'resell'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'The tags. You can specify up to 20 tags.',
'type' => 'array',
'items' => [
'description' => 'The tag.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'tagKey', 'title' => ''],
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'tagValue', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<EnrollAccountResponse>',
'description' => 'The returned result.',
'type' => 'object',
'properties' => [
'AccountUid' => ['description' => 'The ID of the enrolled account.'."\n"
."\n"
.'colspan="1" rowspan="1">'."\n"
."\n"
.'143165363236\\*\\*\\*\\*', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '143165363236****'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7071E5FA-515E-5F53-B335-B87D619C6A66'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The specified parameter %s is invalid.'],
['errorCode' => 'DeployConflict.Blueprint', 'errorMessage' => 'The %s blueprint is being deployed. Please wait for its deployment to complete and try again.', 'description' => 'A blueprint is being implemented. Try again later after the blueprint is implemented.'],
['errorCode' => 'DependencyViolation.Blueprint', 'errorMessage' => 'The %s blueprint has not been deployed. Please deploy the resource structure first.', 'description' => 'You have not deployed a dependent blueprint. You must deploy the dependent blueprint.'],
['errorCode' => 'DependencyViolation.BaselineItem', 'errorMessage' => 'The dependency of %s baseline item has not been configured. Please config %s first.', 'description' => 'No dependency baseline items are configured. Before you can proceed, you must configure a dependency baseline item.'],
['errorCode' => 'IncorrectBlueprintStatus', 'errorMessage' => 'The current status of the blueprint does not support this operation.', 'description' => 'The current status of the blueprint does not support this operation.'],
],
403 => [
['errorCode' => 'InvalidUser.NotResourceDirectoryMaster', 'errorMessage' => 'The specified account is not a master account of resource directory.', 'description' => 'The specified account is not a master account of resource directory.'],
],
[
['errorCode' => 'InvalidUser.NotFound', 'errorMessage' => 'The specified user does not exist.', 'description' => 'The user does not exist.'],
['errorCode' => 'InvalidBlueprint.NotFound', 'errorMessage' => 'The specified blueprint does not exist.', 'description' => 'The specified blueprint does not exist.'],
['errorCode' => 'InvalidBaselineItem.NotFound', 'errorMessage' => 'The specified baseline item named %s does not exist.', 'description' => 'The specified baseline item does not exist.'],
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'EnrollAccount',
'summary' => 'Creates a new resource account or enrolls an existing resource account in Account Factory.',
'description' => 'Creates a new resource account or enrolls an existing resource account, and applies the account factory baseline to the account.'."\n"
."\n"
.'Account enrollment is an asynchronous process. After an account is created, the account factory baseline is applied to the account. To query the enrollment details and check the baseline application result, call [GetEnrolledAccount](~~GetEnrolledAccount~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnrollAccount'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'governance:EnrollAccount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountUid\\": 0,\\n \\"RequestId\\": \\"7071E5FA-515E-5F53-B335-B87D619C6A66\\"\\n}","type":"json"}]',
],
'GenerateEvaluationReport' => [
'summary' => 'Generate Governance Evaluation Report',
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernance9GNJ07'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'RegionId', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'The account ID. If this parameter is not specified, the report is generated for the current account by default. A management account (MA) can pass in a member account ID to generate a report for the member account.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '103144549568****', 'title' => ''],
],
[
'name' => 'ReportType',
'in' => 'query',
'schema' => [
'description' => 'The report type. Valid values:'."\n"
.'- EvaluationAccountHtmlReport: single-account HTML report.'."\n"
.'- EvaluationAccountExcelReport: single-account Excel report.'."\n"
.'- EvaluationMultiAccountExcelReport: multi-account Excel report.',
'type' => 'string',
'example' => 'EvaluationAccountExcelReport',
'enum' => ['EvaluationAccountReport', 'EvaluationAccountExcelReport', 'EvaluationMultiAccountExcelReport', 'EvaluationAccountHtmlReport'],
'required' => false,
'title' => '',
],
],
[
'name' => 'AccountIds',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'The list of member account IDs for which to generate reports.'."\n"
.'Note: This parameter is required only when you generate a multi-account report and want to specify the scope of accounts.',
'type' => 'array',
'items' => ['description' => 'The account ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1319994761488600', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'AccountId' => ['description' => 'The account ID for which the report is generated.', 'type' => 'integer', 'format' => 'int64', 'example' => '103144549568****', 'title' => ''],
'EvaluationScore' => ['description' => 'The governance maturity evaluation score.', 'type' => 'number', 'format' => 'double', 'example' => '0.7684', 'title' => ''],
'EvaluationTime' => ['description' => 'The evaluation time.', 'type' => 'string', 'example' => '2026-01-12T07:25:33Z', 'title' => ''],
'Finished' => ['description' => 'Indicates whether the report generation is complete.'."\n"
."\n"
.'> - true: The report generation is complete.'."\n"
.'> - false: The report generation is not complete.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'ReportType' => ['description' => 'The report type. Valid values:'."\n"
.'- EvaluationAccountHtmlReport: single-account HTML report.'."\n"
.'- EvaluationAccountExcelReport: single-account Excel report.'."\n"
.'- EvaluationMultiAccountExcelReport: multi-account Excel report.', 'type' => 'string', 'example' => 'EvaluationAccountExcelReport', 'title' => ''],
'ReportUrl' => ['description' => 'The download URL of the report.', 'type' => 'string', 'example' => 'https://governance-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/reports-html/*****', 'title' => ''],
'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '7DCF863F-CBBB-57C4-8AF2-5D4EE35D1EB1'],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Generate Governance Evaluation Report',
'description' => 'Generates a governance evaluation report.'."\n"
.'> '."\n"
.'> - This is an asynchronous API. You can check the `Finished` field in the response to determine the report generation status.'."\n",
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'governance:GenerateEvaluationReport',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountId\\": 0,\\n \\"EvaluationScore\\": 0.7684,\\n \\"EvaluationTime\\": \\"2026-01-12T07:25:33Z\\",\\n \\"Finished\\": \\"true\\",\\n \\"ReportType\\": \\"EvaluationAccountExcelReport\\",\\n \\"ReportUrl\\": \\"https://governance-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/reports-html/*****\\",\\n \\"RequestId\\": \\"7DCF863F-CBBB-57C4-8AF2-5D4EE35D1EB1\\"\\n}","type":"json"}]',
],
'GetAccountFactoryBaseline' => [
'summary' => 'Obtains the details of an account factory baseline.',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'BaselineId',
'in' => 'query',
'schema' => ['description' => 'The ID of the baseline.', 'type' => 'string', 'required' => false, 'example' => 'afb-bp1nf0enuzb89az*****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<GetAccountFactoryBaselineResponse>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'BaselineId' => ['description' => 'The ID of the baseline.', 'type' => 'string', 'example' => 'afb-bp16ae2k8a3yo3d*****', 'title' => ''],
'BaselineItems' => [
'description' => 'The baseline items.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configuration of the baseline item.'."\n"
."\n"
.'The value is a JSON string.', 'type' => 'string', 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'BaselineName' => ['description' => 'The name of the baseline.', 'type' => 'string', 'default' => 'Default', 'example' => 'Default', 'title' => ''],
'CreateTime' => ['description' => 'The time when the baseline was created.', 'type' => 'string', 'example' => '2022-11-28T00:46:34Z', 'title' => ''],
'Description' => ['description' => 'The description of the baseline.', 'type' => 'string', 'example' => 'Default baseline', 'title' => ''],
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => '60D54503-F1F6-51B6-B6FA-A70CBDA2A68C'],
'Type' => ['description' => 'The type of the baseline. Valid values:'."\n"
."\n"
.'- System: The baseline is a default baseline.'."\n"
."\n"
.'- Custom: The baseline is a custom baseline.', 'type' => 'string', 'example' => 'Custom', 'title' => ''],
'UpdateTime' => ['description' => 'The time when the baseline was updated.', 'type' => 'string', 'example' => '2022-11-02T01:00:07Z', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The specified parameter %s is invalid.'],
],
404 => [
['errorCode' => 'InvalidUser.NotFound', 'errorMessage' => 'The specified user does not exist.', 'description' => 'The user does not exist.'],
['errorCode' => 'InvalidBaseline.NotFound', 'errorMessage' => 'The specified baseline does not exist.', 'description' => 'The specified account baseline does not exist.'],
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineId\\": \\"afb-bp16ae2k8a3yo3d*****\\",\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Notifications\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"GroupKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"account_msg\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"aa\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"PmsgStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"EmailStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"SmsStatus\\\\\\\\\\\\\\":1}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"BaselineName\\": \\"Default\\",\\n \\"CreateTime\\": \\"2022-11-28T00:46:34Z\\",\\n \\"Description\\": \\"Default baseline\\",\\n \\"RequestId\\": \\"60D54503-F1F6-51B6-B6FA-A70CBDA2A68C\\",\\n \\"Type\\": \\"Custom\\",\\n \\"UpdateTime\\": \\"2022-11-02T01:00:07Z\\"\\n}","type":"json"}]',
'title' => 'GetAccountFactoryBaseline',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccountFactoryBaseline'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:GetAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'translator' => 'manual',
],
'GetEnrolledAccount' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'AccountUid',
'in' => 'query',
'schema' => ['description' => 'The ID of the account.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '19534534552****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'AccountUid' => ['description' => 'The ID of the account.', 'type' => 'integer', 'format' => 'int64', 'example' => '12868156179*****', 'title' => ''],
'BaselineId' => ['description' => 'The ID of the baseline that is applied.', 'type' => 'string', 'title' => '', 'example' => 'afb-bp1adadfadsf***'],
'BaselineItems' => [
'description' => 'The baseline items.',
'type' => 'array',
'items' => [
'description' => 'The configuration of the baseline item.',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configuration of the baseline item.', 'type' => 'string', 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Skip' => ['description' => 'Indicates whether the baseline item is skipped. Valid values:'."\n"
."\n"
.'- false: The baseline item is not skipped.'."\n"
."\n"
.'- true: The baseline item is skipped.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CreateTime' => ['description' => 'The time when the account was created.', 'type' => 'string', 'example' => '2021-11-01T02:38:27Z', 'title' => ''],
'DisplayName' => ['description' => 'The display name of the account.', 'type' => 'string', 'example' => 'test-account', 'title' => ''],
'ErrorInfo' => [
'title' => '',
'description' => 'The error message.'."\n"
."\n"
.'> This parameter is returned if the value of `Status` is `Failed` or `ScheduleFailed`.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'EntityAlreadyExists.Role'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'The role already exists.'],
'Recommend' => ['description' => 'The recommended solution.', 'type' => 'string', 'title' => '', 'example' => 'https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\\u0026product=Ram'],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E'],
],
'example' => '',
],
'FolderId' => ['description' => 'The ID of the parent folder.', 'type' => 'string', 'example' => 'fd-5ESoku****', 'title' => ''],
'Initialized' => ['description' => 'Indicates whether the initialization is complete. Valid values:'."\n"
."\n"
.'- false: The initialization is not complete.'."\n"
."\n"
.'- true: The initialization is complete.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'Inputs' => [
'title' => '',
'description' => 'The input parameters that were specified when the account was enrolled.',
'type' => 'object',
'properties' => [
'AccountNamePrefix' => ['description' => 'The prefix of the account name.', 'type' => 'string', 'example' => 'test-account', 'title' => ''],
'AccountUid' => ['description' => 'The ID of the account.', 'type' => 'integer', 'format' => 'int64', 'example' => '12868156179*****', 'title' => ''],
'BaselineItems' => [
'title' => '',
'description' => 'The baseline items.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configurations of the baseline item.', 'type' => 'string', 'title' => '', 'example' => '{\\"Contacts\\":[{\\"Name\\":\\"governance\\",\\"Email\\":\\"wibud5210+10@gmail.com\\",\\"Mobile\\":\\"1234\\",\\"Position\\":\\"Other\\"}]}'],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Skip' => ['description' => 'Indicates whether the baseline item is skipped. Valid values:'."\n"
."\n"
.'- false: The baseline item is not skipped.'."\n"
."\n"
.'- true: The baseline item is skipped.', 'type' => 'boolean', 'title' => '', 'example' => 'false'],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'example' => '',
],
'DisplayName' => ['description' => 'The display name of the account.', 'type' => 'string', 'example' => 'test-account', 'title' => ''],
'FolderId' => ['description' => 'The ID of the parent folder.', 'type' => 'string', 'example' => 'fd-5ESoku****', 'title' => ''],
'PayerAccountUid' => ['description' => 'The ID of the billing account.', 'type' => 'integer', 'format' => 'int64', 'example' => '19534534552*****', 'title' => ''],
'Tag' => [
'description' => 'The tag.',
'type' => 'array',
'items' => [
'description' => 'The tag.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'product', 'title' => ''],
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'governance', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
'MasterAccountUid' => ['description' => 'The ID of the management account of the resource directory to which the account belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '19534534552*****', 'title' => ''],
'PayerAccountUid' => ['description' => 'The ID of the billing account.', 'type' => 'integer', 'format' => 'int64', 'example' => '19534534552*****', 'title' => ''],
'Progress' => [
'title' => '',
'description' => 'The progress of applying the baseline to the account.',
'type' => 'array',
'items' => [
'description' => 'The baseline application progress.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Status' => ['description' => 'The status of applying the baseline to the account. Valid values:'."\n"
."\n"
.'- Pending: The baseline is waiting to be applied to the account.'."\n"
."\n"
.'- Running: The baseline is being applied to the account.'."\n"
."\n"
.'- Finished: The baseline is applied to the account.'."\n"
."\n"
.'- Failed: The baseline failed to be applied to the account.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
],
'title' => '',
'example' => '',
],
'example' => '',
],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '768F908D-A66A-5A5D-816C-20C93CBBFEE3', 'title' => ''],
'Status' => ['description' => 'The status of the account. Valid values:'."\n"
."\n"
.'- Pending: The account is waiting to be enrolled.'."\n"
."\n"
.'- Running: The account is being enrolled.'."\n"
."\n"
.'- Finished: The account is enrolled.'."\n"
."\n"
.'- Failed: The account failed to be enrolled.'."\n"
."\n"
.'- Scheduling: The account is being scheduled.'."\n"
."\n"
.'- ScheduleFailed: The account failed to be scheduled.', 'type' => 'string', 'example' => 'Finished', 'title' => ''],
'UpdateTime' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2021-11-01T02:38:27Z', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The specified parameter %s is invalid.'],
],
404 => [
['errorCode' => 'InvalidUser.NotFound', 'errorMessage' => 'The specified user does not exist.', 'description' => 'The user does not exist.'],
['errorCode' => 'InvalidBlueprint.NotFound', 'errorMessage' => 'The specified blueprint does not exist.', 'description' => 'The specified blueprint does not exist.'],
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'GetEnrolledAccount',
'summary' => 'Queries the details about an account that is enrolled in the account factory.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetEnrolledAccount'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:GetEnrolledAccount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountUid\\": 0,\\n \\"BaselineId\\": \\"afb-bp1adadfadsf***\\",\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Notifications\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"GroupKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"account_msg\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"aa\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"PmsgStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"EmailStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"SmsStatus\\\\\\\\\\\\\\":1}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Skip\\": false,\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2021-11-01T02:38:27Z\\",\\n \\"DisplayName\\": \\"test-account\\",\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"EntityAlreadyExists.Role\\",\\n \\"Message\\": \\"The role already exists.\\",\\n \\"Recommend\\": \\"https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\\\\\\\\u0026product=Ram\\",\\n \\"RequestId\\": \\"6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E\\"\\n },\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"Initialized\\": true,\\n \\"Inputs\\": {\\n \\"AccountNamePrefix\\": \\"test-account\\",\\n \\"AccountUid\\": 0,\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"governance\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Email\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"wibud5210+10@gmail.com\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Mobile\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1234\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Position\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Other\\\\\\\\\\\\\\"}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Skip\\": false,\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"DisplayName\\": \\"test-account\\",\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"PayerAccountUid\\": 0,\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"product\\",\\n \\"Value\\": \\"governance\\"\\n }\\n ]\\n },\\n \\"MasterAccountUid\\": 0,\\n \\"PayerAccountUid\\": 0,\\n \\"Progress\\": [\\n {\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Status\\": \\"Running\\"\\n }\\n ],\\n \\"RequestId\\": \\"768F908D-A66A-5A5D-816C-20C93CBBFEE3\\",\\n \\"Status\\": \\"Finished\\",\\n \\"UpdateTime\\": \\"2021-11-01T02:38:27Z\\"\\n}","type":"json"}]',
],
'ListAccountFactoryBaselineItems' => [
'summary' => 'Queries a list of baseline items that are supported by the account factory of Cloud Governance Center (CGC).',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceARZHCM'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'The type of the baseline items.', 'type' => 'string', 'required' => false, 'example' => 'AccountFactory', 'title' => ''],
],
[
'name' => 'Names',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The names of the baseline items.',
'type' => 'array',
'items' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'required' => false, 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'Versions',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The versions of the baseline items.',
'type' => 'array',
'items' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'required' => false, 'example' => '1.0', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request.', 'type' => 'string', 'required' => false, 'example' => 'AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod', 'title' => ''],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => 'The maximum number of entries per page.'."\n"
."\n"
.'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'default' => '100', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponsePageResult<ListAccountFactoryBaselineItemsResponse>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'BaselineItems' => [
'description' => 'The baseline items.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the baseline item.',
'type' => 'object',
'properties' => [
'DependsOn' => [
'description' => 'The dependencies of the baseline item.',
'type' => 'array',
'items' => [
'description' => 'The dependency configuration.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC', 'title' => ''],
'Type' => ['description' => 'The type of the baseline item.', 'type' => 'string', 'example' => 'AccountFactory', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the baseline item.', 'type' => 'string', 'example' => 'Notification.', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'example' => 'ACS-BP_ACCOUNT_FACTORY_ACCOUNT_NOTIFICATION', 'title' => ''],
'Type' => ['description' => 'The type of the baseline item.', 'type' => 'string', 'example' => 'AccountFactory', 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'example' => '1.0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'NextToken' => ['description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.', 'type' => 'string', 'example' => 'AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod', 'title' => ''],
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'B40D73D8-76AC-5D3C-AC63-4FC8AFCE6671'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ListAccountFactoryBaselineItems',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAccountFactoryBaselineItems'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'governance:ListAccountFactoryBaselineItems',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineItems\\": [\\n {\\n \\"DependsOn\\": [\\n {\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Type\\": \\"AccountFactory\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"Description\\": \\"Notification.\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_NOTIFICATION\\",\\n \\"Type\\": \\"AccountFactory\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod\\",\\n \\"RequestId\\": \\"B40D73D8-76AC-5D3C-AC63-4FC8AFCE6671\\"\\n}","type":"json"}]',
],
'ListAccountFactoryBaselines' => [
'summary' => 'Obtains a list of baselines in the account factory.',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceH3XRB0'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
."\n"
.'You do not need to specify this parameter for the first request.', 'type' => 'string', 'required' => false, 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****', 'title' => ''],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => 'The maximum number of entries to return on each page.'."\n"
."\n"
.'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponsePageResult<ListAccountFactoryBaselinesResponse>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'Baselines' => [
'description' => 'The baselines.',
'type' => 'array',
'items' => [
'description' => 'The information of the baseline.',
'type' => 'object',
'properties' => [
'BaselineId' => ['description' => 'The ID of the baseline.', 'type' => 'string', 'example' => 'afb-bp1durvn3lgqe28v****', 'title' => ''],
'BaselineName' => ['description' => 'The name of the baseline.', 'type' => 'string', 'example' => 'Default', 'title' => ''],
'CreateTime' => ['description' => 'The time when the baseline was created.', 'type' => 'string', 'example' => '2021-11-30T09:09:28Z', 'title' => ''],
'Description' => ['description' => 'The description of the baseline.', 'type' => 'string', 'example' => 'Default baseline', 'title' => ''],
'Type' => [
'description' => 'The type of the baseline. Valid values:'."\n"
."\n"
.'- System: The baseline is a default baseline.'."\n"
."\n"
.'- Custom: The baseline is a custom baseline.',
'enumValueTitles' => [],
'type' => 'string',
'example' => 'Custom',
'title' => '',
],
'UpdateTime' => ['description' => 'The time when the baseline was updated.', 'type' => 'string', 'example' => '2022-12-29T07:08:40Z', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'NextToken' => ['description' => 'The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.', 'type' => 'string', 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****', 'title' => ''],
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => '3245E413-7CDD-5287-8988-6A94DE8A8369'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidUser.NotFound', 'errorMessage' => 'The specified user does not exist.', 'description' => 'The user does not exist.'],
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Baselines\\": [\\n {\\n \\"BaselineId\\": \\"afb-bp1durvn3lgqe28v****\\",\\n \\"BaselineName\\": \\"Default\\",\\n \\"CreateTime\\": \\"2021-11-30T09:09:28Z\\",\\n \\"Description\\": \\"Default baseline\\",\\n \\"Type\\": \\"Custom\\",\\n \\"UpdateTime\\": \\"2022-12-29T07:08:40Z\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****\\",\\n \\"RequestId\\": \\"3245E413-7CDD-5287-8988-6A94DE8A8369\\"\\n}","type":"json"}]',
'title' => 'ListAccountFactoryBaselines',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAccountFactoryBaselines'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'governance:ListAccountFactoryBaselines',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'translator' => 'manual',
],
'ListEnrolledAccounts' => [
'summary' => 'Queries a list of accounts that are enrolled in the account factory.',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceARZHCM'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****'],
],
[
'name' => 'MaxResults',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => [
'description' => 'The maximum number of entries per page.'."\n"
."\n"
.'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'exclusiveMaximum' => false, 'minimum' => '1', 'exclusiveMinimum' => false, 'default' => '10', 'title' => '',
'example' => '10',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'EnrolledAccounts' => [
'title' => '',
'description' => 'The enrolled accounts.',
'type' => 'array',
'items' => [
'description' => 'The account.',
'type' => 'object',
'properties' => [
'AccountUid' => ['description' => 'The ID of the account.', 'type' => 'integer', 'format' => 'int64', 'example' => '19534534552*****', 'title' => ''],
'BaselineId' => ['description' => 'The ID of the baseline that is applied.', 'type' => 'string', 'example' => 'afb-bp1durvn3lgqe28v****', 'title' => ''],
'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '2021-11-01T02:38:27Z', 'title' => ''],
'DisplayName' => ['description' => 'The display name of the account.', 'type' => 'string', 'example' => 'TestAccount', 'title' => ''],
'FolderId' => ['description' => 'The ID of the parent folder.', 'type' => 'string', 'example' => 'fd-5ESoku****', 'title' => ''],
'PayerAccountUid' => ['description' => 'The ID of the billing account.', 'type' => 'integer', 'format' => 'int64', 'example' => '13161210500*****', 'title' => ''],
'Status' => [
'description' => 'The enrollment status. Valid values:'."\n"
."\n"
.'- Pending: The account is waiting to be enrolled.'."\n"
."\n"
.'- Running: The account is being enrolled.'."\n"
."\n"
.'- Finished: The account is enrolled.'."\n"
."\n"
.'- Failed: The account failed to be enrolled.'."\n"
."\n"
.'- Scheduling: The account is being scheduled.'."\n"
."\n"
.'- ScheduleFailed: The account failed to be scheduled.',
'type' => 'string',
'example' => 'Running',
'enum' => [],
'title' => '',
],
'UpdateTime' => ['description' => 'The update time.', 'type' => 'string', 'example' => '2021-11-01T02:38:27Z', 'title' => ''],
],
'title' => '',
'example' => '',
],
'example' => '',
],
'NextToken' => ['description' => 'The pagination token that is used in the next request to retrieve a new page of results.', 'type' => 'string', 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '768F908D-A66A-5A5D-816C-20C93CBBFEE3', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The specified parameter %s is invalid.'],
],
404 => [
['errorCode' => 'InvalidUser.NotFound', 'errorMessage' => 'The specified user does not exist.', 'description' => 'The user does not exist.'],
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ListEnrolledAccounts',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEnrolledAccounts'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'governance:ListEnrolledAccounts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"EnrolledAccounts\\": [\\n {\\n \\"AccountUid\\": 0,\\n \\"BaselineId\\": \\"afb-bp1durvn3lgqe28v****\\",\\n \\"CreateTime\\": \\"2021-11-01T02:38:27Z\\",\\n \\"DisplayName\\": \\"TestAccount\\",\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"PayerAccountUid\\": 0,\\n \\"Status\\": \\"Running\\",\\n \\"UpdateTime\\": \\"2021-11-01T02:38:27Z\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****\\",\\n \\"RequestId\\": \\"768F908D-A66A-5A5D-816C-20C93CBBFEE3\\"\\n}","type":"json"}]',
],
'ListEvaluationMetadata' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceMBMBHG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Language',
'in' => 'query',
'schema' => ['description' => 'The language type. Governance evaluation definitions are returned in this language. Valid values:'."\n"
."\n"
.'- en: English.'."\n"
.'- zh: Chinese.', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'LensCode',
'in' => 'query',
'schema' => ['description' => 'The specialized evaluation code. Valid values:'."\n"
."\n"
.'- basic (default): foundation model (governance maturity) evaluation.'."\n"
.'- ack: container building specialized evaluation.'."\n"
.'- ai: machine learning specialized evaluation.'."\n"
.'- nis: network service specialized evaluation.', 'type' => 'string', 'required' => false, 'example' => 'ack', 'title' => ''],
],
[
'name' => 'TopicCode',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['title' => '', 'description' => 'The governance topic code.', 'type' => 'string', 'example' => 'ResourceUtilization', 'required' => false],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'EvaluationMetadata' => [
'description' => 'The governance evaluation definition metadata.',
'type' => 'array',
'items' => [
'description' => 'The governance evaluation definition metadata.',
'type' => 'object',
'properties' => [
'Metadata' => [
'description' => 'The list of metadata objects under a specific metadata type.',
'type' => 'array',
'items' => [
'description' => 'The list of metadata objects under a specific metadata type.',
'type' => 'object',
'properties' => [
'Category' => ['description' => 'The pillar to which the evaluation item belongs.', 'type' => 'string', 'example' => 'Security', 'title' => ''],
'Description' => ['description' => 'The description of the evaluation item.', 'type' => 'string', 'example' => 'If you use an AccessKey pair of an Alibaba Cloud account, you have full permissions that cannot be restricted by conditions such as source IP address or access time. Once leaked, the risk is extremely high. If an AccessKey pair exists for the Alibaba Cloud account, it is considered non-compliant.', 'title' => ''],
'DisplayName' => ['description' => 'The display name.', 'type' => 'string', 'example' => 'An AccessKey pair is enabled for the Alibaba Cloud account.', 'title' => ''],
'Id' => ['description' => 'The random ID of the metadata.', 'type' => 'string', 'example' => 'pxgtda****', 'title' => ''],
'RecommendationLevel' => ['description' => 'The recommended governance level of the evaluation item.', 'type' => 'string', 'example' => 'High', 'title' => ''],
'RemediationMetadata' => [
'description' => 'The remediation metadata.',
'type' => 'object',
'properties' => [
'Remediation' => [
'description' => 'The remediation item.',
'type' => 'array',
'items' => [
'description' => 'The remediation item.',
'type' => 'object',
'properties' => [
'Actions' => [
'description' => 'The remediation actions.',
'type' => 'array',
'items' => [
'description' => 'The remediation actions.',
'type' => 'object',
'properties' => [
'Classification' => ['description' => 'The remediation method category.'."\n"
."\n"
.'> This parameter is returned only when `RemediationType` is set to `Analysis`.', 'type' => 'string', 'example' => 'UnusedAccessKeyInRamUser', 'title' => ''],
'CostDescription' => ['description' => 'The remediation cost.', 'type' => 'string', 'example' => 'You are not charged for this operation.', 'title' => ''],
'Description' => ['description' => 'The remediation description.'."\n"
."\n"
.'> This parameter is returned only when `RemediationType` is set to `Analysis`.', 'type' => 'string', 'example' => 'A RAM user has both console logon and an AccessKey pair enabled, but the AccessKey pair has never been used.', 'title' => ''],
'Guidance' => [
'description' => 'The remediation guidance.',
'type' => 'array',
'items' => [
'description' => 'The remediation guidance.',
'type' => 'object',
'properties' => [
'ButtonName' => ['description' => 'The display name of the remediation step button.', 'type' => 'string', 'example' => 'Manual fix', 'title' => ''],
'ButtonRef' => ['description' => 'The URL that the remediation step button links to.', 'type' => 'string', 'example' => 'https://ram.console.aliyun.com/users', 'title' => ''],
'Content' => ['description' => 'The content of the remediation step.', 'type' => 'string', 'example' => 'You must replace the AccessKey pair of your Alibaba Cloud account. To do so, perform the following steps:</br>1. Log on to the RAM console. In the left-side navigation pane, choose Identities > Users. On the Users page, click Create User.</br>2. On the Create User page, enter a logon name and select OpenAPI Access for the Access Mode parameter.</br>3. After the RAM user is created, save the AccessKey pair. Then, find the user that you created on the Users page and click Add Permissions in the Actions column. In the Grant Permission panel, find the AdministratorAccess policy and attach it to the RAM user.</br>4. In a program, replace the AccessKey pair of the Alibaba Cloud account with the AccessKey pair of the RAM user created in the previous step and check whether the program runs as expected in the test environment.</br>5. If the program runs as expected, publish the program to the production environment and disable the previous AccessKey pair of your Alibaba Cloud account. Then, check whether the program runs as expected.</br>6. If the program runs as expected, delete the disabled AccessKey pair after the specified period of time, such as 90 days.', 'title' => ''],
'Title' => ['description' => 'The title of the remediation step.', 'type' => 'string', 'example' => 'Scenario 3: AccessKey pair that is used within the last 90 days', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Notice' => ['description' => 'The remediation precautions.', 'type' => 'string', 'example' => 'This governance item enables the Best Practices for AccessKey and Permission Governance compliance package in Cloud Config to check the settings and usage of AccessKey pairs, Alibaba Cloud accounts, and RAM users.', 'title' => ''],
'Suggestion' => ['description' => 'The remediation suggestion.'."\n"
."\n"
.'> This parameter is returned only when `RemediationType` is set to `Analysis`.', 'type' => 'string', 'example' => 'Console logon is enabled for the RAM user and the RAM user owns an AccessKey pair, while the AccessKey pair has never been used by the RAM user. We recommend that you disable the AccessKey pair for 90 days. If no related issue occurs during this period, you can delete the AccessKey pair.', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RemediationType' => ['description' => 'The remediation type. Valid values:'."\n"
."\n"
.'- Manual: Manual remediation.'."\n"
.'- QuickFix: Quick fix.'."\n"
.'- Analysis: Assisted decision-making.', 'type' => 'string', 'example' => 'Manual', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'ResourceMetadata' => [
'description' => 'The resource metadata of the evaluation item.',
'type' => 'object',
'properties' => [
'ResourcePropertyMetadata' => [
'description' => 'The resource property metadata.',
'type' => 'array',
'items' => [
'description' => 'The resource property metadata.',
'type' => 'object',
'properties' => [
'DisplayName' => ['description' => 'The display name of the property.', 'type' => 'string', 'example' => 'Last time the AccessKey pair was used', 'title' => ''],
'PropertyName' => ['description' => 'The resource property name.', 'type' => 'string', 'example' => 'AkLastUsedTime', 'title' => ''],
'PropertyType' => ['description' => 'The resource property type.', 'type' => 'string', 'example' => 'String', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Scope' => ['description' => 'The scope to which the evaluation item belongs. Valid values:'."\n"
."\n"
.'- Account: single-account evaluation item.'."\n"
.'- ResourceDirectory: multi-account evaluation item.', 'type' => 'string', 'example' => 'Account', 'title' => ''],
'Stage' => ['description' => 'The status of the evaluation item. Valid values:'."\n"
."\n"
.'- Released: officially released.'."\n"
.'- Beta: pre-release.', 'type' => 'string', 'example' => 'Released', 'title' => ''],
'TopicCode' => ['title' => '', 'description' => 'The governance topic code to which the evaluation item belongs.', 'type' => 'string', 'example' => 'ResourceUtilization'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Type' => ['description' => 'The metadata type. Valid values:'."\n"
."\n"
.'- Metric: evaluation item.', 'type' => 'string', 'example' => 'Metric', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Retrieve governance evaluation item information',
'summary' => 'Retrieves information about all available governance evaluation items, including names, IDs, descriptions, stages, resource detail metadata, and remediation guidance.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationMetadata'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:ListEvaluationMetadata',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"EvaluationMetadata\\": [\\n {\\n \\"Metadata\\": [\\n {\\n \\"Category\\": \\"Security\\",\\n \\"Description\\": \\"If you use an AccessKey pair of an Alibaba Cloud account, you have full permissions that cannot be restricted by conditions such as source IP address or access time. Once leaked, the risk is extremely high. If an AccessKey pair exists for the Alibaba Cloud account, it is considered non-compliant.\\",\\n \\"DisplayName\\": \\"An AccessKey pair is enabled for the Alibaba Cloud account.\\",\\n \\"Id\\": \\"pxgtda****\\",\\n \\"RecommendationLevel\\": \\"High\\",\\n \\"RemediationMetadata\\": {\\n \\"Remediation\\": [\\n {\\n \\"Actions\\": [\\n {\\n \\"Classification\\": \\"UnusedAccessKeyInRamUser\\",\\n \\"CostDescription\\": \\"You are not charged for this operation.\\",\\n \\"Description\\": \\"A RAM user has both console logon and an AccessKey pair enabled, but the AccessKey pair has never been used.\\",\\n \\"Guidance\\": [\\n {\\n \\"ButtonName\\": \\"Manual fix\\",\\n \\"ButtonRef\\": \\"https://ram.console.aliyun.com/users\\",\\n \\"Content\\": \\"You must replace the AccessKey pair of your Alibaba Cloud account. To do so, perform the following steps:</br>1. Log on to the RAM console. In the left-side navigation pane, choose Identities > Users. On the Users page, click Create User.</br>2. On the Create User page, enter a logon name and select OpenAPI Access for the Access Mode parameter.</br>3. After the RAM user is created, save the AccessKey pair. Then, find the user that you created on the Users page and click Add Permissions in the Actions column. In the Grant Permission panel, find the AdministratorAccess policy and attach it to the RAM user.</br>4. In a program, replace the AccessKey pair of the Alibaba Cloud account with the AccessKey pair of the RAM user created in the previous step and check whether the program runs as expected in the test environment.</br>5. If the program runs as expected, publish the program to the production environment and disable the previous AccessKey pair of your Alibaba Cloud account. Then, check whether the program runs as expected.</br>6. If the program runs as expected, delete the disabled AccessKey pair after the specified period of time, such as 90 days.\\",\\n \\"Title\\": \\"Scenario 3: AccessKey pair that is used within the last 90 days\\"\\n }\\n ],\\n \\"Notice\\": \\"This governance item enables the Best Practices for AccessKey and Permission Governance compliance package in Cloud Config to check the settings and usage of AccessKey pairs, Alibaba Cloud accounts, and RAM users.\\",\\n \\"Suggestion\\": \\"Console logon is enabled for the RAM user and the RAM user owns an AccessKey pair, while the AccessKey pair has never been used by the RAM user. We recommend that you disable the AccessKey pair for 90 days. If no related issue occurs during this period, you can delete the AccessKey pair.\\"\\n }\\n ],\\n \\"RemediationType\\": \\"Manual\\"\\n }\\n ]\\n },\\n \\"ResourceMetadata\\": {\\n \\"ResourcePropertyMetadata\\": [\\n {\\n \\"DisplayName\\": \\"Last time the AccessKey pair was used\\",\\n \\"PropertyName\\": \\"AkLastUsedTime\\",\\n \\"PropertyType\\": \\"String\\"\\n }\\n ]\\n },\\n \\"Scope\\": \\"Account\\",\\n \\"Stage\\": \\"Released\\",\\n \\"TopicCode\\": \\"ResourceUtilization\\"\\n }\\n ],\\n \\"Type\\": \\"Metric\\"\\n }\\n ],\\n \\"RequestId\\": \\"16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1\\"\\n}","type":"json"}]',
],
'ListEvaluationMetricDetails' => [
'summary' => 'Retrieves non-compliant resource information for a specified check item, including the name, ID, category, type, region, and related metadata of non-compliant resources.',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceMBMBHG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the check item for which you want to retrieve non-compliant resources.'."\n"
."\n"
.'You can call the [ListEvaluationMetadata](~~2841889~~) operation to obtain the check item ID.', 'type' => 'string', 'required' => false, 'example' => 'xfyve5****', 'title' => ''],
],
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'The ID of the member account. This parameter is applicable only to the multi-account check pattern.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '103144549568****', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The token for the next query.', 'type' => 'string', 'required' => false, 'example' => 'AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****', 'title' => ''],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => 'The maximum number of entries to return in a single request. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'SnapshotId',
'in' => 'query',
'schema' => ['description' => 'The check snapshot ID.', 'type' => 'string', 'required' => false, 'example' => 'es-bp1r**************', 'title' => ''],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['description' => 'The scope of the governance maturity check. Valid values:'."\n"
."\n"
.'- Account (default): queries the check item details for the current account.'."\n"
.'- ResourceDirectory: queries the check item details for all member accounts in the resource directory. Before using this value, upgrade to multi-account governance maturity check.', 'type' => 'string', 'required' => false, 'example' => 'Account', 'title' => ''],
],
[
'name' => 'Date',
'in' => 'query',
'schema' => ['description' => 'The date to query.', 'type' => 'string', 'required' => false, 'example' => '2026-01-01', 'title' => ''],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'NextToken' => ['description' => 'The token used to retrieve the next page of data.', 'type' => 'string', 'example' => 'AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****', 'title' => ''],
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AC9BD94C-D20C-4D27-88D4-89E8D75C****'],
'Resources' => [
'description' => 'The details of non-compliant resources.',
'type' => 'array',
'items' => [
'description' => 'The details of non-compliant resources.',
'type' => 'object',
'properties' => [
'RegionId' => ['title' => '', 'description' => 'The region ID of the resource.', 'type' => 'string', 'example' => 'cn-hangzhou'],
'ResourceClassification' => ['description' => 'The decision assistance classification.'."\n"
."\n"
.'> This parameter is returned only for check items that support decision assistance.', 'type' => 'string', 'example' => 'RecentUnloginRamUser', 'title' => ''],
'ResourceId' => ['title' => '', 'description' => 'The resource ID.', 'type' => 'string', 'example' => '26435103783237****'],
'ResourceName' => ['title' => '', 'description' => 'The resource name.', 'type' => 'string', 'example' => 'test'],
'ResourceOwnerId' => ['title' => '', 'description' => 'The Alibaba Cloud account ID to which the resource belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '176618589410****'],
'ResourceProperties' => [
'description' => 'The list of additional resource properties.',
'type' => 'array',
'items' => [
'description' => 'The list of additional resource properties.',
'type' => 'object',
'properties' => [
'PropertyName' => ['description' => 'The name of the resource property.', 'type' => 'string', 'example' => 'DisplayName', 'title' => ''],
'PropertyValue' => ['description' => 'The value of the resource property.', 'type' => 'string', 'example' => 'TestAccount', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ResourceType' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'example' => 'ACS::RAM::User'],
'ComplianceType' => ['description' => 'The compliance status. Valid values:'."\n"
.'- NonCompliant: non-compliant.'."\n"
.'- Excluded: ignored.'."\n"
.'- PendingExclusion: ignored but not yet effective.'."\n"
.'- PendingInclusion: unignored but not yet effective.', 'type' => 'string', 'example' => 'NonCompliant', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Date' => ['description' => 'The date.', 'type' => 'string', 'example' => '2026-01-01', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Retrieve non-compliant resource information for a specified check item',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationMetricDetails'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'governance:ListEvaluationMetricDetails',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****\\",\\n \\"RequestId\\": \\"AC9BD94C-D20C-4D27-88D4-89E8D75C****\\",\\n \\"Resources\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceClassification\\": \\"RecentUnloginRamUser\\",\\n \\"ResourceId\\": \\"26435103783237****\\",\\n \\"ResourceName\\": \\"test\\",\\n \\"ResourceOwnerId\\": 0,\\n \\"ResourceProperties\\": [\\n {\\n \\"PropertyName\\": \\"DisplayName\\",\\n \\"PropertyValue\\": \\"TestAccount\\"\\n }\\n ],\\n \\"ResourceType\\": \\"ACS::RAM::User\\",\\n \\"ComplianceType\\": \\"NonCompliant\\"\\n }\\n ],\\n \\"Date\\": \\"2026-01-01\\"\\n}","type":"json"}]',
],
'ListEvaluationResults' => [
'summary' => 'Get governance evaluation results and status.',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceMBMBHG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'Member account ID. This parameter is only applicable to multi-account evaluation mode.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '176618589410****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Filters',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'Filter conditions.',
'type' => 'array',
'items' => [
'description' => 'Filter condition.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'Filter condition key. Valid values:'."\n"
."\n"
.'- ResourceId: Resource ID.'."\n"
.'- ResourceName: Resource name.'."\n"
.'- ResourceType: Resource type.', 'type' => 'string', 'required' => false, 'example' => 'ResourceId', 'title' => ''],
'Values' => [
'description' => 'List of filter condition values.',
'type' => 'array',
'items' => ['description' => 'Filter condition value.', 'type' => 'string', 'required' => false, 'example' => 'c191**************b4f', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'SnapshotId',
'in' => 'query',
'schema' => ['description' => 'Evaluation snapshot ID.', 'type' => 'string', 'required' => false, 'example' => 'es-bp1r**************', 'title' => ''],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['description' => 'Governance maturity evaluation scope. Valid values:'."\n"
."\n"
.'- Account (default): Performs single-account governance maturity evaluation, evaluating only the current account.'."\n"
.'- ResourceDirectory: Performs multi-account governance maturity evaluation, evaluating all member accounts in the resource directory. Before performing this operation, you must first upgrade to multi-account governance maturity evaluation.', 'type' => 'string', 'required' => false, 'example' => 'ResourceDirectory', 'title' => ''],
],
[
'name' => 'LensCode',
'in' => 'query',
'schema' => ['description' => 'Special evaluation code. Valid values:'."\n"
."\n"
.'- basic (default): Basic model (governance maturity) evaluation.'."\n"
.'- ack: Container construction special evaluation.'."\n"
.'- ai: Machine learning special evaluation.'."\n"
.'- nis: Network service special evaluation.', 'type' => 'string', 'required' => false, 'example' => 'basic', 'title' => ''],
],
[
'name' => 'TopicCode',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['title' => '', 'description' => 'Governance topic code.', 'type' => 'string', 'example' => 'IdentityAndAccessManagement', 'required' => false],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Response result.',
'type' => 'object',
'properties' => [
'AccountId' => ['description' => 'Member account ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '176618589410****', 'title' => ''],
'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'BD57329E-131A-59F4-8746-E1CD8D7B****'],
'Results' => [
'description' => 'Evaluation results, including overall evaluation status and sub-item evaluation results.',
'type' => 'object',
'properties' => [
'EvaluationTime' => ['description' => 'Overall evaluation end time (UTC).', 'type' => 'string', 'example' => '2023-12-13T03:35:00Z'."\n", 'title' => ''],
'MetricResults' => [
'description' => 'Evaluation results.',
'type' => 'array',
'items' => [
'description' => 'Evaluation result.',
'type' => 'object',
'properties' => [
'ErrorInfo' => [
'description' => 'Error information.'."\n"
."\n"
.'> This error information is returned when `Status` is `Failed`.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Error code.', 'type' => 'string', 'example' => 'EcsInsightEnableFailed', 'title' => ''],
'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => 'Unable to enable ECS Insight due to a server error.', 'title' => ''],
],
'title' => '',
'example' => '',
],
'EvaluationTime' => ['description' => 'Individual evaluation item end time (UTC).', 'type' => 'string', 'example' => '2023-12-13T03:34:02Z', 'title' => ''],
'Id' => ['description' => 'Evaluation item ID.', 'type' => 'string', 'example' => 'r7xdcu****', 'title' => ''],
'ResourcesSummary' => [
'description' => 'Evaluation item resource assessment summary.',
'type' => 'object',
'properties' => [
'NonCompliant' => ['description' => 'Number of non-compliant resources.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Result' => ['description' => 'Evaluation item resource compliance rate.', 'type' => 'number', 'format' => 'double', 'example' => '0.67', 'title' => ''],
'Risk' => ['description' => 'Evaluation risk level. Valid values:'."\n"
."\n"
.'- Error: High risk.'."\n"
.'- Warning: Medium risk.'."\n"
.'- None: No risk.', 'type' => 'string', 'example' => 'Error', 'title' => ''],
'Status' => ['description' => 'Individual evaluation item status. Valid values:'."\n"
."\n"
.'- Running: Evaluation in progress.'."\n"
.'- Finished: Evaluation completed.'."\n"
.'- Failed: Evaluation failed.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
'AccountSummary' => [
'description' => 'Evaluation item account assessment summary.',
'type' => 'object',
'properties' => [
'NonCompliant' => ['description' => 'Number of non-compliant accounts.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'PotentialScoreIncrease' => ['title' => '', 'description' => 'Potential score increase.', 'type' => 'number', 'format' => 'double', 'example' => '0.2'],
'AvailableRemediation' => [
'description' => 'List of available remediations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RemediationTemplateId' => ['description' => 'Remediation template ID.', 'type' => 'string', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Status' => ['description' => 'Overall evaluation status. Valid values:'."\n"
."\n"
.'- Running: Evaluation in progress.'."\n"
.'- Finished: Evaluation completed.'."\n"
.'- Failed: Evaluation failed.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
'TotalScore' => ['description' => 'Overall score.', 'type' => 'number', 'format' => 'double', 'example' => '0.6453', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Get governance evaluation results and status',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationResults'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:ListEvaluationResults',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountId\\": 0,\\n \\"RequestId\\": \\"BD57329E-131A-59F4-8746-E1CD8D7B****\\",\\n \\"Results\\": {\\n \\"EvaluationTime\\": \\"2023-12-13T03:35:00Z\\\\n\\",\\n \\"MetricResults\\": [\\n {\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"EcsInsightEnableFailed\\",\\n \\"Message\\": \\"Unable to enable ECS Insight due to a server error.\\"\\n },\\n \\"EvaluationTime\\": \\"2023-12-13T03:34:02Z\\",\\n \\"Id\\": \\"r7xdcu****\\",\\n \\"ResourcesSummary\\": {\\n \\"NonCompliant\\": 2\\n },\\n \\"Result\\": 0.67,\\n \\"Risk\\": \\"Error\\",\\n \\"Status\\": \\"Running\\",\\n \\"AccountSummary\\": {\\n \\"NonCompliant\\": 1\\n },\\n \\"PotentialScoreIncrease\\": 0.2,\\n \\"AvailableRemediation\\": [\\n {\\n \\"RemediationTemplateId\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"Status\\": \\"Running\\",\\n \\"TotalScore\\": 0.6453\\n }\\n}","type":"json"}]',
],
'ListEvaluationScoreHistory' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceVMJHAB'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'StartDate',
'in' => 'query',
'schema' => ['description' => 'The start date of the query. Format: YYYY-MM-DD.'."\n"
."\n"
.'You can query records from the last 180 days.', 'type' => 'string', 'required' => false, 'example' => '2024-06-11', 'title' => ''],
],
[
'name' => 'EndDate',
'in' => 'query',
'schema' => ['description' => 'The end date of the query. Format: YYYY-MM-DD.'."\n"
."\n"
.'By default, the historical scores from the last 7 days are returned.', 'type' => 'string', 'required' => false, 'example' => '2024-07-11', 'title' => ''],
],
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'The ID of the member accounts. This parameter is applicable only to the multi-account detection pattern.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '176618589410****', 'title' => ''],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AC9BD94C-D20C-4D27-88D4-89E8D75C051B'],
'ScoreHistory' => [
'description' => 'The historical detection scores.',
'type' => 'object',
'properties' => [
'TotalScoreHistory' => [
'description' => 'The historical detection scores.',
'type' => 'array',
'items' => [
'description' => 'The historical detection scores.',
'type' => 'object',
'properties' => [
'EvaluationTime' => ['description' => 'The time when the score was generated, in UTC.', 'type' => 'string', 'example' => '2024-06-30T03:34:02Z', 'title' => ''],
'Score' => ['description' => 'The score.'."\n"
."\n"
.'Valid values: 0 to 1.', 'type' => 'number', 'format' => 'double', 'example' => '0.6753', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Retrieve historical governance detection scores',
'summary' => 'Retrieves the historical scores of governance detection.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationScoreHistory'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:ListEvaluationScoreHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AC9BD94C-D20C-4D27-88D4-89E8D75C051B\\",\\n \\"ScoreHistory\\": {\\n \\"TotalScoreHistory\\": [\\n {\\n \\"EvaluationTime\\": \\"2024-06-30T03:34:02Z\\",\\n \\"Score\\": 0.6753\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'RunEvaluation' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREgovernanceMBMBHG'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'AccountId',
'in' => 'query',
'schema' => ['description' => 'The ID of the member account. This parameter is applicable only to the multi-account check pattern.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '176618589410****', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['description' => 'The scope of the governance maturity check. Valid values:'."\n"
."\n"
.'- Account (default): runs a single-account governance maturity check that checks only the current account.'."\n"
.'- ResourceDirectory: runs a multi-account governance maturity check that checks all member accounts in the resource directory. Before you perform this operation, upgrade to the multi-account governance maturity check.', 'type' => 'string', 'required' => false, 'example' => 'ResourceDirectory', 'title' => ''],
],
[
'name' => 'MetricIds',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'The list of check item IDs to check.',
'type' => 'array',
'items' => ['description' => 'The check item ID.', 'type' => 'string', 'required' => false, 'example' => 'xfyve5****', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'EvaluationDomain',
'in' => 'query',
'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '2D3E2A3A-F2B8-578D-9659-3195F94A****'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Run governance check',
'summary' => 'Runs a Cloud Governance Center governance check.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunEvaluation'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'governance:RunEvaluation',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
'additionalActions' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2D3E2A3A-F2B8-578D-9659-3195F94A****\\"\\n}","type":"json"}]',
],
'UpdateAccountFactoryBaseline' => [
'summary' => 'Updates a baseline of the account factory.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'BaselineId',
'in' => 'query',
'schema' => ['description' => 'The baseline ID.', 'type' => 'string', 'required' => false, 'example' => 'afb-bp1pq3emlkt27vsj****', 'title' => ''],
],
[
'name' => 'BaselineName',
'in' => 'query',
'schema' => ['description' => 'The name of the baseline.', 'type' => 'string', 'example' => 'Custom baseline', 'required' => false, 'title' => ''],
],
[
'name' => 'BaselineItems',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The baseline items.'."\n"
."\n"
.'You can call the [ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~) operation to query a list of baseline items supported by the account factory in Cloud Governance Center.',
'type' => 'array',
'items' => [
'description' => 'The configurations of the baseline item.',
'type' => 'object',
'properties' => [
'Config' => ['description' => 'The configurations of the baseline item. The value of this parameter is a JSON string.', 'type' => 'string', 'required' => false, 'example' => '{"EnabledServices":["CEN_TR","CDT","CMS","KMS"]}', 'title' => ''],
'Name' => ['description' => 'The name of the baseline item.', 'type' => 'string', 'required' => false, 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC'."\n", 'title' => ''],
'Version' => ['description' => 'The version of the baseline item.', 'type' => 'string', 'default' => '1.0', 'required' => false, 'example' => '1.0'."\n", 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the baseline.', 'type' => 'string', 'example' => 'Default baseline', 'required' => false, 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['title' => 'RegionId', 'description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ResponseBaseResult<Void>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'requestId', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'C18A891D-7B04-51A1-AAC6-201727A361CE'],
],
'example' => '',
],
],
],
'errorCodes' => [
404 => [
['errorCode' => 'InvalidEnterpriseRealName.NotFound', 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C18A891D-7B04-51A1-AAC6-201727A361CE\\"\\n}","type":"json"}]',
'title' => 'UpdateAccountFactoryBaseline',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAccountFactoryBaseline'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'governance:UpdateAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'manual',
],
],
'endpoints' => [
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'governance.ap-southeast-1.aliyuncs.com', 'endpoint' => 'governance.ap-southeast-1.aliyuncs.com', 'vpc' => 'governance-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'governance.cn-hangzhou.aliyuncs.com', 'endpoint' => 'governance.cn-hangzhou.aliyuncs.com', 'vpc' => 'governance-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'governance.eu-central-1.aliyuncs.com', 'endpoint' => 'governance.eu-central-1.aliyuncs.com', 'vpc' => 'governance-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'governance.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'governance.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'governance-vpc.cn-shanghai-finance-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'BusinessRestricted', 'message' => 'Business is restricted. Please contact your customer service manager.', 'http_code' => 400, 'description' => 'Business is restricted. Please contact your customer service manager.'],
['code' => 'DependencyViolation.BaselineItem', 'message' => 'The dependency of %s baseline item has not been configured. Please config %s first.', 'http_code' => 400, 'description' => 'No dependency baseline items are configured. Before you can proceed, you must configure a dependency baseline item.'],
['code' => 'DependencyViolation.Blueprint', 'message' => 'The %s blueprint has not been deployed. Please deploy the resource structure first.', 'http_code' => 400, 'description' => 'You have not deployed a dependent blueprint. You must deploy the dependent blueprint.'],
['code' => 'DeployConflict.Blueprint', 'message' => 'The %s blueprint is being deployed. Please wait for its deployment to complete and try again.', 'http_code' => 400, 'description' => 'A blueprint is being implemented. Try again later after the blueprint is implemented.'],
['code' => 'ExclusiveBlueprint.SSO', 'message' => 'CloudSSO and Role-Based SSO are mutually exclusive.', 'http_code' => 400, 'description' => 'Cloud SSO is mutually exclusive with Role-based SSO. We recommend that you use one of the SSO management methods.'],
['code' => 'Forbidden.Administrator', 'message' => 'The specified account does not have the administrator permission. We recommend that you log on using an administrator account.', 'http_code' => 403, 'description' => 'The specified account does not have the administrator permission. We recommend that you log on using an administrator account.'],
['code' => 'Forbidden.DisableAuditArchive', 'message' => 'This operation is forbidden. The specified user is not your log archive account.', 'http_code' => 403, 'description' => 'The operation is forbidden. The specified user is not a log archive account.'],
['code' => 'InconsistentEnterpriseNameError', 'message' => 'The enterprise name of the payment account and the member account must be consistent.', 'http_code' => 400, 'description' => 'The enterprise name of the payment account and the member account must be consistent.'],
['code' => 'IncorrectBlueprintStatus', 'message' => 'The current status of the blueprint does not support this operation.', 'http_code' => 400, 'description' => 'The current status of the blueprint does not support this operation.'],
['code' => 'IncorrectEvaluationTaskStatus', 'message' => 'The current status of the evaluation task does not support this operation.', 'http_code' => 400, 'description' => 'The current detection status does not support this operation'],
['code' => 'IncorrectResourceDirectorySyncTaskStatus', 'message' => 'The current status of the resource directory sync task does not support this operation.', 'http_code' => 400, 'description' => 'The current status of the resource directory sync task does not support this operation.'],
['code' => 'InternalError', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => 'A system error occurred.'],
['code' => 'InvalidAggregator.NotFound', 'message' => 'The specified config aggregator does not exist.', 'http_code' => 404, 'description' => 'The specified config aggregator does not exist.'],
['code' => 'InvalidBaseline.NotFound', 'message' => 'The specified baseline does not exist.', 'http_code' => 404, 'description' => 'The specified account baseline does not exist.'],
['code' => 'InvalidBaselineItem.NotFound', 'message' => 'The specified baseline item named %s does not exist.', 'http_code' => 404, 'description' => 'The specified baseline item does not exist.'],
['code' => 'InvalidBlueprint.Existed', 'message' => 'The specified blueprint already exists.', 'http_code' => 400, 'description' => 'The specified blueprint already exists.'],
['code' => 'InvalidBlueprint.NotFound', 'message' => 'The specified blueprint does not exist.', 'http_code' => 404, 'description' => 'The specified blueprint does not exist.'],
['code' => 'InvalidEnterpriseRealName.NotFound', 'message' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.', 'http_code' => 404, 'description' => 'The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.'],
['code' => 'InvalidEvaluation.Scope', 'message' => 'The specified evaluation scope does not support this action.', 'http_code' => 400, 'description' => 'The operation is not supported for the scope of the current governance detection enabled'],
['code' => 'InvalidGuardrail.NotFound', 'message' => 'The specified guardrail does not exist.', 'http_code' => 404, 'description' => 'The specified guardrail does not exist.'],
['code' => 'InvalidIamRoleTemplate.NotFound', 'message' => 'The specified iam role template does not exist.', 'http_code' => 404, 'description' => 'The specified IAM role template does not exist.'],
['code' => 'InvalidParameter', 'message' => 'The specified parameter %s is not valid.', 'http_code' => 400, 'description' => 'The specified parameter %s is invalid.'],
['code' => 'InvalidParameter.Email.AlreadyUsed', 'message' => 'The email has been used.', 'http_code' => 400, 'description' => 'Mailbox already in use'],
['code' => 'InvalidRegion.NotMatch', 'message' => 'The speicified region is invalid. Please switch to your activated region %s.', 'http_code' => 403, 'description' => 'The speicified region is invalid. Please switch to your activated region %s.'],
['code' => 'InvalidRole.NotFound', 'message' => 'The specified role %s does not exist.', 'http_code' => 404, 'description' => 'The specified role %s does not exist.'],
['code' => 'InvalidSamlProvider.NotFound', 'message' => 'The specified saml provider does not exist.', 'http_code' => 404, 'description' => 'The IdP for SSO does not exist.'],
['code' => 'InvalidUser.NotFound', 'message' => 'The specified user does not exist.', 'http_code' => 404, 'description' => 'The user does not exist.'],
['code' => 'InvalidUser.NotInWhiteList', 'message' => 'Cloud Governance Center is at the public preview stage. Please apply for use by submitting a ticket.', 'http_code' => 400, 'description' => 'Cloud Governance Center is at the public preview stage. Please apply for use by submitting a ticket.'],
['code' => 'InvalidUser.NotResourceDirectoryMaster', 'message' => 'The specified account is not a master account of resource directory.', 'http_code' => 403, 'description' => 'The specified account is not a master account of resource directory.'],
['code' => 'InvalidUser.StatusAbnormal', 'message' => 'The status of your account is abnormal.', 'http_code' => 403, 'description' => 'The status of your account is abnormal.'],
['code' => 'InvalidUser.UnOpenService', 'message' => 'Your account has not activated Cloud Governance Center.', 'http_code' => 403, 'description' => 'Your account has not activated Cloud Governance Center.'],
['code' => 'InvalidWorkload.NotFound', 'message' => 'The specified workload does not exist.', 'http_code' => 404, 'description' => 'The specified workload does not exist.'],
['code' => 'NoPermission', 'message' => 'You are not authorized to perform this operation. Action: %s. Resource: %s.', 'http_code' => 403, 'description' => 'You are not authorized to perform this operation. Action: %s. Resource: %s.'],
['code' => 'NoPermission.ResourceManager', 'message' => 'You are not authorized to perform this operation. Action: %s.', 'http_code' => 403, 'description' => 'You are not authorized to perform this operation. Action: %s.'],
['code' => 'NoPermission.ServiceLinkedRole', 'message' => 'You are not authorized to create the service linked role. Service Name: %s. Please ensure the user has been granted the ram:CreateServiceLinkedRole permission', 'http_code' => 403, 'description' => 'You are not authorized to create the service linked role. Service Name: %s. Please ensure the user has been granted the ram:CreateServiceLinkedRole permission.'],
['code' => 'OperationDenied.ExistedBlueprint', 'message' => 'Specified operation is denied as there are still blueprint under this account.', 'http_code' => 400, 'description' => 'A blueprint exists in the current account. You cannot perform the operation.'],
['code' => 'ResourceDirectory.NotOpen', 'message' => 'The specified account has not enabled resource directory.', 'http_code' => 400, 'description' => 'The specified account has not enabled resource directory.'],
['code' => 'ResourceExplorerLimit.Exceed', 'message' => 'The maximum number of %s you listed is exceeded. The maximum value is %s.', 'http_code' => 400, 'description' => 'The maximum number of %s you listed is exceeded. The maximum value is %s.'],
['code' => 'InvalidConversation.NotFount', 'message' => 'The specified conversation does not exist or not belongs to the user.', 'http_code' => 404, 'description' => 'The conversation ID does not exist or does not belong to the current user'],
['code' => 'InvalidConversation.NotFound', 'message' => 'The specified conversation does not exist or not belongs to the user.', 'http_code' => 404, 'description' => 'The current conversation does not exist or the conversation does not belong to the current user'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchEnrollAccounts'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAccountFactoryBaseline'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetEnrolledAccount'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationMetadata'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunEvaluation'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAccountFactoryBaselines'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationResults'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAccountFactoryBaseline'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnrollAccount'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAccountFactoryBaselineItems'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccountFactoryBaseline'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAccountFactoryBaseline'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEnrolledAccounts'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationMetricDetails'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEvaluationScoreHistory'],
],
],
'ram' => [
'productCode' => 'Governance',
'productName' => 'Cloud Governance Center',
'ramCodes' => ['governance'],
'ramLevel' => 'OPERATION',
'ramConditions' => [
[
'name' => 'acs:ResourceGroupId',
'schema' => ['type' => 'String', 'description' => ''],
],
],
'ramActions' => [
[
'apiName' => 'ListEvaluationMetricDetails',
'description' => '',
'operationType' => 'list',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:ListEvaluationMetricDetails',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAccountFactoryBaseline',
'description' => '',
'operationType' => 'get',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:GetAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetEnrolledAccount',
'description' => '',
'operationType' => 'get',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:GetEnrolledAccount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEvaluationMetadata',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:ListEvaluationMetadata',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'EnrollAccount',
'description' => '',
'operationType' => 'create',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:EnrollAccount',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEvaluationResults',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'governance:ListEvaluationResults',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateAccountFactoryBaseline',
'description' => '',
'operationType' => 'create',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:CreateAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEvaluationScoreHistory',
'description' => '',
'operationType' => 'get',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:ListEvaluationScoreHistory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEnrolledAccounts',
'description' => '',
'operationType' => 'list',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:ListEnrolledAccounts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'BatchEnrollAccounts',
'description' => '',
'operationType' => 'create',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:BatchEnrollAccounts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RunEvaluation',
'description' => '',
'operationType' => 'none',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:RunEvaluation',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteAccountFactoryBaseline',
'description' => '',
'operationType' => 'delete',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:DeleteAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListAccountFactoryBaselineItems',
'description' => '',
'operationType' => 'list',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:ListAccountFactoryBaselineItems',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GenerateEvaluationReport',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'governance:GenerateEvaluationReport',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateAccountFactoryBaseline',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'governance:UpdateAccountFactoryBaseline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListAccountFactoryBaselines',
'description' => '',
'operationType' => 'list',
'additionalActions' => [],
'ramAction' => [
'action' => 'governance:ListAccountFactoryBaselines',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Governance', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|