Compartilhar via


DnsResolverExtensions.GetDnsResolver Método

Definição

Obtém as propriedades de um resolvedor DNS.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}
  • IdDnsResolvers_Get de operação
public static Azure.Response<Azure.ResourceManager.DnsResolver.DnsResolverResource> GetDnsResolver (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dnsResolverName, System.Threading.CancellationToken cancellationToken = default);
static member GetDnsResolver : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DnsResolver.DnsResolverResource>
<Extension()>
Public Function GetDnsResolver (resourceGroupResource As ResourceGroupResource, dnsResolverName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DnsResolverResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

dnsResolverName
String

O nome do resolvedor de DNS.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

dnsResolverName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

dnsResolverName é nulo.

Aplica-se a