Share via


FirewallRuleOperationsExtensions.GetAsync Method

Returns the Firewall rule for an Azure SQL Database Server with a matching name.

Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.Sql (in Microsoft.WindowsAzure.Management.Sql.dll)

Usage

'Usage
Dim operations As IFirewallRuleOperations
Dim serverName As String
Dim ruleName As String
Dim returnValue As Task(Of FirewallRuleGetResponse)

returnValue = FirewallRuleOperationsExtensions.GetAsync(operations, serverName, ruleName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetAsync ( _
    operations As IFirewallRuleOperations, _
    serverName As String, _
    ruleName As String _
) As Task(Of FirewallRuleGetResponse)
[ExtensionAttribute] 
public static Task<FirewallRuleGetResponse> GetAsync (
    IFirewallRuleOperations operations,
    string serverName,
    string ruleName
)
[ExtensionAttribute] 
public:
static Task<FirewallRuleGetResponse^>^ GetAsync (
    IFirewallRuleOperations^ operations, 
    String^ serverName, 
    String^ ruleName
)
/** @attribute ExtensionAttribute() */ 
public static Task<FirewallRuleGetResponse> GetAsync (
    IFirewallRuleOperations operations, 
    String serverName, 
    String ruleName
)
ExtensionAttribute 
public static function GetAsync (
    operations : IFirewallRuleOperations, 
    serverName : String, 
    ruleName : String
) : Task<FirewallRuleGetResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Sql.IFirewallRuleOperations.
  • serverName
    Required. The name of the Azure SQL Database Server to query for the Firewall Rule.
  • ruleName
    Required. The name of the rule to retrieve.

Return Value

Contains the response from a request to Get Firewall Rule.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

FirewallRuleOperationsExtensions Class
FirewallRuleOperationsExtensions Members
Microsoft.WindowsAzure Namespace