REST API - Export Dashboards
Would it be possible please to provide an API call that will allow for the export of dashboards to JSON format, much like that provided for datasources '/setting/datasources?format=xml'.
I've attempted to use the /dashboard/dashboards URI, and then send the content to a file, but this reports as invalid content when attempting to upload back into LM.
It would be great if this could just be handled natively in product.
nrichards
Posted 7 years ago·Last reply 7 years ago
3 comments
Sarah Terry
·7 years ago@nrichards Yes! The resources & methods are all auto-documented on this page: https://www.logicmonitor.com/swagger-ui-master/dist/
nrichards
OP7 years ago@Sarah Terry Thanks Sarah. That worked.
As an aside, is there a way of identifying all of the methods associated with the new V2 Rest API?
Many Thanks,
~Nick
Sarah Terry
·7 years ago@nrichards Yes! You can use v2 of the API to GET /dashboard/dashboards/ID?template=true, and the response is a JSON export of the dashboard (the same content you'd get from exporting the dashboard from the UI). Let us know if this doesn't solve your problem.