Partilhar via


DedicatedHostGroupResource.GetDedicatedHostAsync Método

Definição

Recupera informações sobre um host dedicado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operação IdDedicatedHosts_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>> GetDedicatedHostAsync (string hostName, Azure.ResourceManager.Compute.Models.InstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDedicatedHostAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>>
override this.GetDedicatedHostAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>>
Public Overridable Function GetDedicatedHostAsync (hostName As String, Optional expand As Nullable(Of InstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DedicatedHostResource))

Parâmetros

hostName
String

O nome do host dedicado.

expand
Nullable<InstanceViewType>

A expressão de expansão a ser aplicada na operação. 'InstanceView' recuperará a lista de exibições de instância do host dedicado. Não há suporte para 'UserData' para host dedicado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

hostName é nulo.

Aplica-se a