Method: Fog::Compute::AWS::Real#attach_network_interface
- Defined in:
- lib/fog/aws/requests/compute/attach_network_interface.rb
permalink #attach_network_interface(nic_id, instance_id, device_index) ⇒ Object
Attach a network interface
Parameters
-
networkInterfaceId<~String> - ID of the network interface to attach
-
instanceId<~String> - ID of the instance that will be attached to the network interface
-
deviceIndex<~Integer> - index of the device for the network interface attachment on the instance
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘attachmentId’<~String> - ID of the attachment
22 23 24 25 26 27 28 29 30 |
# File 'lib/fog/aws/requests/compute/attach_network_interface.rb', line 22 def attach_network_interface(nic_id, instance_id, device_index) request( 'Action' => 'AttachNetworkInterface', 'NetworkInterfaceId' => nic_id, 'InstanceId' => instance_id, 'DeviceIndex' => device_index, :parser => Fog::Parsers::Compute::AWS::AttachNetworkInterface.new ) end |