共用方式為


ServiceProjectTaskCollection.GetAll(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.Pageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource> GetAll (string taskType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource>
override this.GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataMigration.ServiceProjectTaskResource>
Public Overridable Function GetAll (Optional taskType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceProjectTaskResource)

Parameters

taskType
String

Filter tasks by task type.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to