Dashboards & Visualizations

REST API > Export Dashboard as PDF

neptoon
Engager

Is there a REST API method to export an existing dashboard as PDF (like I would do in the web interface)? The documentation does not really provide any hints or I am not seeing them.

Tags (2)
1 Solution

muebel
SplunkTrust
SplunkTrust

Hi neptoon, It doesn't seem that there is an endpoint available in the REST interface, but you should be able to use the URL described here : https://answers.splunk.com/answers/223655/can-i-export-pdf-via-rest.html

curl -u admin:{{password}} -k 'https://localhost:8089/services/pdfgen/render?input-dashboard={{your_dashboard}}&namespace={{your_namespace}}&paper-size=a4-landscape' >> test.pdf

Please let me know if this answers your question!

View solution in original post

muebel
SplunkTrust
SplunkTrust

Hi neptoon, It doesn't seem that there is an endpoint available in the REST interface, but you should be able to use the URL described here : https://answers.splunk.com/answers/223655/can-i-export-pdf-via-rest.html

curl -u admin:{{password}} -k 'https://localhost:8089/services/pdfgen/render?input-dashboard={{your_dashboard}}&namespace={{your_namespace}}&paper-size=a4-landscape' >> test.pdf

Please let me know if this answers your question!

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...