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

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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