The Ubuntu.Landscape.Client .NET library is doing API calls to the Landscape Server. It is written in C# and targets .NET 10.
- .NET SDK 10.0 or later
dotnet build -c Releasedotnet pack -c ReleaseProduces Ubuntu.Landscape.Client/bin/Release/Ubuntu.Landscape.Client.1.0.0.nupkg.
var client = new Ubuntu.Landscape.Client();
client.hostname = "hostname";
client.secretKey = "secret key";
client.accessKey = "access key";
client.ignoreInvalidCerts = true;
client.actionString = "GetAlerts";
var JsonOutput = client.getResult();For possible action strings please have a look here:
Addional contributors are welcome!