Queries vSwitches in a specified region and VPC.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicemesh:DescribeVSwitches |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| VpcId |
string |
Yes |
The VPC ID. |
vpc-bp17gig441u0msmd78**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| TotalCount |
integer |
The total number of entries returned. This parameter is optional and is not returned by default. |
10 |
| RequestId |
string |
The request ID. |
BD65C0AD-D3C6-48D3-8D93-38D2015C**** |
| NextToken |
string |
The token that is used to retrieve the next page of results. If this parameter is empty, all results have been returned. |
“” |
| MaxResults |
integer |
The maximum number of entries to return for this request. |
10 |
| VSwitches |
array<object> |
The list of available vSwitches. |
|
|
object |
An available vSwitch. |
||
| VpcId |
string |
The ID of the VPC to which the vSwitch belongs. |
vpc-bp17gig441u0msmd6**** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1g24p9no0iqir46**** |
| Status |
string |
The status of the vSwitch. Valid values:
|
Available |
| IsDefault |
boolean |
Indicates whether the vSwitch is the default vSwitch. Valid values:
|
false |
| VSwitchName |
string |
The name of the vSwitch. |
vsw-test |
| ZoneId |
string |
The zone to which the vSwitch belongs. |
cn-hangzhou-k |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.