@datafire/azure_iothub

5.0.0 • Public • Published

@datafire/azure_iothub

Client library for iotHubClient

Installation and Usage

npm install --save @datafire/azure_iothub
let azure_iothub = require('@datafire/azure_iothub').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Use this API to manage the IoT hubs in your Azure subscription.

Actions

Operations_List

Lists all of the available IoT Hub REST API operations.

azure_iothub.Operations_List({
  "api-version": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.

Output

IotHubResource_ListBySubscription

Get all the IoT hubs in a subscription.

azure_iothub.IotHubResource_ListBySubscription({
  "api-version": "",
  "subscriptionId": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.

Output

IotHubResource_CheckNameAvailability

Check if an IoT hub name is available.

azure_iothub.IotHubResource_CheckNameAvailability({
  "api-version": "",
  "subscriptionId": "",
  "operationInputs": {
    "name": ""
  }
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • operationInputs required OperationInputs

Output

ResourceProviderCommon_GetSubscriptionQuota

Get the number of free and paid iot hubs in the subscription

azure_iothub.ResourceProviderCommon_GetSubscriptionQuota({
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The subscription identifier.
    • api-version required string: The version of the API.

Output

IotHubResource_ListByResourceGroup

Get all the IoT hubs in a resource group.

azure_iothub.IotHubResource_ListByResourceGroup({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.

Output

IotHub_ManualFailover

Perform manual fail over of given hub

azure_iothub.IotHub_ManualFailover({
  "iotHubName": "",
  "failoverInput": {
    "failoverRegion": ""
  },
  "subscriptionId": "",
  "resourceGroupName": "",
  "api-version": ""
}, context)

Input

  • input object
    • iotHubName required string: IotHub to fail over
    • failoverInput required FailoverInput
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: resource group which Iot Hub belongs to
    • api-version required string: The version of the API.

Output

Output schema unknown

IotHubResource_TestAllRoutes

Test all routes configured in this Iot Hub

azure_iothub.IotHubResource_TestAllRoutes({
  "input": {},
  "iotHubName": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "api-version": ""
}, context)

Input

  • input object
    • input required TestAllRoutesInput
    • iotHubName required string: IotHub to be tested
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: resource group which Iot Hub belongs to
    • api-version required string: The version of the API.

Output

IotHubResource_TestRoute

Test the new route for this Iot Hub

azure_iothub.IotHubResource_TestRoute({
  "input": {
    "route": {
      "name": "",
      "endpointNames": [],
      "source": "",
      "isEnabled": true
    }
  },
  "iotHubName": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "api-version": ""
}, context)

Input

  • input object
    • input required TestRouteInput
    • iotHubName required string: IotHub to be tested
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: resource group which Iot Hub belongs to
    • api-version required string: The version of the API.

Output

IotHubResource_GetEndpointHealth

Get the health for routing endpoints.

azure_iothub.IotHubResource_GetEndpointHealth({
  "subscriptionId": "",
  "resourceGroupName": "",
  "iotHubName": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string
    • iotHubName required string
    • api-version required string: The version of the API.

Output

IotHubResource_Delete

Delete an IoT hub.

azure_iothub.IotHubResource_Delete({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

IotHubResource_Get

Get the non-security related metadata of an IoT hub.

azure_iothub.IotHubResource_Get({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

IotHubResource_Update

Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method

azure_iothub.IotHubResource_Update({
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "IotHubTags": null,
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: Resource group identifier.
    • resourceName required string: Name of iot hub to update.
    • IotHubTags required TagsResource
    • api-version required string: The version of the API.

Output

IotHubResource_CreateOrUpdate

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.

azure_iothub.IotHubResource_CreateOrUpdate({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "iotHubDescription": {
    "sku": {
      "name": ""
    }
  }
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • iotHubDescription required IotHubDescription
    • If-Match string: ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an existing IoT Hub.

Output

IotHubResource_GetKeysForKeyName

Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

azure_iothub.IotHubResource_GetKeysForKeyName({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "keyName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • keyName required string: The name of the shared access policy.

Output

IotHubResource_GetStats

Get the statistics from an IoT hub.

azure_iothub.IotHubResource_GetStats({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

Certificates_ListByIotHub

Returns the list of certificates.

azure_iothub.Certificates_ListByIotHub({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

Certificates_Delete

Deletes an existing X509 certificate or does nothing if it does not exist.

azure_iothub.Certificates_Delete({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "certificateName": "",
  "If-Match": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • certificateName required string: The name of the certificate
    • If-Match required string: ETag of the Certificate.

Output

Output schema unknown

Certificates_Get

Returns the certificate.

azure_iothub.Certificates_Get({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "certificateName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • certificateName required string: The name of the certificate

Output

Certificates_CreateOrUpdate

Adds new or replaces existing certificate.

azure_iothub.Certificates_CreateOrUpdate({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "certificateName": "",
  "certificateDescription": {}
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • certificateName required string: The name of the certificate
    • certificateDescription required CertificateBodyDescription
    • If-Match string: ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing certificate.

Output

Certificates_GenerateVerificationCode

Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.

azure_iothub.Certificates_GenerateVerificationCode({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "certificateName": "",
  "If-Match": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • certificateName required string: The name of the certificate
    • If-Match required string: ETag of the Certificate.

Output

Certificates_Verify

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

azure_iothub.Certificates_Verify({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "certificateName": "",
  "certificateVerificationBody": {},
  "If-Match": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • certificateName required string: The name of the certificate
    • certificateVerificationBody required CertificateVerificationDescription
    • If-Match required string: ETag of the Certificate.

Output

IotHubResource_ListEventHubConsumerGroups

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

azure_iothub.IotHubResource_ListEventHubConsumerGroups({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "eventHubEndpointName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • eventHubEndpointName required string: The name of the Event Hub-compatible endpoint.

Output

IotHubResource_DeleteEventHubConsumerGroup

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

azure_iothub.IotHubResource_DeleteEventHubConsumerGroup({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "eventHubEndpointName": "",
  "name": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • eventHubEndpointName required string: The name of the Event Hub-compatible endpoint in the IoT hub.
    • name required string: The name of the consumer group to delete.

Output

Output schema unknown

IotHubResource_GetEventHubConsumerGroup

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

azure_iothub.IotHubResource_GetEventHubConsumerGroup({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "eventHubEndpointName": "",
  "name": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • eventHubEndpointName required string: The name of the Event Hub-compatible endpoint in the IoT hub.
    • name required string: The name of the consumer group to retrieve.

Output

IotHubResource_CreateEventHubConsumerGroup

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

azure_iothub.IotHubResource_CreateEventHubConsumerGroup({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "eventHubEndpointName": "",
  "name": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • eventHubEndpointName required string: The name of the Event Hub-compatible endpoint in the IoT hub.
    • name required string: The name of the consumer group to add.

Output

IotHubResource_ExportDevices

Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.

azure_iothub.IotHubResource_ExportDevices({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "exportDevicesParameters": {
    "exportBlobContainerUri": "",
    "excludeKeys": true
  }
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • exportDevicesParameters required ExportDevicesRequest

Output

IotHubResource_ImportDevices

Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.

azure_iothub.IotHubResource_ImportDevices({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "importDevicesParameters": {
    "inputBlobContainerUri": "",
    "outputBlobContainerUri": ""
  }
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • importDevicesParameters required ImportDevicesRequest

Output

IotHubResource_ListJobs

Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

azure_iothub.IotHubResource_ListJobs({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

IotHubResource_GetJob

Get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

azure_iothub.IotHubResource_GetJob({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": "",
  "jobId": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.
    • jobId required string: The job identifier.

Output

IotHubResource_ListKeys

Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

azure_iothub.IotHubResource_ListKeys({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

IotHubResource_GetQuotaMetrics

Get the quota metrics for an IoT hub.

azure_iothub.IotHubResource_GetQuotaMetrics({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

IotHubResource_GetValidSkus

Get the list of valid SKUs for an IoT hub.

azure_iothub.IotHubResource_GetValidSkus({
  "api-version": "",
  "subscriptionId": "",
  "resourceGroupName": "",
  "resourceName": ""
}, context)

Input

  • input object
    • api-version required string: The version of the API.
    • subscriptionId required string: The subscription identifier.
    • resourceGroupName required string: The name of the resource group that contains the IoT hub.
    • resourceName required string: The name of the IoT hub.

Output

Definitions

CertificateBodyDescription

  • CertificateBodyDescription object: The JSON-serialized X509 Certificate.
    • certificate string: base-64 representation of the X509 leaf certificate .cer file or just .pem file content.

CertificateDescription

  • CertificateDescription object: The X509 Certificate.
    • etag string: The entity tag.
    • id string: The resource identifier.
    • name string: The name of the certificate.
    • properties CertificateProperties
    • type string: The resource type.

CertificateListDescription

  • CertificateListDescription object: The JSON-serialized array of Certificate objects.

CertificateProperties

  • CertificateProperties object: The description of an X509 CA Certificate.
    • certificate string: The certificate content
    • created string: The certificate's create date and time.
    • expiry string: The certificate's expiration date and time.
    • isVerified boolean: Determines whether certificate has been verified.
    • subject string: The certificate's subject name.
    • thumbprint string: The certificate's thumbprint.
    • updated string: The certificate's last update date and time.

CertificatePropertiesWithNonce

  • CertificatePropertiesWithNonce object: The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.
    • certificate string: The certificate content
    • created string: The certificate's create date and time.
    • expiry string: The certificate's expiration date and time.
    • isVerified boolean: Determines whether certificate has been verified.
    • subject string: The certificate's subject name.
    • thumbprint string: The certificate's thumbprint.
    • updated string: The certificate's last update date and time.
    • verificationCode string: The certificate's verification code that will be used for proof of possession.

CertificateVerificationDescription

  • CertificateVerificationDescription object: The JSON-serialized leaf certificate
    • certificate string: base-64 representation of X509 certificate .cer file or just .pem file content.

CertificateWithNonceDescription

  • CertificateWithNonceDescription object: The X509 Certificate.
    • etag string: The entity tag.
    • id string: The resource identifier.
    • name string: The name of the certificate.
    • properties CertificatePropertiesWithNonce
    • type string: The resource type.

CloudToDeviceProperties

EndpointHealthData

  • EndpointHealthData object: The health data for an endpoint
    • endpointId string: Id of the endpoint
    • healthStatus string (values: unknown, healthy, unhealthy, dead): 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

EndpointHealthDataListResult

  • EndpointHealthDataListResult object: The JSON-serialized array of EndpointHealthData objects with a next link.
    • nextLink string: Link to more results
    • value array: JSON-serialized array of Endpoint health data

EnrichmentProperties

  • EnrichmentProperties object: The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.
    • endpointNames required array: The list of endpoints for which the enrichment is applied to the message.
      • items string
    • key required string: The key or name for the enrichment property.
    • value required string: The value for the enrichment property.

ErrorDetails

  • ErrorDetails object: Error details.
    • code string: The error code.
    • details string: The error details.
    • httpStatusCode string: The HTTP status code.
    • message string: The error message.

EventHubConsumerGroupInfo

  • EventHubConsumerGroupInfo object: The properties of the EventHubConsumerGroupInfo object.
    • etag string: The etag.
    • id string: The Event Hub-compatible consumer group identifier.
    • name string: The Event Hub-compatible consumer group name.
    • properties object: The tags.
    • type string: the resource type.

EventHubConsumerGroupsListResult

  • EventHubConsumerGroupsListResult object: The JSON-serialized array of Event Hub-compatible consumer group names with a next link.

EventHubProperties

ExportDevicesRequest

  • ExportDevicesRequest object: Use to provide parameters when requesting an export of all devices in the IoT hub.
    • excludeKeys required boolean: The value indicating whether keys should be excluded during export.
    • exportBlobContainerUri required string: The export blob container URI.

FailoverInput

  • FailoverInput object: Use to provide failover region when requesting manual Failover for a hub.
    • failoverRegion required string: Region the hub will be failed over to

FallbackRouteProperties

  • FallbackRouteProperties object: The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.
    • condition string: The condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
    • endpointNames required array: The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed.
      • items string
    • isEnabled required boolean: Used to specify whether the fallback route is enabled.
    • name string: The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.
    • source required string (values: DeviceMessages): The source to which the routing rule is to be applied to. For example, DeviceMessages

FeedbackProperties

ImportDevicesRequest

  • ImportDevicesRequest object: Use to provide parameters when requesting an import of all devices in the hub.
    • inputBlobContainerUri required string: The input blob container URI.
    • outputBlobContainerUri required string: The output blob container URI.

IotHubCapacity

  • IotHubCapacity object: IoT Hub capacity information.
    • default integer: The default number of units.
    • maximum integer: The maximum number of units.
    • minimum integer: The minimum number of units.
    • scaleType string (values: Automatic, Manual, None): The type of the scaling enabled.

IotHubDescription

  • IotHubDescription object: The description of the IoT hub.
    • etag string: The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
    • properties IotHubProperties
    • sku required IotHubSkuInfo
    • id string: The resource identifier.
    • location required string: The resource location.
    • name string: The resource name.
    • tags object: The resource tags.
    • type string: The resource type.

IotHubDescriptionListResult

  • IotHubDescriptionListResult object: The JSON-serialized array of IotHubDescription objects with a next link.
    • nextLink string: The next link.
    • value array: The array of IotHubDescription objects.

IotHubLocationDescription

  • IotHubLocationDescription object: Public representation of one of the locations where a resource is provisioned.
    • location string: Azure Geo Regions
    • role string (values: primary, secondary): Specific Role assigned to this location

IotHubNameAvailabilityInfo

  • IotHubNameAvailabilityInfo object: The properties indicating whether a given IoT hub name is available.
    • message string: The detailed reason message.
    • nameAvailable boolean: The value which indicates whether the provided name is available.
    • reason string (values: Invalid, AlreadyExists): The reason for unavailability.

IotHubProperties

  • IotHubProperties object: The properties of an IoT hub.
    • authorizationPolicies array: The shared access policies you can use to secure a connection to the IoT hub.
    • cloudToDevice CloudToDeviceProperties
    • comments string: IoT hub comments.
    • deviceStreams object: The device streams properties of iothub.
      • streamingEndpoints array: List of Device Streams Endpoints.
        • items string
    • enableFileUploadNotifications boolean: If True, file upload notifications are enabled.
    • eventHubEndpoints object: The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.
    • features string (values: None, DeviceManagement): The capabilities and features enabled for the IoT hub.
    • hostName string: The name of the host.
    • ipFilterRules array: The IP filter rules.
    • locations array: Primary and secondary location for iot hub
    • messagingEndpoints object: The messaging endpoint properties for the file upload notification queue.
    • provisioningState string: The provisioning state.
    • routing RoutingProperties
    • state string: The hub state.
    • storageEndpoints object: The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.

IotHubQuotaMetricInfo

  • IotHubQuotaMetricInfo object: Quota metrics properties.
    • currentValue integer: The current value for the quota metric.
    • maxValue integer: The maximum value of the quota metric.
    • name string: The name of the quota metric.

IotHubQuotaMetricInfoListResult

  • IotHubQuotaMetricInfoListResult object: The JSON-serialized array of IotHubQuotaMetricInfo objects with a next link.
    • nextLink string: The next link.
    • value array: The array of quota metrics objects.

IotHubSkuDescription

  • IotHubSkuDescription object: SKU properties.

IotHubSkuDescriptionListResult

  • IotHubSkuDescriptionListResult object: The JSON-serialized array of IotHubSkuDescription objects with a next link.
    • nextLink string: The next link.
    • value array: The array of IotHubSkuDescription.

IotHubSkuInfo

IpFilterRule

  • IpFilterRule object: The IP filter rules for the IoT hub.
    • action required string (values: Accept, Reject): The desired action for requests captured by this rule.
    • filterName required string: The name of the IP filter rule.
    • ipMask required string: A string that contains the IP address range in CIDR notation for the rule.

JobResponse

  • JobResponse object: The properties of the Job Response object.
    • endTimeUtc string: The time the job stopped processing.
    • failureReason string: If status == failed, this string containing the reason for the failure.
    • jobId string: The job identifier.
    • parentJobId string: The job identifier of the parent job, if any.
    • startTimeUtc string: The start time of the job.
    • status string (values: unknown, enqueued, running, completed, failed, cancelled): The status of the job.
    • statusMessage string: The status message for the job.
    • type string (values: unknown, export, import, backup, readDeviceProperties, writeDeviceProperties, updateDeviceConfiguration, rebootDevice, factoryResetDevice, firmwareUpdate): The type of the job.

JobResponseListResult

  • JobResponseListResult object: The JSON-serialized array of JobResponse objects with a next link.
    • nextLink string: The next link.
    • value array: The array of JobResponse objects.

MatchedRoute

MessagingEndpointProperties

Name

  • Name object: Name of Iot Hub type
    • localizedValue string: Localized value of name
    • value string: IotHub type

Operation

  • Operation object: IoT Hub REST API operation
    • display object: The object that represents the operation.
      • description string: Description of the operation
      • operation string: Name of the operation
      • provider string: Service provider: Microsoft Devices
      • resource string: Resource Type: IotHubs
    • name string: Operation name: {provider}/{resource}/{read | write | action | delete}

OperationInputs

  • OperationInputs object: Input values.
    • name required string: The name of the IoT hub to check.

OperationListResult

  • OperationListResult object: Result of the request to list IoT Hub operations. It contains a list of operations and a URL link to get the next set of results.
    • nextLink string: URL to get the next set of operation list results if there are any.
    • value array: List of IoT Hub operations supported by the Microsoft.Devices resource provider.

RegistryStatistics

  • RegistryStatistics object: Identity registry statistics.
    • disabledDeviceCount integer: The count of disabled devices in the identity registry.
    • enabledDeviceCount integer: The count of enabled devices in the identity registry.
    • totalDeviceCount integer: The total count of devices in the identity registry.

Resource

  • Resource object: The common properties of an Azure resource.
    • id string: The resource identifier.
    • location required string: The resource location.
    • name string: The resource name.
    • tags object: The resource tags.
    • type string: The resource type.

RouteCompilationError

  • RouteCompilationError object: Compilation error when evaluating route
    • location RouteErrorRange
    • message string: Route error message
    • severity string (values: error, warning): Severity of the route error

RouteErrorPosition

  • RouteErrorPosition object: Position where the route error happened
    • column integer: Column where the route error happened
    • line integer: Line where the route error happened

RouteErrorRange

RouteProperties

  • RouteProperties object: The properties of a routing rule that your IoT hub uses to route messages to endpoints.
    • condition string: The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
    • endpointNames required array: The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed.
      • items string
    • isEnabled required boolean: Used to specify whether a route is enabled.
    • name required string: The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.
    • source required string (values: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceJobLifecycleEvents, DigitalTwinChangeEvents): The source that the routing rule is to be applied to, such as DeviceMessages.

RoutingEndpoints

  • RoutingEndpoints object: 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.
    • eventHubs array: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules. This list does not include the built-in Event Hubs endpoint.
    • serviceBusQueues array: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.
    • serviceBusTopics array: The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.
    • storageContainers array: The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.

RoutingEventHubProperties

  • RoutingEventHubProperties object: The properties related to an event hub endpoint.
    • connectionString required string: The connection string of the event hub endpoint.
    • name required string: The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types.
    • resourceGroup string: The name of the resource group of the event hub endpoint.
    • subscriptionId string: The subscription identifier of the event hub endpoint.

RoutingMessage

  • RoutingMessage object: Routing message
    • appProperties object: App properties
    • body string: Body of routing message
    • systemProperties object: System properties

RoutingProperties

RoutingServiceBusQueueEndpointProperties

  • RoutingServiceBusQueueEndpointProperties object: The properties related to service bus queue endpoint types.
    • connectionString required string: The connection string of the service bus queue endpoint.
    • name required string: The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name.
    • resourceGroup string: The name of the resource group of the service bus queue endpoint.
    • subscriptionId string: The subscription identifier of the service bus queue endpoint.

RoutingServiceBusTopicEndpointProperties

  • RoutingServiceBusTopicEndpointProperties object: The properties related to service bus topic endpoint types.
    • connectionString required string: The connection string of the service bus topic endpoint.
    • name required string: The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name.
    • resourceGroup string: The name of the resource group of the service bus topic endpoint.
    • subscriptionId string: The subscription identifier of the service bus topic endpoint.

RoutingStorageContainerProperties

  • RoutingStorageContainerProperties object: The properties related to a storage container endpoint.
    • batchFrequencyInSeconds integer: Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds.
    • connectionString required string: The connection string of the storage account.
    • containerName required string: The name of storage container in the storage account.
    • encoding string (values: Avro, AvroDeflate, JSON): Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'.
    • fileNameFormat string: File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered.
    • maxChunkSizeInBytes integer: Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB).
    • name required string: The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types.
    • resourceGroup string: The name of the resource group of the storage account.
    • subscriptionId string: The subscription identifier of the storage account.

RoutingTwin

  • RoutingTwin object: Twin reference input parameter. This is an optional parameter
    • properties object
      • desired object: Twin desired properties
      • reported object: Twin desired properties
    • tags object: Twin Tags

SharedAccessSignatureAuthorizationRule

  • SharedAccessSignatureAuthorizationRule object: The properties of an IoT hub shared access policy.
    • keyName required string: The name of the shared access policy.
    • primaryKey string: The primary key.
    • rights required string (values: RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect, RegistryRead, RegistryWrite, RegistryRead, ServiceConnect, RegistryRead, DeviceConnect, RegistryWrite, ServiceConnect, RegistryWrite, DeviceConnect, ServiceConnect, DeviceConnect, RegistryRead, RegistryWrite, ServiceConnect, RegistryRead, RegistryWrite, DeviceConnect, RegistryRead, ServiceConnect, DeviceConnect, RegistryWrite, ServiceConnect, DeviceConnect, RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect): The permissions assigned to the shared access policy.
    • secondaryKey string: The secondary key.

SharedAccessSignatureAuthorizationRuleListResult

  • SharedAccessSignatureAuthorizationRuleListResult object: The list of shared access policies with a next link.

StorageEndpointProperties

  • StorageEndpointProperties object: The properties of the Azure Storage endpoint for file upload.

TagsResource

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

TestAllRoutesInput

  • TestAllRoutesInput object: Input for testing all routes
    • message RoutingMessage
    • routingSource string (values: Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceJobLifecycleEvents, DigitalTwinChangeEvents): Routing source
    • twin RoutingTwin

TestAllRoutesResult

  • TestAllRoutesResult object: Result of testing all routes
    • routes array: JSON-serialized array of matched routes

TestRouteInput

TestRouteResult

  • TestRouteResult object: Result of testing one route

TestRouteResultDetails

  • TestRouteResultDetails object: Detailed result of testing a route

UserSubscriptionQuota

  • UserSubscriptionQuota object: User subscription quota response
    • currentValue integer: Current number of IotHub type
    • id string: IotHub type id
    • limit integer: Numerical limit on IotHub type
    • name Name
    • type string: Response type
    • unit string: Unit of IotHub type

UserSubscriptionQuotaListResult

  • UserSubscriptionQuotaListResult object: Json-serialized array of User subscription quota response

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/azure_iothub

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

240 kB

Total Files

4

Last publish

Collaborators

  • datafire