AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes one or more of your secondary interfaces.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DescribeSecondaryInterfacesAsync.

Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public virtual DescribeSecondaryInterfacesResponse DescribeSecondaryInterfaces(
         DescribeSecondaryInterfacesRequest request
)

Parameters

request
Type: Amazon.EC2.Model.DescribeSecondaryInterfacesRequest

Container for the necessary parameters to execute the DescribeSecondaryInterfaces service method.

Return Value


The response from the DescribeSecondaryInterfaces service method, as returned by EC2.

Examples

This example describes all secondary interfaces in the current Region.

To describe all secondary interfaces


var client = new AmazonEC2Client();
var response = client.DescribeSecondaryInterfaces(new DescribeSecondaryInterfacesRequest 
{
});

List<SecondaryInterface> secondaryInterfaces = response.SecondaryInterfaces;

            

This example uses filters to describe secondary interfaces attached to a specific instance.

To describe secondary interfaces using filters


var client = new AmazonEC2Client();
var response = client.DescribeSecondaryInterfaces(new DescribeSecondaryInterfacesRequest 
{
    Filters = new List<Filter> {
        new Filter {
            Name = "attachment.instance-id",
            Values = new List<string> {
                "i-1234567890abcdef0"
            }
        }
    },
    MaxResults = 5
});

string nextToken = response.NextToken;
List<SecondaryInterface> secondaryInterfaces = response.SecondaryInterfaces;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also