Create a VSwitch in the specified VPC.
Note the following before creating a VSwitch:
Up to 24 VSwitches can be created in a VPC.
The first and last three IP addresses of the VSwitch are reserved by the system. For example, if the CIDR block of a VSwitch is 192.168.1.0/24, IP addresses 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255 are reserved.
The CIDR block of the VSwitch cannot be modified after the VSwitch is created.
The number of cloud product instances under the VSwitch cannot exceed the remaining capacity of the VPC (subtract the current number of cloud product instances from 15,000).
A cloud product instance can only belong to one VSwitch.
VSwitches do not support broadcasting or multicasting.
The action to perform.
|ZoneId||String||Yes||The ID of the zone.|
The IP address range of the VSwitch in the CIDR block form.
The IP address range must meet the following requirements:
|VpcId||String||Yes||The ID of the VPC to which the VSwitch belongs.|
The name of the VSwitch.
The name must start with an English letter, but cannot start with
The name can contain from 2 to 128 characters including a-z, A-Z, 0-9, underlines, and hyphens.
The description of the VSwitch.
The description must start with English letters, but cannot start with
The description can contain from 2 to 256 characters.
|ClientToken||String||No||A client token used to guarantee the idempotence of requests. This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters. |
For more information, see How to ensure idempotence.
|RequestId||String||The ID of the request.|
|VSwitchId||String||The ID of the VSwitch.|
See VPC API Error Center.