Skip to content

VSwitchProps

Properties for defining a VSwitch.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-vswitch

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.VSwitchProps {
    CidrBlock: interface{},
    VpcId: interface{},
    ZoneId: interface{},
    Description: interface{},
    Ipv6CidrBlock: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosVSwitch.TagsProperty,
    VpcIpv6CidrBlock: interface{},
    VSwitchName: interface{},
    ZoneType: interface{},
}

Properties

Name Type Description
CidrBlock interface{} Property cidrBlock: CIDR Block of created VSwitch, It must belong to itself VPC CIDR block.
VpcId interface{} Property vpcId: VPC id to create vswtich.
ZoneId interface{} Property zoneId: The availability zone in which the VSwitch will be created.
Description interface{} Property description: Description of the VSwitch, [2, 256] characters.
Ipv6CidrBlock interface{} Property ipv6CidrBlock: The IPv6 network segment of the switch supports the last 8 bits of the VPC IPv6 network segment.
Tags *[]TagsProperty Property tags: Tags to attach to vswitch.
VpcIpv6CidrBlock interface{} Property vpcIpv6CidrBlock: The IPv6 CIDR block of the VPC.
VSwitchName interface{} Property vSwitchName: Display name of the vSwitch instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
ZoneType interface{} Property zoneType: The type of the zones to be queried.

CidrBlockRequired

CidrBlock interface{}
  • Type: interface{}

Property cidrBlock: CIDR Block of created VSwitch, It must belong to itself VPC CIDR block.


VpcIdRequired

VpcId interface{}
  • Type: interface{}

Property vpcId: VPC id to create vswtich.


ZoneIdRequired

ZoneId interface{}
  • Type: interface{}

Property zoneId: The availability zone in which the VSwitch will be created.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: Description of the VSwitch, [2, 256] characters.

Do not fill or empty, the default is empty.


Ipv6CidrBlockOptional

Ipv6CidrBlock interface{}
  • Type: interface{}

Property ipv6CidrBlock: The IPv6 network segment of the switch supports the last 8 bits of the VPC IPv6 network segment.

Value: 0-255 (decimal). The IPv6 segment mask of the switch defaults to 64 bits.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to vswitch.

Max support 20 tags to add during create vswitch. Each tag with two properties Key and Value, and Key is required.


VpcIpv6CidrBlockOptional

VpcIpv6CidrBlock interface{}
  • Type: interface{}

Property vpcIpv6CidrBlock: The IPv6 CIDR block of the VPC.


VSwitchNameOptional

VSwitchName interface{}
  • Type: interface{}

Property vSwitchName: Display name of the vSwitch instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.


ZoneTypeOptional

ZoneType interface{}
  • Type: interface{}

Property zoneType: The type of the zones to be queried.

Default value: AvailabilityZone. This value indicates Alibaba Cloud zones.