Compartilhar via


VCenterCollection.GetAsync(String, CancellationToken) Método

Definição

Implementa o método GET do vCenter.

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

Parâmetros

vcenterName
String

Nome do vCenter.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

vcenterName é nulo.

Aplica-se a