Compartilhar via


DnsForwardingRulesetResource.GetDnsForwardingRuleAsync Método

Definição

Obtém propriedades de uma regra de encaminhamento em um conjunto de regras de encaminhamento DNS.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}
  • Operação IdForwardingRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>> GetDnsForwardingRuleAsync (string forwardingRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDnsForwardingRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>>
override this.GetDnsForwardingRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>>
Public Overridable Function GetDnsForwardingRuleAsync (forwardingRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DnsForwardingRuleResource))

Parâmetros

forwardingRuleName
String

O nome da regra de encaminhamento.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

forwardingRuleName é nulo.

Aplica-se a