LogicMonitor.Api
3.236.14
dotnet add package LogicMonitor.Api --version 3.236.14
NuGet\Install-Package LogicMonitor.Api -Version 3.236.14
<PackageReference Include="LogicMonitor.Api" Version="3.236.14" />
<PackageVersion Include="LogicMonitor.Api" Version="3.236.14" />
<PackageReference Include="LogicMonitor.Api" />
paket add LogicMonitor.Api --version 3.236.14
#r "nuget: LogicMonitor.Api, 3.236.14"
#:package LogicMonitor.Api@3.236.14
#addin nuget:?package=LogicMonitor.Api&version=3.236.14
#tool nuget:?package=LogicMonitor.Api&version=3.236.14
LogicMonitor.Api
The LogicMonitor REST API nuget package, authored by Panoramic Data Limited.
If you want some LogicMonitor software developed, come find us at: https://www.panoramicdata.com/ !
To get started, watch the videos here:
http://www.panoramicdata.com/products/logicmonitor-api-nuget-package/
A simple example:
using LogicMonitor.Api;
[...]
public static async Task GetAllResources(ILogger logger, CancellationToken cancellationToken)
{
using var logicMonitorClient = new LogicMonitorClient(
new LogicMonitorClientOptions
{
Account = "acme",
AccessId = "accessId",
AccessKey = "accessKey",
Logger = logger
}
);
var resources = await logicMonitorClient
.GetAllAsync<Resource>(cancellationToken)
.ConfigureAwait(false);
Console.WriteLine($"Resource Count: {resources.Count}");
}
LogicModule Export/Import (JSON Format)
The modern LogicMonitor UI exports LogicModules to JSON format. This library supports both JSON and XML export/import:
// Export a DataSource as JSON (modern UI format)
var json = await logicMonitorClient
.GetDataSourceJsonAsync(dataSourceId, cancellationToken);
// Export a DataSource as XML (legacy format)
var xml = await logicMonitorClient
.GetDataSourceXmlAsync(dataSourceId, cancellationToken);
// Generic export by LogicModuleType
var json = await logicMonitorClient
.GetLogicModuleJsonAsync(LogicModuleType.DataSource, dataSourceId, cancellationToken);
// Export to a file
await logicMonitorClient
.ExportLogicModuleToJsonFileAsync(
LogicModuleType.DataSource,
dataSourceId,
"datasource.json",
cancellationToken);
// Import from JSON string
var imported = await logicMonitorClient
.ImportDataSourceJsonAsync(json, cancellationToken);
// Import from file
var imported = await logicMonitorClient
.ImportDataSourceFromJsonFileAsync("datasource.json", cancellationToken);
Supported LogicModule types for export/import:
- DataSource
- EventSource
- ConfigSource
- PropertySource
- TopologySource
- JobMonitor
- AppliesToFunction
API Documentation
For more information on the LogicMonitor REST API, see the official documentation.
License
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on LogicMonitor.Api:
| Package | Downloads |
|---|---|
|
LogicMonitor.Datamart
LogicMonitor Datamart |
|
|
Serilog.Sinks.LogicMonitor
Serilog sink for LogicMonitor's LM Logs |
|
|
LogicMonitor.PowerShell
A PowerShell module wrapper for the LogicMonitor.Api .NET library |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.236.14 | 0 | 4/11/2026 |
| 3.236.13 | 83 | 4/8/2026 |
| 3.236.8 | 70 | 4/7/2026 |
| 3.236.7 | 75 | 4/7/2026 |
| 3.236.2 | 218 | 3/29/2026 |
| 3.235.7 | 116 | 3/27/2026 |
| 3.235.6 | 232 | 3/9/2026 |
| 3.235.4 | 123 | 3/4/2026 |
| 3.235.1 | 98 | 3/2/2026 |
| 3.229.61 | 97 | 3/2/2026 |
| 3.229.53 | 114 | 2/26/2026 |
| 3.229.18 | 372 | 1/31/2026 |
| 3.229.16 | 246 | 1/23/2026 |
| 3.229.11 | 828 | 11/20/2025 |
| 3.229.10 | 387 | 11/12/2025 |
| 3.222.11 | 456 | 9/13/2025 |
| 3.222.10 | 597 | 9/12/2025 |
| 3.222.8 | 245 | 9/12/2025 |
| 3.222.7 | 383 | 8/12/2025 |
| 3.222.6 | 250 | 8/12/2025 |
v3.236.14:
- Fixed GetResourceGroupByFullPathAsync to handle full paths containing parentheses by falling back to tree node search
- Removed EscapeParens() from GetResourceGroupByFullPathAsync which caused double-encoding via HttpUtility.UrlEncode