<?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 Re: Custom Dashboard panels REST API in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19269#M688</link>
    <description>&lt;P&gt;I would use &lt;EM&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&lt;/EM&gt; REST endpoint with appropriate &lt;EM&gt;count&lt;/EM&gt; and &lt;EM&gt;offset&lt;/EM&gt; parameters to get the list of dashboards. If you prefer JSON response use &lt;EM&gt;output_mode=json&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;The response is list of dashboard and for each dashboard there are &lt;EM&gt;acl.app&lt;/EM&gt; and &lt;EM&gt;acl.owner&lt;/EM&gt; attribute, which can tell you the what app does this dashboard belong to and who is the owner.&lt;/P&gt;

&lt;P&gt;If you know which user and which app: you can also use &lt;EM&gt;search&lt;/EM&gt; paramater to filter the results. The resulting REST would look something like:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;all dashboards by admin&lt;BR /&gt;
&lt;PRE&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&amp;amp;search=eai%3Aacl.owner%3Dadmin&lt;/PRE&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;all dashboards by admin within search app&lt;BR /&gt;
&lt;PRE&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&amp;amp;search=eai%3Aacl.owner%3Dadmin%20AND%20eai%3Aacl.app=search&lt;/PRE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:48:14 GMT</pubDate>
    <dc:creator>nmistry_splunk</dc:creator>
    <dc:date>2020-09-28T13:48:14Z</dc:date>
    <item>
      <title>Custom Dashboard panels REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19268#M687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Our requirement is to show dashboard panels created by users on a custom GUI(graphical user interface). We use REST API to fetch the list of custom dashboard panels. The REST API we are using is: &lt;CODE&gt;"/servicesNS/{arg1}/{arg2}/data/ui/views/{arg3}"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The issue we are facing is: Say a user creates two dashboard panels with same name, but with different access restrictions: one as private and one as public. Only the public are returned by REST API. The private panels are not retrieved. Where as if i login to splunk web, i can see both being listed there. How to solve this bug in REST API.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Strive&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19268#M687</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-04-29T17:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Dashboard panels REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19269#M688</link>
      <description>&lt;P&gt;I would use &lt;EM&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&lt;/EM&gt; REST endpoint with appropriate &lt;EM&gt;count&lt;/EM&gt; and &lt;EM&gt;offset&lt;/EM&gt; parameters to get the list of dashboards. If you prefer JSON response use &lt;EM&gt;output_mode=json&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;The response is list of dashboard and for each dashboard there are &lt;EM&gt;acl.app&lt;/EM&gt; and &lt;EM&gt;acl.owner&lt;/EM&gt; attribute, which can tell you the what app does this dashboard belong to and who is the owner.&lt;/P&gt;

&lt;P&gt;If you know which user and which app: you can also use &lt;EM&gt;search&lt;/EM&gt; paramater to filter the results. The resulting REST would look something like:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;all dashboards by admin&lt;BR /&gt;
&lt;PRE&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&amp;amp;search=eai%3Aacl.owner%3Dadmin&lt;/PRE&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;all dashboards by admin within search app&lt;BR /&gt;
&lt;PRE&gt;/servicesNS/-/-/data/ui/views?sort_mode=natural&amp;amp;count=25&amp;amp;search=eai%3Aacl.owner%3Dadmin%20AND%20eai%3Aacl.app=search&lt;/PRE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19269#M688</guid>
      <dc:creator>nmistry_splunk</dc:creator>
      <dc:date>2020-09-28T13:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Dashboard panels REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19270#M689</link>
      <description>&lt;P&gt;Thanks. We did some modifications based on your answer and it worked for us.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 09:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19270#M689</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2013-05-23T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Dashboard panels REST API</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19271#M690</link>
      <description>&lt;P&gt;When searching the REST API using curl, I find having curl do the URL encoding is much easier to read:&lt;BR /&gt;
curl --get --data-urlencode "search=eai:acl.owner=USER_NAME_HERE" &lt;A href="https://server:8089/servicesNS/-/-/data/ui/views" target="_blank"&gt;https://server:8089/servicesNS/-/-/data/ui/views&lt;/A&gt;&lt;BR /&gt;
(Note that the --get is needed as otherwise --data-urlencode will change the request to a POST.)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-Dashboard-panels-REST-API/m-p/19271#M690</guid>
      <dc:creator>AppleMark</dc:creator>
      <dc:date>2020-09-29T18:20:48Z</dc:date>
    </item>
  </channel>
</rss>

