@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. Known values supported by the servicekeyBased: keyBased |
| AzureSupportedClouds |
The supported values for cloud setting as a string literal type |
| Capabilities |
The capabilities and features enabled for the IoT hub. Known values supported by the serviceNone: None |
| ContinuablePage |
An interface that describes a page of results. |
| CreatedByType |
The kind of entity that created the resource. Known values supported by the serviceUser: The entity was created by a user. |
| DefaultAction |
Default Action for Network Rule Set Known values supported by the serviceDeny: Deny |
| DeviceRegistryIdentityType |
The type of the identity. Known values supported by the serviceSystemAssigned: Use a system-assigned managed identity to manage the ADR namespace. |
| DeviceRegistryLinkingState |
Indicates whether the IoT Hub is linked with an Azure Device Registry. Known values supported by the serviceInProgress: The IoT Hub linking with an Azure Device Registry is in progress. |
| 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 Known values supported by the serviceunknown: unknown |
| EventStreamAuthenticationType |
Specifies authentication type being used for connecting to the event stream account. Known values supported by the serviceidentityBased: identityBased authentication |
| FallbackRouteSource |
The source to which the fallback route is applied. Known values supported by the serviceDeviceMessages: Device-to-cloud messages sent by devices. |
| GatewayVersion |
The IoT hub Gateway version. Known values supported by the serviceV1: V1 |
| 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. Known values supported by the serviceprimary: primary |
| IotHubScaleType |
The type of the scaling enabled. |
| IotHubSku |
The name of the SKU. Known values supported by the serviceF1: F1 |
| 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. Known values supported by the serviceunknown: unknown |
| NetworkRuleIPAction |
IP Filter Action Known values supported by the serviceAllow: Allow |
| PrivateLinkServiceConnectionStatus |
The status of a private endpoint connection Known values supported by the servicePending: Pending |
| PublicNetworkAccess |
Whether requests from Public Network are allowed Known values supported by the serviceEnabled: Enabled |
| 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 Known values supported by the serviceerror: error |
| RoutingSource |
The source that the routing rule is to be applied to, such as DeviceMessages. Known values supported by the serviceInvalid: Invalid |
| RoutingStorageContainerPropertiesEncoding |
Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'. Known values supported by the serviceAvro: Avro |
| TestResultStatus |
Result of testing route Known values supported by the serviceundefined: undefined |
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
| is |
Typeguard for RestError |
| restore |
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
| Rest |
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>
- options
-
RestorePollerOptions<TResult, PathUncheckedResponse>
Returns
PollerLike<OperationState<TResult>, TResult>
Variable Details
RestError
A custom error type for failed pipeline requests.
RestError: RestErrorConstructor