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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'VpcPeer', 'version' => '2022-01-01'],
'directories' => ['AcceptVpcPeerConnection', 'CreateVpcPeerConnection', 'DeleteVpcPeerConnection', 'GetVpcPeerConnectionAttribute', 'ListVpcPeerConnections', 'ModifyVpcPeerConnection', 'RejectVpcPeerConnection', 'ListTagResources', 'MoveResourceGroup', 'TagResources', 'UnTagResources'],
'components' => [
'schemas' => [],
],
'apis' => [
'AcceptVpcPeerConnection' => [
'summary' => 'Accepts a VPC peering connection request.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '130834',
'abilityTreeNodes' => ['FEATUREvpcZAZ5VI', 'FEATUREvpc3J8W0N', 'FEATUREvpc7MUSG6'],
'autoTest' => false,
'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力',
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pcc-guzvyqlj0n6e10****'],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- **true**: Sends a request without accepting the VPC peering connection request. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the check passes, the `DryRunOperation` error code is returned.'."\n"
."\n"
.'- **false** (default): Sends a normal request. After the check passes, an HTTP 2xx status code is returned and the operation is performed.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'Generate a token from your client to make sure that it is unique among different requests. The client token can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **RequestId** of the request as the **ClientToken**. The **RequestId** of each API request may be different.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '02fb3da4-130e-11e9-8e44-001****'],
],
[
'name' => 'ResourceGroupId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the resource group.'."\n"
."\n"
.'For more information, see [What is a resource group?](~~94475~~)', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'rg-acfmxazb4ph6aiy****'],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['type' => 'string', 'required' => false, 'description' => 'The key of the tag. You can specify 1 to 20 tag keys. It cannot be an empty string.'."\n"
."\n"
.'The tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'title' => '', 'example' => 'FinanceDept'],
'Value' => ['type' => 'string', 'required' => false, 'description' => 'The value of the tag. You can specify 1 to 20 tag values. It can be an empty string.'."\n"
."\n"
.'The tag value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'title' => '', 'example' => 'FinanceJoshua'],
],
'required' => false,
'description' => 'The tags.',
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 21,
'minItems' => 1,
'description' => 'The tags.',
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<CreateVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '4EC47282-1B74-4534-BD0E-403F3EE64CAF'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.InstanceId', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => 'The specified instance is not found'],
['errorCode' => 'IncorrectStatus.VpcPeer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received.'],
['errorCode' => 'OperationFailed.CdtNotOpened', 'errorMessage' => 'The operation failed because the Cdt service is not opened.', 'description' => 'The operation failed because CDT is not activated.'],
['errorCode' => 'IncorrectBusinessStatus.VpcPeer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => 'The current instance status is abnormal and the current operation is not allowed.'],
['errorCode' => 'OperationFailed.NotExist.ResourceGroup', 'errorMessage' => 'The operation failed because the resource group does not exist.', 'description' => 'The operation failed because the resource group does not exist.'],
['errorCode' => 'OperationFailed.CrossBorderCdtNotOpened', 'errorMessage' => 'The cross-border data transmission function of Alibaba Cloud is not enabled.', 'description' => ''],
],
],
'title' => 'AcceptVpcPeerConnection',
'description' => '- A cross-account VPC peering connection is activated only after the accepter VPC accepts the request.'."\n"
."\n"
.'- **AcceptVpcPeerConnection** is an asynchronous operation. After you send a request, the system returns a **RequestId** while running the task in the background. Call [GetVpcPeerConnectionAttribute](~~426100~~) to query the status of the VPC peering connection instance.'."\n"
."\n"
.' - **Updating** indicates that the VPC peering connection is being activated.'."\n"
."\n"
.' - **Activated** indicates that the VPC peering connection is activated.'."\n"
."\n"
.'- **AcceptVpcPeerConnection** does not support concurrent requests for the same VPC peering connection.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AcceptVpcPeerConnection'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'vpc:AcceptVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EC47282-1B74-4534-BD0E-403F3EE64CAF\\"\\n}","type":"json"}]',
],
'CreateVpcPeerConnection' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the region where you want to create a VPC peering connection.'."\n"
."\n"
.'Call the [DescribeRegions](~~36063~~) operation to query the most recent region list.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'VpcId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the requester VPC.', 'type' => 'string', 'required' => true, 'example' => 'vpc-bp1gsk7h12ew7oegk****', 'title' => ''],
],
[
'name' => 'AcceptingAliUid',
'in' => 'formData',
'schema' => ['description' => 'The ID of the Alibaba Cloud account to which the accepter VPC belongs.'."\n"
."\n"
.'- To create a VPC peering connection within your Alibaba Cloud account, enter the ID of your Alibaba Cloud account.'."\n"
."\n"
.'- To create a VPC peering connection between your Alibaba Cloud account and another Alibaba Cloud account, enter the ID of the peer Alibaba Cloud account.'."\n"
."\n"
.'> If the accepter is a RAM user, set **AcceptingAliUid** to the ID of the Alibaba Cloud account that created the RAM user.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1210123456123456', 'title' => ''],
],
[
'name' => 'AcceptingRegionId',
'in' => 'formData',
'schema' => ['description' => 'The region ID of the accepter VPC of the VPC peering connection that you want to create.'."\n"
."\n"
.'- To create an intra-region VPC peering connection, enter a region ID that is the same as that of the requester VPC.'."\n"
."\n"
.'- To create an inter-region VPC peering connection, enter a region ID that is different from that of the requester VPC.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'AcceptingVpcId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the accepter VPC.', 'type' => 'string', 'required' => true, 'example' => 'vpc-bp1vzjkp2q1xgnind****', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => 'The name of the VPC peering connection.'."\n"
."\n"
.'The name must be 2 to 128 characters in length, and can contain digits, underscores (\\_), and hyphens (-). It must start with a letter.', 'type' => 'string', 'required' => false, 'example' => 'vpcpeer', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'formData',
'schema' => ['description' => 'The description of the VPC peering connection.'."\n"
."\n"
.'The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'description', 'title' => ''],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to perform only a dry run, without performing the actual request. Valid values:'."\n"
."\n"
.'- **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.'."\n"
."\n"
.'- **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.', 'type' => 'string', 'required' => false, 'example' => '02fb3da4-130e-11e9-8e44-001****', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the resource group.'."\n"
."\n"
.'For more information about resource groups, see [Resource groups](~~94475~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmxazb4ph6aiy****', 'title' => ''],
],
[
'name' => 'Bandwidth',
'in' => 'formData',
'schema' => ['description' => 'The bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer greater than 0. Before you specify this parameter, make sure that you create an inter-region VPC peering connection.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
],
[
'name' => 'LinkType',
'in' => 'query',
'schema' => ['description' => 'The link type of the VPC peering connection that you want to create. Valid values:'."\n"
."\n"
.'- Platinum.'."\n"
."\n"
.'- Gold: default value.'."\n"
."\n"
.'> * If you need to specify this parameter, ensure that the VPC peering connection is an inter-region connection.', 'type' => 'string', 'required' => false, 'example' => 'Gold', 'title' => ''],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key. You must specify at least one tag key and at most 20 tag keys. The tag key cannot be an empty string.'."\n"
."\n"
.'The tag key can be up to 128 characters in length. It cannot start with `acs:` or `aliyun` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'FinanceDept', 'title' => ''],
'Value' => ['description' => 'The tag value. You must specify at least one tag value and can specify at most 20 tag values. The tag value can be an empty string.'."\n"
."\n"
.'The tag value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:`, and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'FinanceJoshua', 'title' => ''],
],
'required' => false,
'description' => 'The tags.',
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 21,
'minItems' => 1,
'description' => 'The tags.',
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<CreateVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '54B48E3D-DF70-471B-AA93-08E683A1B45', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the instance on which the VPC peering connection is created.', 'type' => 'string', 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationFailed.CdtNotOpened', 'errorMessage' => 'The operation failed because the Cdt service is not opened.', 'description' => 'The operation failed because CDT is not activated.'],
['errorCode' => 'OperationFailed.CrossBorderCdtNotOpened', 'errorMessage' => 'The operation failed because the CrossBorderCdt service is not opened.', 'description' => ''],
['errorCode' => 'IncorrectStatus.Vpc', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The status of the initiator VPC instance is incorrect.'],
['errorCode' => 'IncorrectStatus.AcceptingVpc', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The receiving VPC status is incorrect.'],
['errorCode' => 'ResourceAlreadyExist.RouterInterface', 'errorMessage' => 'The specified resource of %s already exists.', 'description' => 'The specified router interface already exists.'],
['errorCode' => 'ResourceAlreadyExist.VpcPeer', 'errorMessage' => 'The specified resource of %s already exists.', 'description' => 'The specified VPC peering connection already exists.'],
['errorCode' => 'OperationDenied.CloudBoxExistsInVpc', 'errorMessage' => 'The operation is not allowed because the CloudBox device exists in vpc.', 'description' => 'A cloud box instance exists in the initiator VPC, so it is not allowed to create a VpcPeer instance.'],
['errorCode' => 'OperationDenied.CloudBoxExistsInAcceptingVpc', 'errorMessage' => 'The operation is not allowed because the CloudBox device exists in accepting vpc.', 'description' => 'Cloud box instances exist in the receiving end VPC, so VpcPeer instances are not allowed to be created.'],
['errorCode' => 'QuotaExceeded.VpcPeerCountPerVpc', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => 'The number of VPC peering connections to the VPC has reached the upper limit.'],
['errorCode' => 'UnsupportedRegion', 'errorMessage' => 'The feature of %s is not supported in the region of %s.', 'description' => 'VPC peering connections are not supported in this region.'],
['errorCode' => 'QuotaExceeded.VpcPeerCountPerUserPerRegion', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => 'The number of VpcPeer instances in a region exceeds the threshold.'],
['errorCode' => 'IncorrectBusinessStatus.VpcPeer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => 'The current instance status is abnormal and the current operation is not allowed.'],
['errorCode' => 'OperationFailed.NotExist.ResourceGroup', 'errorMessage' => 'The operation failed because the resource group does not exist.', 'description' => 'The operation failed because the resource group does not exist.'],
['errorCode' => 'OperationFailed.AcceptUserCdtNotOpened', 'errorMessage' => 'The operation failed because the Cdt service of accept user is not opened.', 'description' => 'The operation failed because CDT is not activated for the peer.'],
['errorCode' => 'OperationFailed.AcceptUserCrossBorderCdtNotOpened', 'errorMessage' => 'The operation failed because the CrossBorderCdt service of accept user is not opened.', 'description' => 'The operation failed because the cross-border service of CDT is not activated for the peer.'],
['errorCode' => 'IncorrectBusinessStatus.AcceptUserVpcPeer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => 'The peer VPC is in an invalid business state.'],
['errorCode' => 'OperationFailed.ViolativeVpcPeer', 'errorMessage' => 'The creation operation fails because it is not allowed to create a vpc peer instance between the originating region and the receiving region.', 'description' => 'the creation operation fails because it is not allowed to create a vpc peer instance between the originating region and the receiving region.'],
['errorCode' => 'QuotaExceeded.CrossRegionVpcPeerCountPerVpc', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => 'The number of cross-region VpcPeer in the specified VPC exceeds the limit'],
['errorCode' => 'QuotaExceeded.IntraRegionVpcPeerCountPerVpc', 'errorMessage' => 'The quota of %s is exceeded, usage %s/%s.', 'description' => 'The number of VpcPeer in the same region in the specified VPC exceeds the limit'],
['errorCode' => 'OperationDenied.OperateShareResource', 'errorMessage' => 'The operation is not allowed because of operating shared resource.', 'description' => 'Operating on shared resources causes the operation to fail'],
['errorCode' => 'IncorrectBusinessStatus.AcceptVpcPeer', 'errorMessage' => 'The business status of peer account is incorrect.', 'description' => 'The business status of the peer VpcPeer in an invalid state.'],
['errorCode' => 'OperationFailed.InterRegionLinkTypeNotSupported', 'errorMessage' => 'The same region not supported link type feature.', 'description' => 'Link type characteristics are not supported in the same region.'],
['errorCode' => 'OperationFailed.RegionIdNotSupportLinkType', 'errorMessage' => 'The feature link type is not supported in the region.', 'description' => 'The gold, silver and copper settings for this feature are not supported in the region.'],
['errorCode' => 'OperationFailed.SpecificLinkTypeNotSupported', 'errorMessage' => 'The operation failed because the special link type of user is not opened.', 'description' => 'The account does not support special link types.'],
['errorCode' => 'OperationFailed.CrossBusinessNotAllowed', 'errorMessage' => 'Operation failed because receiver and accepter belong to different business site.', 'description' => ''],
['errorCode' => 'OperationFailed.ChargeTypeNotSupported', 'errorMessage' => 'Operation failed because the CDT charge type of receiver or accepter does not support the Underlay link type.', 'description' => ''],
],
],
'title' => 'CreateVpcPeerConnection',
'summary' => 'Creates a VPC peering connection',
'description' => 'Before you create a VPC peering connection, take note of the following items:'."\n"
."\n"
.'- **CreateVpcPeerConnection** is an asynchronous operation. The system returns an **instance ID **but the IPsec connection is not yet created and runs the task in the background. Call [GetVpcPeerConnectionAttribute](~~426095~~) to query the status of the task.'."\n"
."\n"
.' - If the VPC peering connection is in the **Creating** state, the VPC peering connection is being created.'."\n"
."\n"
.' - If the VPC peering connection is in the **Activated** state, the VPC peering connection is created.'."\n"
."\n"
.' - If the VPC peering connection is in the **Accepting** state, it is a cross-account connection. The connection needs to be accepted on the accepter side.'."\n"
."\n"
.'- You cannot repeatedly call **CreateVpcPeerConnection** within the specified period of time.'."\n"
."\n"
.'When you create a VPC peering connection, the system automatically activates Cloud Data Transfer (CDT) for you.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateVpcPeerConnection'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'vpc:CreateVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54B48E3D-DF70-471B-AA93-08E683A1B45\\",\\n \\"InstanceId\\": \\"pcc-lnk0m24khwvtkm****\\"\\n}","type":"json"}]',
],
'DeleteVpcPeerConnection' => [
'summary' => 'Deletes a VPC peering connection.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pcc-lnk0m24khwvtkm****'],
],
[
'name' => 'Force',
'in' => 'formData',
'schema' => ['title' => '', 'description' => 'Specifies whether to force delete the VPC peering connection. Valid values:'."\n"
."\n"
.'- **false** (default): does not force delete the VPC peering connection. Delete the routes that point to the VPC peering connection.'."\n"
."\n"
.'- **true**: force deletes the VPC peering connection. The system deletes the routes that point to the VPC peering connection in the route table.', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- **true**: performs a dry run but does not delete the VPC peering connection. The system checks the request for required parameters, format, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.'."\n"
."\n"
.'- **false** (default): sends the request. If the request passes the check, an HTTP 2xx status code is returned and the operation is performed.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'Generate a value for this parameter from your client to make sure that the value is unique among different requests. The client token can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '02fb3da4-130e-11e9-8e44-001****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<DeleteVpcPeerResponse>',
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '54B48E3D-DF70-471B-AA93-08E683A1B45'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.InstanceId', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => 'The specified instance is not found'],
['errorCode' => 'IncorrectStatus.VpcPeer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received.'],
['errorCode' => 'OperationDenied.RouteEntryExist', 'errorMessage' => 'The operation is not allowed because of existing routeEntry point to VpcPeer.', 'description' => 'The VPC peering connection cannot be deleted because a route points to the VPC peering connection.'],
['errorCode' => 'OperationDenied.ServiceManagedInstance', 'errorMessage' => 'Operation is denied because the specified instance belongs to service manager.', 'description' => ''],
],
],
'title' => 'DeleteVpcPeerConnection',
'description' => '- You can delete a VPC peering connection. After you delete the instance, your services are interrupted. Make sure that this operation does not affect your business.'."\n"
."\n"
.' - If you force delete the instance, the system also deletes the routes that point to the VPC peering connection from the route table.'."\n"
."\n"
.' - If you do not force delete the instance, the system does not delete the routes that point to the VPC peering connection from the route table. You must manually delete these routes.'."\n"
."\n"
.'- **DeleteVpcPeerConnection** is an asynchronous operation. After you send a request, the system returns a **request ID**, while running the task in the background. Call the [GetVpcPeerConnectionAttribute](~~2523294~~) operation to query the status of the VPC peering connection.'."\n"
."\n"
.' - **Deleting** indicates the instance is being deleted.'."\n"
."\n"
.' - **Deleted** indicates the instance is deleted.'."\n"
."\n"
.'- You cannot send concurrent requests to delete the same VPC peering connection instance.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteVpcPeerConnection'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'vpc:DeleteVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"54B48E3D-DF70-471B-AA93-08E683A1B45\\"\\n}","type":"json"}]',
],
'GetVpcPeerConnectionAttribute' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'required' => true, 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<GetVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
'GmtCreate' => ['description' => 'The time when the VPC peering connection was created. The time is displayed in UTC in the `YYYY-MM-DDThh:mm:ssZ` format.', 'type' => 'string', 'example' => '2022-04-24T09:02:36Z', 'title' => ''],
'GmtModified' => ['description' => 'The time when the VPC peering connection was last modified. The time is displayed in UTC in the `YYYY-MM-DDThh:mm:ssZ` format.', 'type' => 'string', 'example' => '2022-04-24T19:20:45Z', 'title' => ''],
'Name' => ['description' => 'The name of the VPC peering connection.', 'type' => 'string', 'example' => 'vpcpeer', 'title' => ''],
'Description' => ['description' => 'The description of the VPC peering connection.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'OwnerId' => ['description' => 'The ID of the Alibaba Cloud account to which the requester VPC belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '25346073170691****', 'title' => ''],
'AcceptingOwnerUid' => ['description' => 'The ID of the Alibaba Cloud account to which the accepter VPC belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '28311773240248****', 'title' => ''],
'RegionId' => ['description' => 'The region ID of the requester VPC.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'AcceptingRegionId' => ['description' => 'The region ID of the accepter VPC.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'Bandwidth' => ['description' => 'The bandwidth of the VPC peering connection. Unit: Mbps. The value must be an integer greater than 0.'."\n"
."\n"
.'> A value of -1 indicates that no limit is imposed on the bandwidth.'."\n"
."\n"
.'Default values:'."\n"
."\n"
.'- The default bandwidth for a cross-region VPC peering connection is 1,024 Mbps.'."\n"
."\n"
.'- The default bandwidth for an intra-region VPC peering connection is -1 Mbps. This indicates that no limit is imposed on the bandwidth.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024', 'title' => ''],
'Status' => ['description' => 'The status of the VPC peering connection. Valid values:'."\n"
."\n"
.'- **Creating**'."\n"
."\n"
.'- **Accepting**'."\n"
."\n"
.'- **Updating**'."\n"
."\n"
.'- **Rejected**'."\n"
."\n"
.'- **Expired**'."\n"
."\n"
.'- **Activated**'."\n"
."\n"
.'- **Deleting**'."\n"
."\n"
.'- **Deleted**'."\n"
."\n"
.'For more information, see [VPC peering connection overview](~~418507~~).', 'type' => 'string', 'example' => 'Activated', 'title' => ''],
'BizStatus' => ['description' => 'The business status of the VPC peering connection. Valid values:'."\n"
."\n"
.'- **Normal**'."\n"
."\n"
.'- **FinancialLocked**: The VPC peering connection is locked due to an overdue payment.', 'type' => 'string', 'example' => 'Normal', 'title' => ''],
'GmtExpired' => ['description' => 'The time when the VPC peering connection expires.'."\n"
."\n"
.'This parameter is returned only when the **Status** of the VPC peering connection is **Accepting** or **Expired**. For other statuses, the return value is **null**.', 'type' => 'string', 'example' => '2022-05-01T09:02:36Z', 'title' => ''],
'ResourceGroupId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-acfmxazb4ph6aiy****', 'title' => ''],
'Vpc' => [
'description' => 'The details of the requester VPC.',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'The ID of the requester VPC.', 'type' => 'string', 'example' => 'vpc-bp1gsk7h12ew7oegk****', 'title' => ''],
'Ipv4Cidrs' => [
'description' => 'The IPv4 CIDR blocks of the requester VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv4 CIDR block of the requester VPC.', 'type' => 'string', 'example' => '192.168.0.0/16', 'title' => ''],
'title' => '',
'example' => '',
],
'Ipv6Cidrs' => [
'description' => 'The IPv6 CIDR blocks of the requester VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv6 CIDR block of the requester VPC.', 'type' => 'string', 'example' => '2408:XXXX:3c5:6e00::/56', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'AcceptingVpc' => [
'description' => 'The details of the accepter VPC.',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'The ID of the accepter VPC.', 'type' => 'string', 'example' => 'vpc-bp1vzjkp2q1xgnind****', 'title' => ''],
'Ipv4Cidrs' => [
'description' => 'The IPv4 CIDR blocks of the accepter VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv4 CIDR block of the accepter VPC.', 'type' => 'string', 'example' => '10.0.0.0/16', 'title' => ''],
'title' => '',
'example' => '',
],
'Ipv6Cidrs' => [
'description' => 'The IPv6 CIDR blocks of the accepter VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv6 CIDR block of the accepter VPC.', 'type' => 'string', 'example' => '2408:XXXX:3b8:3a00::/56', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Tags' => [
'description' => 'The list of tags.',
'type' => 'array',
'items' => [
'description' => 'The list of tags.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'FinanceDept', 'title' => ''],
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'FinanceJoshua', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'LinkType' => ['description' => 'The link type of the VPC peering connection.'."\n"
."\n"
.'Default values:'."\n"
."\n"
.'- The default link type for a cross-region VPC peering connection is Gold.'."\n"
."\n"
.'- The default link type for an intra-region VPC peering connection is empty.', 'type' => 'string', 'example' => 'Gold', 'title' => ''],
'ManagedService' => ['description' => 'The Alibaba Cloud service to which the resource belongs.', 'type' => 'string', 'example' => 'SWAS', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.InstanceId', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => 'The specified instance is not found'],
],
],
'title' => 'GetVpcPeerConnectionAttribute',
'summary' => 'Queries the attributes of a specified VPC peering connection.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetVpcPeerConnectionAttribute'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'vpc:GetVpcPeerConnectionAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#accountId}:vpcpeer/{#InstanceId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E\\",\\n \\"InstanceId\\": \\"pcc-lnk0m24khwvtkm****\\",\\n \\"GmtCreate\\": \\"2022-04-24T09:02:36Z\\",\\n \\"GmtModified\\": \\"2022-04-24T19:20:45Z\\",\\n \\"Name\\": \\"vpcpeer\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerId\\": 0,\\n \\"AcceptingOwnerUid\\": 0,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"AcceptingRegionId\\": \\"cn-hangzhou\\",\\n \\"Bandwidth\\": 1024,\\n \\"Status\\": \\"Activated\\",\\n \\"BizStatus\\": \\"Normal\\",\\n \\"GmtExpired\\": \\"2022-05-01T09:02:36Z\\",\\n \\"ResourceGroupId\\": \\"rg-acfmxazb4ph6aiy****\\",\\n \\"Vpc\\": {\\n \\"VpcId\\": \\"vpc-bp1gsk7h12ew7oegk****\\",\\n \\"Ipv4Cidrs\\": [\\n \\"192.168.0.0/16\\"\\n ],\\n \\"Ipv6Cidrs\\": [\\n \\"2408:XXXX:3c5:6e00::/56\\"\\n ]\\n },\\n \\"AcceptingVpc\\": {\\n \\"VpcId\\": \\"vpc-bp1vzjkp2q1xgnind****\\",\\n \\"Ipv4Cidrs\\": [\\n \\"10.0.0.0/16\\"\\n ],\\n \\"Ipv6Cidrs\\": [\\n \\"2408:XXXX:3b8:3a00::/56\\"\\n ]\\n },\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"FinanceDept\\",\\n \\"Value\\": \\"FinanceJoshua\\"\\n }\\n ],\\n \\"LinkType\\": \\"Gold\\",\\n \\"ManagedService\\": \\"SWAS\\"\\n}","type":"json"}]',
],
'ListTagResources' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => 'The resource type. Valid value: **PeerConnection**. This value specifies a VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'PeerConnection'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the resources. You can specify up to 20 resource IDs.',
'type' => 'array',
'items' => ['description' => 'The ID of the resource. You can specify up to 20 resource IDs.'."\n"
."\n"
.'> You must specify at least **ResourceId.N** or **Tag.N** (which consists of **Tag.N.Key** and **Tag.N.Value**).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'pcc-bp16qjewdsunr41m1****'],
'deprecated' => true,
'required' => false,
'maxItems' => 50,
'title' => '',
'example' => '',
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tags.',
'type' => 'array',
'items' => [
'description' => 'The tag.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.'."\n"
."\n"
.'A tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:`, and cannot contain `http://` or `https://`.'."\n"
."\n"
.'> You must specify at least **ResourceId.N** or **Tag.N** (which consists of **Tag.N.Key** and **Tag.N.Value**).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FinanceDept'],
'Value' => ['description' => 'The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.'."\n"
."\n"
.'A tag value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:`, and cannot contain `http://` or `https://`.'."\n"
."\n"
.'> You must specify at least **ResourceId.N** or **Tag.N** (which consists of **Tag.N.Key** and **Tag.N.Value**).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FinanceJoshua'],
],
'required' => false,
'title' => '',
'example' => '',
],
'deprecated' => true,
'required' => false,
'maxItems' => 21,
'title' => '',
'example' => '',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Valid values: **1** to **50**. Default value: **50**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '50'],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The token that is used to start the next query. Valid values:'."\n"
."\n"
.'- If this is the first query or no subsequent query is to be sent, do not specify this parameter.'."\n"
."\n"
.'- To retrieve the next page of results, set this parameter to the **NextToken** value returned from the previous call.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region where the resource is deployed. See [DescribeRegions](~~36063~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
'description' => 'The type of the tag.'."\n"
."\n"
.'- All (default)'."\n"
."\n"
.'- Custom'."\n"
."\n"
.'- System',
'enumValueTitles' => ['All' => 'All', 'Custom' => 'Custom', 'System' => 'System'],
'title' => '',
'example' => 'All',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<ListVpcPeerResponse>',
'description' => 'Request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'title' => '', 'example' => 'DE65F6B7-7566-4802-9007-96F2494AC512'],
'TagResources' => [
'description' => 'A list of the resources and their tags.',
'type' => 'array',
'items' => [
'description' => 'The details of a resource and its tag.',
'type' => 'object',
'properties' => [
'ResourceId' => ['description' => 'The ID of the resource.', 'type' => 'string', 'title' => '', 'example' => 'pcc-bp16qjewdsunr41m1****'],
'ResourceType' => ['description' => 'The type of the resource. Valid value: **PeerConnection**, which indicates a VPC peering connection.', 'type' => 'string', 'title' => '', 'example' => 'PeerConnection'],
'RegionNo' => ['description' => 'The region of the requester VPC of the peering connection.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'],
'TagKey' => ['description' => 'The tag key.', 'type' => 'string', 'title' => '', 'example' => 'FinanceDept'],
'TagValue' => ['description' => 'The tag value.', 'type' => 'string', 'title' => '', 'example' => 'FinanceJoshua'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'NextToken' => ['description' => 'The token that is used for the next query. Valid values:'."\n"
."\n"
.'- If the returned value is empty, no more results are available.'."\n"
."\n"
.'- If a value is returned, it is the token for the next query.', 'type' => 'string', 'title' => '', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****'],
'MaxResults' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '50'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidTagKey', 'errorMessage' => 'The tag keys are not valid.', 'description' => 'The tag index is invalid.'],
['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of tags is exceeded.', 'description' => 'The number of tags has reached the upper limit.'],
['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of resource IDs is exceeded.', 'description' => 'The number of resource group IDs exceeds the upper limit.'],
['errorCode' => 'Forbidden.TagKeys', 'errorMessage' => 'The tag key cannot be operated by the request.', 'description' => 'You cannot manage the tag key by calling the operation.'],
['errorCode' => 'Forbidden.TagKey.Duplicated', 'errorMessage' => 'The specified tag key already exists.', 'description' => 'The tag resources are duplicate.'],
['errorCode' => 'InvalidInstanceIds.NotFound', 'errorMessage' => 'The instance IDs are not found.', 'description' => 'The instance ID is invalid.'],
['errorCode' => 'InvalidInstanceType.NotFound', 'errorMessage' => 'The instance type is not found.', 'description' => 'The instance type is invalid.'],
['errorCode' => 'BothEmpty.TagsAndResources', 'errorMessage' => 'The specified Tags and ResourcesIds are not allow to both empty.', 'description' => 'The tag and resource information cannot be empty at the same time.'],
],
],
'title' => 'ListTagResources',
'summary' => 'Queries the tags that are attached to a VPC peering connection.',
'description' => '- You must specify at least **ResourceId.N** or **Tag.N**, which consists of **Tag.N.Key** and **Tag.N.Value**, to identify the resources that you want to query.'."\n"
."\n"
.'- **Tag.N** is a resource tag that consists of a key-value pair. If you specify only **Tag.N.Key**, all tag values associated with the tag key are returned. Specifying only **Tag.N.Value** returns an error.'."\n"
."\n"
.'- If you specify both **Tag.N** and **ResourceId.N**, only resources that have all the specified tags and match the specified resource IDs are returned.'."\n"
."\n"
.'- If you specify multiple tag key-value pairs, only the resources that have all the specified tags are returned.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '3000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTagResources'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'vpc:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DE65F6B7-7566-4802-9007-96F2494AC512\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceId\\": \\"pcc-bp16qjewdsunr41m1****\\",\\n \\"ResourceType\\": \\"PeerConnection\\",\\n \\"RegionNo\\": \\"cn-hangzhou\\",\\n \\"TagKey\\": \\"FinanceDept\\",\\n \\"TagValue\\": \\"FinanceJoshua\\"\\n }\\n ],\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"MaxResults\\": 50\\n}","type":"json"}]',
],
'ListVpcPeerConnections' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'formData',
'schema' => ['description' => 'The region ID of the VPC peering connection.'."\n"
."\n"
.'You can call the [DescribeRegions](~~36063~~) operation to obtain the region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'required' => false, 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
],
[
'name' => 'VpcId',
'in' => 'formData',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'The ID of a VPC in the peering connection. You can specify the ID of the requester or accepter VPC. If you specify only one VPC ID, the query returns all peering connections that involve the specified VPC.',
'type' => 'array',
'items' => ['description' => 'The ID of the requester or accepter VPC.', 'type' => 'string', 'required' => false, 'example' => 'vpc-bp1gsk7h12ew7oegk****', 'title' => ''],
'required' => false,
'maxItems' => 2,
'example' => '',
],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => 'The name of the VPC peering connection.', 'type' => 'string', 'required' => false, 'example' => 'vpcpeer', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'formData',
'schema' => ['description' => 'The token that is used for the next query. Valid values:'."\n"
."\n"
.'- Do not specify this parameter for the first request.'."\n"
."\n"
.'- You must specify the token that is obtained from the previous query as the value of NextToken.', 'type' => 'string', 'required' => false, 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****', 'title' => ''],
],
[
'name' => 'MaxResults',
'in' => 'formData',
'schema' => ['description' => 'The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
],
[
'name' => 'Tags',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tags.',
'type' => 'array',
'items' => [
'description' => 'The tags.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The tag value. You can specify up to 20 tag values. The tag value can be an empty string.'."\n"
."\n"
.'The value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'FinanceJoshua', 'title' => ''],
'Key' => ['description' => 'The tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string.'."\n"
."\n"
.'The key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'FinanceDept', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group.'."\n"
."\n"
.'For more information about resource groups, see [What is a resource group?](~~94475~~).', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmxazb4ph6aiy****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<ListVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0ED8D006-F706-4D23-88ED-E11ED39DCAC0', 'title' => ''],
'TotalCount' => ['description' => 'The number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'MaxResults' => ['description' => 'The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'NextToken' => ['description' => 'The token that is used for the next query. Valid values:'."\n"
."\n"
.'- If **NextToken** is empty, no more results are available.'."\n"
."\n"
.'- If a value is returned for **NextToken**, the value is the token that you can use in the next request to retrieve more results.', 'type' => 'string', 'example' => 'FFmyTO70tTpLG6I3FmYAXGKPd****', 'title' => ''],
'VpcPeerConnects' => [
'description' => 'The details of the VPC peering connections.',
'type' => 'array',
'items' => [
'description' => 'The details of the VPC peering connection.',
'type' => 'object',
'properties' => [
'AcceptingOwnerUid' => ['description' => 'The ID of the Alibaba Cloud account to which the accepter VPC belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '25346073170691****', 'title' => ''],
'Status' => ['description' => 'The status of the VPC peering connection. Valid values:'."\n"
."\n"
.'- **Creating**'."\n"
."\n"
.'- **Accepting**'."\n"
."\n"
.'- **Updating**'."\n"
."\n"
.'- **Rejected**'."\n"
."\n"
.'- **Expired**'."\n"
."\n"
.'- **Activated**'."\n"
."\n"
.'- **Deleting**'."\n"
."\n"
.'- **Deleted**'."\n"
."\n"
.'For more information about the states of a VPC peering connection, see [VPC Peering Connection Overview](~~418507~~).', 'type' => 'string', 'example' => 'Activated', 'title' => ''],
'Description' => ['description' => 'The description of the VPC peering connection.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'ResourceGroupId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-acfmxazb4ph6aiy****', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
'AcceptingRegionId' => ['description' => 'The region ID of the accepter VPC.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'GmtModified' => ['description' => 'The time when the VPC peering connection was modified. The time is displayed in UTC in the `YYYY-MM-DDThh:mm:ssZ` format.', 'type' => 'string', 'example' => '2022-04-24T19:20:45Z', 'title' => ''],
'Vpc' => [
'description' => 'The details of the requester VPC.',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'The ID of the requester VPC.', 'type' => 'string', 'example' => 'vpc-bp1gsk7h12ew7oegk****', 'title' => ''],
'Ipv6Cidrs' => [
'description' => 'The IPv6 CIDR block of the requester VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv6 CIDR block of the requester VPC.', 'type' => 'string', 'example' => '2408:XXXX:3c5:6e00::/56', 'title' => ''],
'title' => '',
'example' => '',
],
'Ipv4Cidrs' => [
'description' => 'The IPv4 CIDR block of the requester VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv4 CIDR block of the requester VPC.', 'type' => 'string', 'example' => '192.168.0.0/16', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'GmtExpired' => ['description' => 'The time when the VPC peering connection expires. The time is displayed in UTC in the `YYYY-MM-DDThh:mm:ssZ` format.'."\n"
."\n"
.'This parameter is returned only when the VPC peering connection is in the **Accepting** or **Expired** state. For other states, this parameter is empty.', 'type' => 'string', 'example' => '2022-05-01T09:02:36Z', 'title' => ''],
'Name' => ['description' => 'The name of the VPC peering connection.', 'type' => 'string', 'example' => 'vpcpeer', 'title' => ''],
'BizStatus' => ['description' => 'The business status of the VPC peering connection. Valid values:'."\n"
."\n"
.'- **Normal**'."\n"
."\n"
.'- **FinancialLocked**: The VPC peering connection is locked due to an overdue payment.', 'type' => 'string', 'example' => 'Normal', 'title' => ''],
'GmtCreate' => ['description' => 'The time when the VPC peering connection was created. The time is displayed in UTC in the `YYYY-MM-DDThh:mm:ssZ` format.', 'type' => 'string', 'example' => '2022-04-24T09:02:36Z', 'title' => ''],
'OwnerId' => ['description' => 'The ID of the Alibaba Cloud account to which the requester VPC belongs.', 'type' => 'integer', 'format' => 'int64', 'example' => '25346073170691****', 'title' => ''],
'Bandwidth' => ['description' => 'The bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer that is greater than 0.'."\n"
."\n"
.'> A value of -1 indicates that no limit is imposed on the bandwidth.'."\n"
."\n"
.'Default values:'."\n"
."\n"
.'- The default bandwidth for a cross-region VPC peering connection is 1024 Mbit/s.'."\n"
."\n"
.'- The default bandwidth for an intra-region VPC peering connection is -1. This value indicates that no limit is imposed on the bandwidth.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024', 'title' => ''],
'RegionId' => ['description' => 'The region ID of the requester VPC.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'AcceptingVpc' => [
'description' => 'The details of the accepter VPC.',
'type' => 'object',
'properties' => [
'VpcId' => ['description' => 'The ID of the accepter VPC.', 'type' => 'string', 'example' => 'vpc-bp1vzjkp2q1xgnind****', 'title' => ''],
'Ipv6Cidrs' => [
'description' => 'The IPv6 CIDR block of the accepter VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv6 CIDR block of the accepter VPC.', 'type' => 'string', 'example' => '2408:XXXX:3b8:3a00::/56', 'title' => ''],
'title' => '',
'example' => '',
],
'Ipv4Cidrs' => [
'description' => 'The IPv4 CIDR block of the accepter VPC.',
'type' => 'array',
'items' => ['description' => 'The IPv4 CIDR block of the accepter VPC.', 'type' => 'string', 'example' => '10.0.0.0/16', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'LinkType' => ['description' => 'The link type of the VPC peering connection.'."\n"
."\n"
.'Default values:'."\n"
."\n"
.'- The default link type for a cross-region VPC peering connection is Gold.'."\n"
."\n"
.'- The default link type for an intra-region VPC peering connection is empty.', 'type' => 'string', 'example' => 'Gold', 'title' => ''],
'Tags' => [
'description' => 'The tags.',
'type' => 'array',
'items' => [
'description' => 'The tags.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'FinanceJoshua', 'title' => ''],
'Key' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'FinanceDept', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ManagedService' => ['description' => 'The Alibaba Cloud service to which the resource belongs.', 'type' => 'string', 'example' => 'SWAS', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'title' => 'ListVpcPeerConnections',
'summary' => 'Queries VPC peering connections.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListVpcPeerConnections'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'vpc:ListVpcPeerConnections',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#InstanceId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0ED8D006-F706-4D23-88ED-E11ED39DCAC0\\",\\n \\"TotalCount\\": 1,\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"FFmyTO70tTpLG6I3FmYAXGKPd****\\",\\n \\"VpcPeerConnects\\": [\\n {\\n \\"AcceptingOwnerUid\\": 0,\\n \\"Status\\": \\"Activated\\",\\n \\"Description\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfmxazb4ph6aiy****\\",\\n \\"InstanceId\\": \\"pcc-lnk0m24khwvtkm****\\",\\n \\"AcceptingRegionId\\": \\"cn-hangzhou\\",\\n \\"GmtModified\\": \\"2022-04-24T19:20:45Z\\",\\n \\"Vpc\\": {\\n \\"VpcId\\": \\"vpc-bp1gsk7h12ew7oegk****\\",\\n \\"Ipv6Cidrs\\": [\\n \\"2408:XXXX:3c5:6e00::/56\\"\\n ],\\n \\"Ipv4Cidrs\\": [\\n \\"192.168.0.0/16\\"\\n ]\\n },\\n \\"GmtExpired\\": \\"2022-05-01T09:02:36Z\\",\\n \\"Name\\": \\"vpcpeer\\",\\n \\"BizStatus\\": \\"Normal\\",\\n \\"GmtCreate\\": \\"2022-04-24T09:02:36Z\\",\\n \\"OwnerId\\": 0,\\n \\"Bandwidth\\": 1024,\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"AcceptingVpc\\": {\\n \\"VpcId\\": \\"vpc-bp1vzjkp2q1xgnind****\\",\\n \\"Ipv6Cidrs\\": [\\n \\"2408:XXXX:3b8:3a00::/56\\"\\n ],\\n \\"Ipv4Cidrs\\": [\\n \\"10.0.0.0/16\\"\\n ]\\n },\\n \\"LinkType\\": \\"Gold\\",\\n \\"Tags\\": [\\n {\\n \\"Value\\": \\"FinanceJoshua\\",\\n \\"Key\\": \\"FinanceDept\\"\\n }\\n ],\\n \\"ManagedService\\": \\"SWAS\\"\\n }\\n ]\\n}","type":"json"}]',
],
'ModifyVpcPeerConnection' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'required' => true, 'example' => 'pcc-lnk0m24khwvtkm****', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'formData',
'schema' => ['description' => 'The new name of the VPC peering connection.'."\n"
."\n"
.'The name must be 1 to 128 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'vpcpeername', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'formData',
'schema' => ['description' => 'The new description of the VPC peering connection.'."\n"
."\n"
.'The description must be 1 to 256 characters in length and cannot start with `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'newdescription', 'title' => ''],
],
[
'name' => 'Bandwidth',
'in' => 'formData',
'schema' => ['description' => 'The new bandwidth of the VPC peering connection. Unit: Mbps. The value must be an integer greater than 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- **true**: Performs a dry run. The system checks the required parameters, request format, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.'."\n"
."\n"
.'- **false** (Default): Sends a normal request. After the check passes, an HTTP 2xx status code is returned and the operation is performed.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'Generate a unique token on your client for each request. The token can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **RequestId** of the request as the **ClientToken**. The **RequestId** may be different for each request.', 'type' => 'string', 'required' => false, 'example' => '0c593ea1-3bea-11e9-b96b-88e9fe637760', 'title' => ''],
],
[
'name' => 'LinkType',
'in' => 'query',
'schema' => ['description' => 'The link type.'."\n"
."\n"
.'Valid values: Platinum and Gold. The default value is Gold.'."\n"
."\n"
.'> If you specify this parameter, make sure that you create a cross-region peering connection.', 'type' => 'string', 'required' => false, 'example' => 'Gold', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<ModifyVpcPeerResponse>',
'description' => 'The response object.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '880C99E1-449B-524A-B81F-1EC53D2A7EAC', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.InstanceId', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => 'The specified instance is not found'],
['errorCode' => 'IncorrectStatus.VpcPeer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received.'],
['errorCode' => 'IncorrectBusinessStatus.VpcPeer', 'errorMessage' => 'The business status of %s [%s] is incorrect.', 'description' => 'The current instance status is abnormal and the current operation is not allowed.'],
['errorCode' => 'OperationFailed.BandwidthCannotBeChangedInSameRegion', 'errorMessage' => 'The operation failed because the bandwidth cannot be changed in the same region.', 'description' => 'The operation failed because VpcPeer instances in the same region are not allowed to modify the bandwidth value.'],
['errorCode' => 'QuotaExceeded.Bandwidth', 'errorMessage' => 'The quota of bandwidth is exceeded.', 'description' => 'The specified bandwidth is invalid.'],
['errorCode' => 'OperationFailed.InterRegionLinkTypeNotSupported', 'errorMessage' => 'The same region not supported link type feature.', 'description' => 'Link type characteristics are not supported in the same region.'],
['errorCode' => 'OperationFailed.RegionIdNotSupportLinkType', 'errorMessage' => 'The feature link type is not supported in the region.', 'description' => 'The gold, silver and copper settings for this feature are not supported in the region.'],
['errorCode' => 'OperationFailed.SpecificLinkTypeNotSupported', 'errorMessage' => 'The operation failed because the special link type of user is not opened.', 'description' => 'The account does not support special link types.'],
['errorCode' => 'OperationDenied.ServiceManagedInstance', 'errorMessage' => 'Operation is denied because the specified instance belongs to service manager.', 'description' => ''],
['errorCode' => 'OperationFailed.ChargeTypeNotSupported', 'errorMessage' => 'Operation failed because the CDT charge type of receiver or accepter does not support the Underlay link type.', 'description' => ''],
],
],
'title' => 'ModifyVpcPeerConnection',
'summary' => 'Modifies the name or description of a VPC peering connection.',
'description' => '- **ModifyVpcPeerConnection** is an asynchronous operation. After you send a request, the system returns a **RequestId**, while running the task in the background. Call the [GetVpcPeerConnectionAttribute](~~426100~~) operation to query the status of the VPC peering connection.'."\n"
."\n"
.' - **Updating** indicates that the instance is being modified.'."\n"
."\n"
.' - **Activated** indicates that the modification is complete.'."\n"
."\n"
.'- The **ModifyVpcPeerConnection** operation does not support concurrent requests to modify the same VPC peering connection.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyVpcPeerConnection'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:ModifyVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"880C99E1-449B-524A-B81F-1EC53D2A7EAC\\"\\n}","type":"json"}]',
],
'MoveResourceGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ResourceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the peering connection instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pcc-gu32s92f9ytsk9****'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => 'The resource type. Set the value to **PeerConnection** for a VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'PeerConnection'],
],
[
'name' => 'NewResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group to which you want to move the peering connection instance.'."\n"
."\n"
.'> This feature lets you manage resources under your Alibaba Cloud account in groups. This simplifies tasks such as resource grouping and permission management within a single account. See [What is Resource Management?](~~94475~~)', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'rg-acfm3peow3k****'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region to which the resource belongs.'."\n"
."\n"
.'You can call the [DescribeRegions](~~36063~~) operation to obtain a region ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<CreateVpcPeerResponse>',
'description' => '',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F'],
'Success' => ['description' => 'Indicates whether the resource group was changed. Valid values:'."\n"
."\n"
.'- **true**: The resource group was changed.'."\n"
."\n"
.'- **false**: The change failed.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'OperationFailed.NotExist.ResourceGroup', 'errorMessage' => 'The operation failed because the resource group not exist.', 'description' => 'The operation failed because the resource group does not exist.'],
['errorCode' => 'ResourceNotFound.VpcPeer', 'errorMessage' => 'The specified resource of VpcPeer is not found.', 'description' => 'The VPC peering connection does not exist.'],
],
],
'title' => 'MoveResourceGroup',
'summary' => 'Moves a VPC peering connection to a different resource group.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'MoveResourceGroup'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:MoveResourceGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#ResourceId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'RejectVpcPeerConnection' => [
'summary' => 'Rejects a connection request for a VPC peering connection.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pcc-lnk0m24khwvtkm0****'],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to perform a dry run. Valid values:'."\n"
."\n"
.'- **true**: Sends a check request without rejecting the connection request. The system checks whether the required parameters are specified, the request format is valid, and the service limits are met. If the check fails, the corresponding error is returned. If the check passes, the `DryRunOperation` error code is returned.'."\n"
."\n"
.'- **false** (default): Sends a normal request. After the request passes the check, an HTTP 2xx status code is returned and the operation is performed.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'Generate a parameter value from your client to make sure that the value is unique among different requests. The ClientToken parameter can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **RequestId** of the API request as the **ClientToken**. The **RequestId** may be different for each API request.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '123e4567-e89b-12d3-a456-426655440000'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<RejectVpcPeerResponse>',
'description' => 'The response object.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '4EC47282-1B74-4534-BD2E-403F3EE64CAF'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ResourceNotFound.InstanceId', 'errorMessage' => 'The specified resource of %s is not found.', 'description' => 'The specified instance is not found'],
['errorCode' => 'IncorrectStatus.VpcPeer', 'errorMessage' => 'The status of %s [%s] is incorrect.', 'description' => 'The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received.'],
],
],
'title' => 'RejectVpcPeerConnection',
'description' => '- For a cross-account VPC peering connection, the accepter VPC can reject the connection request. After the request is rejected, the VPC peering connection enters the **Rejected** state.'."\n"
."\n"
.'- The **RejectVpcPeerConnection** operation does not support concurrent requests for the same VPC peering connection.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RejectVpcPeerConnection'],
],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'vpc:RejectVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EC47282-1B74-4534-BD2E-403F3EE64CAF\\"\\n}","type":"json"}]',
],
'TagResources' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The ID of the resource. You can specify up to 20 resource IDs.',
'type' => 'array',
'items' => ['description' => 'The ID of the resource. You can specify up to 20 resource IDs.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'pcc-bp16qjewdsunr41m1****'],
'required' => true,
'maxItems' => 50,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tag details.',
'type' => 'array',
'items' => [
'description' => 'The tag details.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key. You must specify 1 to 20 tag keys. The tag key cannot be an empty string.'."\n"
."\n"
.'The tag key can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FinanceDept'],
'Value' => ['description' => 'The tag value. You must specify 1 to 20 tag values. The tag value can be an empty string.'."\n"
."\n"
.'The tag value can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FinanceJoshua'],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 21,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => 'The resource type. Set the value to **PeerConnection**.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'PeerConnection'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => 'The client token that is used to ensure the idempotence of the request.'."\n"
."\n"
.'Generate a unique token for each request from your client. The token can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system automatically uses the **RequestId** of the request as the **ClientToken**. The **RequestId** of each request may be different.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '123e4567-e89b-12d3-a456-426655440000'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region where the resource is located.'."\n"
."\n"
.'For more information, see [DescribeRegions](~~36063~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<CreateVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'C46FF5A8-C5F0-4024-8262-B16B639225A0'],
'Success' => ['description' => 'Indicates whether the tags were created and attached. Valid values:'."\n"
."\n"
.'- **true**'."\n"
."\n"
.'- **false**', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of tags is exceeded.', 'description' => 'The number of tags has reached the upper limit.'],
['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of resource IDs is exceeded.', 'description' => 'The number of resource group IDs exceeds the upper limit.'],
['errorCode' => 'Forbidden.TagKeys', 'errorMessage' => 'The tag key cannot be operated by the request.', 'description' => 'You cannot manage the tag key by calling the operation.'],
['errorCode' => 'Forbidden.TagKey.Duplicated', 'errorMessage' => 'The specified tag key already exists.', 'description' => 'The tag resources are duplicate.'],
['errorCode' => 'InvalidInstanceIds.NotFound', 'errorMessage' => 'The instance IDs are not found.', 'description' => 'The instance ID is invalid.'],
['errorCode' => 'InvalidInstanceType.NotFound', 'errorMessage' => 'The instance type is not found.', 'description' => 'The instance type is invalid.'],
['errorCode' => 'IllegalParam.TagKey', 'errorMessage' => 'The param of Tag.Key is illegal.', 'description' => 'The specified parameter Tag.Key is invalid.'],
['errorCode' => 'IllegalParam.TagValue', 'errorMessage' => 'The param of Tag.Value is illegal.', 'description' => 'The specified parameter Tag.Value is illegal.'],
],
],
'title' => 'TagResources',
'summary' => 'Creates and attaches tags to VPC peering connections.',
'description' => 'A tag is a mark that you assign to a resource. Each tag consists of a key-value pair. Take note the following:'."\n"
."\n"
.'- Each tag key must be unique for a resource.'."\n"
."\n"
.'- You cannot create unattached tags.'."\n"
."\n"
.'- Tags are region-specific.'."\n"
."\n"
.' For example, tags that you create in the China (Hangzhou) region are not visible in the China (Shanghai) region.'."\n"
."\n"
.'- Within the same account and region, tags are shared across different VPC peering connections.'."\n"
."\n"
.' ```'."\n"
.' For example, if you attach a tag to a VPC peering connection in your account and region, you can attach the same tag to other VPC peering connections without re-entering the key-value pair. You can modify the key and value of a tag, or delete a tag from an instance at any time. If you delete an instance, all tags attached to it are also deleted.'."\n"
.' ```'."\n"
."\n"
.'- You can attach a maximum of 20 tags to an instance. Before attaching a tag, the system verifies the number of existing tags on the resource. If this limit is exceeded, an error message is returned.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TagResources'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#PeeringId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C46FF5A8-C5F0-4024-8262-B16B639225A0\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'UnTagResources' => [
'summary' => 'Detaches tags from VPC peering connections.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '镇元平台当前不满足vpcpeer场景租户隔离/ram鉴权测试能力', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The resource ID. You can specify up to 20 resource IDs.',
'type' => 'array',
'items' => ['description' => 'The resource ID. You can specify up to 20 resource IDs.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'pcc-bp16qjewdsunr41m1****'],
'deprecated' => false,
'required' => true,
'maxItems' => 50,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
[
'name' => 'TagKey',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The key of the tag to detach. You can specify up to 20 tag keys. An empty string is supported.'."\n"
."\n"
.'The tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.',
'type' => 'array',
'items' => ['description' => 'The key of the tag to detach. You can specify up to 20 tag keys. An empty string is supported.'."\n"
."\n"
.'The tag key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'FinanceDept'],
'required' => false,
'maxItems' => 21,
'title' => '',
'example' => '',
],
],
[
'name' => 'All',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to detach all tags from the resource. Valid values:'."\n"
."\n"
.'- **true**: Detaches all tags from the resource.'."\n"
."\n"
.'- **false** (default): Does not detach all tags from the resource.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => ['description' => 'The resource type. Set the value to **PeerConnection**, which specifies a VPC peering connection.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'PeerConnection'],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => ['description' => 'A client token to ensure that the request is idempotent.'."\n"
."\n"
.'Generate a unique token from your client for each request. The token can contain only ASCII characters.'."\n"
."\n"
.'> If you do not specify this parameter, the system uses the **RequestId** of the request as the **ClientToken**. The **RequestId** may be different for each request.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '123e4567-e89b-12d3-a456-426655440000'],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region where the resource is located.'."\n"
."\n"
.'For more information, see [DescribeRegions](~~36063~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RpcResponse<CreateVpcPeerResponse>',
'description' => 'The request ID.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'C46FF5A8-C5F0-4024-8262-B16B639225A0'],
'Success' => ['description' => 'Indicates whether the tags were detached. Valid values:'."\n"
."\n"
.'- **true**: The tags were detached.'."\n"
."\n"
.'- **false**: The tags failed to be detached.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of tags is exceeded.', 'description' => 'The number of tags has reached the upper limit.'],
['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of resource IDs is exceeded.', 'description' => 'The number of resource group IDs exceeds the upper limit.'],
['errorCode' => 'Forbidden.TagKeys', 'errorMessage' => 'The tag key cannot be operated by the request.', 'description' => 'You cannot manage the tag key by calling the operation.'],
['errorCode' => 'Forbidden.TagKey.Duplicated', 'errorMessage' => 'The specified tag key already exists.', 'description' => 'The tag resources are duplicate.'],
['errorCode' => 'InvalidInstanceIds.NotFound', 'errorMessage' => 'The instance IDs are not found.', 'description' => 'The instance ID is invalid.'],
['errorCode' => 'InvalidInstanceType.NotFound', 'errorMessage' => 'The instance type is not found.', 'description' => 'The instance type is invalid.'],
],
],
'title' => 'UnTagResources',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnTagResources'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:UnTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vpcpeer/{#InstanceId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C46FF5A8-C5F0-4024-8262-B16B639225A0\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-6', 'regionName' => 'Philippines (Manila)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-nanjing', 'regionName' => 'China (Nanjing - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'vpcpeer.aliyuncs.com', 'endpoint' => 'vpcpeer.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'BothEmpty.TagsAndResources', 'message' => 'The specified Tags and ResourcesIds are not allow to both empty.', 'http_code' => 400, 'description' => 'The tag and resource information cannot be empty at the same time.'],
['code' => 'Conflict.Operation', 'message' => 'There are other peering operations on the requester VPC or accepter VPC, try again later.', 'http_code' => 400, 'description' => 'There are other VpcPeer changes to the initiator VPC or the receiver VPC. You need to try again later.'],
['code' => 'DryRunOperation', 'message' => 'The operation DryRun verifies success.', 'http_code' => 400, 'description' => 'The operation DryRun verifies success.'],
['code' => 'Forbidden.NoPermission', 'message' => 'Authentication is failed for %s.', 'http_code' => 400, 'description' => 'Permission verification failed.'],
['code' => 'Forbidden.TagKey.Duplicated', 'message' => 'The specified tag key already exists.', 'http_code' => 400, 'description' => 'The tag resources are duplicate.'],
['code' => 'Forbidden.TagKeys', 'message' => 'The tag key cannot be operated by the request.', 'http_code' => 400, 'description' => 'You cannot manage the tag key by calling the operation.'],
['code' => 'IllegalParam.%s', 'message' => 'The param of %s is illegal.', 'http_code' => 400, 'description' => 'The specified parameter is set to an invalid value.'],
['code' => 'IllegalParam.TagKey', 'message' => 'The param of Tag.Key is illegal.', 'http_code' => 400, 'description' => 'The specified parameter Tag.Key is invalid.'],
['code' => 'IllegalParam.TagValue', 'message' => 'The param of Tag.Value is illegal.', 'http_code' => 400, 'description' => 'The specified parameter Tag.Value is illegal.'],
['code' => 'IncorrectBusinessStatus.AcceptUserVpcPeer', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => 'The peer VPC is in an invalid business state.'],
['code' => 'IncorrectBusinessStatus.AcceptVpcPeer', 'message' => 'The business status of peer account is incorrect.', 'http_code' => 400, 'description' => 'The business status of the peer VpcPeer in an invalid state.'],
['code' => 'IncorrectBusinessStatus.VpcPeer', 'message' => 'The business status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => 'The current instance status is abnormal and the current operation is not allowed.'],
['code' => 'IncorrectStatus.AcceptingVpc', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => 'The receiving VPC status is incorrect.'],
['code' => 'IncorrectStatus.Vpc', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => 'The status of the initiator VPC instance is incorrect.'],
['code' => 'IncorrectStatus.VpcPeer', 'message' => '%s [%s] status is invalid.', 'http_code' => 400, 'description' => 'The VPC peering connection is in an invalid state.'],
['code' => 'IncorrectStatus.VpcPeer', 'message' => 'The status of %s [%s] is incorrect.', 'http_code' => 400, 'description' => 'The status of the peer-to-peer connection instance does not meet the requirements. In this status, the peer-to-peer connection instance cannot be received.'],
['code' => 'InvalidAcceptingAliUid', 'message' => 'Specified parameter AcceptingAliUid is not valid.', 'http_code' => 400, 'description' => 'The Alibaba Cloud account for which you want to create an accepter VPC is invalid.'],
['code' => 'InvalidBandwidth', 'message' => 'Specified parameter Bandwidth is not valid.', 'http_code' => 400, 'description' => 'The specified bandwidth is invalid and cannot be modified.'],
['code' => 'InvalidInstanceIds.NotFound', 'message' => 'The instance IDs are not found.', 'http_code' => 400, 'description' => 'The instance ID is invalid.'],
['code' => 'InvalidInstanceIds.NotFound', 'message' => 'The operation failed because of invalid instanceId.', 'http_code' => 400, 'description' => 'The specified instance ID is invalid.'],
['code' => 'InvalidInstanceType.NotFound', 'message' => 'The instance type is not found.', 'http_code' => 400, 'description' => 'The instance type is invalid.'],
['code' => 'InvalidTagKey', 'message' => 'The tag keys are not valid.', 'http_code' => 400, 'description' => 'The tag index is invalid.'],
['code' => 'NumberExceed.ResourceIds', 'message' => 'The maximum number of resource IDs is exceeded.', 'http_code' => 400, 'description' => 'The number of resource group IDs exceeds the upper limit.'],
['code' => 'NumberExceed.Tags', 'message' => 'The maximum number of tags is exceeded.', 'http_code' => 400, 'description' => 'The number of tags has reached the upper limit.'],
['code' => 'OperationDenied.CloudBoxExistsInAcceptingVpc', 'message' => 'The operation is not allowed because the CloudBox device exists in accepting vpc.', 'http_code' => 400, 'description' => 'Cloud box instances exist in the receiving end VPC, so VpcPeer instances are not allowed to be created.'],
['code' => 'OperationDenied.CloudBoxExistsInVpc', 'message' => 'The operation is not allowed because the CloudBox device exists in vpc.', 'http_code' => 400, 'description' => 'A cloud box instance exists in the initiator VPC, so it is not allowed to create a VpcPeer instance.'],
['code' => 'OperationDenied.OperateShareResource', 'message' => 'The operation is not allowed because of operating shared resource.', 'http_code' => 400, 'description' => 'Operating on shared resources causes the operation to fail'],
['code' => 'OperationDenied.RouteEntryExist', 'message' => 'The operation is not allowed because of existing routeEntry point to VpcPeer.', 'http_code' => 400, 'description' => 'The VPC peering connection cannot be deleted because a route points to the VPC peering connection.'],
['code' => 'OperationFailed.AcceptUserCdtNotOpened', 'message' => 'The operation failed because the Cdt service of accept user is not opened.', 'http_code' => 400, 'description' => 'The operation failed because CDT is not activated for the peer.'],
['code' => 'OperationFailed.AcceptUserCrossBorderCdtNotOpened', 'message' => 'The operation failed because the CrossBorderCdt service of accept user is not opened.', 'http_code' => 400, 'description' => 'The operation failed because the cross-border service of CDT is not activated for the peer.'],
['code' => 'OperationFailed.BandwidthCannotBeChangedInSameRegion', 'message' => 'The operation failed because the bandwidth cannot be changed in the same region.', 'http_code' => 400, 'description' => 'The operation failed because VpcPeer instances in the same region are not allowed to modify the bandwidth value.'],
['code' => 'OperationFailed.CdtNotOpened', 'message' => 'The operation failed because the Cdt service is not opened.', 'http_code' => 400, 'description' => 'The operation failed because CDT is not activated.'],
['code' => 'OperationFailed.CrossBorderCdtNotOpened', 'message' => 'The cross-border data transmission function of Alibaba Cloud is not enabled.', 'http_code' => 400, 'description' => ''],
['code' => 'OperationFailed.CrossBorderCdtNotOpened', 'message' => 'The operation failed because the CrossBorderCdt service is not opened.', 'http_code' => 400, 'description' => ''],
['code' => 'OperationFailed.InterRegionLinkTypeNotSupported', 'message' => 'The same region not supported link type feature.', 'http_code' => 400, 'description' => 'Link type characteristics are not supported in the same region.'],
['code' => 'OperationFailed.NotExist.ResourceGroup', 'message' => 'The operation failed because the resource group does not exist.', 'http_code' => 400, 'description' => 'The operation failed because the resource group does not exist.'],
['code' => 'OperationFailed.NotExist.ResourceGroup', 'message' => 'The operation failed because the resource group not exist.', 'http_code' => 400, 'description' => 'The operation failed because the resource group does not exist.'],
['code' => 'OperationFailed.NotExist.ResourceGroup', 'message' => 'The operation failed because resourceGroup not exist.', 'http_code' => 400, 'description' => 'The specified resource group does not exist.'],
['code' => 'OperationFailed.RegionIdNotSupportLinkType', 'message' => 'The feature link type is not supported in the region.', 'http_code' => 400, 'description' => 'The gold, silver and copper settings for this feature are not supported in the region.'],
['code' => 'OperationFailed.SpecificLinkTypeNotSupported', 'message' => 'The operation failed because the special link type of user is not opened.', 'http_code' => 400, 'description' => 'The account does not support special link types.'],
['code' => 'OperationFailed.ViolativeVpcPeer', 'message' => 'The creation operation fails because it is not allowed to create a vpc peer instance between the originating region and the receiving region.', 'http_code' => 400, 'description' => 'the creation operation fails because it is not allowed to create a vpc peer instance between the originating region and the receiving region.'],
['code' => 'OperationFailed.ViolativeVpcPeer', 'message' => 'The operation failed because it is out of compliance to create a vpc peer between originating region and accepting region.', 'http_code' => 400, 'description' => 'the creation operation fails because it is not allowed to create a vpc peer instance between the originating region and the receiving region.'],
['code' => 'QuotaExceeded.Bandwidth', 'message' => 'The quota of bandwidth is exceeded.', 'http_code' => 400, 'description' => 'The specified bandwidth is invalid.'],
['code' => 'QuotaExceeded.CrossRegionVpcPeerCountPerVpc', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => 'The number of cross-region VpcPeer in the specified VPC exceeds the limit'],
['code' => 'QuotaExceeded.IntraRegionVpcPeerCountPerVpc', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => 'The number of VpcPeer in the same region in the specified VPC exceeds the limit'],
['code' => 'QuotaExceeded.VpcPeerCountPerUserPerRegion', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => 'The number of VpcPeer instances in a region exceeds the threshold.'],
['code' => 'QuotaExceeded.VpcPeerCountPerVpc', 'message' => 'The quota of %s is exceeded, usage %s/%s.', 'http_code' => 400, 'description' => 'The number of VPC peering connections to the VPC has reached the upper limit.'],
['code' => 'ResourceAlreadyExist.RouterInterface', 'message' => 'The specified resource of %s already exists.', 'http_code' => 400, 'description' => 'The specified router interface already exists.'],
['code' => 'ResourceAlreadyExist.VpcPeer', 'message' => 'The specified resource of %s already exists.', 'http_code' => 400, 'description' => 'The specified VPC peering connection already exists.'],
['code' => 'ResourceNotFound.InstanceId', 'message' => 'The specified resource of %s is not found.', 'http_code' => 400, 'description' => 'The specified instance is not found'],
['code' => 'ResourceNotFound.VpcPeer', 'message' => 'The specified resource of VpcPeer is not found.', 'http_code' => 400, 'description' => 'The VPC peering connection does not exist.'],
['code' => 'UnsupportedRegion', 'message' => 'The feature of %s is not supported in the region of %s.', 'http_code' => 400, 'description' => 'VPC peering connections are not supported in this region.'],
['code' => 'OperationFailed.UserForbiddenInPreEnv', 'message' => 'Current user is forbidden to operate in pre environment.', 'http_code' => 400, 'description' => 'The current user is prohibited from operating in the advance environment'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ModifyVpcPeerConnection'],
['threshold' => '3000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTagResources'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AcceptVpcPeerConnection'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetVpcPeerConnectionAttribute'],
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TagResources'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RejectVpcPeerConnection'],
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'MoveResourceGroup'],
['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UnTagResources'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateVpcPeerConnection'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteVpcPeerConnection'],
['threshold' => '360', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListVpcPeerConnections'],
],
],
'ram' => [
'productCode' => 'VpcPeer',
'productName' => 'Virtual Private Cloud',
'ramCodes' => ['vpc'],
'ramLevel' => 'RESOURCE',
'ramActions' => [
[
'apiName' => 'MoveResourceGroup',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:MoveResourceGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#ResourceId}'],
],
],
],
[
'apiName' => 'AcceptVpcPeerConnection',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'vpc:AcceptVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListTagResources',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'vpc:ListTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TagResources',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:TagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#PeeringId}'],
],
],
],
[
'apiName' => 'ModifyVpcPeerConnection',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:ModifyVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListVpcPeerConnections',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'vpc:ListVpcPeerConnections',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#InstanceId}'],
],
],
],
[
'apiName' => 'CreateVpcPeerConnection',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'vpc:CreateVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteVpcPeerConnection',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'vpc:DeleteVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetVpcPeerConnectionAttribute',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'vpc:GetVpcPeerConnectionAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#accountId}:vpcpeer/{#InstanceId}'],
],
],
],
[
'apiName' => 'UnTagResources',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'vpc:UnTagResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vpcpeer/{#InstanceId}'],
],
],
],
[
'apiName' => 'RejectVpcPeerConnection',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'vpc:RejectVpcPeerConnection',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VpcPeer', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#ResourceId}'],
['validationType' => 'always', 'resourceType' => 'VpcPeer', 'arn' => 'acs:vpc:*:{#accountId}:vpcpeer/{#InstanceId}'],
['validationType' => 'always', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:{#Region}:{#AccountId}:vpcpeer/{#PeeringId}'],
['validationType' => 'always', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#AccountId}:vpcpeer/{#PeeringId}'],
['validationType' => 'always', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vpcpeer/*'],
['validationType' => 'always', 'resourceType' => 'VPC', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}'],
['validationType' => 'always', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:*:{#accountId}:vpcpeer/{#InstanceId}'],
['validationType' => 'always', 'resourceType' => 'PeerConnection', 'arn' => 'acs:vpc:{#regionId}:{#accountId}:vpcpeer/{#InstanceId}'],
],
],
];
|