Queries the 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-bp13h7uzhulpuxvnp**** |
ZoneId | string | No | The zone ID. Note
You can call the DescribeRegions operation to query the most recent zone list.
| cn-hangzhou-h |
VswId | string | No | The vSwitch ID. | vsw-8vbpu1teend1qcosfojlz |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D65A809F-34CE-4550-9BC1-0ED21ETG380",
"VSwitches": {
"VSwitch": [
{
"Status": "Available",
"IsDefault": false,
"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": "2****",
"IzNo": "cn-hangzhou-k",
"VSwitchName": "vswitch"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. | An internal error occurred. Please try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history