Method: Fog::Compute::AWS::Real#reset_network_interface_attribute

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

#reset_network_interface_attribute(network_interface_id, attribute) ⇒ Object

Resets 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 reset, only ‘sourceDestCheck’ is supported.

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

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

      • ‘return’<~Boolean> - success?

Amazon API Reference

[View source]

20
21
22
23
24
25
26
27
28
29
30
# File 'lib/fog/aws/requests/compute/reset_network_interface_attribute.rb', line 20

def reset_network_interface_attribute(network_interface_id, attribute)
  if attribute != 'sourceDestCheck'
    raise Fog::Compute::AWS::Error.new("Illegal attribute '#{attribute}' specified")
  end
  request(
    'Action'             => 'ResetNetworkInterfaceAttribute',
    'NetworkInterfaceId' => network_interface_id,
    'Attribute'          => attribute,
    :parser              => Fog::Parsers::Compute::AWS::Basic.new
  )
end