Udostępnij za pośrednictwem


INetworkSecurityGroupOperations.GetForNetworkInterfaceAsync Method

Definition

Gets the Network Security Group applied to a specific network interface.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse> GetForNetworkInterfaceAsync (string serviceName, string deploymentName, string roleName, string networkInterfaceName, System.Threading.CancellationToken cancellationToken);
abstract member GetForNetworkInterfaceAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse>
Public Function GetForNetworkInterfaceAsync (serviceName As String, deploymentName As String, roleName As String, networkInterfaceName As String, cancellationToken As CancellationToken) As Task(Of NetworkSecurityGroupGetAssociationResponse)

Parameters

serviceName
String
deploymentName
String
roleName
String
networkInterfaceName
String
cancellationToken
CancellationToken

Cancellation token.

Returns

The Network Security Group associated with an entity: subnet, network interface or role.

Applies to