Splunk AppDynamics

getting 401 unauthorized error when accessing appdynamics api

CommunityUser
Splunk Employee
Splunk Employee

Hi Team,

When I am trying to retrive the metrics of my application i am getting 401 unauthorized error

thanks in advance

Labels (3)
0 Karma
1 Solution

Pratik_Maskey
Communicator

Make sure user have administrator or account owner permissions and provide the correct account name and use the username in the defined format followed by the password.

Format - username@accountname:password

Alternately you can copy the REST URL open an incognito window and hit the URL for authentication use the same format for username followed by the password.

image.png

-Thanks

View solution in original post

0 Karma

Pratik_Maskey
Communicator

How you are trying to retrieve metric data, Are you using REST API? Please refer the following document.

https://docs.appdynamics.com/display/PRO43/Metric+and+Snapshot+API#MetricandSnapshotAPI-RetrieveMetr...

-Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I am trying to access metric-data REST API of my application using postman.

I am giving the REST API, selecting basic authentication, and giving the local user credentials, which I have created, but I am still not able to access the REST api mentioned in the documentation.

I am getting 401 Unauthorized error.

thanks. 

0 Karma

Pratik_Maskey
Communicator

Make sure user have administrator or account owner permissions and provide the correct account name and use the username in the defined format followed by the password.

Format - username@accountname:password

Alternately you can copy the REST URL open an incognito window and hit the URL for authentication use the same format for username followed by the password.

image.png

-Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Yes I am using REST API
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...