| Did this page help you? Yes No Tell us about it... |
Describes a network interface attribute. Only one attribute can be specified per call.
The short version of this command is ec2dnicatt.
ec2-describe-network-interface-attribute
NETWORKINTERFACE -d, --description --source-dest-check
--group-set -a, --attachment
| Name | Description | Required |
|---|---|---|
|
|
Get the description of the network interface. Type: String |
Yes |
|
|
Gets whether to enable the source/dest check on traffic through this network interface. Type: String |
Yes |
|
|
Get the security groups for the network interface. Type: String |
Yes |
|
|
Get the attachment (if any) of the network interface. Type: String |
Yes |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns the specified network interface attribute.
Amazon EC2 command line tools display errors on stderr.
This example lists the network interface's description.
PROMPT>ec2-describe-network-interface-attribute eni-b35da6da -dNETWORKINTERFACE eni-b35da6da description DESCRIPTION My ENI
This example enables source/destination checking on traffic across the specified network interface.
PROMPT>ec2-describe-network-interface-attribute eni-b35da6da --source-dest-checkNETWORKINTERFACE eni-b35da6da sourceDestCheck SOURCEDESTCHECK true
This example lists the security groups for the specified network interface.
PROMPT>ec2-describe-network-interface-attribute eni-b35da6da --group-setNETWORKINTERFACE eni-b35da6da group GROUP sg-8ea1bce2 default