Getting Data

You can use LogicMonitor REST API v3 to get data. You must authenticate yourself before making the API request. Common Query Parameters The following query parameters are common to all GET requests for Data APIs.  Parameter Type Description start Integer The start time (in epoch seconds) for returned data. It defaults to the selected graph time range. … Continued

Creating Services Using LogicMonitor REST API v3

LogicMonitor Service Insight enables you to create logical services to monitor at service level. A service can be created on one or more monitored devices available under Resources. Resources include devices, cloud resources, kubernetes resources (for example, pods, nodes, services,  deployments, and so on). For more information, see About LM Service Insights.  You can manage … Continued

Getting Access Log Details

You can use LogicMonitor REST API v3 to get access log details. You must authenticate yourself before making the API request. URI: GET /setting/accesslogs Parameter Type Description format String It is the response format of the API. The default format is JSON. Alternatively, you can set it as CSV for downloading CSV file that contains audit log details. fields String … Continued

Deleting Users

You can use LogicMonitor REST API v3 to delete user details. You must authenticate yourself before making the API request. URI: DELETE /setting/admins/{id} Parameter Type Description id Integer (Mandatory) The ID of the user you want to delete. The following Python script deletes user 32 from account api.logicmonitor.com

Getting Dashboard Details

You can use LogicMonitor REST API v3 to get dashboard details. You must authenticate yourself before making the API request. Getting List of Dashboards URI: GET /dashboard/dashboards Parameter Type Description fields String The response is filtered to include only the specified fields for each object. You can provide a list of properties separated by a … Continued

Deleting Dashboard

You can use LogicMonitor REST API v3 to delete dashboards. You must authenticate yourself before making the API request. URI: DELETE /dashboard/dashboards/{id} Parameter Type Description id Integer (Mandatory) The ID of the dashboard that you want to delete.

Updating Dashboard Details

You can use LogicMonitor REST API v3 to update dashboard details. You must authenticate yourself before making the API request. URI: PATCH /dashboard/dashboards/{id} URI: PUT /dashboard/dashboards/{id} Parameter Type Description id Integer (Mandatory) The ID of the dashboard that you want to update. overwriteGroupFields Boolean By default, the value is set to false.If it is set … Continued

Adding Dashboards

You can use LogicMonitor REST API v3 to add dashboards to your LogicMonitor account. You must authenticate yourself before making the API request. URI: POST /dashboard/dashboards Parameter Type Description owner String If the dashboard is private, the owner is listed, else the field remains empty. It defaults to the user who adds the dashboard. template … Continued

Getting API Token Details

You can use LogicMonitor REST API v3 to get API token details. You must authenticate yourself before making the API request. Getting List of API Tokens Across Users You can include the following query parameters to manage the kind of data to include in the response and how it is formatted. URI: GET/setting/admins/apitokens Parameter Type Description … Continued

Adding API Tokens

You can use LogicMonitor REST API v3 to add API tokens. You must authenticate yourself before making the API request. URI: POST /setting/admins/{adminID}/apitokens Parameter Type Description adminID Integer (Mandatory) The ID of the user for which you want to add API token. type String The default value is API token. note String Note associated with the … Continued