Splunk AppDynamics

401 unauthorized in Rest Api

CommunityUser
Splunk Employee
Splunk Employee

Hi Team,

I just created an appdynamics trial account and create a saas controller. when I call a GET to list applications it shows unauthorized 401 as response status.

i used postman as my rest-client

URL = https://baseball201801292052283.saas.appdynamics.com/controller/rest/applications?output=JSON

used basic authentication 

  username  = <username>@baseball201801292052283

  password = <password which is used for web login>

any solution?

Thanks

Ishara

Labels (3)
0 Karma
1 Solution

Pratik_Maskey
Communicator

If its a SAML user we will not be able to hit the REST URL. Only LDAP and local AppDynamics user are allowed to hit the REST URL with required permissions. Please try to hit the URL with an existing local user (AppD user or create a local user) and let us know how it goes.

Thanks

View solution in original post

0 Karma

Pratik_Maskey
Communicator

If its a SAML user we will not be able to hit the REST URL. Only LDAP and local AppDynamics user are allowed to hit the REST URL with required permissions. Please try to hit the URL with an existing local user (AppD user or create a local user) and let us know how it goes.

Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

creating local user was the solution.

Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Can you tell me how to create the local user in appdynamics? I am facing the same unauthorized problem in postman.

Thanks

0 Karma

Pratik_Maskey
Communicator

Hi Shruti,

Either you can use RBAC API to create a local user or you can navigate to setting symbol (top right side) -> Administration and create a user.

https://docs.appdynamics.com/display/PRO45/RBAC+API#RBACAPI-CreateUser

Note: To use the RBAC REST API, you must be the account owner or have administer user permission.

-Thanks

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks. It worked.

0 Karma

open768
Explorer

Hi I have an example open source application that makes use of the rest UIs, check out https://chickenkatsu.co.uk/apps/reporter and  https://github.com/open768/appdynamics-reporter

Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...