Partager via


StorageClassificationMappingCollection.GetIfExistsAsync 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}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName}
  • IdReplicationStorageClassificationMappings_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.StorageClassificationMappingResource>> GetIfExistsAsync (string storageClassificationMappingName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.StorageClassificationMappingResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.StorageClassificationMappingResource>>
Public Overridable Function GetIfExistsAsync (storageClassificationMappingName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of StorageClassificationMappingResource))

Paramètres

storageClassificationMappingName
String

Nom du mappage de classification de stockage.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

storageClassificationMappingName a la valeur null.

S’applique à