cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
houseonthehill
Engaged Sweeper

I have some iPads, iPhones and some other mobile devices in my Lansweeper, which I can see via the Lansweeper portal online. However, when I try to retrieve this data via the API I cannot see fields with information in it although the assetResources total is showing as 6, which to me looks like it is found them but not able to display any information for them.

My query to the API using graphql looks like this,

query getAssetResources {
  site(id: "<id>") {
    assetResources(
      assetPagination: {
        cursor: "<cursor>"
        limit: 50
        page: NEXT
      }
      fields: [
        "assetBasicInfo.name"
        "assetBasicInfo.ipAddress"
        "assetBasicInfo.domain"
        "assetBasicInfo.userName"
        "assetCustom.contact"
        "assetCustom.department"
        "assetCustom.deviceVersion"
        "assetBasicInfo.type"
        "assetCustom.model"
        "assetCustom.purchaseDate"
        "assetCustom.manufacturer"
        "assetCustom.softwareVersion"
        "operatingSystem.caption"
        "assetBasicInfo.lastSeen"
        "assetCustom.stateName"
        "assetCustom.warrantyDate"
        "assetCustom.serialNumber"
        "assetCustom.sku"
        "systemProducts.uuid"
        "assetCustom.department"
        "computerSystems.systemType"
        "operatingSystem.registeredUser"
        "operatingSystem.annotatedAssetId"
        "mobileDeviceManagement.model"
        "mobileDeviceManagement.manufacturer"
        "mobileDeviceManagement.userDisplayName"
        "mobileDeviceManagement.userId"
        "mobileDeviceManagement.deviceName"
        "mobileDeviceManagement.operatingSystem"
        "mobileDeviceManagement.osVersion"
      ]
      filters: {
        conjunction: AND
        conditions: [
          { operator: LIKE, path: "assetBasicInfo.type", value: "iphone" }
        ]
      }
    ) {
      total
      pagination {
        limit
        current
        next
        page
      }
      items
    }
  }
}
 
The returned result is,
{
    "data": {
        "site": {
            "assetResources": {
                "total": 6,
                "pagination": {
                    "limit": 50,
                    "current": "<cursor>",
                    "next": "<cursor>",
                    "page": "NEXT"
                },
                "items": []
            }
        }
    }
}
 
Can anyone help to explain why there are no items shown despite the total showing as 6? Could there be a permissions 
0 REPLIES 0