DescribeVirtualSwitches
In this article:
DescribeVirtualSwitches#
Description#
Describes one or more of your virtual switches. It is possible to use one or more filters.
Request Parameters#
Filter.N — One or more filters.
Type: List of Filter objects
Required: No
SwitchId.N — IDs of virtual switches.
Type: Array of strings
Required: No
Supported Filters#
switch-id — The ID of the virtual switch.
switch-name — The name of the virtual switch.
Response Elements#
requestId — The request ID.
Type: String
virtualSwitchInfo — List of virtual switches.
Type: List of VirtualSwitch objects
Examples#
c2-ec2 DescribeVirtualSwitches
c2-ec2 DescribeVirtualSwitches SwitchId.1 sw-01234567 SwitchId.2 sw-12345678
c2-ec2 DescribeVirtualSwitches SwitchId.1 sw-01234567 SwitchId.2 sw-12345678 Filter.1.Name switch-name Filter.1.Value.1 demo-switch