Share via


ServiceProjectTaskCollection.GetAllAsync(String, CancellationToken) Method

Definition

The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks
  • Operation Id: Tasks_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource> GetAllAsync (string taskType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource>
Public Overridable Function GetAllAsync (Optional taskType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ServiceProjectTaskResource)

Parameters

taskType
String

Filter tasks by task type.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ServiceProjectTaskResource that may take multiple service requests to iterate over.

Applies to