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.

All of the metadata associated with a network interface on the instance.

Inheritance Hierarchy

System.Object
  Amazon.Util.NetworkInterfaceMetadata

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

Syntax

C#
public class NetworkInterfaceMetadata

The NetworkInterfaceMetadata type exposes the following members

Constructors

NameDescription
Public Method NetworkInterfaceMetadata(string)

Construct an instance of NetworkInterface

Properties

NameTypeDescription
Public Property LocalHostname System.String

The interface's local hostname.

Public Property LocalIPv4s System.Collections.Generic.IEnumerable<System.String>

The private IP addresses associated with the interface.

Public Property MacAddress System.String

The interface's Media Access Control (mac) address.

Public Property OwnerId System.String

The ID of the owner of the network interface.

Public Property Profile System.String

The interface's profile

Public Property PublicHostname System.String

The interface's public hostname.

Public Property PublicIPv4s System.Collections.Generic.IEnumerable<System.String>

The elastic IP addresses associated with the interface.

Public Property SecurityGroupIds System.Collections.Generic.IEnumerable<System.String>

IDs of the security groups to which the network interface belongs. Returned only for Amazon EC2 instances launched into a VPC.

Public Property SecurityGroups System.Collections.Generic.IEnumerable<System.String>

Security groups to which the network interface belongs.

Public Property SubnetId System.String

The ID of the Amazon EC2-VPC subnet in which the interface resides.

Public Property SubnetIPv4CidrBlock System.String

The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.

Public Property VpcId System.String

The CIDR block of the Amazon EC2-VPC subnet in which the interface resides.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method GetIpV4Association(string)

Get the private IPv4 address(es) that are associated with the public-ip address and assigned to that interface.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5