MockableIotHubSubscriptionResource.GetIotHubDescriptionsAsync Method

Definition

Get all the IoT hubs in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs
  • Operation Id: IotHubResource_ListBySubscription
public virtual Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource> GetIotHubDescriptionsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetIotHubDescriptionsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource>
override this.GetIotHubDescriptionsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.IotHubDescriptionResource>
Public Overridable Function GetIotHubDescriptionsAsync (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