Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-27-2017 10:06 PM
Hi ,
I am unable to access AppDynamics REST API.
If I write a sample code using the python client
from appd.request import AppDynamicsClient c = AppDynamicsClient('URL','group','appd@123') for app in c.get_applications(): print app.id, app.name
It works fine .
But if I do a simple REST call like the following
I get the following response
import requests usr =<uid> pwd =<pwd> url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON' response = requests.get(url,auth=(usr,pwd)) print 'response',response
response <Response [401]>
Am I doing anything wrong here ? In case anybody has faced such issue please let me know
06-28-2017 03:16 AM
Hi Ayan,
Could you please verify the password is correct by login in to the controller with the credentials. As 401 Unauthorized
Error means the page you were trying to see needs valid user ID and password.
Thanks,
Atyuha Pal
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form