You can use LogicMonitor’s REST API to programmatically export one or all datasources to XML.
As with all of our API requests, authentication is required.
Export All Datasources to XML
Export One Datasource to XML
Where the id should be the datasource id. You can find this id in the UI by looking at the URL of the datasource definition:
Note that soon we will publish the resource and method that enable you to get datasource ids with the REST API.
Example 1: Export All Datasources to XML
The following Python script returns XML for all datasources in api.logicmonitor.com and saves it to a file allDatasources.xml.
Example 2: Export One Datasource to XML
The following Python script returns XML for the datasource with id 345 in api.logicmonitor.com and saves it to a file dat345.xml.