Method: Fog::Compute::AWS::Real#describe_network_interface_attribute

Defined in:
lib/fog/aws/requests/compute/describe_network_interface_attribute.rb

#describe_network_interface_attribute(network_interface_id, attribute) ⇒ Object

Describes a network interface attribute value

Parameters

  • network_interface_id<~String> - The ID of the network interface you want to describe an attribute of

  • attribute<~String> - The attribute to describe, must be one of ‘description’, ‘groupSet’, ‘sourceDestCheck’ or ‘attachment’

Returns

  • response<~Excon::Response>:

  • body<~Hash>:

  • ‘requestId’<~String> - Id of request

  • ‘networkInterfaceId’<~String> - The ID of the network interface

  • ‘description’<~String> - The description (if requested)

  • ‘groupSet’<~Hash> - Associated security groups (if requested)

  • ‘key’<~String> - ID of associated group

  • ‘value’<~String> - Name of associated group

  • ‘sourceDestCheck’<~Boolean> - Flag indicating whether traffic to or from the instance is validated (if requested)

  • ‘attachment’<~Hash>: - Describes the way this nic is attached (if requested)

  • ‘attachmentID’<~String>

  • ‘instanceID’<~String>

  • ‘instanceOwnerId’<~String>

  • ‘deviceIndex’<~Integer>

  • ‘status’<~String>

  • ‘attachTime’<~String>

  • ‘deleteOnTermination<~Boolean>

Amazon API Reference

[View source]

33
34
35
36
37
38
39
40
# File 'lib/fog/aws/requests/compute/describe_network_interface_attribute.rb', line 33

def describe_network_interface_attribute(network_interface_id, attribute)
  request(
    'Action'             => 'DescribeNetworkInterfaceAttribute',
    'NetworkInterfaceId' => network_interface_id,
    'Attribute'          => attribute,
    :parser              => Fog::Parsers::Compute::AWS::DescribeNetworkInterfaceAttribute.new
  )
end