CreateVirtualSwitch
In this article:
CreateVirtualSwitch#
Description#
Creates a virtual switch.
Request Parameters#
Required parameters#
switchName — The name of the virtual switch.
Type: String
Required: Yes
Valid values: ASCII, except
.-:/()#,@[]+=&;}{!$*
Length constraints: from 1 to 255 symbols
Optional parameters#
AvailabilityZone — The availability zone name.
Type: String
Required: No
Valid values:
ru-msk-vol51
|ru-msk-comp1p
|ru-msk-vol52
Response Elements#
availabilityZone — The name of the availability zone.
Type: String
requestId — The request ID
Type: String
return —
True
is returned if the request succeeds, and an error otherwiseType: Boolean
switchId — The ID of the new virtual switch.
Type: String
switchName — The name of the virtual switch.
Type: String
Examples#
c2-ec2 CreateVirtualSwitch SwitchName demo-switch