Partilhar via


SqlFirewallRuleCollection.GetAsync(String, CancellationToken) Método

Definição

Obtêm uma regra de firewall.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}
  • Operação IdFirewallRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlFirewallRuleResource>> GetAsync (string firewallRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlFirewallRuleResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SqlFirewallRuleResource>>
Public Overridable Function GetAsync (firewallRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlFirewallRuleResource))

Parâmetros

firewallRuleName
String

O nome da regra de firewall.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

firewallRuleName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

firewallRuleName é nulo.

Aplica-se a