Partager via


SiteRecoveryMigrationItemCollection.GetIfExists Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationMigrationItems/{migrationItemName}
  • IdReplicationMigrationItems_Get d’opération
public virtual Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryMigrationItemResource> GetIfExists (string migrationItemName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryMigrationItemResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryMigrationItemResource>
Public Overridable Function GetIfExists (migrationItemName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SiteRecoveryMigrationItemResource)

Paramètres

migrationItemName
String

Nom de l’élément de migration.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

migrationItemName est une chaîne vide et devait être non vide.

migrationItemName a la valeur null.

S’applique à