Udostępnij za pośrednictwem


INetworkSecurityGroupOperations.GetForRoleAsync Method

Definition

Gets the Network Security Group applied to a specific role.

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

Parameters

serviceName
String
deploymentName
String
roleName
String
cancellationToken
CancellationToken

Cancellation token.

Returns

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

Applies to