Obtém uma lista de vSwitches.
Descrição da operação
Consulta os vSwitches disponíveis em uma região e zona especificadas. Use esta operação antes de criar uma instância do ApsaraDB for MongoDB para selecionar um vSwitch.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| VpcId |
string |
Não |
O ID da VPC. |
vpc-bp******************* |
| ZoneId |
string |
Não |
O ID da zona. |
cn-hangzhou-j |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-acfm4ojaksxxxxx |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
60EEBD77-227C-5B39-86EA-D89163C5**** |
| VSwitches |
object |
A lista de vSwitches. |
|
| VSwitch |
array<object> |
As informações do vSwitch. |
|
|
object |
|||
| Status |
string |
The status of the vSwitch. A value of Available indicates that the vSwitch is active. |
Available |
| IsDefault |
boolean |
Indicates whether the vSwitch is the default vSwitch. Valid values:
|
true |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp******************* |
| CidrBlock |
string |
The CIDR block of the vSwitch. |
192.**.**.0/24 |
| RegionNo |
string |
This parameter is deprecated. No value is returned. |
null |
| GmtCreate |
string |
This parameter is deprecated. No value is returned. |
null |
| AliUid |
string |
This parameter is deprecated. No value is returned. |
null |
| GmtModified |
string |
This parameter is deprecated. No value is returned. |
null |
| Bid |
string |
This parameter is deprecated. No value is returned. |
null |
| IzNo |
string |
The zone ID. |
cn-hangzhou-h |
| VSwitchName |
string |
The name of the vSwitch. |
vsw-name |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "60EEBD77-227C-5B39-86EA-D89163C5****",
"VSwitches": {
"VSwitch": [
{
"Status": "Available",
"IsDefault": true,
"VSwitchId": "vsw-bp*******************\n",
"CidrBlock": "192.**.**.0/24\n",
"RegionNo": "null",
"GmtCreate": "null",
"AliUid": "null",
"GmtModified": "null",
"Bid": "null",
"IzNo": "cn-hangzhou-h\n",
"VSwitchName": "vsw-name\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.