你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
HasNetworkInterfaces Interface
Implements
public interface HasNetworkInterfaces
extends HasId
Interface exposing a list of network interfaces.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Network |
getPrimaryNetworkInterface()
Gets the primary network interface. |
abstract
Mono<Network |
getPrimaryNetworkInterfaceAsync()
Gets the primary network interface. |
abstract List<String> |
networkInterfaceIds()
Gets the list of resource IDs of the network interfaces associated with this resource. |
abstract String |
primaryNetworkInterfaceId()
Gets the resource ID of the primary network interface associated with this resource. |
Method Details
getPrimaryNetworkInterface
public abstract NetworkInterface getPrimaryNetworkInterface()
Gets the primary network interface.
Note that this method can result in a call to the cloud to fetch the network interface information.
Returns:
getPrimaryNetworkInterfaceAsync
public abstract Mono
Gets the primary network interface.
Note that this method can result in a call to the cloud to fetch the network interface information.
Returns:
networkInterfaceIds
public abstract List
Gets the list of resource IDs of the network interfaces associated with this resource.
Returns:
primaryNetworkInterfaceId
public abstract String primaryNetworkInterfaceId()
Gets the resource ID of the primary network interface associated with this resource.
Returns: