Freigeben über


SiteRecoveryProtectionContainerCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • 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.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryProtectionContainerResource>> GetIfExistsAsync (string protectionContainerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryProtectionContainerResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryProtectionContainerResource>>
Public Overridable Function GetIfExistsAsync (protectionContainerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(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: