Queries a list of available vSwitches.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | No | The region ID. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
| VpcId | string | No | The virtual private cloud (VPC) ID. Note
You can call the DescribeDBClusters operation to query the VPC ID.
| vpc-2ze1lz7nk4pn4zwy1j7pm |
| ZoneId | string | No | The zone ID. Note
You can call the DescribeRegions operation to query the most recent zone list.
| cn-hangzhou-h |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "1B892DA2-9ABC-5CC0-AD73-405479C3FA53",
"VSwitches": {
"VSwitch": [
{
"Status": "Available",
"IsDefault": true,
"VSwitchId": "vsw-25bcdxs7pv1****",
"CidrBlock": "172.16.0.0/24",
"RegionNo": "cn-hangzhou",
"GmtCreate": "2022-01-18T12:43:57Z",
"AliUid": "195813423043****",
"GmtModified": "2022-01-22T12:43:57Z",
"Bid": 26842,
"IzNo": "cn-hangzhou-k",
"VSwitchName": "VSW-Test-hangzhou-I"
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
