Microsoft.Devices (stable:2020-04-01)

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

Operations_List (new)
Description Lists all of the available IoT Hub REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Devices/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
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)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
If-Match: string ,
}

⚐ Response (201)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_Update (new)
Description Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
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)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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)

{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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)

{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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_GetEndpointHealth (new)
Description Get the health for routing endpoints.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
endpointId: string ,
healthStatus: enum ,
lastKnownError: string ,
lastKnownErrorTime: string ,
lastSuccessfulSendAttemptTime: string ,
lastSendAttemptTime: string ,
}
,
]
,
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 ,
}
ResourceProviderCommon_GetSubscriptionQuota (new)
Description Get the number of free and paid iot hubs in the subscription
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
type: string ,
unit: string ,
currentValue: integer ,
limit: integer ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_TestAllRoutes (new)
Description Test all routes configured in this Iot Hub
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall
{
input:
{
routingSource: enum ,
message:
{
body: string ,
appProperties: object ,
systemProperties: object ,
}
,
twin:
{
tags: object ,
properties:
{
desired: object ,
reported: object ,
}
,
}
,
}
,
iotHubName: string ,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
routes:
[
{
properties:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_TestRoute (new)
Description Test the new route for this Iot Hub
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew
{
input:
{
message:
{
body: string ,
appProperties: object ,
systemProperties: object ,
}
,
route:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
twin:
{
tags: object ,
properties:
{
desired: object ,
reported: object ,
}
,
}
,
}
,
iotHubName: string ,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
result: enum ,
details:
{
compilationErrors:
[
{
message: string ,
severity: enum ,
location:
{
start:
{
line: integer ,
column: integer ,
}
,
end:
{
line: integer ,
column: integer ,
}
,
}
,
}
,
]
,
}
,
}

⚐ 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 ,
exportBlobName: string ,
authenticationType: enum ,
}
,
}

⚐ 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 ,
inputBlobName: string ,
outputBlobName: string ,
authenticationType: enum ,
}
,
}

⚐ 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 ,
}
Certificates_ListByIotHub (new)
Description Returns the list of certificates.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Get (new)
Description Returns the certificate.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_CreateOrUpdate (new)
Description Adds new or replaces existing certificate.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
certificateDescription:
{
certificate: string ,
}
,
If-Match: string ,
}

⚐ Response (201)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Delete (new)
Description Deletes an existing X509 certificate or does nothing if it does not exist.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_GenerateVerificationCode (new)
Description Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
verificationCode: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Verify (new)
Description Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
certificateVerificationBody:
{
certificate: string ,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHub_ManualFailover (new)
Description Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover
{
iotHubName: string ,
failoverInput:
{
failoverRegion: string ,
}
,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateLinkResources_List (new)
Description List private link resources for the given IotHub
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateLinkResources_Get (new)
Description Get the specified private link resource for the given IotHub
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_List (new)
Description List private endpoint connection properties
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Get (new)
Description Get private endpoint connection properties
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Update (new)
Description Update the status of a private endpoint connection with the specified name
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
privateEndpointConnectionName: string ,
privateEndpointConnection:
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Delete (new)
Description Delete private endpoint connection with the specified name
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Operations_List (removed)
Description Lists all of the available IoT Hub REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Devices/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: 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)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
,
If-Match: string ,
}

⚐ Response (201)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_Update (removed)
Description Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}
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)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: enum ,
}
,
]
,
}
,
sku:
{
name: enum ,
tier: enum ,
capacity: integer ,
}
,
}

⚐ Response (200)

{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
etag: string ,
properties:
{
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
}
,
]
,
minTlsVersion: string ,
privateEndpointConnections:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
state: string ,
hostName: string ,
eventHubEndpoints: object ,
routing:
{
endpoints:
{
serviceBusQueues:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
serviceBusTopics:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
eventHubs:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
entityPath: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
}
,
]
,
storageContainers:
[
{
id: string ,
connectionString: string ,
endpointUri: string ,
authenticationType: enum ,
name: string ,
subscriptionId: string ,
resourceGroup: string ,
containerName: string ,
fileNameFormat: string ,
batchFrequencyInSeconds: integer ,
maxChunkSizeInBytes: integer ,
encoding: enum ,
}
,
]
,
}
,
routes:
[
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
]
,
fallbackRoute:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
enrichments:
[
{
key: string ,
value: string ,
endpointNames:
[
string ,
]
,
}
,
]
,
}
,
storageEndpoints: object ,
messagingEndpoints: object ,
enableFileUploadNotifications: boolean ,
cloudToDevice:
{
maxDeliveryCount: integer ,
defaultTtlAsIso8601: string ,
feedback:
{
lockDurationAsIso8601: string ,
ttlAsIso8601: string ,
maxDeliveryCount: integer ,
}
,
}
,
comments: string ,
features: enum ,
locations:
[
{
location: string ,
role: 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:
[
{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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)

{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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)

{
properties: object ,
id: string ,
name: string ,
type: string ,
etag: 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_GetEndpointHealth (removed)
Description Get the health for routing endpoints.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
endpointId: string ,
healthStatus: enum ,
lastKnownError: string ,
lastKnownErrorTime: string ,
lastSuccessfulSendAttemptTime: string ,
lastSendAttemptTime: string ,
}
,
]
,
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 ,
}
ResourceProviderCommon_GetSubscriptionQuota (removed)
Description Get the number of free and paid iot hubs in the subscription
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
type: string ,
unit: string ,
currentValue: integer ,
limit: integer ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_TestAllRoutes (removed)
Description Test all routes configured in this Iot Hub
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall
{
input:
{
routingSource: enum ,
message:
{
body: string ,
appProperties: object ,
systemProperties: object ,
}
,
twin:
{
tags: object ,
properties:
{
desired: object ,
reported: object ,
}
,
}
,
}
,
iotHubName: string ,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
routes:
[
{
properties:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHubResource_TestRoute (removed)
Description Test the new route for this Iot Hub
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew
{
input:
{
message:
{
body: string ,
appProperties: object ,
systemProperties: object ,
}
,
route:
{
name: string ,
source: enum ,
condition: string ,
endpointNames:
[
string ,
]
,
isEnabled: boolean ,
}
,
twin:
{
tags: object ,
properties:
{
desired: object ,
reported: object ,
}
,
}
,
}
,
iotHubName: string ,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
result: enum ,
details:
{
compilationErrors:
[
{
message: string ,
severity: enum ,
location:
{
start:
{
line: integer ,
column: integer ,
}
,
end:
{
line: integer ,
column: integer ,
}
,
}
,
}
,
]
,
}
,
}

⚐ 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 ,
exportBlobName: string ,
authenticationType: enum ,
}
,
}

⚐ 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 ,
inputBlobName: string ,
outputBlobName: string ,
authenticationType: enum ,
}
,
}

⚐ 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 ,
}
Certificates_ListByIotHub (removed)
Description Returns the list of certificates.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Get (removed)
Description Returns the certificate.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_CreateOrUpdate (removed)
Description Adds new or replaces existing certificate.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
certificateDescription:
{
certificate: string ,
}
,
If-Match: string ,
}

⚐ Response (201)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Delete (removed)
Description Deletes an existing X509 certificate or does nothing if it does not exist.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_GenerateVerificationCode (removed)
Description Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
verificationCode: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
Certificates_Verify (removed)
Description Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
certificateName: string ,
certificateVerificationBody:
{
certificate: string ,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
subject: string ,
expiry: string ,
thumbprint: string ,
isVerified: boolean ,
created: string ,
updated: string ,
certificate: string ,
}
,
id: string ,
name: string ,
etag: string ,
type: string ,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotHub_ManualFailover (removed)
Description Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover
{
iotHubName: string ,
failoverInput:
{
failoverRegion: string ,
}
,
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateLinkResources_List (removed)
Description List private link resources for the given IotHub
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateLinkResources_Get (removed)
Description Get the specified private link resource for the given IotHub
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_List (removed)
Description List private endpoint connection properties
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Get (removed)
Description Get private endpoint connection properties
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Update (removed)
Description Update the status of a private endpoint connection with the specified name
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
privateEndpointConnectionName: string ,
privateEndpointConnection:
{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}
PrivateEndpointConnections_Delete (removed)
Description Delete private endpoint connection with the specified name
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
code: string ,
httpStatusCode: string ,
message: string ,
details: string ,
}