SecurityRulesOperationsExtensions.GetAsync(ISecurityRulesOperations, String, String, String, CancellationToken) Method

Definition

Get the specified network security rule.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.SecurityRule> GetAsync (this Microsoft.Azure.Management.Network.ISecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, string securityRuleName, System.Threading.CancellationToken cancellationToken = null);
static member GetAsync : Microsoft.Azure.Management.Network.ISecurityRulesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.SecurityRule>

Parameters

operations
ISecurityRulesOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

networkSecurityGroupName
System.String

The name of the network security group.

securityRuleName
System.String

The name of the security rule.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<SecurityRule>

Applies to