Partilhar via


DnsForwardingRulesetResource.GetDnsForwardingRule Método

Definição

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

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}
  • Operação IdForwardingRules_Get
public virtual Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource> GetDnsForwardingRule (string forwardingRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDnsForwardingRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>
override this.GetDnsForwardingRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DnsResolver.DnsForwardingRuleResource>
Public Overridable Function GetDnsForwardingRule (forwardingRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 era esperado que não estivesse vazio.

forwardingRuleName é nulo.

Aplica-se a