Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MrNico
Engaged Sweeper III

Hello. After several hours "fighting" to be able to connect and make a query, I have managed to do it! The problem I have now is that I don't know how to bring the operating system of each asset., I have tried in various ways without results. Could you tell me how to do that? thank you!

 

 

query getAssetResources {
  site(id: "xxxxxxxxxxxxxxxxxxxxxxxx") {
    assetResources(
      fields: [
        "assetBasicInfo.name"
        "assetBasicInfo.userDomain"
        "assetBasicInfo.description"
      ]
    ) {
      total
      items
    }
  }
}
1 REPLY 1
EthanBills
Lansweeper Employee
Lansweeper Employee

Hello,

To get the name of the operating system for each asset please use "operatingSystem.name". Please let us know if you any issues with this. To find an extensive list of fields that you can query please see: Types specification | Documentation – Lansweeper. Since the number of quarriable fields within Lansweeper is large, I would recommend using ctrl/cmd + F to search within the documentation to find the appropriate fields you are looking for.

Thanks! 

General Discussions

Find answers to technical questions about Lansweeper.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now