Partilhar via


SiteRecoveryFabricResource.GetSiteRecoveryVCenterAsync Método

Definição

Obtém os detalhes de um servidor vCenter registrado (Adicionar servidor vCenter).

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName}
  • Operação IdReplicationvCenters_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryVCenterResource>> GetSiteRecoveryVCenterAsync (string vCenterName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSiteRecoveryVCenterAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryVCenterResource>>
override this.GetSiteRecoveryVCenterAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryVCenterResource>>
Public Overridable Function GetSiteRecoveryVCenterAsync (vCenterName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SiteRecoveryVCenterResource))

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 esperava-se que não estivesse vazia.

vCenterName é nulo.

Aplica-se a