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.
When I am invoking a REST URI from the browser using an URL like the following
I am getting the output like the following
from appd.request import AppDynamicsClient client = AppDynamicsClient("<URL>", "<USERID>", "<PASSWD>") metrics = client.get_metrics('Overall Application Performance|Number of Very Slow Calls',4,'BEFORE_NOW',60,True) print 'metrics details ',metrics.__dict__
I am trying to do the same but one strange thing noticed there .
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 call like the following
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
I get the following response
response <Response >
Am I doing anything wrong here ?