Share via


MockableIotHubSubscriptionResource.GetIotHubDescriptions Method

Definition

Get all the IoT hubs in a subscription.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to