MockableHciSubscriptionResource.GetDevicePoolsAsync(CancellationToken) Method

Definition

List all device pools in a subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/devicePools.
  • Operation Id. : DevicePools_ListBySubscription.
  • Default Api Version. : 2026-04-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Hci.DevicePoolResource> GetDevicePoolsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevicePoolsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.DevicePoolResource>
override this.GetDevicePoolsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.DevicePoolResource>
Public Overridable Function GetDevicePoolsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DevicePoolResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to