Splunk AppDynamics

Is there a REST API for returning a dashboard's share URL?

Daryl_Mercadel
New Member

I am running AppDynamics OnPrem 24.4.2. I am able to import custom dashboards on the fly but unable to export the dashboard share URL once it is created and shared manually in the console. 

I was assuming that the configuration would be part of the exported json file from a dashboard that had already been shared and was working, but I do not see it anywhere.

Is there an API to:

  1. Share a dashboard programmatically
  2. Export/GET the URL once it has been shared.
Labels (1)
0 Karma

Morelz
Motivator

Hi, you can actually get the URL Pieces via the API.

When you share a dashboard, you create a securitytoken, which you can get using the standard Dashboard API

 

API: https://<Controller FQDN>/controller/restui/dashboards/getDashboard/<Dashboard ID>

The response will contain a securitytoken if it has been shared.

All you then do is build the shared URL with that token

https://<Controller FQDN>/controller/dashboards.jsp?desktopView=false#/location=DASHBOARD_VIEWER&token=<securitytoken>&timeRange=last_1_hour.BEFORE_NOW.-1.-1.60

Adjust time range to whatever you need for your dashboard as well

 

Let me know if this doesn't work for you 🙂

 

0 Karma

open768
Path Finder

hi @dardar , its complicated. in essence yes there is an API, as everything that you can see in the controller UI has a restui API behind it. However while restui APIs are used (eg Dexter uses them, my rapport app uses them) they are not documented and subject to change.

0 Karma

iamryan
Community Manager
Community Manager

Hi @Daryl.Mercadel,

Thanks for asking your question on the Community. Here are some APIs you can look into: https://docs.appdynamics.com/appd/onprem/24.x/latest/en/extend-appdynamics/splunk-appdynamics-apis

0 Karma

Daryl_Mercadel
New Member

Ryan,

Thank you for the quick reply. It looks like there is no way, via an API, to pull the Dashboard's share URL. I am pursuing a possible solution with an SQL query to the appD database and see what that can provide. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...