![]() |
VOOZH | about |
dotnet add package LogicMonitor.Api --version 3.240.7
NuGet\Install-Package LogicMonitor.Api -Version 3.240.7
<PackageReference Include="LogicMonitor.Api" Version="3.240.7" />
<PackageVersion Include="LogicMonitor.Api" Version="3.240.7" />Directory.Packages.props
<PackageReference Include="LogicMonitor.Api" />Project file
paket add LogicMonitor.Api --version 3.240.7
#r "nuget: LogicMonitor.Api, 3.240.7"
#:package LogicMonitor.Api@3.240.7
#addin nuget:?package=LogicMonitor.Api&version=3.240.7Install as a Cake Addin
#tool nuget:?package=LogicMonitor.Api&version=3.240.7Install as a Cake Tool
The LogicMonitor REST API nuget package, authored by Panoramic Data Limited.
👁 Nuget
👁 Nuget
👁 License: MIT
👁 Codacy Badge
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}");
}
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:
LM Uptime is LogicMonitor's replacement for the legacy Websites product. This library provides a strongly-typed surface for creating and managing internal/external ping and web checks as first-class resources. See for a detailed guide, including how it is backed by Resources and custom properties.
using LogicMonitor.Api.Resources.Uptime;
var pingCheck = await logicMonitorClient.CreateAsync(
new PingCheckResourceCreationDto
{
Name = "dns-google-ping",
HostName = "8.8.8.8",
PreferredCollectorId = collectorId,
SyntheticsCollectorIds = [collectorId],
TestLocation = new UptimeTestLocation { CollectorIds = [collectorId] }
},
cancellationToken);
var fetched = await logicMonitorClient.GetAsync<PingCheckResource>(pingCheck.Id, cancellationToken);
For more information on the LogicMonitor REST API, see the official documentation.
This project is licensed under the MIT License - see the file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.240.7 | 24 | 6/18/2026 |
| 3.240.1 | 82 | 6/16/2026 |
| 3.237.11 | 277 | 5/27/2026 |
| 3.237.9 | 124 | 5/20/2026 |
| 3.237.7 | 251 | 5/11/2026 |
| 3.237.6 | 154 | 5/8/2026 |
| 3.237.5 | 132 | 5/7/2026 |
| 3.237.4 | 216 | 5/6/2026 |
| 3.237.2 | 130 | 4/29/2026 |
| 3.236.15 | 242 | 4/14/2026 |
| 3.236.14 | 135 | 4/11/2026 |
| 3.236.13 | 143 | 4/8/2026 |
| 3.236.8 | 124 | 4/7/2026 |
| 3.236.7 | 118 | 4/7/2026 |
| 3.236.2 | 327 | 3/29/2026 |
| 3.235.7 | 149 | 3/27/2026 |
| 3.235.6 | 269 | 3/9/2026 |
| 3.235.4 | 159 | 3/4/2026 |
| 3.235.1 | 128 | 3/2/2026 |
| 3.229.61 | 126 | 3/2/2026 |
v3.237.6:
- Added missing privilege operations: Visit, CreateModify, and Delete to RolePrivilegeOperation enum
- Updated PrivilegeObjectType.Cp summary to clarify it represents Control Panel administrative configuration pages
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