Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-04-01)

ResetNetworkInterfaceAttribute

Resets a network interface attribute. You can specify only one attribute at a time.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

NetworkInterfaceId

The ID of the network interface.

Type: String

Required: Yes

SourceDestCheck

The source/destination checking attribute. Resets the value to true.

Type: String

Required: No

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

return

Is true if the request succeeds, and an error otherwise.

Type: Boolean

Errors

For information about the errors that are common to all actions, see Common Client Errors.

Example

Example

This example resets the sourceDestCheck attribute for the specified network interface.

Sample Request

https://ec2.amazonaws.com/?Action=ResetNetworkInterfaceAttribute
&NetworkInterfaceId=eni-ffda3197
&Attribute=sourceDestCheck
&AUTHPARAMS

Sample Response

<ResetNetworkInterfaceAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2016-04-01/">
    <requestId>5187642e-3f16-44a3-b05f-24c3848b5162</requestId>
    <return>true</return>
</ResetNetworkInterfaceAttributeResponse>