Compartilhar via


ManagedServerDnsAliasCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém um alias DNS do servidor.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}
  • IdManagedServerDnsAliases_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedServerDnsAliasResource>> GetAsync (string dnsAliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedServerDnsAliasResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedServerDnsAliasResource>>
Public Overridable Function GetAsync (dnsAliasName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedServerDnsAliasResource))

Parâmetros

dnsAliasName
String

A cadeia de caracteres a ser usada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

dnsAliasName é nulo.

Aplica-se a