Microsoft.Devices (stable:2016-02-03)

2025/09/26 • 19 new, 19 deleted methods

IotHubResource_Get (new)
Description Get the non-security related metadata of an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CreateOrUpdate (new)
Description 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. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to default, which may lead to unexpected behavior.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
iotHubDescription:
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
}

⚐ Response (201)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_Delete (new)
Description Delete an IoT hub.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (202)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (204)

{}

⚐ Response (404)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListBySubscription (new)
Description Get all the IoT hubs in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListByResourceGroup (new)
Description Get all the IoT hubs in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetStats (new)
Description Get the statistics from an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
totalDeviceCount: integer ,
enabledDeviceCount: integer ,
disabledDeviceCount: integer ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetValidSkus (new)
Description Get the list of valid SKUs for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
resourceType: string ,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
capacity:
{
minimum: integer ,
maximum: integer ,
default: integer ,
scaleType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListEventHubConsumerGroups (new)
Description Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetEventHubConsumerGroup (new)
Description Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{
tags: object ,
id: string ,
name: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CreateEventHubConsumerGroup (new)
Description Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{
tags: object ,
id: string ,
name: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_DeleteEventHubConsumerGroup (new)
Description Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListJobs (new)
Description 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.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetJob (new)
Description 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.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
jobId: string ,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetQuotaMetrics (new)
Description Get the quota metrics for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
Name: string ,
CurrentValue: integer ,
MaxValue: integer ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CheckNameAvailability (new)
Description Check if an IoT hub name is available.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability
{
api-version: string ,
subscriptionId: string ,
operationInputs:
{
Name: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListKeys (new)
Description Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetKeysForKeyName (new)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
keyName: string ,
}

⚐ Response (200)

{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ExportDevices (new)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
exportDevicesParameters:
{
ExportBlobContainerUri: string ,
ExcludeKeys: boolean ,
}
,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ImportDevices (new)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
importDevicesParameters:
{
InputBlobContainerUri: string ,
OutputBlobContainerUri: string ,
}
,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_Get (removed)
Description Get the non-security related metadata of an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CreateOrUpdate (removed)
Description 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. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to default, which may lead to unexpected behavior.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
iotHubDescription:
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
}

⚐ Response (201)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_Delete (removed)
Description Delete an IoT hub.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (202)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (204)

{}

⚐ Response (404)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListBySubscription (removed)
Description Get all the IoT hubs in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListByResourceGroup (removed)
Description Get all the IoT hubs in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
subscriptionid: string ,
resourcegroup: string ,
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
provisioningState: string ,
hostName: string ,
eventHubEndpoints: object ,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
operationsMonitoringProperties:
{
events: object ,
}
,
features: enum ,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetStats (removed)
Description Get the statistics from an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
totalDeviceCount: integer ,
enabledDeviceCount: integer ,
disabledDeviceCount: integer ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetValidSkus (removed)
Description Get the list of valid SKUs for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
resourceType: string ,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
capacity:
{
minimum: integer ,
maximum: integer ,
default: integer ,
scaleType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListEventHubConsumerGroups (removed)
Description Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
}

⚐ Response (200)

{
value:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetEventHubConsumerGroup (removed)
Description Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{
tags: object ,
id: string ,
name: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CreateEventHubConsumerGroup (removed)
Description Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{
tags: object ,
id: string ,
name: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_DeleteEventHubConsumerGroup (removed)
Description Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
eventHubEndpointName: string ,
name: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListJobs (removed)
Description 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.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetJob (removed)
Description 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.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
jobId: string ,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetQuotaMetrics (removed)
Description Get the quota metrics for an IoT hub.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
Name: string ,
CurrentValue: integer ,
MaxValue: integer ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_CheckNameAvailability (removed)
Description Check if an IoT hub name is available.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability
{
api-version: string ,
subscriptionId: string ,
operationInputs:
{
Name: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ListKeys (removed)
Description Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
}

⚐ Response (200)

{
value:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_GetKeysForKeyName (removed)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
keyName: string ,
}

⚐ Response (200)

{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ExportDevices (removed)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
exportDevicesParameters:
{
ExportBlobContainerUri: string ,
ExcludeKeys: boolean ,
}
,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}
IotHubResource_ImportDevices (removed)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
importDevicesParameters:
{
InputBlobContainerUri: string ,
OutputBlobContainerUri: string ,
}
,
}

⚐ Response (200)

{
jobId: string ,
startTimeUtc: string ,
endTimeUtc: string ,
type: enum ,
status: enum ,
failureReason: string ,
statusMessage: string ,
parentJobId: string ,
}

⚐ Response (default)

{
Code: string ,
HttpStatusCode: string ,
Message: string ,
Details: string ,
}