Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IotHubResource

Package version

Class representing a IotHubResource.

Hierarchy

  • IotHubResource

Index

Constructors

constructor

Methods

beginCreateOrUpdate

  • beginCreateOrUpdate(resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: Models.IotHubResourceBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller>
  • Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub metadata and security metadata, and then combine them with the modified values in a new body to update the IoT hub.

    summary

    Create or update the metadata of an IoT hub.

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • iotHubDescription: IotHubDescription

      The IoT hub metadata and security metadata.

    • Optional options: Models.IotHubResourceBeginCreateOrUpdateOptionalParams

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginDeleteMethod

  • beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Delete an IoT hub.

    summary

    Delete an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginUpdate

  • beginUpdate(resourceGroupName: string, resourceName: string, options?: Models.IotHubResourceBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller>
  • Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method

    summary

    Update an existing IoT Hubs tags.

    Parameters

    • resourceGroupName: string

      Resource group identifier.

    • resourceName: string

      Name of iot hub to update.

    • Optional options: Models.IotHubResourceBeginUpdateOptionalParams

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

checkNameAvailability

  • checkNameAvailability(name: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceCheckNameAvailabilityResponse>
  • checkNameAvailability(name: string, callback: msRest.ServiceCallback<IotHubNameAvailabilityInfo>): void
  • checkNameAvailability(name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubNameAvailabilityInfo>): void
  • Check if an IoT hub name is available.

    summary

    Check if an IoT hub name is available

    Parameters

    • name: string

      The name of the IoT hub to check.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceCheckNameAvailabilityResponse>

    Promise<Models.IotHubResourceCheckNameAvailabilityResponse>

  • Parameters

    Returns void

  • Parameters

    • name: string

      The name of the IoT hub to check.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubNameAvailabilityInfo>

      The callback

    Returns void

createEventHubConsumerGroup

  • createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>
  • createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>): void
  • createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>): void
  • Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.

    summary

    Add a consumer group to an Event Hub-compatible endpoint in an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to add.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>

    Promise<Models.IotHubResourceCreateEventHubConsumerGroupResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to add.

    • callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to add.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>

      The callback

    Returns void

createOrUpdate

  • createOrUpdate(resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: Models.IotHubResourceCreateOrUpdateOptionalParams): Promise<Models.IotHubResourceCreateOrUpdateResponse>
  • Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub metadata and security metadata, and then combine them with the modified values in a new body to update the IoT hub.

    summary

    Create or update the metadata of an IoT hub.

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • iotHubDescription: IotHubDescription

      The IoT hub metadata and security metadata.

    • Optional options: Models.IotHubResourceCreateOrUpdateOptionalParams

    Returns Promise<Models.IotHubResourceCreateOrUpdateResponse>

    Promise<Models.IotHubResourceCreateOrUpdateResponse>

deleteEventHubConsumerGroup

  • deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>
  • deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback<void>): void
  • deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void
  • Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.

    summary

    Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to delete.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRest.RestResponse>

    Promise<msRest.RestResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to delete.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to delete.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

deleteMethod

  • deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceDeleteMethodResponse>
  • Delete an IoT hub.

    summary

    Delete an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceDeleteMethodResponse>

    Promise<Models.IotHubResourceDeleteMethodResponse>

exportDevices

  • exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: ExportDevicesRequest, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceExportDevicesResponse>
  • exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: ExportDevicesRequest, callback: msRest.ServiceCallback<JobResponse>): void
  • exportDevices(resourceGroupName: string, resourceName: string, exportDevicesParameters: ExportDevicesRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponse>): void

get

  • get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetResponse>
  • get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<IotHubDescription>): void
  • get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubDescription>): void
  • Get the non-security related metadata of an IoT hub.

    summary

    Get the non-security related metadata of an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetResponse>

    Promise<Models.IotHubResourceGetResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • callback: msRest.ServiceCallback<IotHubDescription>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubDescription>

      The callback

    Returns void

getEndpointHealth

  • getEndpointHealth(resourceGroupName: string, iotHubName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetEndpointHealthResponse>
  • getEndpointHealth(resourceGroupName: string, iotHubName: string, callback: msRest.ServiceCallback<EndpointHealthDataListResult>): void
  • getEndpointHealth(resourceGroupName: string, iotHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EndpointHealthDataListResult>): void
  • Get the health for routing endpoints.

    summary

    Get the health for routing endpoints

    Parameters

    • resourceGroupName: string
    • iotHubName: string
    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetEndpointHealthResponse>

    Promise<Models.IotHubResourceGetEndpointHealthResponse>

  • Parameters

    Returns void

  • Parameters

    • resourceGroupName: string
    • iotHubName: string
    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EndpointHealthDataListResult>

      The callback

    Returns void

getEndpointHealthNext

  • getEndpointHealthNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetEndpointHealthNextResponse>
  • getEndpointHealthNext(nextPageLink: string, callback: msRest.ServiceCallback<EndpointHealthDataListResult>): void
  • getEndpointHealthNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EndpointHealthDataListResult>): void
  • Get the health for routing endpoints.

    summary

    Get the health for routing endpoints

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetEndpointHealthNextResponse>

    Promise<Models.IotHubResourceGetEndpointHealthNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<EndpointHealthDataListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EndpointHealthDataListResult>

      The callback

    Returns void

getEventHubConsumerGroup

  • getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetEventHubConsumerGroupResponse>
  • getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>): void
  • getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>): void
  • Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.

    summary

    Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to retrieve.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetEventHubConsumerGroupResponse>

    Promise<Models.IotHubResourceGetEventHubConsumerGroupResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to retrieve.

    • callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint in the IoT hub.

    • name: string

      The name of the consumer group to retrieve.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EventHubConsumerGroupInfo>

      The callback

    Returns void

getJob

  • getJob(resourceGroupName: string, resourceName: string, jobId: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetJobResponse>
  • getJob(resourceGroupName: string, resourceName: string, jobId: string, callback: msRest.ServiceCallback<JobResponse>): void
  • getJob(resourceGroupName: string, resourceName: string, jobId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponse>): void

getKeysForKeyName

  • getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetKeysForKeyNameResponse>
  • getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, callback: msRest.ServiceCallback<SharedAccessSignatureAuthorizationRule>): void
  • getKeysForKeyName(resourceGroupName: string, resourceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<SharedAccessSignatureAuthorizationRule>): void

getQuotaMetrics

  • getQuotaMetrics(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetQuotaMetricsResponse>
  • getQuotaMetrics(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>): void
  • getQuotaMetrics(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>): void
  • Get the quota metrics for an IoT hub.

    summary

    Get the quota metrics for an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetQuotaMetricsResponse>

    Promise<Models.IotHubResourceGetQuotaMetricsResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>

      The callback

    Returns void

getQuotaMetricsNext

  • getQuotaMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetQuotaMetricsNextResponse>
  • getQuotaMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>): void
  • getQuotaMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>): void
  • Get the quota metrics for an IoT hub.

    summary

    Get the quota metrics for an IoT hub

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetQuotaMetricsNextResponse>

    Promise<Models.IotHubResourceGetQuotaMetricsNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubQuotaMetricInfoListResult>

      The callback

    Returns void

getStats

  • getStats(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetStatsResponse>
  • getStats(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<RegistryStatistics>): void
  • getStats(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<RegistryStatistics>): void
  • Get the statistics from an IoT hub.

    summary

    Get the statistics from an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetStatsResponse>

    Promise<Models.IotHubResourceGetStatsResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • callback: msRest.ServiceCallback<RegistryStatistics>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<RegistryStatistics>

      The callback

    Returns void

getValidSkus

  • getValidSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetValidSkusResponse>
  • getValidSkus(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>): void
  • getValidSkus(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>): void
  • Get the list of valid SKUs for an IoT hub.

    summary

    Get the list of valid SKUs for an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetValidSkusResponse>

    Promise<Models.IotHubResourceGetValidSkusResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>

      The callback

    Returns void

getValidSkusNext

  • getValidSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceGetValidSkusNextResponse>
  • getValidSkusNext(nextPageLink: string, callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>): void
  • getValidSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>): void
  • Get the list of valid SKUs for an IoT hub.

    summary

    Get the list of valid SKUs for an IoT hub

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceGetValidSkusNextResponse>

    Promise<Models.IotHubResourceGetValidSkusNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubSkuDescriptionListResult>

      The callback

    Returns void

importDevices

  • importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: ImportDevicesRequest, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceImportDevicesResponse>
  • importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: ImportDevicesRequest, callback: msRest.ServiceCallback<JobResponse>): void
  • importDevices(resourceGroupName: string, resourceName: string, importDevicesParameters: ImportDevicesRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponse>): void

listByResourceGroup

  • listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListByResourceGroupResponse>
  • listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • Get all the IoT hubs in a resource group.

    summary

    Get all the IoT hubs in a resource group

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceListByResourceGroupResponse>

    Promise<Models.IotHubResourceListByResourceGroupResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

listByResourceGroupNext

  • listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListByResourceGroupNextResponse>
  • listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • Get all the IoT hubs in a resource group.

    summary

    Get all the IoT hubs in a resource group

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceListByResourceGroupNextResponse>

    Promise<Models.IotHubResourceListByResourceGroupNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

listBySubscription

  • listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListBySubscriptionResponse>
  • listBySubscription(callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void

listBySubscriptionNext

  • listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListBySubscriptionNextResponse>
  • listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<IotHubDescriptionListResult>): void
  • Get all the IoT hubs in a subscription.

    summary

    Get all the IoT hubs in a subscription

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceListBySubscriptionNextResponse>

    Promise<Models.IotHubResourceListBySubscriptionNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<IotHubDescriptionListResult>

      The callback

    Returns void

listEventHubConsumerGroups

  • listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListEventHubConsumerGroupsResponse>
  • listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>): void
  • listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>): void
  • Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

    summary

    Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub

    Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceListEventHubConsumerGroupsResponse>

    Promise<Models.IotHubResourceListEventHubConsumerGroupsResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint.

    • callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group that contains the IoT hub.

    • resourceName: string

      The name of the IoT hub.

    • eventHubEndpointName: string

      The name of the Event Hub-compatible endpoint.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>

      The callback

    Returns void

listEventHubConsumerGroupsNext

  • listEventHubConsumerGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListEventHubConsumerGroupsNextResponse>
  • listEventHubConsumerGroupsNext(nextPageLink: string, callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>): void
  • listEventHubConsumerGroupsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>): void
  • Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

    summary

    Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceListEventHubConsumerGroupsNextResponse>

    Promise<Models.IotHubResourceListEventHubConsumerGroupsNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<EventHubConsumerGroupsListResult>

      The callback

    Returns void

listJobs

  • listJobs(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListJobsResponse>
  • listJobs(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<JobResponseListResult>): void
  • listJobs(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponseListResult>): void

listJobsNext

  • listJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceListJobsNextResponse>
  • listJobsNext(nextPageLink: string, callback: msRest.ServiceCallback<JobResponseListResult>): void
  • listJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponseListResult>): void

listKeys

listKeysNext

testAllRoutes

  • testAllRoutes(input: TestAllRoutesInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceTestAllRoutesResponse>
  • testAllRoutes(input: TestAllRoutesInput, iotHubName: string, resourceGroupName: string, callback: msRest.ServiceCallback<TestAllRoutesResult>): void
  • testAllRoutes(input: TestAllRoutesInput, iotHubName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<TestAllRoutesResult>): void
  • Test all routes configured in this Iot Hub

    summary

    Test all routes

    Parameters

    • input: TestAllRoutesInput

      Input for testing all routes

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceTestAllRoutesResponse>

    Promise<Models.IotHubResourceTestAllRoutesResponse>

  • Parameters

    • input: TestAllRoutesInput

      Input for testing all routes

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • callback: msRest.ServiceCallback<TestAllRoutesResult>

      The callback

    Returns void

  • Parameters

    • input: TestAllRoutesInput

      Input for testing all routes

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<TestAllRoutesResult>

      The callback

    Returns void

testRoute

  • testRoute(input: TestRouteInput, iotHubName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.IotHubResourceTestRouteResponse>
  • testRoute(input: TestRouteInput, iotHubName: string, resourceGroupName: string, callback: msRest.ServiceCallback<TestRouteResult>): void
  • testRoute(input: TestRouteInput, iotHubName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<TestRouteResult>): void
  • Test the new route for this Iot Hub

    summary

    Test the new route

    Parameters

    • input: TestRouteInput

      Route that needs to be tested

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.IotHubResourceTestRouteResponse>

    Promise<Models.IotHubResourceTestRouteResponse>

  • Parameters

    • input: TestRouteInput

      Route that needs to be tested

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • callback: msRest.ServiceCallback<TestRouteResult>

      The callback

    Returns void

  • Parameters

    • input: TestRouteInput

      Route that needs to be tested

    • iotHubName: string

      IotHub to be tested

    • resourceGroupName: string

      resource group which Iot Hub belongs to

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<TestRouteResult>

      The callback

    Returns void

update

  • update(resourceGroupName: string, resourceName: string, options?: Models.IotHubResourceUpdateOptionalParams): Promise<Models.IotHubResourceUpdateResponse>
  • Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method

    summary

    Update an existing IoT Hubs tags.

    Parameters

    • resourceGroupName: string

      Resource group identifier.

    • resourceName: string

      Name of iot hub to update.

    • Optional options: Models.IotHubResourceUpdateOptionalParams

    Returns Promise<Models.IotHubResourceUpdateResponse>

    Promise<Models.IotHubResourceUpdateResponse>

Generated using TypeDoc