Share via


MigrationDiscoverySapExtensions.GetSapDiscoverySites Method

Definition

Overloads

GetSapDiscoverySites(ResourceGroupResource)

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

GetSapDiscoverySites(SubscriptionResource, CancellationToken)

Gets all SAP Migration discovery site resources in a Subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapDiscoverySites
  • Operation Id: SapDiscoverySites_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: SapDiscoverySiteResource

GetSapDiscoverySites(ResourceGroupResource)

Source:
MigrationDiscoverySapExtensions.cs

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

public static Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteCollection GetSapDiscoverySites (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSapDiscoverySites : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteCollection
<Extension()>
Public Function GetSapDiscoverySites (resourceGroupResource As ResourceGroupResource) As SapDiscoverySiteCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of SapDiscoverySiteResources and their operations over a SapDiscoverySiteResource.

Exceptions

resourceGroupResource is null.

Applies to

GetSapDiscoverySites(SubscriptionResource, CancellationToken)

Source:
MigrationDiscoverySapExtensions.cs

Gets all SAP Migration discovery site resources in a Subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapDiscoverySites
  • Operation Id: SapDiscoverySites_ListBySubscription
  • Default Api Version: 2023-10-01-preview
  • Resource: SapDiscoverySiteResource
public static Azure.Pageable<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteResource> GetSapDiscoverySites (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSapDiscoverySites : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.MigrationDiscoverySap.SapDiscoverySiteResource>
<Extension()>
Public Function GetSapDiscoverySites (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SapDiscoverySiteResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to