Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

REstApi access 401 error

Highlighted
Wanderer

REstApi access 401 error

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

 

provided the right user which i created on AppD.

 

user1@customer1:secret

 

but doesnt 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

 

 

 

REstApi access 401 error
1 REPLY 1
AppDynamics Team

Re: REstApi access 401 error

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



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.