Dela via


DataMigrationExtensions.GetDataMigrationServicesAsync Method

Definition

The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services
  • Operation Id: Services_List
public static Azure.AsyncPageable<Azure.ResourceManager.DataMigration.DataMigrationServiceResource> GetDataMigrationServicesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDataMigrationServicesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataMigration.DataMigrationServiceResource>
<Extension()>
Public Function GetDataMigrationServicesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DataMigrationServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to