Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
Is there a way you can export Dashboards in any format like JSON or XML?
^ Edited by @Ryan.Paredez to include the location of the original comment.
Note: This comment was split off into its own post from this original post: How to export the list of all Custom Dashboards in the controller into a file?
Solved! Go to Solution.
You can create a simple script to query all the dashboard ID's
Then just loop through the dashboard id's, example below GET Query
We used a Python script to do this task, for regular backups of teh dashboards into JSON backups format
Thanks for the tip @Mario.Morelli .
I tried a simple curl test to the url https://<controller URL>/controller/restui/dashboards/getPermissionsForDashboards and I got an error.
curl --user xxxxxx@xxxxx:xxxx https://appdynamics_controller:8181/controller/restui/dashboards/getPermissionsForDashboards
HTTP Error 401 Unauthorized
This request requires HTTP authentication
Is this expected ? HTTP is blocked in our environment, so cant test that. Also, we are going through a LB.
My Apologies, I gave you the incorrect details, please find below method to query it:)
1) Get the JESSIONID and X-CSRF-TOKEN with user having permissions
curl -i --user <USERNAME>@<Account>:<PASSWORD> https://<Controller-URL>/controller/auth?action=login
2) Run the following CURL call with JESSIONID and X-CSRF-TOKEN from step 1?
curl -i -H "X-CSRF-TOKEN:<TOKEN FROM ABOVE>" -H "Cookie: JSESSIONID=<JSESSION ID FROM ABOVE>; X-CSRF-TOKEN=<TOKEN>;" -H "Content-Type: application/json" -H "Accept: application/json" https://<Controller URL>/controller/restui/dashboards/getAllDashboardsByType/false
curl -i -H "Cookie:JSESSIONID=9b81672143e228e4eb73fdea89a9;" -H "X-CSRF-TOKEN:6fece457az197155a8f68320cfa781eaeb88991b" -H "Content-Type: application/json" -H "Accept: application/json" https://<controller url>/controller/restui/dashboards/getAllDashboardsByType/false"
This will output all dashboards, with one of the attributes being the Dashboard ID, which you can then use in the last query
https://<controller url>/controller/CustomDashboardImportExportServlet?dashboardId=<dashboard ID>