Queries the details of one or more VPCs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeVpcs |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
The ID of the zone. Note
You can call the DescribeRegions operation to query zones. |
cn-hangzhou-i |
| Product |
string |
No |
The name of the cloud product. |
VPN |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. The value must be an integer that is greater than 0 and does not exceed the maximum value of the integer data type. Default value: 1. |
3 |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the VPC belongs. |
rg-acfmzh544n3j3bi |
| VpcId |
string |
No |
The ID of the VPC. Note
You can call the DescribeVpcs operation to query the details of VPCs. |
vpc-************* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The page number of the returned page. The default value is 1. |
2 |
| PageSize |
integer |
The number of entries returned per page. Valid values:
|
50 |
| RequestId |
string |
The request ID. |
11FDB5A0-84F5-5361-B729-5770B0AEB9D5 |
| TotalCount |
integer |
The total number of entries. |
50 |
| Vpcs |
array<object> |
A list of VPCs. |
|
|
array<object> |
The details of the VPC. |
||
| AliUid |
string |
The ID of the Alibaba Cloud account. |
1868512340232755 |
| Bid |
string |
Indicates whether the account is an Alibaba Finance Cloud account, an Alibaba Gov Cloud account, or a public cloud account. |
26842 |
| CidrBlock |
string |
The IPv4 CIDR block of the VPC. |
57.100.6.59/32 |
| GmtCreate |
string |
The time when the VPC was created. |
2021-04-18T15:02:37Z |
| GmtModified |
string |
The time when the VPC was last modified. |
2021-04-18T15:02:37Z |
| IsDefault |
boolean |
Indicates whether the VPC is the default VPC. Valid values:
|
true |
| RegionNo |
string |
The ID of the region to which the VPC belongs. |
cn-chengdu-wt97-a01 |
| Status |
string |
The status of the VPC. Valid values:
|
Pending |
| VSwitchs |
array<object> |
A list of vSwitches. |
|
|
object |
The details of the vSwitch. |
||
| CidrBlock |
string |
The IPv4 CIDR block of the vSwitch. |
47.118.126.0/25 |
| GmtCreate |
string |
The time when the vSwitch was created. |
2021-04-18T15:02:37Z |
| GmtModified |
string |
The time when the vSwitch was last modified. |
2021-04-18T15:02:37Z |
| IsDefault |
boolean |
Indicates whether the vSwitch is the default vSwitch. Valid values:
|
false |
| IzNo |
string |
The zone to which the vSwitch belongs. |
cn-shenzhen-f |
| Status |
string |
The status of the vSwitch. Valid values:
|
Pending |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-uf6fus5py6hbvxqwzwnk8 |
| VSwitchName |
string |
The name of the vSwitch. |
default-sw |
| VpcId |
string |
The ID of the VPC. Note
You can call the DescribeVpcs operation to query the details of VPCs. |
vpc-bp16efwqjzyumc23c647v |
| VpcName |
string |
The name of the VPC. |
vpc-e2e-10341f3 |
Examples
Success response
JSON format
{
"PageNumber": 2,
"PageSize": 50,
"RequestId": "11FDB5A0-84F5-5361-B729-5770B0AEB9D5",
"TotalCount": 50,
"Vpcs": [
{
"AliUid": "1868512340232755",
"Bid": "26842",
"CidrBlock": "57.100.6.59/32",
"GmtCreate": "2021-04-18T15:02:37Z\n",
"GmtModified": "2021-04-18T15:02:37Z\n",
"IsDefault": true,
"RegionNo": "cn-chengdu-wt97-a01",
"Status": "Pending",
"VSwitchs": [
{
"CidrBlock": "47.118.126.0/25",
"GmtCreate": "2021-04-18T15:02:37Z",
"GmtModified": "2021-04-18T15:02:37Z",
"IsDefault": false,
"IzNo": "cn-shenzhen-f",
"Status": "Pending",
"VSwitchId": "vsw-uf6fus5py6hbvxqwzwnk8",
"VSwitchName": "default-sw"
}
],
"VpcId": "vpc-bp16efwqjzyumc23c647v",
"VpcName": "vpc-e2e-10341f3"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | PARAMETER_MUST_NOT_NULL | Miss mandatory parameter. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.