1
1
---
2
2
title : Azure IoT Hub MQTT 5 API reference (preview)
3
- description : Learn about IoT Hub's MQTT 5 API reference
4
- services : iot-hub
3
+ description : Learn about the IoT Hub MQTT 5 preview API
4
+ services : iot
5
+ ms.service : iot
5
6
author : kgremban
6
- ms.service : iot-hub
7
- ms.topic : reference
8
- ms.date : 11/19/2020
9
7
ms.author : kgremban
8
+ ms.topic : reference
9
+ ms.date : 04/24/2023
10
+
10
11
---
11
12
12
- # IoT Hub data plane MQTT 5 API reference
13
+ # IoT Hub data plane MQTT 5 API reference (preview)
13
14
14
15
This document defines operations available in version 2.0 (api-version: ` 2020-10-01-preview ` ) of IoT Hub data plane API.
15
16
@@ -39,9 +40,9 @@ Get Twin state
39
40
40
41
| Status | Name | Description |
41
42
| :----- | :--- | :---------- |
42
- | 0100 | Bad Request | Operation message is malformed and cannot be processed. |
43
- | 0101 | Not Authorized | Client is not authorized to perform the operation. |
44
- | 0102 | Not Allowed | Operation is not allowed. |
43
+ | 0100 | Bad Request | Operation message is malformed and can't be processed. |
44
+ | 0101 | Not Authorized | Client isn't authorized to perform the operation. |
45
+ | 0102 | Not Allowed | Operation isn't allowed. |
45
46
| 0501 | Throttled | request rate is too high per SKU |
46
47
| 0502 | Quota Exceeded | daily quota per current SKU is exceeded |
47
48
| 0601 | Server Error | internal server error |
@@ -91,10 +92,10 @@ Patch Twin's reported state
91
92
92
93
| Status | Name | Description |
93
94
| :----- | :--- | :---------- |
94
- | 0104 | Precondition Failed | precondition was not met resulting in request being canceled |
95
- | 0100 | Bad Request | Operation message is malformed and cannot be processed. |
96
- | 0101 | Not Authorized | Client is not authorized to perform the operation. |
97
- | 0102 | Not Allowed | Operation is not allowed. |
95
+ | 0104 | Precondition Failed | precondition wasn't met resulting in request being canceled |
96
+ | 0100 | Bad Request | Operation message is malformed and can't be processed. |
97
+ | 0101 | Not Authorized | Client isn't authorized to perform the operation. |
98
+ | 0102 | Not Allowed | Operation isn't allowed. |
98
99
| 0501 | Throttled | request rate is too high per SKU |
99
100
| 0502 | Quota Exceeded | daily quota per current SKU is exceeded |
100
101
| 0601 | Server Error | internal server error |
@@ -152,8 +153,8 @@ Indicates command was accepted for handling by the client
152
153
153
154
| Reason Code | Status | Name | Description |
154
155
| :---------- | :----- | :--- | :---------- |
155
- | 131 | 0603 | Abandon | Indicates command will not be processed at this time and should be redelivered in the future. |
156
- | 131 | 0100 | Reject | Indicates command is rejected by the client and should not be attempted again. |
156
+ | 131 | 0603 | Abandon | Indicates command won't be processed at this time and should be redelivered in the future. |
157
+ | 131 | 0100 | Reject | Indicates the client rejected the command and it shouldn't be attempted again. |
157
158
158
159
#### Pseudo-code Sample
159
160
@@ -199,7 +200,7 @@ Receive and handle Direct Method calls
199
200
200
201
| Status | Name | Description |
201
202
| :----- | :--- | :---------- |
202
- | 06A0 | Unavailable | Indicates that client is not reachable through this connection. |
203
+ | 06A0 | Unavailable | Indicates that client isn't reachable through this connection. |
203
204
204
205
#### Pseudo-code Sample
205
206
@@ -251,7 +252,7 @@ Receive updates to Twin's desired state
251
252
252
253
### Send Telemetry
253
254
254
- Post message to telemetry channel - EventHubs by default or other endpoint via routing configuration.
255
+ Post message to telemetry channel - Event Hubs by default or other endpoint via routing configuration.
255
256
256
257
#### Message
257
258
@@ -286,9 +287,9 @@ Message has been successfully posted to telemetry channel
286
287
287
288
| Reason Code | Status | Name | Description |
288
289
| :---------- | :----- | :--- | :---------- |
289
- | 131 | 0100 | Bad Request | Operation message is malformed and cannot be processed. |
290
- | 135 | 0101 | Not Authorized | Client is not authorized to perform the operation. |
291
- | 131 | 0102 | Not Allowed | Operation is not allowed. |
290
+ | 131 | 0100 | Bad Request | Operation message is malformed and can't be processed. |
291
+ | 135 | 0101 | Not Authorized | Client isn't authorized to perform the operation. |
292
+ | 131 | 0102 | Not Allowed | Operation isn't allowed. |
292
293
| 131 | 0601 | Server Error | internal server error |
293
294
| 151 | 0501 | Throttled | request rate is too high per SKU |
294
295
| 151 | 0502 | Quota Exceeded | daily quota per current SKU is exceeded |
@@ -316,7 +317,7 @@ Message has been successfully posted to telemetry channel
316
317
317
318
### Bad Request
318
319
319
- Operation message is malformed and cannot be processed.
320
+ Operation message is malformed and can't be processed.
320
321
321
322
** Reason Code:** ` 131 `
322
323
@@ -326,7 +327,7 @@ Operation message is malformed and cannot be processed.
326
327
327
328
| Name | Type | Required | Description |
328
329
| :--- | :--- | :------- | :---------- |
329
- | reason | string | no | contains information on what specifically is not valid about the message |
330
+ | reason | string | no | contains information on what specifically isn't valid about the message |
330
331
331
332
** Payload** : empty
332
333
@@ -342,14 +343,14 @@ Operation is in conflict with another ongoing operation.
342
343
343
344
| Name | Type | Required | Description |
344
345
| :--- | :--- | :------- | :---------- |
345
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
346
- | reason | string | no | contains information on what specifically is not valid about the message |
346
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
347
+ | reason | string | no | contains information on what specifically isn't valid about the message |
347
348
348
349
** Payload** : empty
349
350
350
351
### Not Allowed
351
352
352
- Operation is not allowed.
353
+ Operation isn't allowed.
353
354
354
355
** Reason Code:** ` 131 `
355
356
@@ -359,13 +360,13 @@ Operation is not allowed.
359
360
360
361
| Name | Type | Required | Description |
361
362
| :--- | :--- | :------- | :---------- |
362
- | reason | string | no | contains information on what specifically is not valid about the message |
363
+ | reason | string | no | contains information on what specifically isn't valid about the message |
363
364
364
365
** Payload** : empty
365
366
366
367
### Not Authorized
367
368
368
- Client is not authorized to perform the operation.
369
+ Client isn't authorized to perform the operation.
369
370
370
371
** Reason Code:** ` 135 `
371
372
@@ -375,13 +376,13 @@ Client is not authorized to perform the operation.
375
376
376
377
| Name | Type | Required | Description |
377
378
| :--- | :--- | :------- | :---------- |
378
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
379
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
379
380
380
381
** Payload** : empty
381
382
382
383
### Not Found
383
384
384
- requested resource does not exist
385
+ requested resource doesn't exist
385
386
386
387
** Reason Code:** ` 131 `
387
388
@@ -391,13 +392,13 @@ requested resource does not exist
391
392
392
393
| Name | Type | Required | Description |
393
394
| :--- | :--- | :------- | :---------- |
394
- | reason | string | no | contains information on what specifically is not valid about the message |
395
+ | reason | string | no | contains information on what specifically isn't valid about the message |
395
396
396
397
** Payload** : empty
397
398
398
399
### Not Modified
399
400
400
- Resource was not modified based on provided precondition.
401
+ Resource wasn't modified based on provided precondition.
401
402
402
403
** Reason Code:** ` 0 `
403
404
@@ -410,7 +411,7 @@ Resource was not modified based on provided precondition.
410
411
411
412
### Precondition Failed
412
413
413
- Precondition was not met resulting in request being canceled
414
+ Precondition wasn't met resulting in request being canceled
414
415
415
416
** Reason Code:** ` 131 `
416
417
@@ -446,7 +447,7 @@ resource has no capacity to complete the operation
446
447
447
448
| Name | Type | Required | Description |
448
449
| :--- | :--- | :------- | :---------- |
449
- | reason | string | no | contains information on what specifically is not valid about the message |
450
+ | reason | string | no | contains information on what specifically isn't valid about the message |
450
451
451
452
** Payload** : empty
452
453
@@ -462,7 +463,7 @@ server busy
462
463
463
464
| Name | Type | Required | Description |
464
465
| :--- | :--- | :------- | :---------- |
465
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
466
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
466
467
467
468
** Payload** : empty
468
469
@@ -478,7 +479,7 @@ internal server error
478
479
479
480
| Name | Type | Required | Description |
480
481
| :--- | :--- | :------- | :---------- |
481
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
482
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
482
483
483
484
** Payload** : empty
484
485
@@ -494,7 +495,7 @@ Target responded but the response was invalid or malformed
494
495
495
496
| Name | Type | Required | Description |
496
497
| :--- | :--- | :------- | :---------- |
497
- | reason | string | no | contains information on what specifically is not valid about the message |
498
+ | reason | string | no | contains information on what specifically isn't valid about the message |
498
499
499
500
** Payload** : empty
500
501
@@ -510,8 +511,8 @@ timed out waiting for target to complete the request
510
511
511
512
| Name | Type | Required | Description |
512
513
| :--- | :--- | :------- | :---------- |
513
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
514
- | reason | string | no | contains information on what specifically is not valid about the message |
514
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
515
+ | reason | string | no | contains information on what specifically isn't valid about the message |
515
516
516
517
** Payload** : empty
517
518
@@ -553,7 +554,7 @@ operation timed out before it could be completed
553
554
554
555
| Name | Type | Required | Description |
555
556
| :--- | :--- | :------- | :---------- |
556
- | trace-id | string | no | trace ID for correlation with additional diagnostics for the error |
557
+ | trace-id | string | no | trace ID for correlation with other diagnostics for the error |
557
558
558
559
** Payload** : empty
559
560
0 commit comments