cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

credentials for using the controller API

SOLVED
nahalam
New Poster

credentials for using the controller API

I am looking into using the controller API to get the reporting data out of my app. Following this link, using the command 

 

curl --user user1@customer1:secret http://demo.appdynamics.com/controller/rest/applications?output=JSON

what is user1, customer1 and secret here?

is user1 my username nahalam?

I think customer1 is the account name that starts with lee....

and secret is the access key I have in /etc/appdynamics.cfg file?

 

Using those, I get below error

curl: (6) Could not resolve host: demo.appdynamics.com

 

Please clarify.

 

By replying you agree to the Terms and Conditions of the AppDynamics Community.
credentials for using the controller API
1 REPLY 1
Atyuha.Pal
AppDynamics Team

Hi,

curl --user user1@customer1:secret http://demo.appdynamics.com/controller/rest/applications?output=JSON

user1-->username

customer1-->For a single-tenant Controller (which is the case for most on-premises Controllers), the account name should be the account name for the primary default account, which is "customer1".

If you are using a multi-tenant Controller (most SaaS Controllers), replace customer1 with your own, instance-specific account name. 

secret-->password

Example:

curl --user <your_username>@<your_accountname>:<your_password> http://<controller_host>:<controller_port>/controller/rest/applications?output-JSON
curl --user <your_username>@<your_accountname>:<your_password> http://<SaaS_url>/controller/rest/applications?output-JSON

Thanks,

Atyuha



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