AppDynamics Knowledge Base

How to bulk delete custom dashboards using API

How to bulk delete custom dashboards using API

 
  1. To bulk delete custom dashboards using a REST API, begin by fetching the JESSIONID and X-CSRF-TOKEN for the user with login access to the Controller UI:
    • curl -i --user <<userName>>@<<accountName>> https://demo.saas.appdynamics.com/auth?action=login
  2. Next, execute the following CURL call with the JESSIONID and X-CSRF-TOKEN from the previous step. This will delete the dashboards.
    • curl -X POST -H "Cookie:JSESSIONID=<<jsessionId>>;" -H "X-CSRF-TOKEN:<<tokenValue>>" -H "Content-Type: application/json" -H "Accept: application/json" https://demo.saas.appdynamics.com/controller/restui/dashboards/deleteDashboards -d [1,2,3,...<<dashbaordIds>>]
Labels (1)
Comments

How to delete  a dashboard from UI


@Narendra.Reddy wrote:
 
  1. To bulk delete custom dashboards using a REST API, begin by fetching the JESSIONID and X-CSRF-TOKEN for the user with login access to the Controller UI:
    • curl -i --user <<userName>>@<<accountName>> https://demo.saas.appdynamics.com/auth?action=login
  2. Next, execute the following CURL call with the JESSIONID and X-CSRF-TOKEN from the previous step. This will delete the dashboards.
    • curl -X POST -H "Cookie:JSESSIONID=<<jsessionId>>;" -H "X-CSRF-TOKEN:<<tokenValue>>" -H "Content-Type: application/json" -H "Accept: application/json" https://demo.saas.appdynamics.com/controller/restui/dashboards/deleteDashboards -d [1,2,3,...<<dashbaordIds>>]

I need to know the deletion of custom dashboard from the AppD web cosnole and than doing aPI

Hi Lijin,

From the Dashboard & Reports -> Dashboard -> shift+selecting the dashboards, we can build delete the dashboards.

image.png

Great thanks I got it

Version history
Last update:
‎10-26-2017 08:07 AM
Updated by: