AttachNetworkInterface
In this article:
AttachNetworkInterface#
Description#
Attach a network interface to the specified instance.
The network interface identifier is used to attach an interface. It can be obtained using DescribeNetworkInterfaces.
An instance can have up to 16 interfaces, regardless of the instance type or OS image used.
Request Parameters#
deviceIndex — The index of the network interface.
Type: Integer
Required: Yes
instanceId — The ID of the instance.
Type: String
Required: Yes
NetworkInterfaceId — The ID of the network interface.
Type: String
Required: Yes
Response Elements#
requestId — The request ID.
Type: String
return —
True
is returned if the request succeeds, and an error otherwise.Type: Boolean
Examples#
c2-ec2 AttachNetworkInterface InstanceId i-12345678 NetworkInterfaceId eni-12345678 DeviceIndex 1