Mengkueri satu atau beberapa VPC.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeVpcs |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
ID zona. Catatan
Anda dapat memanggil operasi DescribeRegions untuk mengkueri zona. |
cn-hangzhou-i |
| Product |
string |
No |
Nama layanan cloud. |
VPN |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid:
Nilai default: 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat yang lebih besar dari 0 dan tidak melebihi nilai maksimum tipe data integer. Nilai default: 1. |
3 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat VPC berada. |
rg-acfmzh544n3j3bi |
| VpcId |
string |
No |
ID VPC. Catatan
Anda dapat memanggil operasi DescribeVpcs untuk mengkueri detail VPC. |
vpc-************* |
Elemen respons
|
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. Catatan
You can call the DescribeVpcs operation to query the details of VPCs. |
vpc-bp16efwqjzyumc23c647v |
| VpcName |
string |
The name of the VPC. |
vpc-e2e-10341f3 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | PARAMETER_MUST_NOT_NULL | Miss mandatory parameter. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.