Udostępnij za pośrednictwem


IotHubExtensions.GetIotHubDescriptions Method

Definition

Overloads

GetIotHubDescriptions(ResourceGroupResource)

Gets a collection of IotHubDescriptionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetIotHubDescriptions() instead.

GetIotHubDescriptions(SubscriptionResource, CancellationToken)

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

GetIotHubDescriptions(ResourceGroupResource)

Source:
IotHubExtensions.cs
Source:
IotHubExtensions.cs

Gets a collection of IotHubDescriptionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetIotHubDescriptions() instead.

public static Azure.ResourceManager.IotHub.IotHubDescriptionCollection GetIotHubDescriptions (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetIotHubDescriptions : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.IotHub.IotHubDescriptionCollection
<Extension()>
Public Function GetIotHubDescriptions (resourceGroupResource As ResourceGroupResource) As IotHubDescriptionCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of IotHubDescriptionResources and their operations over a IotHubDescriptionResource.

Exceptions

resourceGroupResource is null.

Applies to

GetIotHubDescriptions(SubscriptionResource, CancellationToken)

Source:
IotHubExtensions.cs
Source:
IotHubExtensions.cs

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to