Freigeben über


SiteRecoveryFabricResource.GetSiteRecoveryProtectionContainerAsync Methode

Definition

Ruft die Details eines Schutzcontainers ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}
  • Vorgang IdReplicationProtectionContainers_Get
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))

Parameter

protectionContainerName
String

Name des Schutzcontainers.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

protectionContainerName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

protectionContainerName ist NULL.

Gilt für: