Splunk AppDynamics

REST API access 401 error

CommunityUser
Splunk Employee
Splunk Employee

I am trying to access appdynamics rest api using curl i get 401 unauthorized 

provided the right user which I created on AppD.

user1@customer1:secret

but doesn't work

Controller URL : https://biker201802020649579.saas.appdynamics.com/controller/#/

Api that i call 

curl --user user@customer1:pwd https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON --verbose

Labels (3)
0 Karma

Yogesh_Chouk
Builder

Hi Saif,

As per the controller url, it looks you are on saas environment. So, customer1 is a default account name for on-prem controller. In your case, the account name should be 'biker201802020649579'. Please try with the below url and let us know if it helps.

curl --user user@biker201802020649579:pwd https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON

Thanks,

Yogesh

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...