Partilhar via


SiteRecoveryFabricResource.GetSiteRecoveryProtectionContainerAsync Método

Definição

Obtém os detalhes de um contêiner de proteção.

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

Parâmetros

protectionContainerName
String

Nome do contêiner de proteção.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

protectionContainerName é nulo.

Aplica-se a