Queries a list of vSwitches that are deployed in a specified virtual private cloud (VPC) in a region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
VpcId | string | Yes | The VPC ID. | vpc-bp17gig441u0msmd78**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 10,
"RequestId": "BD65C0AD-D3C6-48D3-8D93-38D2015C****",
"NextToken": "“”",
"MaxResults": 10,
"VSwitches": [
{
"VpcId": "vpc-bp17gig441u0msmd6****",
"VSwitchId": "vsw-bp1g24p9no0iqir46****",
"Status": "Available",
"IsDefault": false,
"VSwitchName": "vsw-test",
"ZoneId": "cn-hangzhou-k"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-04-12 | The response structure of the API has changed | see changesets | ||
|