Splunk AppDynamics

Trouble accessing controller API

CommunityUser
Splunk Employee
Splunk Employee

Hi All

Apologises if I've missed something obvious but I've been having some difficulties accessing my hosted controller's API. I want to collect metric data programmatically and have been using Chrome's Postman extension to try and query my controller's API. I've been trying to access it using the following:

URL: https://<MyControllersName>.saas.appdynamics.com/controller/rest/applications

Headers:

user: <username>@<accountname>:<accountpassword>

However I keep getting a 401 Unauthorized response back from this. I have also tried the following as suggested here: https://docs.appdynamics.com/display/PRO41/Use+the+AppDynamics+REST+API 

URL: https://<MyControllersName>.saas.appdynamics.com/controller/rest/applications

Headers:

Account: <MyAccountName>

Username: <Username>

Password: <AccountPassword>

To add a bit more context I am using the pro free trial. I have tried both my AppDynamics login name and my controller username for authentication which has both failed. The password I am using is my AppDynamics account password. I have found that controllers also have passwords however when following the instructions here: https://community.appdynamics.com/t5/Knowledge-Base/How-to-reset-the-controller-password/ta-p/24115 ... am unable to get to the admin console as appending /admin.jsp to my controller's URL just timesout. As a result I've been using my AppDynamics log in account password instead. 

Any help would be greatly appreciated

Labels (3)
0 Karma
1 Solution

Yogesh_Chouk
Builder

Hi,

You need to provide the controller password which you use to login into the controller UI. Make sure you pass the correct credentials as controller's username and password and having enough access to use the api. 

Also, as per your controller url, we assume that it is a saas controller. Saas controller's admin.jsp page access is not available for customers whose controller is saas hosted. This is for on-prem customers. Let us know if you are using saas or on-prem.

Please refer below for more information

https://docs.appdynamics.com/display/PRO43/Using+the+Controller+APIs#UsingtheControllerAPIs-Authenti...

Provide the relevant screenshots in case you still face an issue.

Thanks,

Yogesh

View solution in original post

Yogesh_Chouk
Builder

Hi,

You need to provide the controller password which you use to login into the controller UI. Make sure you pass the correct credentials as controller's username and password and having enough access to use the api. 

Also, as per your controller url, we assume that it is a saas controller. Saas controller's admin.jsp page access is not available for customers whose controller is saas hosted. This is for on-prem customers. Let us know if you are using saas or on-prem.

Please refer below for more information

https://docs.appdynamics.com/display/PRO43/Using+the+Controller+APIs#UsingtheControllerAPIs-Authenti...

Provide the relevant screenshots in case you still face an issue.

Thanks,

Yogesh

CommunityUser
Splunk Employee
Splunk Employee

Thanks, that was my issue I was providing the wrong password! 

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...