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. |
||
| AcceptingOwnerUid |
integer |
The Alibaba Cloud account ID of the acceptor of the VPC peering connection. |
28311773240248**** |
| AcceptingRegionId |
string |
The region ID of the acceptor of the VPC peering connection. |
cn-hangzhou |
| AcceptingVpc |
object |
The details of the acceptor VPC-connected instance. |
|
| Ipv4Cidrs |
array |
The IPv4 CIDR blocks of the acceptor. |
|
|
string |
The IPv4 CIDR blocks of the acceptor. |
10.0.0.0/16 |
|
| Ipv6Cidrs |
array |
The IPv6 CIDR blocks of the acceptor. |
|
|
string |
The IPv6 CIDR blocks of the acceptor. |
2408:XXXX:3b8:3a00::/56 |
|
| VpcId |
string |
The instance ID of the acceptor VPC-connected instance. |
vpc-bp1vzjkp2q1xgnind**** |
| Bandwidth |
integer |
The bandwidth of the VPC peering connection. Unit: Mbit/s. Valid values: integers greater than 0. Note
A value of -1 indicates that the bandwidth is not limited. Default values:
|
1024 |
| BizStatus |
string |
The billing status of the VPC peering connection. Valid values:
|
Normal |
| Description |
string |
The description of the VPC peering connection. |
test |
| EnableJumboFrame |
boolean |
Indicates whether the jumbo frame feature is enabled for the VPC peering connection. Valid values:
|
true |
| GmtCreate |
string |
The time when the VPC peering connection was created. The time is displayed in UTC in the |
2022-04-24T09:02:36Z |
| GmtExpired |
string |
The expiration time of the VPC peering connection. A specific expiration time is returned only when the Status of the VPC peering connection is Accepting or Expired. If the VPC peering connection is in other states, null is returned. |
2022-05-01T09:02:36Z |
| GmtModified |
string |
The time when the VPC peering connection was modified. The time is displayed in UTC in the |
2022-04-24T19:20:45Z |
| InstanceId |
string |
The instance ID of the VPC peering connection. |
pcc-lnk0m24khwvtkm**** |
| LinkType |
string |
The link type of the VPC peering connection. Default values:
|
Gold |
| ManagedService |
string |
The associated cloud service. |
SWAS |
| Name |
string |
The name of the VPC peering connection. |
vpcpeer |
| OwnerId |
integer |
The Alibaba Cloud account ID of the requester of the VPC peering connection. |
25346073170691**** |
| RegionId |
string |
The region ID of the requester of the VPC peering connection. |
cn-hangzhou |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmxazb4ph6aiy**** |
| Status |
string |
The status of the VPC peering connection. Valid values:
For more information about the statuses of VPC peering connections, see VPC peering connection overview. |
Activated |
| Tags |
array<object> |
The tags. |
|
|
object |
The tags. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
| Vpc |
object |
The details of the requester VPC-connected instance. |
|
| Ipv4Cidrs |
array |
The IPv4 CIDR blocks of the requester. |
|
|
string |
The IPv4 CIDR blocks of the requester. |
192.168.0.0/16 |
|
| Ipv6Cidrs |
array |
The IPv6 CIDR blocks of the requester. |
|
|
string |
The IPv6 CIDR blocks of the requester. |
2408:XXXX:3c5:6e00::/56 |
|
| VpcId |
string |
The instance ID of the requester VPC-connected instance. |
vpc-bp1gsk7h12ew7oegk**** |
Examples
Success response
JSON format
{
"AcceptingOwnerUid": 0,
"AcceptingRegionId": "cn-hangzhou",
"AcceptingVpc": {
"Ipv4Cidrs": [
"10.0.0.0/16"
],
"Ipv6Cidrs": [
"2408:XXXX:3b8:3a00::/56"
],
"VpcId": "vpc-bp1vzjkp2q1xgnind****"
},
"Bandwidth": 1024,
"BizStatus": "Normal",
"Description": "test",
"EnableJumboFrame": true,
"GmtCreate": "2022-04-24T09:02:36Z",
"GmtExpired": "2022-05-01T09:02:36Z",
"GmtModified": "2022-04-24T19:20:45Z",
"InstanceId": "pcc-lnk0m24khwvtkm****",
"LinkType": "Gold",
"ManagedService": "SWAS",
"Name": "vpcpeer",
"OwnerId": 0,
"RegionId": "cn-hangzhou",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E",
"ResourceGroupId": "rg-acfmxazb4ph6aiy****",
"Status": "Activated",
"Tags": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
],
"Vpc": {
"Ipv4Cidrs": [
"192.168.0.0/16"
],
"Ipv6Cidrs": [
"2408:XXXX:3c5:6e00::/56"
],
"VpcId": "vpc-bp1gsk7h12ew7oegk****"
}
}
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.