Compartilhar via


MoveCollectionResource.GetRequiredForAsync(String, CancellationToken) Método

Definição

Lista dos recursos de movimentação para os quais um recurso arm é necessário. Caminho da Solicitação: /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))

Parâmetros

sourceId
String

A sourceId para a qual a api é invocada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

sourceId é nulo.

Aplica-se a