Compartilhar via


ConnectedVMwarevSphereExtensions.GetVMwareHostAsync 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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>> GetVMwareHostAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string hostName, System.Threading.CancellationToken cancellationToken = default);
static member GetVMwareHostAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareHostResource>>
<Extension()>
Public Function GetVMwareHostAsync (resourceGroupResource As ResourceGroupResource, hostName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VMwareHostResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

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

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