AssignPrivateIpAddresses
In this article:
AssignPrivateIpAddresses#
Description#
Request to assign addresses to a network interface.
Request Parameters#
NetworkInterfaceId — The ID of the network interface.
Type: String
Required: Yes
PrivateIpAddresses.N — Specification of private IP addresses.
Type: Array of strings
Required: No
SecondaryPrivateIpAddressCount — The number of additional private IP addresses.
Type: Integer
Required: No
Response Elements#
assignedPrivateIpAddressesSet — List of assigned addresses.
Type: List of AssignedPrivateIpAddress objects
networkInterfaceId — The ID of the network interface.
Type: String
Examples#
c2-ec2 AssignPrivateIpAddresses NetworkInterfaceId eni-12345678 SecondaryPrivateIpAddressCount 2
c2-ec2 AssignPrivateIpAddresses NetworkInterfaceId eni-12345678 PrivateIpAddresses.1 192.0.2.10