LogicMonitor.Api 3.236.14

dotnet add package LogicMonitor.Api --version 3.236.14
                    
NuGet\Install-Package LogicMonitor.Api -Version 3.236.14
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LogicMonitor.Api" Version="3.236.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LogicMonitor.Api" Version="3.236.14" />
                    
Directory.Packages.props
<PackageReference Include="LogicMonitor.Api" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LogicMonitor.Api --version 3.236.14
                    
#r "nuget: LogicMonitor.Api, 3.236.14"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LogicMonitor.Api@3.236.14
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LogicMonitor.Api&version=3.236.14
                    
Install as a Cake Addin
#tool nuget:?package=LogicMonitor.Api&version=3.236.14
                    
Install as a Cake Tool

LogicMonitor.Api

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}");
}

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

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