I am reading multiple documentation about Routing for Azure IoT hub:
- https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-d2c
- https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-hub/iot-hub-event-grid-routing-comparison.md
- https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-hub/iot-hub-devguide-routing-query-syntax.md
- https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-hub/tutorial-routing.md
But when you add in the section about "Routing query": level="storage" and you create the route, how to indicate in your curl request the route that you need to use.
Currently, the request that I use with curl is:
curl --request POST \
--url "https://${IOT_HUB}.azure-devices.net/devices/${DEVICE}/messages/events?api-version=2018-06-30" \
--header "Accept: application/json" \
--header "Content-Type: application/json;charset=utf-8" \
--header "Authorization: ${SAS_TOKEN}" \
--data "{ \"field1\" : \"value\", \"field2\" : \"value\" }" \
--verbose
How to add the information about the route level="storage"?
Many thanks in advance
Juan Antonio