<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Facing issue with AppDynamics API REST call authentication in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Facing-issue-with-AppDynamics-API-REST-call-authentication/m-p/720682#M2152</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;I am unable to access AppDynamics REST API.&lt;BR /&gt;If I write a sample code using the python client &lt;/P&gt;
&lt;PRE&gt;from appd.request import AppDynamicsClient
c = AppDynamicsClient('URL','group','appd@123')
for app in c.get_applications():
print app.id, app.name&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;It works fine .&lt;BR /&gt; &lt;BR /&gt;But if I do a simple REST call like the following &lt;BR /&gt;I get the following response &lt;/P&gt;
&lt;PRE&gt;import requests
usr =&amp;lt;uid&amp;gt;
pwd =&amp;lt;pwd&amp;gt;
url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON'
response = requests.get(url,auth=(usr,pwd))
print 'response',response
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;response &amp;lt;Response [401]&amp;gt;&lt;BR /&gt;Am I doing anything wrong here ? In case anybody has faced such issue please let me know&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 05:06:35 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-06-28T05:06:35Z</dc:date>
    <item>
      <title>Facing issue with AppDynamics API REST call authentication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Facing-issue-with-AppDynamics-API-REST-call-authentication/m-p/720682#M2152</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;I am unable to access AppDynamics REST API.&lt;BR /&gt;If I write a sample code using the python client &lt;/P&gt;
&lt;PRE&gt;from appd.request import AppDynamicsClient
c = AppDynamicsClient('URL','group','appd@123')
for app in c.get_applications():
print app.id, app.name&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;It works fine .&lt;BR /&gt; &lt;BR /&gt;But if I do a simple REST call like the following &lt;BR /&gt;I get the following response &lt;/P&gt;
&lt;PRE&gt;import requests
usr =&amp;lt;uid&amp;gt;
pwd =&amp;lt;pwd&amp;gt;
url ='http://10.201.51.40:8090/controller/rest/applications?output=JSON'
response = requests.get(url,auth=(usr,pwd))
print 'response',response
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;response &amp;lt;Response [401]&amp;gt;&lt;BR /&gt;Am I doing anything wrong here ? In case anybody has faced such issue please let me know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 05:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Facing-issue-with-AppDynamics-API-REST-call-authentication/m-p/720682#M2152</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-06-28T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue with AppDynamics API REST call authentication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Facing-issue-with-AppDynamics-API-REST-call-authentication/m-p/720683#M2153</link>
      <description>&lt;P&gt;Hi Ayan,&lt;/P&gt;

&lt;P&gt;Could you please &amp;nbsp;verify the password is correct by login in to the controller with the credentials. As &amp;nbsp;401 Unauthorized&lt;/P&gt;
&lt;P&gt;Error means the page you were trying to see needs valid user ID and password.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Atyuha Pal&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Facing-issue-with-AppDynamics-API-REST-call-authentication/m-p/720683#M2153</guid>
      <dc:creator>Atyuha_Pal</dc:creator>
      <dc:date>2017-06-28T10:16:32Z</dc:date>
    </item>
  </channel>
</rss>

