Share via


StorageSyncExtensions.GetStorageSyncServices Method

Definition

Overloads

GetStorageSyncServices(ResourceGroupResource)

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

GetStorageSyncServices(SubscriptionResource, CancellationToken)

Get a StorageSyncService list by subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices
  • Operation Id: StorageSyncServices_ListBySubscription

GetStorageSyncServices(ResourceGroupResource)

Source:
StorageSyncExtensions.cs
Source:
StorageSyncExtensions.cs

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

public static Azure.ResourceManager.StorageSync.StorageSyncServiceCollection GetStorageSyncServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetStorageSyncServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.StorageSync.StorageSyncServiceCollection
<Extension()>
Public Function GetStorageSyncServices (resourceGroupResource As ResourceGroupResource) As StorageSyncServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of StorageSyncServiceResources and their operations over a StorageSyncServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetStorageSyncServices(SubscriptionResource, CancellationToken)

Source:
StorageSyncExtensions.cs
Source:
StorageSyncExtensions.cs

Get a StorageSyncService list by subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices
  • Operation Id: StorageSyncServices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.StorageSync.StorageSyncServiceResource> GetStorageSyncServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageSyncServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.StorageSync.StorageSyncServiceResource>
<Extension()>
Public Function GetStorageSyncServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of StorageSyncServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to