共用方式為


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.

public static Azure.ResourceManager.StoragePool.DiskPoolCollection GetDiskPools (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDiskPools : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.StoragePool.DiskPoolCollection
<Extension()>
Public Function GetDiskPools (resourceGroupResource As ResourceGroupResource) As DiskPoolCollection

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

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

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