Udostępnij za pośrednictwem


INetworkSecurityGroupOperations.GetForSubnetAsync Method

Definition

Gets the Network Security Group applied to a specific subnet.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse> GetForSubnetAsync (string virtualNetworkName, string subnetName, System.Threading.CancellationToken cancellationToken);
abstract member GetForSubnetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse>
Public Function GetForSubnetAsync (virtualNetworkName As String, subnetName As String, cancellationToken As CancellationToken) As Task(Of NetworkSecurityGroupGetAssociationResponse)

Parameters

virtualNetworkName
String
subnetName
String
cancellationToken
CancellationToken

Cancellation token.

Returns

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

Applies to