Splunk AppDynamics

credentials for using the controller API

CommunityUser
Splunk Employee
Splunk Employee

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.

Labels (3)
0 Karma
1 Solution

Atyuha_Pal
Contributor

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

View solution in original post

Atyuha_Pal
Contributor

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

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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...