Obtém uma lista de VPCs.
Descrição da operação
Consulta VPCs disponíveis em uma região e zona especificadas. Utilize esta API antes de criar uma instância ApsaraDB for MongoDB para selecionar uma VPC.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ZoneId |
string |
Não |
O ID da zona. |
cn-beijing-l |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-acfmyiu4ekp**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Vpcs |
object |
Uma lista de VPCs. |
|
| Vpc |
array<object> |
Detalhes da VPC. |
|
|
array<object> |
|||
| Status |
string |
The status of the VPC. A value of Available indicates that the VPC is available. |
Available |
| VpcName |
string |
The name of the VPC. |
vpc-name |
| VpcId |
string |
The ID of the VPC. |
vpc-bp******************* |
| IsDefault |
boolean |
Indicates whether the VPC is the default VPC. Valid values:
|
true |
| CidrBlock |
string |
The CIDR block of the VPC. |
10.**.**.0/8 |
| RegionNo |
string |
The region ID. |
cn-hangzhou |
| GmtCreate |
string |
This parameter is deprecated. No value is returned. |
null |
| AliUid |
string |
This parameter is deprecated. No value is returned. |
null |
| VSwitchs |
array<object> |
A list of vSwitches. |
|
|
object |
|||
| Status |
string |
The status of the vSwitch. A value of Available indicates that the vSwitch is available. |
Available |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp******************* |
| IsDefault |
boolean |
Indicates whether the vSwitch is the default vSwitch. Valid values:
|
true |
| CidrBlock |
string |
The CIDR block of the vSwitch. |
10.**.**.0/24 |
| GmtCreate |
string |
This parameter is deprecated. No value is returned. |
null |
| GmtModified |
string |
This parameter is deprecated. No value is returned. |
null |
| IzNo |
string |
The ID of the zone where the vSwitch is located. |
cn-hangzhou-i |
| VSwitchName |
string |
The name of the vSwitch. |
vsw-name |
| GmtModified |
string |
This parameter is deprecated. No value is returned. |
null |
| Bid |
string |
This parameter is deprecated. No value is returned. |
null |
| RequestId |
string |
O ID da solicitação. |
53924AF0-1628-5AA2-9C95-D4********** |
Exemplos
Resposta de sucesso
JSON formato
{
"Vpcs": {
"Vpc": [
{
"Status": "Available",
"VpcName": "vpc-name\n",
"VpcId": "vpc-bp*******************\n",
"IsDefault": true,
"CidrBlock": "10.**.**.0/8\n",
"RegionNo": "cn-hangzhou\n",
"GmtCreate": "null",
"AliUid": "null",
"VSwitchs": [
{
"Status": "Available",
"VSwitchId": "vsw-bp*******************\n",
"IsDefault": true,
"CidrBlock": "10.**.**.0/24\n",
"GmtCreate": "null\n",
"GmtModified": "null",
"IzNo": "cn-hangzhou-i\n",
"VSwitchName": "vsw-name\n"
}
],
"GmtModified": "null\n",
"Bid": "null\n"
}
]
},
"RequestId": "53924AF0-1628-5AA2-9C95-D4**********\n"
}
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.