NOS_chris Posted September 18 Share Posted September 18 I would like to query network data from devices using the endpoint (https://as____.awmdm.com/API/mdm/devices/search). The returned array device_network_info is empty, yet the data can be displayed in the UEM console. Why is the data retrieved via the API incomplete? Have I missed something? Expected data: "device_network_info": [ { "connection_type": "Ethernet", "ip_address": "127.0.0.1", "mac_address": "485A3F880798", "name": "en0", "vendor": "VMware" } ], Returned data: "device_network_info": [], Quote Link to comment Share on other sites More sharing options...
MichaelPerryMic Posted September 18 Share Posted September 18 Are you using the page at: https://cnxxxx.awmdm.com/api/help/#!/apis/10002?!/Devices/Devices_SearchAsync and running the query from there after entering your authentication details? If you cannot get it to work from that URL, it is not going to work anywhere else. Quote Link to comment Share on other sites More sharing options...
NOS_chris Posted September 19 Author Share Posted September 19 Here is an response from https://cn____.awmdm.com/api/help/#!/apis/10004?!/DevicesV3/DevicesV3_SearchAsync. An empty array for "device_network_info" is returned. According to documentation there should be an object "DeviceNetworkInfoV2" as described in my initial post. Any information on how to retrieve the data is appreciated. { (...) "ownership": "CORPORATE", "platform_name": "WinRT", "device_type": "WIN_RT", "operating_system": "10.0.22621", "last_seen": "2024-09-19T11:08:03.837Z", "enrollment_status": "ENROLLED", "compliance_status": "COMPLIANT", "compromised_status": false, "oem_info": "LENOVO", "managed_by": "MDM", "os_build_version": "4037", "device_cellular_network_info": [], "device_network_info": [], (...) }, Quote Link to comment Share on other sites More sharing options...
Solution MichaelPerryMic Posted September 20 Solution Share Posted September 20 Try the extensive search API endpoint instead. Using that I get: "DeviceNetworkInfo": [ { "ConnectionType": "Wifi", "IPAddress": "192.168.0.241", "MACAddress": "A4D4B24FF169" } ], Alternatively, you can try the endpoint https://asxxxx.awmdm.com/API/mdm/devices/[devID]/network but if you want the information for multiple devices you will need to run a runner that feeds the devID into each execution of the GET for each iteration. Quote Link to comment Share on other sites More sharing options...
MichaelPerryMic Posted September 20 Share Posted September 20 Generally though, their API documentation is woefully inadequate and I have found numerous instances where it is just plain wrong. You did not really say what you were looking for specifically though. If all you want is the IP address and/or MAC address of the device(s) a "Device Inventory" report will get you that in a CSV file quite nicely. Quote Link to comment Share on other sites More sharing options...
NOS_chris Posted September 23 Author Share Posted September 23 On 9/21/2024 at 12:20 AM, MichaelPerryMic said: Try the extensive search API endpoint instead. Using that I get: "DeviceNetworkInfo": [ { "ConnectionType": "Wifi", "IPAddress": "192.168.0.241", "MACAddress": "A4D4B24FF169" } ], Alternatively, you can try the endpoint https://asxxxx.awmdm.com/API/mdm/devices/[devID]/network but if you want the information for multiple devices you will need to run a runner that feeds the devID into each execution of the GET for each iteration. Thank you. The extensive search endpoint (/API/mdm/devices/extensivesearch) returns network data. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.