你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkInterfaces interface

表示 NetworkInterfaces 的接口。

方法

beginCreateOrUpdate(string, string, NetworkInterface, NetworkInterfacesCreateOrUpdateOptionalParams)

创建或更新网络接口。

beginCreateOrUpdateAndWait(string, string, NetworkInterface, NetworkInterfacesCreateOrUpdateOptionalParams)

创建或更新网络接口。

beginDelete(string, string, NetworkInterfacesDeleteOptionalParams)

删除指定的网络接口。

beginDeleteAndWait(string, string, NetworkInterfacesDeleteOptionalParams)

删除指定的网络接口。

beginGetEffectiveRouteTable(string, string, NetworkInterfacesGetEffectiveRouteTableOptionalParams)

获取应用于网络接口的所有路由表。

beginGetEffectiveRouteTableAndWait(string, string, NetworkInterfacesGetEffectiveRouteTableOptionalParams)

获取应用于网络接口的所有路由表。

beginListEffectiveNetworkSecurityGroups(string, string, NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams)

获取应用于网络接口的所有网络安全组。

beginListEffectiveNetworkSecurityGroupsAndWait(string, string, NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams)

获取应用于网络接口的所有网络安全组。

get(string, string, NetworkInterfacesGetOptionalParams)

获取有关指定网络接口的信息。

getCloudServiceNetworkInterface(string, string, string, string, NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams)

获取云服务中的指定网络接口。

getVirtualMachineScaleSetIpConfiguration(string, string, string, string, string, NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams)

获取虚拟机规模集中的指定网络接口 IP 配置。

getVirtualMachineScaleSetNetworkInterface(string, string, string, string, NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams)

获取虚拟机规模集中的指定网络接口。

list(string, NetworkInterfacesListOptionalParams)

获取资源组中的所有网络接口。

listAll(NetworkInterfacesListAllOptionalParams)

获取订阅中的所有网络接口。

listCloudServiceNetworkInterfaces(string, string, NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams)

获取云服务中的所有网络接口。

listCloudServiceRoleInstanceNetworkInterfaces(string, string, string, NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams)

获取有关云服务中角色实例中的所有网络接口的信息。

listVirtualMachineScaleSetIpConfigurations(string, string, string, string, NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams)

获取虚拟机规模集中的指定网络接口 IP 配置。

listVirtualMachineScaleSetNetworkInterfaces(string, string, NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams)

获取虚拟机规模集中的所有网络接口。

listVirtualMachineScaleSetVMNetworkInterfaces(string, string, string, NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams)

获取有关虚拟机规模集中虚拟机中的所有网络接口的信息。

updateTags(string, string, TagsObject, NetworkInterfacesUpdateTagsOptionalParams)

更新网络接口标记。

方法详细信息

beginCreateOrUpdate(string, string, NetworkInterface, NetworkInterfacesCreateOrUpdateOptionalParams)

创建或更新网络接口。

function beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: NetworkInterface, options?: NetworkInterfacesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<NetworkInterface>, NetworkInterface>>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

parameters
NetworkInterface

提供给创建或更新网络接口作的参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<NetworkInterface>, NetworkInterface>>

beginCreateOrUpdateAndWait(string, string, NetworkInterface, NetworkInterfacesCreateOrUpdateOptionalParams)

创建或更新网络接口。

function beginCreateOrUpdateAndWait(resourceGroupName: string, networkInterfaceName: string, parameters: NetworkInterface, options?: NetworkInterfacesCreateOrUpdateOptionalParams): Promise<NetworkInterface>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

parameters
NetworkInterface

提供给创建或更新网络接口作的参数。

返回

Promise<NetworkInterface>

beginDelete(string, string, NetworkInterfacesDeleteOptionalParams)

删除指定的网络接口。

function beginDelete(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

options
NetworkInterfacesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, NetworkInterfacesDeleteOptionalParams)

删除指定的网络接口。

function beginDeleteAndWait(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

options
NetworkInterfacesDeleteOptionalParams

选项参数。

返回

Promise<void>

beginGetEffectiveRouteTable(string, string, NetworkInterfacesGetEffectiveRouteTableOptionalParams)

获取应用于网络接口的所有路由表。

function beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesGetEffectiveRouteTableOptionalParams): Promise<SimplePollerLike<OperationState<EffectiveRouteListResult>, EffectiveRouteListResult>>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<EffectiveRouteListResult>, EffectiveRouteListResult>>

beginGetEffectiveRouteTableAndWait(string, string, NetworkInterfacesGetEffectiveRouteTableOptionalParams)

获取应用于网络接口的所有路由表。

function beginGetEffectiveRouteTableAndWait(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesGetEffectiveRouteTableOptionalParams): Promise<EffectiveRouteListResult>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

返回

beginListEffectiveNetworkSecurityGroups(string, string, NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams)

获取应用于网络接口的所有网络安全组。

function beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams): Promise<SimplePollerLike<OperationState<EffectiveNetworkSecurityGroupListResult>, EffectiveNetworkSecurityGroupListResult>>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

返回

beginListEffectiveNetworkSecurityGroupsAndWait(string, string, NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams)

获取应用于网络接口的所有网络安全组。

function beginListEffectiveNetworkSecurityGroupsAndWait(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams): Promise<EffectiveNetworkSecurityGroupListResult>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

返回

get(string, string, NetworkInterfacesGetOptionalParams)

获取有关指定网络接口的信息。

function get(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesGetOptionalParams): Promise<NetworkInterface>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

options
NetworkInterfacesGetOptionalParams

选项参数。

返回

Promise<NetworkInterface>

getCloudServiceNetworkInterface(string, string, string, string, NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams)

获取云服务中的指定网络接口。

function getCloudServiceNetworkInterface(resourceGroupName: string, cloudServiceName: string, roleInstanceName: string, networkInterfaceName: string, options?: NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams): Promise<NetworkInterface>

参数

resourceGroupName

string

资源组的名称。

cloudServiceName

string

云服务的名称。

roleInstanceName

string

角色实例的名称。

networkInterfaceName

string

网络接口的名称。

返回

Promise<NetworkInterface>

getVirtualMachineScaleSetIpConfiguration(string, string, string, string, string, NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams)

获取虚拟机规模集中的指定网络接口 IP 配置。

function getVirtualMachineScaleSetIpConfiguration(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams): Promise<NetworkInterfaceIPConfiguration>

参数

resourceGroupName

string

资源组的名称。

virtualMachineScaleSetName

string

虚拟机规模集的名称。

virtualmachineIndex

string

虚拟机索引。

networkInterfaceName

string

网络接口的名称。

ipConfigurationName

string

IP 配置的名称。

返回

getVirtualMachineScaleSetNetworkInterface(string, string, string, string, NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams)

获取虚拟机规模集中的指定网络接口。

function getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams): Promise<NetworkInterface>

参数

resourceGroupName

string

资源组的名称。

virtualMachineScaleSetName

string

虚拟机规模集的名称。

virtualmachineIndex

string

虚拟机索引。

networkInterfaceName

string

网络接口的名称。

返回

Promise<NetworkInterface>

list(string, NetworkInterfacesListOptionalParams)

获取资源组中的所有网络接口。

function list(resourceGroupName: string, options?: NetworkInterfacesListOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

options
NetworkInterfacesListOptionalParams

选项参数。

返回

listAll(NetworkInterfacesListAllOptionalParams)

获取订阅中的所有网络接口。

function listAll(options?: NetworkInterfacesListAllOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

options
NetworkInterfacesListAllOptionalParams

选项参数。

返回

listCloudServiceNetworkInterfaces(string, string, NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams)

获取云服务中的所有网络接口。

function listCloudServiceNetworkInterfaces(resourceGroupName: string, cloudServiceName: string, options?: NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

cloudServiceName

string

云服务的名称。

返回

listCloudServiceRoleInstanceNetworkInterfaces(string, string, string, NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams)

获取有关云服务中角色实例中的所有网络接口的信息。

function listCloudServiceRoleInstanceNetworkInterfaces(resourceGroupName: string, cloudServiceName: string, roleInstanceName: string, options?: NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

cloudServiceName

string

云服务的名称。

roleInstanceName

string

角色实例的名称。

返回

listVirtualMachineScaleSetIpConfigurations(string, string, string, string, NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams)

获取虚拟机规模集中的指定网络接口 IP 配置。

function listVirtualMachineScaleSetIpConfigurations(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams): PagedAsyncIterableIterator<NetworkInterfaceIPConfiguration, NetworkInterfaceIPConfiguration[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

virtualMachineScaleSetName

string

虚拟机规模集的名称。

virtualmachineIndex

string

虚拟机索引。

networkInterfaceName

string

网络接口的名称。

返回

listVirtualMachineScaleSetNetworkInterfaces(string, string, NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams)

获取虚拟机规模集中的所有网络接口。

function listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options?: NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

virtualMachineScaleSetName

string

虚拟机规模集的名称。

返回

listVirtualMachineScaleSetVMNetworkInterfaces(string, string, string, NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams)

获取有关虚拟机规模集中虚拟机中的所有网络接口的信息。

function listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams): PagedAsyncIterableIterator<NetworkInterface, NetworkInterface[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

virtualMachineScaleSetName

string

虚拟机规模集的名称。

virtualmachineIndex

string

虚拟机索引。

返回

updateTags(string, string, TagsObject, NetworkInterfacesUpdateTagsOptionalParams)

更新网络接口标记。

function updateTags(resourceGroupName: string, networkInterfaceName: string, parameters: TagsObject, options?: NetworkInterfacesUpdateTagsOptionalParams): Promise<NetworkInterface>

参数

resourceGroupName

string

资源组的名称。

networkInterfaceName

string

网络接口的名称。

parameters
TagsObject

提供用于更新网络接口标记的参数。

返回

Promise<NetworkInterface>