Queries virtual private cloud (VPC) peering connections.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region where you want to query VPC peering connections. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
InstanceId | string | No | The ID of the VPC peering connection that you want to query. | pcc-lnk0m24khwvtkm**** |
VpcId | array | No | The ID of the requester VPC or accepter VPC of the VPC peering connection that you want to query. | |
string | No | vpc-bp1gsk7h12ew7oegk**** | ||
Name | string | No | The name of the VPC peering connection that you want to query. | 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 per page. Valid values: 1 to 100. Default value: 20. | 20 |
Tags | array<object> | No | The tag list. | |
object | No | |||
Key | string | No | The tag key. You can specify at most 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 128 characters in length. The tag key cannot start with | FinanceDept |
Value | string | No | The tag value. You can specify at most 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length. It cannot start with | FinanceJoshua |
ResourceGroupId | string | No | The ID of the resource group. For more information about resource groups, see What is a resource group? | rg-acfm2ggeub5uf3y |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED39DCAC0",
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"VpcPeerConnects": [
{
"InstanceId": "pcc-lnk0m24khwvtkm****",
"GmtCreate": "2022-04-24T09:02:36Z",
"GmtModified": "2022-04-24T19:20:45Z",
"Name": "vpcpeer",
"Description": "test",
"OwnerId": 253460731706911260,
"AcceptingOwnerUid": 253460731706911260,
"RegionId": "cn-hangzhou",
"AcceptingRegionId": "cn-hangzhou",
"Bandwidth": 1024,
"Status": "Activated",
"BizStatus": "Normal",
"GmtExpired": "2022-05-01T09:02:36Z",
"ResourceGroupId": "rg-aek2gvbs746gt4q",
"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": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-23 | API Description Update | View Change Details |
2023-09-13 | The response structure of the API has changed | View Change Details |
2023-05-30 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |