AssignPrivateIpAddressesProps
Properties for defining a AssignPrivateIpAddresses.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-assignprivateipaddresses
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.AssignPrivateIpAddressesProps {
NetworkInterfaceId: interface{},
Ipv4PrefixCount: interface{},
Ipv4Prefixes: interface{},
PrivateIpAddresses: interface{},
SecondaryPrivateIpAddressCount: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
NetworkInterfaceId | interface{} | Property networkInterfaceId: The ID of the ENI. |
Ipv4PrefixCount | interface{} | Property ipv4PrefixCount: The number of IPv4 prefixes to be randomly generated for the ENI. |
Ipv4Prefixes | interface{} | Property ipv4Prefixes: One or multiple IPv4 prefixes to be assigned to the ENI. |
PrivateIpAddresses | interface{} | Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI. |
SecondaryPrivateIpAddressCount | interface{} | Property secondaryPrivateIpAddressCount: The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI. |
NetworkInterfaceIdRequired
NetworkInterfaceId interface{}
- Type: interface{}
Property networkInterfaceId: The ID of the ENI.
Ipv4PrefixCountOptional
Ipv4PrefixCount interface{}
- Type: interface{}
Property ipv4PrefixCount: The number of IPv4 prefixes to be randomly generated for the ENI.
Valid values: 1 to 10.
To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both.
Ipv4PrefixesOptional
Ipv4Prefixes interface{}
- Type: interface{}
Property ipv4Prefixes: One or multiple IPv4 prefixes to be assigned to the ENI.
PrivateIpAddressesOptional
PrivateIpAddresses interface{}
- Type: interface{}
Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI.
Valid values of number of private ip addresses: When the ENI is in the Available state: 1 to 10. When the ENI is in the InUse state: limited by the instance type. For more information, see Instance type families. You must specify either the PrivateIpAddresses parameter or the SecondaryPrivateIpAddressCount parameter to assign secondary private IP addresses.
SecondaryPrivateIpAddressCountOptional
SecondaryPrivateIpAddressCount interface{}
- Type: interface{}
Property secondaryPrivateIpAddressCount: The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI.
To assign secondary private IP addresses to the ENI, you must specify PrivateIpAddress.N or SecondaryPrivateIpAddressCount but not both.