다음을 통해 공유


DataMigrationExtensions.GetDataMigrationServices Method

Definition

Overloads

GetDataMigrationServices(ResourceGroupResource)

Gets a collection of DataMigrationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataMigrationServices() instead.

GetDataMigrationServices(SubscriptionResource, CancellationToken)

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

GetDataMigrationServices(ResourceGroupResource)

Source:
DataMigrationExtensions.cs

Gets a collection of DataMigrationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataMigrationServices() instead.

public static Azure.ResourceManager.DataMigration.DataMigrationServiceCollection GetDataMigrationServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDataMigrationServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataMigration.DataMigrationServiceCollection
<Extension()>
Public Function GetDataMigrationServices (resourceGroupResource As ResourceGroupResource) As DataMigrationServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DataMigrationServiceResources and their operations over a DataMigrationServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDataMigrationServices(SubscriptionResource, CancellationToken)

Source:
DataMigrationExtensions.cs

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.Pageable<Azure.ResourceManager.DataMigration.DataMigrationServiceResource> GetDataMigrationServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDataMigrationServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataMigration.DataMigrationServiceResource>
<Extension()>
Public Function GetDataMigrationServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataMigrationServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to