Queries the details of a specified VPC peering connection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:GetVpcPeerConnectionAttribute |
get |
*PeerConnection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the VPC peering connection. |
pcc-lnk0m24khwvtkm**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E |
| InstanceId |
string |
The ID of the VPC peering connection. |
pcc-lnk0m24khwvtkm**** |
| GmtCreate |
string |
The time when the VPC peering connection was created. The time is displayed in UTC in the |
2022-04-24T09:02:36Z |
| GmtModified |
string |
The time when the VPC peering connection was last modified. The time is displayed in UTC in the |
2022-04-24T19:20:45Z |
| Name |
string |
The name of the VPC peering connection. |
vpcpeer |
| Description |
string |
The description of the VPC peering connection. |
test |
| OwnerId |
integer |
The ID of the Alibaba Cloud account to which the requester VPC belongs. |
25346073170691**** |
| AcceptingOwnerUid |
integer |
The ID of the Alibaba Cloud account to which the accepter VPC belongs. |
28311773240248**** |
| RegionId |
string |
The region ID of the requester VPC. |
cn-hangzhou |
| AcceptingRegionId |
string |
The region ID of the accepter VPC. |
cn-hangzhou |
| Bandwidth |
integer |
The bandwidth of the VPC peering connection. Unit: Mbps. The value must be an integer greater than 0. Note
A value of -1 indicates that no limit is imposed on the bandwidth. Default values:
|
1024 |
| Status |
string |
The status of the VPC peering connection. Valid values:
For more information, see VPC peering connection overview. |
Activated |
| BizStatus |
string |
The business status of the VPC peering connection. Valid values:
|
Normal |
| GmtExpired |
string |
The time when the VPC peering connection expires. 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. |
2022-05-01T09:02:36Z |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmxazb4ph6aiy**** |
| Vpc |
object |
The details of the requester VPC. |
|
| VpcId |
string |
The ID of the requester VPC. |
vpc-bp1gsk7h12ew7oegk**** |
| Ipv4Cidrs |
array |
The IPv4 CIDR blocks of the requester VPC. |
|
|
string |
The IPv4 CIDR block of the requester VPC. |
192.168.0.0/16 |
|
| Ipv6Cidrs |
array |
The IPv6 CIDR blocks of the requester VPC. |
|
|
string |
The IPv6 CIDR block of the requester VPC. |
2408:XXXX:3c5:6e00::/56 |
|
| AcceptingVpc |
object |
The details of the accepter VPC. |
|
| VpcId |
string |
The ID of the accepter VPC. |
vpc-bp1vzjkp2q1xgnind**** |
| Ipv4Cidrs |
array |
The IPv4 CIDR blocks of the accepter VPC. |
|
|
string |
The IPv4 CIDR block of the accepter VPC. |
10.0.0.0/16 |
|
| Ipv6Cidrs |
array |
The IPv6 CIDR blocks of the accepter VPC. |
|
|
string |
The IPv6 CIDR block of the accepter VPC. |
2408:XXXX:3b8:3a00::/56 |
|
| Tags |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| Value |
string |
The tag value. |
FinanceJoshua |
| Key |
string |
The tag key. |
FinanceDept |
| LinkType |
string |
The link type of the VPC peering connection. Default values:
|
Gold |
| ManagedService |
string |
The Alibaba Cloud service to which the resource belongs. |
SWAS |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E",
"InstanceId": "pcc-lnk0m24khwvtkm****",
"GmtCreate": "2022-04-24T09:02:36Z",
"GmtModified": "2022-04-24T19:20:45Z",
"Name": "vpcpeer",
"Description": "test",
"OwnerId": 0,
"AcceptingOwnerUid": 0,
"RegionId": "cn-hangzhou",
"AcceptingRegionId": "cn-hangzhou",
"Bandwidth": 1024,
"Status": "Activated",
"BizStatus": "Normal",
"GmtExpired": "2022-05-01T09:02:36Z",
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"Vpc": {
"VpcId": "vpc-bp1gsk7h12ew7oegk****",
"Ipv4Cidrs": [
"192.168.0.0/16"
],
"Ipv6Cidrs": [
"2408:XXXX:3c5:6e00::/56"
]
},
"AcceptingVpc": {
"VpcId": "vpc-bp1vzjkp2q1xgnind****",
"Ipv4Cidrs": [
"10.0.0.0/16"
],
"Ipv6Cidrs": [
"2408:XXXX:3b8:3a00::/56"
]
},
"Tags": [
{
"Value": "FinanceJoshua",
"Key": "FinanceDept"
}
],
"LinkType": "Gold",
"ManagedService": "SWAS"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.InstanceId | The specified resource of %s is not found. | The specified instance is not found |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.