Compartilhar via


VMwareHostCollection.GetAsync(String, CancellationToken) Método

Definição

Implementa o método GET do host.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}
  • Operação IdHosts_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>> GetAsync (string hostName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>>
Public Overridable Function GetAsync (hostName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VMwareHostResource))

Parâmetros

hostName
String

Nome do host.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

hostName é nulo.

Aplica-se a