StoragePoolExtensions.GetDiskPools Method

Definition

Overloads

GetDiskPools(ResourceGroupResource)

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

GetDiskPools(SubscriptionResource, CancellationToken)

Gets a list of Disk Pools in a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/diskPools
  • Operation Id: DiskPools_ListBySubscription

GetDiskPools(ResourceGroupResource)

Source:
StoragePoolExtensions.cs
Source:
StoragePoolExtensions.cs

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

C#
public static Azure.ResourceManager.StoragePool.DiskPoolCollection GetDiskPools(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DiskPoolResources and their operations over a DiskPoolResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetDiskPools(SubscriptionResource, CancellationToken)

Source:
StoragePoolExtensions.cs
Source:
StoragePoolExtensions.cs

Gets a list of Disk Pools in a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/diskPools
  • Operation Id: DiskPools_ListBySubscription
C#
public static Azure.Pageable<Azure.ResourceManager.StoragePool.DiskPoolResource> GetDiskPools(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview