Consulta uma lista de VPCs.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
polardb:DescribeRdsVpcs |
get |
*DBCluster
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região. > Você pode chamar a operação DescribeRegions para consultar as regiões disponíveis. |
cn-hangzhou |
| ZoneId |
string |
Não |
O ID da zona. |
cn-hangzhou-k |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-************ |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Vpcs |
object |
Uma lista de VPCs. |
|
| Vpc |
array<object> |
Os detalhes da VPC. |
|
|
array<object> |
Os detalhes da VPC. |
||
| Status |
string |
The status of the VPC. Valid values:
|
Available |
| VpcName |
string |
The name of the VPC. |
fc-webide |
| VpcId |
string |
The ID of the VPC. |
vpc-************* |
| IsDefault |
boolean |
Indicates whether the VPC is the default VPC. |
true |
| CidrBlock |
string |
The CIDR block of the VPC. |
10.21.0.0/16 |
| RegionNo |
string |
The region ID. |
cn-hangzhou |
| GmtCreate |
string |
The time when the VPC was created. |
2025-08-28T02:25:41Z |
| AliUid |
string |
The ID of the Alibaba Cloud account. |
1485293698****** |
| VSwitchs |
array<object> |
The details of the vSwitches in the VPC. |
|
|
object |
The vSwitch details. |
||
| Status |
string |
The status of the vSwitch. Available indicates that the vSwitch is available. |
Available |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-********** |
| IsDefault |
boolean |
Indicates whether the vSwitch is the default vSwitch. Valid values:
|
true |
| CidrBlock |
string |
The vSwitch CIDR block. |
192.168.7.0/24 |
| GmtCreate |
string |
The time when the vSwitch was created. |
2025-05-12 18:17:25 |
| GmtModified |
string |
The time when the vSwitch was last modified. |
2025-01-07T15:10:32+08:00 |
| IzNo |
string |
The ID of the zone. |
cn-hangzhou-k |
| VSwitchName |
string |
The name of the vSwitch. |
test |
| GmtModified |
string |
The time when the VPC was last modified. |
2025-04-30T09:41:14+08:00 |
| Bid |
string |
The business type of the account. This parameter indicates whether the account is an Alibaba Finance Cloud account, an Alibaba Gov Cloud account, or a public cloud account. |
26842 |
| RequestId |
string |
O ID da solicitação. |
B45E8D29-EA17-5141-AE09-F7A399760C9E |
Exemplos
Resposta de sucesso
JSON formato
{
"Vpcs": {
"Vpc": [
{
"Status": "Available",
"VpcName": "fc-webide",
"VpcId": "vpc-*************",
"IsDefault": true,
"CidrBlock": "10.21.0.0/16",
"RegionNo": "cn-hangzhou",
"GmtCreate": "2025-08-28T02:25:41Z",
"AliUid": "1485293698******",
"VSwitchs": [
{
"Status": "Available",
"VSwitchId": "vsw-**********",
"IsDefault": true,
"CidrBlock": "192.168.7.0/24",
"GmtCreate": "2025-05-12 18:17:25",
"GmtModified": "2025-01-07T15:10:32+08:00",
"IzNo": "cn-hangzhou-k",
"VSwitchName": "test"
}
],
"GmtModified": "2025-04-30T09:41:14+08:00",
"Bid": "26842"
}
]
},
"RequestId": "B45E8D29-EA17-5141-AE09-F7A399760C9E"
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.