Partager via


DnsForwardingRulesetResource.GetDnsForwardingRuleAsync Méthode

Définition

Obtient les propriétés d’une règle de transfert dans un ensemble de règles de transfert DNS.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}
  • Opération 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))

Paramètres

forwardingRuleName
String

Nom de la règle de transfert.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

forwardingRuleName est une chaîne vide et devait être non vide.

forwardingRuleName a la valeur null.

S’applique à