Amazon Elastic Compute Cloud
API Reference (API Version 2014-09-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

ResetNetworkInterfaceAttribute

Description

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

Request Parameters

For information about the common parameters that all actions use, see Common Query Parameters.

NetworkInterfaceId

The ID of the network interface.

Type: String

Default: None

Required: Yes

Attribute

The name of the attribute to reset.

Type: String

Valid values: SourceDestCheck (reset to true)

Default: None

Required: Yes

Response Elements

The following elements are returned in a ResetNetworkInterfaceAttributeResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds; otherwise, it returns an error.

Type: xsd:boolean

Errors

The following are some of the client API errors you might encounter when using this request. For more information about common API errors, see Common Causes of Client Errors. For a summary of API error codes, see Client Error Codes.

Examples

Example Request

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

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

Example Response

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