@azure/arm-iothub package

Classes

IotHubClient

Interfaces

ArmIdentity

model interface ArmIdentity

ArmUserIdentity

model interface ArmUserIdentity

CertificateDescription

The X509 Certificate.

CertificateListDescription

The JSON-serialized array of Certificate objects.

CertificateProperties

The description of an X509 CA Certificate.

CertificatePropertiesWithNonce

The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.

CertificateVerificationDescription

The JSON-serialized leaf certificate

CertificateWithNonceDescription

The X509 Certificate.

CertificatesCreateOrUpdateOptionalParams

Optional parameters.

CertificatesDeleteOptionalParams

Optional parameters.

CertificatesGenerateVerificationCodeOptionalParams

Optional parameters.

CertificatesGetOptionalParams

Optional parameters.

CertificatesListByIotHubOptionalParams

Optional parameters.

CertificatesOperations

Interface representing a Certificates operations.

CertificatesVerifyOptionalParams

Optional parameters.

CloudToDeviceProperties

The IoT hub cloud-to-device messaging properties.

DeviceRegistry

Represents properties related to the Azure Device Registry (ADR).

DeviceRegistryIdentity

The identity used to manage the ADR namespace from the data plane.

DeviceRegistryLinkingProperties

The properties related to linking the IoT Hub with the Azure Device Registry.

EndpointHealthData

The health data for an endpoint

EnrichmentProperties

The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.

ErrorDetails

Error details.

EventHubConsumerGroupBodyDescription

The EventHub consumer group.

EventHubConsumerGroupInfo

The properties of the EventHubConsumerGroupInfo object.

EventHubConsumerGroupName

The EventHub consumer group name.

EventHubProperties

The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.

ExportDevicesRequest

Use to provide parameters when requesting an export of all devices in the IoT hub.

FailoverInput

Use to provide failover region when requesting manual Failover for a hub.

FallbackRouteProperties

The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.

FeedbackProperties

The properties of the feedback queue for cloud-to-device messages.

GroupIdInformation

The group information for creating a private endpoint on an IotHub

GroupIdInformationProperties

The properties for a group information object

ImportDevicesRequest

Use to provide parameters when requesting an import of all devices in the hub.

IotHubCapacity

IoT Hub capacity information.

IotHubClientOptionalParams

Optional parameters for the client.

IotHubDescription

The description of the IoT hub.

IotHubDetails

Set of additional read-only properties for the IoT hub.

IotHubLocationDescription

Public representation of one of the locations where a resource is provisioned.

IotHubManualFailoverOptionalParams

Optional parameters.

IotHubNameAvailabilityInfo

The properties indicating whether a given IoT hub name is available.

IotHubOperations

Interface representing a IotHub operations.

IotHubProperties

The properties of an IoT hub.

IotHubQuotaMetricInfo

Quota metrics properties.

IotHubResourceCheckNameAvailabilityOptionalParams

Optional parameters.

IotHubResourceCreateEventHubConsumerGroupOptionalParams

Optional parameters.

IotHubResourceCreateOrUpdateOptionalParams

Optional parameters.

IotHubResourceDeleteEventHubConsumerGroupOptionalParams

Optional parameters.

IotHubResourceDeleteOptionalParams

Optional parameters.

IotHubResourceExportDevicesOptionalParams

Optional parameters.

IotHubResourceGetEventHubConsumerGroupOptionalParams

Optional parameters.

IotHubResourceGetJobOptionalParams

Optional parameters.

IotHubResourceGetKeysForKeyNameOptionalParams

Optional parameters.

IotHubResourceGetOptionalParams

Optional parameters.

IotHubResourceGetStatsOptionalParams

Optional parameters.

IotHubResourceImportDevicesOptionalParams

Optional parameters.

IotHubResourceListByResourceGroupOptionalParams

Optional parameters.

IotHubResourceListBySubscriptionOptionalParams

Optional parameters.

IotHubResourceListEndpointHealthOptionalParams

Optional parameters.

IotHubResourceListEventHubConsumerGroupsOptionalParams

Optional parameters.

IotHubResourceListJobsOptionalParams

Optional parameters.

IotHubResourceListKeysOptionalParams

Optional parameters.

IotHubResourceListQuotaMetricsOptionalParams

Optional parameters.

IotHubResourceListValidSkusOptionalParams

Optional parameters.

IotHubResourceOperations

Interface representing a IotHubResource operations.

IotHubResourceTestAllRoutesOptionalParams

Optional parameters.

IotHubResourceTestRouteOptionalParams

Optional parameters.

IotHubResourceUpdateOptionalParams

Optional parameters.

IotHubSkuDescription

SKU properties.

IotHubSkuInfo

Information about the SKU of the IoT hub.

IpFilterRule

The IP filter rules for the IoT hub.

JobResponse

The properties of the Job Response object.

ManagedIdentity

The properties of the Managed identity.

MatchedRoute

Routes that matched

MessagingEndpointProperties

The properties of the messaging endpoints used by this IoT hub.

Name

Name of Iot Hub type

NetworkRuleSetIpRule

IP Rule to be applied as part of Network Rule Set

NetworkRuleSetProperties

Network Rule Set Properties of IotHub

Operation

IoT Hub REST API operation

OperationDisplay

The object that represents the operation.

OperationInputs

Input values.

OperationsListOptionalParams

Optional parameters.

OperationsOperations

Interface representing a Operations operations.

PageSettings

Options for the byPage method

PagedAsyncIterableIterator

An interface that allows async iterable iteration both to completion and by page.

PrivateEndpoint

The private endpoint property of a private endpoint connection

PrivateEndpointConnection

The private endpoint connection of an IotHub

PrivateEndpointConnectionProperties

The properties of a private endpoint connection

PrivateEndpointConnectionsDeleteOptionalParams

Optional parameters.

PrivateEndpointConnectionsGetOptionalParams

Optional parameters.

PrivateEndpointConnectionsListOptionalParams

Optional parameters.

PrivateEndpointConnectionsOperations

Interface representing a PrivateEndpointConnections operations.

PrivateEndpointConnectionsUpdateOptionalParams

Optional parameters.

PrivateLinkResources

The available private link resources for an IotHub

PrivateLinkResourcesOperationsGetOptionalParams

Optional parameters.

PrivateLinkResourcesOperationsListOptionalParams

Optional parameters.

PrivateLinkResourcesOperationsOperations

Interface representing a PrivateLinkResourcesOperations operations.

PrivateLinkServiceConnectionState

The current state of a private endpoint connection

ProxyResource

The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

RegistryStatistics

Identity registry statistics.

Resource

Common fields that are returned in the response for all Azure Resource Manager resources

ResourceProviderCommonGetSubscriptionQuotaOptionalParams

Optional parameters.

ResourceProviderCommonOperations

Interface representing a ResourceProviderCommon operations.

RestorePollerOptions
RouteCompilationError

Compilation error when evaluating route

RouteErrorPosition

Position where the route error happened

RouteErrorRange

Range of route errors

RouteProperties

The properties of a routing rule that your IoT hub uses to route messages to endpoints.

RoutingCosmosDBSqlApiProperties

The properties related to a cosmos DB sql container endpoint.

RoutingEndpoints

The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.

RoutingEventHubProperties

The properties related to an event hub endpoint.

RoutingEventStreamProperties

The properties related to an event stream endpoint.

RoutingMessage

Routing message

RoutingProperties

The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging

RoutingServiceBusQueueEndpointProperties

The properties related to service bus queue endpoint types.

RoutingServiceBusTopicEndpointProperties

The properties related to service bus topic endpoint types.

RoutingStorageContainerProperties

The properties related to a storage container endpoint.

RoutingTwin

Twin reference input parameter. This is an optional parameter

RoutingTwinProperties

model interface RoutingTwinProperties

SharedAccessSignatureAuthorizationRule

The properties of an IoT hub shared access policy.

SimplePollerLike

A simple poller that can be used to poll a long running operation.

StorageEndpointProperties

The properties of the Azure Storage endpoint for file upload.

SystemData

Metadata pertaining to creation and last modification of the resource.

TagsResource

A container holding only the Tags for a resource, allowing the user to update the tags on an IoT Hub instance.

TestAllRoutesInput

Input for testing all routes

TestAllRoutesResult

Result of testing all routes

TestRouteInput

Input for testing route

TestRouteResult

Result of testing one route

TestRouteResultDetails

Detailed result of testing a route

TrackedResource

The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

UserSubscriptionQuota

User subscription quota response

UserSubscriptionQuotaListResult

Json-serialized array of User subscription quota response

Type Aliases

AccessRights

The permissions assigned to the shared access policy.

AuthenticationType

Specifies authentication type being used for connecting to the storage account.
KnownAuthenticationType can be used interchangeably with AuthenticationType, this enum contains the known values that the service supports.

Known values supported by the service

keyBased: keyBased
identityBased: identityBased

AzureSupportedClouds

The supported values for cloud setting as a string literal type

Capabilities

The capabilities and features enabled for the IoT hub.
KnownCapabilities can be used interchangeably with Capabilities, this enum contains the known values that the service supports.

Known values supported by the service

None: None
DeviceManagement: DeviceManagement

ContinuablePage

An interface that describes a page of results.

CreatedByType

The kind of entity that created the resource.
KnownCreatedByType can be used interchangeably with CreatedByType, this enum contains the known values that the service supports.

Known values supported by the service

User: The entity was created by a user.
Application: The entity was created by an application.
ManagedIdentity: The entity was created by a managed identity.
Key: The entity was created by a key.

DefaultAction

Default Action for Network Rule Set
KnownDefaultAction can be used interchangeably with DefaultAction, this enum contains the known values that the service supports.

Known values supported by the service

Deny: Deny
Allow: Allow

DeviceRegistryIdentityType

The type of the identity.
KnownDeviceRegistryIdentityType can be used interchangeably with DeviceRegistryIdentityType, this enum contains the known values that the service supports.

Known values supported by the service

SystemAssigned: Use a system-assigned managed identity to manage the ADR namespace.
UserAssigned: Use a user-assigned managed identity to manage the ADR namespace.

DeviceRegistryLinkingState

Indicates whether the IoT Hub is linked with an Azure Device Registry.
KnownDeviceRegistryLinkingState can be used interchangeably with DeviceRegistryLinkingState, this enum contains the known values that the service supports.

Known values supported by the service

InProgress: The IoT Hub linking with an Azure Device Registry is in progress.
Success: The IoT Hub is successfully linked with an Azure Device Registry.
Orphaned: The linked Azure Device Registry is no longer associated with the IoT Hub.
Failed: The IoT Hub failed to link with an Azure Device Registry.

EndpointHealthStatus

Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint
KnownEndpointHealthStatus can be used interchangeably with EndpointHealthStatus, this enum contains the known values that the service supports.

Known values supported by the service

unknown: unknown
healthy: healthy
degraded: degraded
unhealthy: unhealthy
dead: dead

EventStreamAuthenticationType

Specifies authentication type being used for connecting to the event stream account.
KnownEventStreamAuthenticationType can be used interchangeably with EventStreamAuthenticationType, this enum contains the known values that the service supports.

Known values supported by the service

identityBased: identityBased authentication

FallbackRouteSource

The source to which the fallback route is applied.
KnownFallbackRouteSource can be used interchangeably with FallbackRouteSource, this enum contains the known values that the service supports.

Known values supported by the service

DeviceMessages: Device-to-cloud messages sent by devices.

GatewayVersion

The IoT hub Gateway version.
KnownGatewayVersion can be used interchangeably with GatewayVersion, this enum contains the known values that the service supports.

Known values supported by the service

V1: V1
V2: V2

IotHubNameUnavailabilityReason

The reason for unavailability.

IotHubReplicaRoleType

The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT hub can failover to.
KnownIotHubReplicaRoleType can be used interchangeably with IotHubReplicaRoleType, this enum contains the known values that the service supports.

Known values supported by the service

primary: primary
secondary: secondary

IotHubScaleType

The type of the scaling enabled.

IotHubSku

The name of the SKU.
KnownIotHubSku can be used interchangeably with IotHubSku, this enum contains the known values that the service supports.

Known values supported by the service

F1: F1
S1: S1
S2: S2
S3: S3
B1: B1
B2: B2
B3: B3

IotHubSkuTier

The billing tier for the IoT hub.

IpFilterActionType

The desired action for requests captured by this rule.

JobStatus

The status of the job.

JobType

The type of the job.
KnownJobType can be used interchangeably with JobType, this enum contains the known values that the service supports.

Known values supported by the service

unknown: unknown
export: export
import: import
backup: backup
readDeviceProperties: readDeviceProperties
writeDeviceProperties: writeDeviceProperties
updateDeviceConfiguration: updateDeviceConfiguration
rebootDevice: rebootDevice
factoryResetDevice: factoryResetDevice
firmwareUpdate: firmwareUpdate

NetworkRuleIPAction

IP Filter Action
KnownNetworkRuleIPAction can be used interchangeably with NetworkRuleIPAction, this enum contains the known values that the service supports.

Known values supported by the service

Allow: Allow

PrivateLinkServiceConnectionStatus

The status of a private endpoint connection
KnownPrivateLinkServiceConnectionStatus can be used interchangeably with PrivateLinkServiceConnectionStatus, this enum contains the known values that the service supports.

Known values supported by the service

Pending: Pending
Approved: Approved
Rejected: Rejected
Disconnected: Disconnected

PublicNetworkAccess

Whether requests from Public Network are allowed
KnownPublicNetworkAccess can be used interchangeably with PublicNetworkAccess, this enum contains the known values that the service supports.

Known values supported by the service

Enabled: Enabled
Disabled: Disabled

ResourceIdentityType

The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.

RouteErrorSeverity

Severity of the route error
KnownRouteErrorSeverity can be used interchangeably with RouteErrorSeverity, this enum contains the known values that the service supports.

Known values supported by the service

error: error
warning: warning

RoutingSource

The source that the routing rule is to be applied to, such as DeviceMessages.
KnownRoutingSource can be used interchangeably with RoutingSource, this enum contains the known values that the service supports.

Known values supported by the service

Invalid: Invalid
DeviceMessages: DeviceMessages
TwinChangeEvents: TwinChangeEvents
DeviceLifecycleEvents: DeviceLifecycleEvents
DeviceJobLifecycleEvents: DeviceJobLifecycleEvents
DeviceConnectionStateEvents: DeviceConnectionStateEvents

RoutingStorageContainerPropertiesEncoding

Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'.
KnownRoutingStorageContainerPropertiesEncoding can be used interchangeably with RoutingStorageContainerPropertiesEncoding, this enum contains the known values that the service supports.

Known values supported by the service

Avro: Avro
AvroDeflate: AvroDeflate
JSON: JSON

TestResultStatus

Result of testing route
KnownTestResultStatus can be used interchangeably with TestResultStatus, this enum contains the known values that the service supports.

Known values supported by the service

undefined: undefined
false: false
true: true

Enums

AzureClouds

An enum to describe Azure Cloud environments.

KnownAuthenticationType

Specifies authentication type being used for connecting to the storage account.

KnownCapabilities

The capabilities and features enabled for the IoT hub.

KnownCreatedByType

The kind of entity that created the resource.

KnownDefaultAction

Default Action for Network Rule Set

KnownDeviceRegistryIdentityType

The type of the identity.

KnownDeviceRegistryLinkingState

Indicates whether the IoT Hub is linked with an Azure Device Registry.

KnownEndpointHealthStatus

Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint

KnownEventStreamAuthenticationType

Specifies authentication type being used for connecting to the event stream account.

KnownFallbackRouteSource

The source to which the fallback route is applied.

KnownGatewayVersion

The IoT hub Gateway version.

KnownIotHubReplicaRoleType

The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT hub can failover to.

KnownIotHubSku

The name of the SKU.

KnownJobType

The type of the job.

KnownNetworkRuleIPAction

IP Filter Action

KnownPrivateLinkServiceConnectionStatus

The status of a private endpoint connection

KnownPublicNetworkAccess

Whether requests from Public Network are allowed

KnownRouteErrorSeverity

Severity of the route error

KnownRoutingSource

The source that the routing rule is to be applied to, such as DeviceMessages.

KnownRoutingStorageContainerPropertiesEncoding

Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'.

KnownTestResultStatus

Result of testing route

KnownVersions

The available API versions.

Functions

isRestError(unknown)

Typeguard for RestError

restorePoller<TResponse, TResult>(IotHubClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

Variables

RestError

A custom error type for failed pipeline requests.

Function Details

isRestError(unknown)

Typeguard for RestError

function isRestError(e: unknown): e is RestError

Parameters

e

unknown

Something caught by a catch clause.

Returns

e is RestError

restorePoller<TResponse, TResult>(IotHubClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

function restorePoller<TResponse, TResult>(client: IotHubClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>

Parameters

client
IotHubClient
serializedState

string

sourceOperation

(args: any[]) => PollerLike<OperationState<TResult>, TResult>

Returns

PollerLike<OperationState<TResult>, TResult>

Variable Details

RestError

A custom error type for failed pipeline requests.

RestError: RestErrorConstructor

Type