<?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 Question in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737111#M5653</link>
    <description>&lt;P&gt;In regards to the REST API, what does the "account-id" parameter refer to, and how can I find it in my environment? I'm trying to follow the instructions listed in the documenation (&lt;A href="https://docs.appdynamics.com/display/PRO39/Use+the+AppDynamics+REST+API)" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO39/Use+the+AppDynamics+REST+API)&lt;/A&gt; so that I can create action suppressions remotely, but I don't know what to put in for account-id.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2014 17:09:08 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2014-11-13T17:09:08Z</dc:date>
    <item>
      <title>REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737111#M5653</link>
      <description>&lt;P&gt;In regards to the REST API, what does the "account-id" parameter refer to, and how can I find it in my environment? I'm trying to follow the instructions listed in the documenation (&lt;A href="https://docs.appdynamics.com/display/PRO39/Use+the+AppDynamics+REST+API)" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO39/Use+the+AppDynamics+REST+API)&lt;/A&gt; so that I can create action suppressions remotely, but I don't know what to put in for account-id.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 17:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737111#M5653</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-13T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737112#M5654</link>
      <description>&lt;P&gt;Try Customer1. If you have installed an on-premise Controller on a single-tenant platform or if you are using the AppDynamics SaaS Controller, your default account is "customer1".&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 18:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737112#M5654</guid>
      <dc:creator>Angela_Lang</dc:creator>
      <dc:date>2014-11-13T18:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737113#M5655</link>
      <description>&lt;P&gt;I tried customer1... it didn't work. I did have that in my authentication credentials, but it seems to be expecting something else entirely for this account-id parameter. In the example that they give, the account-id was just the number 2 (which, of course, I tried but had no success).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 18:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737113#M5655</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-13T18:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737114#M5656</link>
      <description>&lt;P&gt;You can get a list of your applications and their IDs using this rest call:&lt;/P&gt;
&lt;P&gt;URI: /controller/&lt;STRONG&gt;rest&lt;/STRONG&gt;/&lt;STRONG&gt;applications&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 19:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737114#M5656</guid>
      <dc:creator>Angela_Lang</dc:creator>
      <dc:date>2014-11-13T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737115#M5657</link>
      <description>&lt;P&gt;That gives me the application IDs, but not the account-id.....&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 19:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737115#M5657</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-13T19:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737116#M5658</link>
      <description>&lt;DIV&gt;If you are a saas customer, your account name (and account-id) is the segment preceding saas in your SaaS URL. For example, if your URL is: &lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV id=":vf.ma" class=""&gt;
&lt;DIV id=":vh.co"&gt;myComp.saas.appdynamics.com, Your account name would be:&amp;nbsp; myComp&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Nov 2014 23:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737116#M5658</guid>
      <dc:creator>Angela_Lang</dc:creator>
      <dc:date>2014-11-13T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737117#M5659</link>
      <description>&lt;P&gt;We're not a SaaS customer, we're on-premise......&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 03:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737117#M5659</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-14T03:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737118#M5660</link>
      <description>&lt;P&gt;Hi Jordan,&lt;/P&gt;

&lt;P&gt;Can you run the following query at controller mysql db prompt and see if that helps:&lt;/P&gt;
&lt;P&gt;shell&amp;gt; cd &amp;lt;Controller_install_dir&amp;gt;\bin&lt;/P&gt;
&lt;P&gt;shell&amp;gt; controller.bat/sh login-db&lt;/P&gt;
&lt;P&gt;mysql&amp;gt;&amp;nbsp;select name,account_id from user \G;&lt;/P&gt;
&lt;P&gt;mysql&amp;gt; select id,name from account&amp;nbsp;\G;&lt;/P&gt;

&lt;P&gt;First query will give users and there account ids and account table list the details of account.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 14:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737118#M5660</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-14T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737119#M5661</link>
      <description>&lt;P&gt;I ran the queries you suggested and only get two IDs: 1 and 2. Looks like 1 refers to the local AppDynamics accounts and 2 refers to the Active Directory accounts. However, no matter whether I use 1 or 2 as the account-id, I still can't get a response from the REST call. I get a "&lt;SPAN&gt;HTTP Status 400 - Unsupported URI is specified" HTML response.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;It doesn't help that the documentation specifies two different URIs for the same action (I've tried both, but neither work):&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;/controller/rest/accounts/&lt;EM&gt;&amp;lt;account-name&amp;gt;&lt;/EM&gt;&lt;SPAN&gt;/applications/&lt;/SPAN&gt;&lt;EM&gt;&amp;lt;application-name | application-id&amp;gt;/&lt;/EM&gt;&lt;SPAN&gt;actionsuppressions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;


&lt;P&gt;&lt;SPAN&gt;/controller/api/accounts/&lt;/SPAN&gt;&lt;EM&gt;&amp;lt;account-name&amp;gt;&lt;/EM&gt;&lt;SPAN&gt;/applications/&lt;/SPAN&gt;&lt;EM&gt;&amp;lt;application-name | application-id&amp;gt;/&lt;/EM&gt;&lt;SPAN&gt;actionsuppressions&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 18:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737119#M5661</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-14T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737120#M5662</link>
      <description>&lt;P&gt;Hi Jordan,&lt;/P&gt;

&lt;P&gt;GET HTTP method is for retrieve any action supression list and POST is for create supression lists, Can you provide the exact URL you tried and error you got on browser for GET requests and also the output of following queries issued at controller db:&lt;/P&gt;
&lt;P&gt;mysql&amp;gt; select * from application \G;&lt;/P&gt;
&lt;P&gt;mysql&amp;gt; select * from account \G;&lt;/P&gt;

&lt;P&gt;This information helps us to see whether valid id passed or not.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2014 04:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737120#M5662</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-15T04:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737121#M5663</link>
      <description>&lt;P&gt;Right now I'm just attempting to do a GET request to&amp;nbsp;retrieve all existing action suppressions. The URL I am trying is:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://s-appdynamics01.janus.cap:8090/controller/rest/accounts/2/applications/2/actionsuppressions" target="_blank" rel="nofollow noopener noreferrer"&gt;http://s-appdynamics01.janus.cap:8090/controller/rest/accounts/2/applications/2/actionsuppressions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The error I get when trying the URL is:&lt;/P&gt;

&lt;H1 id="toc-hId-474176864"&gt;HTTP Status 400 - Unsupported URI is specified&lt;/H1&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;type&lt;/STRONG&gt; Status report&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;message&lt;/STRONG&gt;Unsupported URI is specified&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;description&lt;/STRONG&gt;The request sent by the client was syntactically incorrect (Unsupported URI is specified).&lt;/P&gt;
&lt;HR /&gt;
&lt;H3 id="toc-hId-2041738915"&gt;GlassFish Server Open Source Edition 3.1.2.2&lt;/H3&gt;


&lt;P&gt;I have attached a screenshot of the output from the mysql queries you asked for.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 17:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737121#M5663</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-17T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737122#M5664</link>
      <description>&lt;P&gt;Hi Jordan.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Can you try the following URI format and see if that helps ?&lt;/P&gt;
&lt;P&gt;Ex:&lt;/P&gt;
&lt;P&gt;/controller/api/accounts/2/applications/9/actionsuppressions&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 06:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737122#M5664</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-18T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737123#M5665</link>
      <description>&lt;P&gt;When I try that format, I get the following HTML error:&lt;/P&gt;

&lt;H1 id="toc-hId-474176953"&gt;HTTP Status 404 - Not Found&lt;/H1&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;type&lt;/STRONG&gt; Status report&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;message&lt;/STRONG&gt;Not Found&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;description&lt;/STRONG&gt;The requested resource (Not Found) is not available.&lt;/P&gt;
&lt;HR /&gt;
&lt;H3 id="toc-hId-2041739004"&gt;GlassFish Server Open Source Edition 3.1.2.2&lt;/H3&gt;</description>
      <pubDate>Tue, 18 Nov 2014 13:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737123#M5665</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-18T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737124#M5666</link>
      <description>&lt;P&gt;Hi Jordan,&lt;/P&gt;

&lt;P&gt;What is the controller version ? we tried in one of our demo site running on 3.9.5.2 and it shown fine, the same did not work for us in older controller version:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37480i612DF622A4656019/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737124#M5666</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2014-11-18T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737125#M5667</link>
      <description>&lt;P&gt;Ah, maybe that's it...... looks like we're running on 3.9.4.0 build 7. Can you confirm that that version does not have this capability?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737125#M5667</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-18T17:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Question</title>
      <link>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737126#M5668</link>
      <description>&lt;P&gt;Ah, I just found the missing detail in the documentation. It says "New in 3.9.4.1". We're 0.0.0.1 version off! &amp;nbsp;&amp;gt;_&amp;lt;&lt;/P&gt;

&lt;P&gt;Thanks for all your help on this.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 21:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/REST-API-Question/m-p/737126#M5668</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2014-11-18T21:29:17Z</dc:date>
    </item>
  </channel>
</rss>

