Partager via


MoveCollectionResource.GetRequiredForAsync(String, CancellationToken) Méthode

Définition

Liste des ressources de déplacement pour lesquelles une ressource arm est requise. Chemin de la demande : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor Operation ID: MoveCollections_ListRequiredFor

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migrate.Models.RequiredForResourcesCollection>> GetRequiredForAsync (string sourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRequiredForAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migrate.Models.RequiredForResourcesCollection>>
override this.GetRequiredForAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migrate.Models.RequiredForResourcesCollection>>
Public Overridable Function GetRequiredForAsync (sourceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RequiredForResourcesCollection))

Paramètres

sourceId
String

SourceId pour lequel l’API est appelée.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

sourceId a la valeur null.

S’applique à