<?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 REST API access 401 error in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/REST-API-access-401-error/m-p/726579#M5351</link>
    <description>&lt;P&gt;I am trying to access appdynamics rest api using curl i get 401 unauthorized&amp;nbsp;&lt;/P&gt;

&lt;P&gt;provided the right user which I created on AppD.&lt;/P&gt;

&lt;P&gt;user1@customer1:secret&lt;/P&gt;

&lt;P&gt;but doesn't work&lt;/P&gt;

&lt;P&gt;Controller URL :&amp;nbsp;&lt;A href="https://biker201802020649579.saas.appdynamics.com/controller/#/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://biker201802020649579.saas.appdynamics.com/controller/#/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Api&amp;nbsp;that i call&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;curl --user user@customer1:pwd &lt;A href="https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON" target="_blank" rel="noopener nofollow noreferrer"&gt;https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON&lt;/A&gt; --verbose&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 16:41:24 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2018-02-02T16:41:24Z</dc:date>
    <item>
      <title>REST API access 401 error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/REST-API-access-401-error/m-p/726579#M5351</link>
      <description>&lt;P&gt;I am trying to access appdynamics rest api using curl i get 401 unauthorized&amp;nbsp;&lt;/P&gt;

&lt;P&gt;provided the right user which I created on AppD.&lt;/P&gt;

&lt;P&gt;user1@customer1:secret&lt;/P&gt;

&lt;P&gt;but doesn't work&lt;/P&gt;

&lt;P&gt;Controller URL :&amp;nbsp;&lt;A href="https://biker201802020649579.saas.appdynamics.com/controller/#/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://biker201802020649579.saas.appdynamics.com/controller/#/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Api&amp;nbsp;that i call&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;curl --user user@customer1:pwd &lt;A href="https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON" target="_blank" rel="noopener nofollow noreferrer"&gt;https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON&lt;/A&gt; --verbose&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/REST-API-access-401-error/m-p/726579#M5351</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-02-02T16:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: REST API access 401 error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/REST-API-access-401-error/m-p/726580#M5352</link>
      <description>&lt;P&gt;Hi Saif,&lt;/P&gt;

&lt;P&gt;As per the controller url, it looks you are on saas environment. So, customer1 is a default account name for on-prem controller. In your case, the account name should be '&lt;SPAN class="s1"&gt;biker201802020649579&lt;/SPAN&gt;'. Please try with the below url and let us know if it helps.&lt;/P&gt;


&lt;PRE&gt;curl --user user@biker201802020649579:pwd https://biker201802020649579.saas.appdynamics.com/controller/rest/applications?output=JSON
&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Yogesh&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 03:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/REST-API-access-401-error/m-p/726580#M5352</guid>
      <dc:creator>Yogesh_Chouk</dc:creator>
      <dc:date>2018-02-05T03:39:00Z</dc:date>
    </item>
  </channel>
</rss>

