IotHubDescriptionCollection.GetAllAsync(CancellationToken) Method

Definition

Get all the IoT hubs in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs
  • Operation Id: IotHubResource_ListByResourceGroup
  • Default Api Version: 2023-06-30
  • Resource: IotHubDescriptionResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of IotHubDescriptionResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of IotHubDescriptionResource that may take multiple service requests to iterate over.

Applies to