Queries the details of one or more VPC peering connections.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ListVpcPeerConnections |
list |
*VpcPeer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the VPC peering connection. You can call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
| InstanceId |
string |
No |
The ID of the VPC peering connection. |
pcc-lnk0m24khwvtkm**** |
| VpcId |
array |
No |
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. |
|
|
string |
No |
The ID of the requester or accepter VPC. |
vpc-bp1gsk7h12ew7oegk**** |
|
| Name |
string |
No |
The name of the VPC peering connection. |
vpcpeer |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| Tags |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Value |
string |
No |
The tag value. You can specify up to 20 tag values. The tag value can be an empty string. The value can be up to 128 characters in length. It cannot start with |
FinanceJoshua |
| Key |
string |
No |
The tag key. You can specify up to 20 tag keys. The tag key cannot be an empty string. The key can be up to 128 characters in length. It cannot start with |
FinanceDept |
| ResourceGroupId |
string |
No |
The ID of the resource group. For more information about resource groups, see What is a resource group?. |
rg-acfmxazb4ph6aiy**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED39DCAC0 |
| TotalCount |
integer |
The number of entries. |
1 |
| MaxResults |
integer |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| VpcPeerConnects |
array<object> |
The details of the VPC peering connections. |
|
|
object |
The details of the VPC peering connection. |
||
| AcceptingOwnerUid |
integer |
The ID of the Alibaba Cloud account to which the accepter VPC belongs. |
25346073170691**** |
| Status |
string |
The status of the VPC peering connection. Valid values:
For more information about the states of a VPC peering connection, see VPC Peering Connection Overview. |
Activated |
| ManagedService |
string |
The Alibaba Cloud service to which the resource belongs. |
SWAS |
| Description |
string |
The description of the VPC peering connection. |
test |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmxazb4ph6aiy**** |
| InstanceId |
string |
The ID of the VPC peering connection. |
pcc-lnk0m24khwvtkm**** |
| AcceptingRegionId |
string |
The region ID of the accepter VPC. |
cn-hangzhou |
| GmtModified |
string |
The time when the VPC peering connection was modified. The time is displayed in UTC in the |
2022-04-24T19:20:45Z |
| Vpc |
object |
The details of the requester VPC. |
|
| VpcId |
string |
The ID of the requester VPC. |
vpc-bp1gsk7h12ew7oegk**** |
| Ipv6Cidrs |
array |
The IPv6 CIDR block of the requester VPC. |
|
|
string |
The IPv6 CIDR block of the requester VPC. |
2408:XXXX:3c5:6e00::/56 |
|
| Ipv4Cidrs |
array |
The IPv4 CIDR block of the requester VPC. |
|
|
string |
The IPv4 CIDR block of the requester VPC. |
192.168.0.0/16 |
|
| GmtExpired |
string |
The time when the VPC peering connection expires. The time is displayed in UTC in the This parameter is returned only when the VPC peering connection is in the Accepting or Expired state. For other states, this parameter is empty. |
2022-05-01T09:02:36Z |
| Name |
string |
The name of the VPC peering connection. |
vpcpeer |
| BizStatus |
string |
The business status of the VPC peering connection. Valid values:
|
Normal |
| GmtCreate |
string |
The time when the VPC peering connection was created. The time is displayed in UTC in the |
2022-04-24T09:02:36Z |
| OwnerId |
integer |
The ID of the Alibaba Cloud account to which the requester VPC belongs. |
25346073170691**** |
| Bandwidth |
integer |
The bandwidth of the VPC peering connection. Unit: Mbit/s. The value must be an integer that is greater than 0. Note
A value of -1 indicates that no limit is imposed on the bandwidth. Default values:
|
1024 |
| RegionId |
string |
The region ID of the requester VPC. |
cn-hangzhou |
| AcceptingVpc |
object |
The details of the accepter VPC. |
|
| VpcId |
string |
The ID of the accepter VPC. |
vpc-bp1vzjkp2q1xgnind**** |
| Ipv6Cidrs |
array |
The IPv6 CIDR block of the accepter VPC. |
|
|
string |
The IPv6 CIDR block of the accepter VPC. |
2408:XXXX:3b8:3a00::/56 |
|
| Ipv4Cidrs |
array |
The IPv4 CIDR block of the accepter VPC. |
|
|
string |
The IPv4 CIDR block of the accepter VPC. |
10.0.0.0/16 |
|
| LinkType |
string |
The link type of the VPC peering connection. Default values:
|
Gold |
| Tags |
array<object> |
The tags. |
|
|
object |
The tags. |
||
| Value |
string |
The tag value. |
FinanceJoshua |
| Key |
string |
The tag key. |
FinanceDept |
Examples
Success response
JSON format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED39DCAC0",
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"VpcPeerConnects": [
{
"AcceptingOwnerUid": 0,
"Status": "Activated",
"ManagedService": "SWAS",
"Description": "test",
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"InstanceId": "pcc-lnk0m24khwvtkm****",
"AcceptingRegionId": "cn-hangzhou",
"GmtModified": "2022-04-24T19:20:45Z",
"Vpc": {
"VpcId": "vpc-bp1gsk7h12ew7oegk****",
"Ipv6Cidrs": [
"2408:XXXX:3c5:6e00::/56"
],
"Ipv4Cidrs": [
"192.168.0.0/16"
]
},
"GmtExpired": "2022-05-01T09:02:36Z",
"Name": "vpcpeer",
"BizStatus": "Normal",
"GmtCreate": "2022-04-24T09:02:36Z",
"OwnerId": 0,
"Bandwidth": 1024,
"RegionId": "cn-hangzhou",
"AcceptingVpc": {
"VpcId": "vpc-bp1vzjkp2q1xgnind****",
"Ipv6Cidrs": [
"2408:XXXX:3b8:3a00::/56"
],
"Ipv4Cidrs": [
"10.0.0.0/16"
]
},
"LinkType": "Gold",
"Tags": [
{
"Value": "FinanceJoshua",
"Key": "FinanceDept"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.