Notification

Icon
Error

Lansweeper Simple RESTful API

Posted: Wednesday, July 14, 2021 4:20:29 PM(UTC)
FuzzyJazzBuzz

FuzzyJazzBuzz

Member Original PosterPosts: 1
0
Like
Hi folks,

It's been a while I created an lansweeper Restful API and I wanted to introduce this to you in the hope it's useful to somebody, especially because its completely open source.

Short Disclamer
I did this API for myself. So it's quite rudimentary and nothing "Enterprise Business Ultra Solution". What it does is go login into your SQL Instance. Query the SQL Data and give you some Results as JSON. There are 2 Queries included and you can adjust that logic if you need. And I hope some coders will expand the project.

With those JSON Data, you get a lot of information from your assets like installed OS, installed Software, Hardware and many more. To get those JSON Data you can simple use 3 lines of Powershell Code or any other language you perfer (Python, Java, C# or even assembly Anxious )

Quote:

$response = Invoke-WebRequest -Uri "http://localhost:85/api/Values" # Use your API-Lansweeper URI here
$data = ConvertFrom-Json $([String]::new($response.Content))
$data | Out-GridView



Check out the GitHub Repository for more information:
https://github.com/MarcoGriep88/API-Lansweeper

Have a nice day Speak to the hand
Mike Carey
#1Mike Carey Member Posts: 10  
posted: 7/14/2021 7:54:43 PM(UTC)
Thank you for this- but i am getting a 404 error on your github link..

Active Discussions

Lansweeper Adding an "Employee ID" column to an asset report
by  ABaker   Go to last post Go to first unread
Last post: Today at 2:27:04 PM(UTC)
Lansweeper Firefox 102 & ESR 91.11
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 8:12:07 AM(UTC)
Lansweeper Performance report not shows result
by  NoraD   Go to last post Go to first unread
Last post: 6/28/2022 7:52:27 AM(UTC)
Lansweeper Duplicate AD Users
by  Randy Costa  
Go to last post Go to first unread
Last post: 6/27/2022 5:25:04 PM(UTC)
Lansweeper mail reports
by  swede   Go to last post Go to first unread
Last post: 6/27/2022 7:47:09 AM(UTC)
Lansweeper Multiple Devices Owned by Users (asset relations)
by  Adrian Scott  
Go to last post Go to first unread
Last post: 6/22/2022 5:34:51 PM(UTC)