Jump to content

API data incomplete, device_network_info returns empty array


NOS_chris
Go to solution Solved by MichaelPerryMic,

Recommended Posts

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": [],

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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": [],
      (...)
    },
Link to comment
Share on other sites

  • Solution

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...