Attempting to get devices IP address from Intune API

kmcgurk01
Tera Expert

Hi,

 

i am currently able to get all the required intune device information from the managedDevices GET API, however, i am unable to get the IP address of these devices with this API. Does anyone know how to solve this problem without using the service graph connector plugin, thank you. 

 

Current API used:  https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0

 

1 ACCEPTED SOLUTION

MattSN
Mega Sage
Mega Sage

You can make an additional call for each deviceID to the windowsManagedDevice API. This includes ipAddressV4 attribute and much more.

https://learn.microsoft.com/en-us/graph/api/intune-devices-windowsmanageddevice-get?view=graph-rest-...

View solution in original post

3 REPLIES 3

MattSN
Mega Sage
Mega Sage

You can make an additional call for each deviceID to the windowsManagedDevice API. This includes ipAddressV4 attribute and much more.

https://learn.microsoft.com/en-us/graph/api/intune-devices-windowsmanageddevice-get?view=graph-rest-...

hi this looks great thank you. im imaging moving over to do this in flow designer and using two rest actions for the two api's, im kind of having a hard time picturing on how this will function. could you provide any guidance? i am trying to cycle through all the devices with the first api whilst giving each record their corresponding IP address with the API you suggested

In a script include you would typically get each deviceID and push to an array using the array.push() function. After that loop through each deviceID and make the API call. In Flow designer you may need to create a custom script action to build the array, then use the for each flow logic.

https://www.servicenow.com/community/developer-forum/push-to-array-output-variable-in-subflow/m-p/16...