Adding DiagnosticSources
Last updated - 17 April, 2026
You can use LogicMonitor REST API v3 to add a DiagnosticSource module. You must authenticate before making the API request.
URI: POST /setting/diagnosticssources
The following table describes parameters used in the API request:
| Parameter | Type | Description |
|---|---|---|
accessGroups | String | Access group details with which the DiagnosticSource is mapped. This includes the following parameters:
|
groovyScript | String | DiagnosticSource Groovy script that you want to run. |
description | String | Description for the DiagnosticSource. |
appliesTo | String | AppliesTo setting for the DiagnosticSource. |
technology | String | Technical Notes for the DiagnosticSource. |
tags | String | Tags for the DiagnosticSource. |
originRegistryId | String | The Registry ID of the Exchange Integration that this module is based on. Including this field sets the module’s import base and marks the Registry ID version as audited. |
scriptType | String | Type of script on which the DiagnosticSource script is based. Supported script types are Groovy and PowerShell. |
accessGroupIds | Integer | ID of access groups with which the DiagnosticSource is mapped. |
group | String | Group the DiagnosticSource is in. |
Executing DiagnosticSources
You can use LogicMonitor REST API v3 to trigger DiagnosticSource module for host.
URI: POST /setting/diagnosticssources/executemanually
The following table describes parameters used in the API request:
| Parameter | Type | Description |
|---|---|---|
diagnosticId | Integer | (Mandatory) DiagnosticSource module ID. |
hostId | Integer | (Mandatory) The host ID |
alertId | String | The alert ID. |
hostDiagnosticSourceId | Integer | (Mandatory) DiagnosticSource module host ID. |
Importing DiagnosticSources Using JSON
You can use LogicMonitor REST API v3 to import DiagnosticSource module using JSON.
There are no parameters in this API request. To get a response, use the URI in the API request.
URI: POST /setting/diagnosticssources/importjson