Mengambil daftar vSwitch.
Deskripsi operasi
Melakukan kueri vSwitch yang tersedia di region dan zona yang ditentukan. Gunakan ini sebelum membuat instans ApsaraDB for MongoDB untuk memilih vSwitch.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
No |
ID VPC. |
vpc-bp******************* |
| ZoneId |
string |
No |
ID zona. |
cn-hangzhou-j |
| ResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-acfm4ojaksxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
60EEBD77-227C-5B39-86EA-D89163C5**** |
| VSwitches |
object |
Daftar vSwitch. |
|
| VSwitch |
array<object> |
Informasi vSwitch. |
|
|
object |
|||
| Status |
string |
Available |
|
| IsDefault |
boolean |
true |
|
| VSwitchId |
string |
vsw-bp******************* |
|
| CidrBlock |
string |
192.**.**.0/24 |
|
| RegionNo |
string |
null |
|
| GmtCreate |
string |
null |
|
| AliUid |
string |
null |
|
| GmtModified |
string |
null |
|
| Bid |
string |
null |
|
| IzNo |
string |
cn-hangzhou-h |
|
| VSwitchName |
string |
vsw-name |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.