Mengambil informasi tentang vSwitch.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeVSwitchList |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat vSwitch berada. Catatan
Panggil DescribeRegions untuk meminta ID semua region yang mendukung vSwitch. |
cn-hangzhou |
| VpcId |
string |
No |
ID virtual private cloud (VPC). Catatan
Panggil DescribeVpcs untuk melihat detail VPC. |
vpc-25cdvfeq58pl**** |
| VSwitchIds |
array |
No |
Daftar vSwitch di VPC. |
|
|
string |
No |
ID vSwitch. |
vsw-uf6quheh6ok8nbtj4**** |
|
| ZoneId |
string |
No |
ID zona tempat vSwitch berada. |
cn-hangzhou-g |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat yang lebih besar dari 0. Tidak boleh melebihi nilai maksimum tipe data Integer. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai yang valid:
Nilai default: 30. |
30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
6A2EE5B4-CC9F-46E1-A747-E43BC9****** |
| TotalCount |
integer |
Jumlah total entri. |
1 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. Nilai yang valid:
Nilai default: 30. |
30 |
| VSwitchs |
array<object> |
Daftar vSwitch. |
|
|
object |
Detail vSwitch. |
||
| CidrBlock |
string |
Blok CIDR vSwitch. |
172.16.0.0/24 |
| Description |
string |
Deskripsi vSwitch. |
vSwitchDescription |
| IsDefault |
boolean |
Menunjukkan apakah vSwitch adalah vSwitch default. Nilai yang valid:
|
true |
| IzNo |
string |
ID zona tempat vSwitch berada. |
cn-hangzhou-b |
| Status |
string |
Status vSwitch. Nilai yang valid:
|
Available |
| VSwitchId |
string |
ID vSwitch. |
vsw-25bcdxs7pv1**** |
| VSwitchName |
string |
Nama vSwitch. |
vSwitch |
| AvailableIpAddressCount |
integer |
Jumlah alamat IP yang tersedia di vSwitch. |
1 |
| VpcId |
string |
ID VPC. |
vpc-bp1vbkkyt7apvy4j***** |
| ShareType |
string |
Tipe berbagi. |
Public |
| ResourceGroupId |
string |
ID grup sumber daya. |
rg-************ |
| OwnerId |
string |
ID akun Alibaba Cloud yang memiliki sumber daya. |
177563751276**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******",
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 30,
"VSwitchs": [
{
"CidrBlock": "172.16.0.0/24",
"Description": "vSwitchDescription\t\n",
"IsDefault": true,
"IzNo": "cn-hangzhou-b\t\n",
"Status": "Available",
"VSwitchId": "vsw-25bcdxs7pv1****\t\n",
"VSwitchName": "vSwitch",
"AvailableIpAddressCount": 1,
"VpcId": "vpc-bp1vbkkyt7apvy4j*****",
"ShareType": "Public",
"ResourceGroupId": "rg-************",
"OwnerId": "177563751276****"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidVSwitchId.NotFound | Specified virtual switch is not found in specified VPC. | |
| 400 | IncorrecttVpcId | The specified parameter VPCId is not valid. | |
| 400 | InvalidIzNo.NotSupported | Specified VPC zone is not supported. | |
| 400 | MissingParameter.RegionId | The parameter RegionId is mandatory. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.