question

PhyoThantSin-8333 avatar image
1 Vote"
PhyoThantSin-8333 asked SandervandeVelde42 answered

How to get Azure Iot Edge Module details infomation from rest api that has shown in Iot Edge Module List

I'm trying to get the Iot Edge Module information from the rest api. Now I had got the information from following api.
https://fully-qualified-iothubname.azure-devices.net/devices/{id}/modules?api-version=2020-05-31-preview
But it wasn't enough infomation that I wanted. I wanted infos just like attached image.87139-azure-portal-iotedge-device-details.png


azure-iot-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
0 Votes"
SandervandeVelde42 answered

Hello @PhyoThantSin-8333,

you found the module twin

var url = $"https://{shortIoTHubName}.azure-devices.net/twins/{deviceId}/modules/{moduleId}?api-version=2020-05-31-preview";

already. This gives eg. the desired properties.

I guess you want more information about Azure IoT Edge modules like the create options?

If you check the deployment manifest, this information is found in the desired properties of the edgeAgent:

87389-image.png

So, get the module twin of the edgeAgent too and just combine the two results.



image.png (60.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.