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.
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
public virtual DescribeSecondaryInterfacesResponse DescribeSecondaryInterfaces( DescribeSecondaryInterfacesRequest request )
Container for the necessary parameters to execute the DescribeSecondaryInterfaces service method.
This example describes all secondary interfaces in the current Region.
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.
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;
.NET Framework:
Supported in: 4.7.2 and newer