<?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: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143807#M8700</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ curl -k -u admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/search/data/ui/views" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/data/ui/views&lt;/A&gt; -d "name=foo&amp;amp;eai:data=&amp;lt;dashboard&amp;gt;&amp;lt;label&amp;gt;weeee&amp;lt;/label&amp;gt;&amp;lt;/dashboard&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Creating a knowledge object always is a POST to the root of the knowledge object with a name passed as a parameter, modifying is a POST to that knowledge object itself with the name in the path.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Apr 2015 17:20:50 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-04-05T17:20:50Z</dc:date>
    <item>
      <title>Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143801#M8694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to automate restoring splunk dashboards from their xml source. I've found the xml sources for my dashboards in &lt;BR /&gt;
$SPLUNK_HOME/etc/apps/search/local/data/ui/views. I'd like to keep a copy of these in git and have a script that would utilize the splunk REST API or Javascript SDK to populate the dashboards into my splunk using the xml sources. So my question is if the splunk API or Javascript SDK allows for this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143801#M8694</guid>
      <dc:creator>w22chaudh</dc:creator>
      <dc:date>2014-12-04T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143802#M8695</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;

&lt;P&gt;The relevant REST endpoint is &lt;CODE&gt;/servicesNS/user_name/app_name/data/ui/views/view_name&lt;/CODE&gt;, but I'm afraid its docs are missing from docs.splunk.com/Documentation/Splunk/6.2.0/RESTREF/RESTknowledge so you'd have to go and guess/reverse-engineer the correct parameters. Do submit feedback at the bottom of that page to let the docs team know.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143802#M8695</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-12-04T22:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143803#M8696</link>
      <description>&lt;P&gt;Martin's right.  Per the special auto-doccing URL /servicesNS/user_name/app_name/data/ui/views/_new , the required parameters are eai:data and the implicit name.  You can accomplish a Create by POSTing to views/my_view_name and specifying the raw XML content in the eai:data parameter.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143803#M8696</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2020-09-28T19:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143804#M8697</link>
      <description>&lt;P&gt;I'm looking for the same thing. Let's say I wan't to change the XML source, how could my cURL command look like?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 09:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143804#M8697</guid>
      <dc:creator>deanilol</dc:creator>
      <dc:date>2015-04-03T09:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143805#M8698</link>
      <description>&lt;P&gt;Say you have a dashboard called &lt;CODE&gt;curl&lt;/CODE&gt; owned by &lt;CODE&gt;admin&lt;/CODE&gt; privately in the &lt;CODE&gt;search&lt;/CODE&gt; app. Then you can run this to overwrite its XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ curl -k -u admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/search/data/ui/views/curl" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/data/ui/views/curl&lt;/A&gt; -d "eai:data=&amp;lt;dashboard&amp;gt;&amp;lt;label&amp;gt;weeee&amp;lt;/label&amp;gt;&amp;lt;/dashboard&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Apr 2015 21:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143805#M8698</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-04-04T21:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143806#M8699</link>
      <description>&lt;P&gt;awesome answer!&lt;/P&gt;

&lt;P&gt;how could the cURL command look if I want to create a new dashboard using POST. Tried to do it the way Amrit tells it but I get "argument is not supported by this handler". &lt;/P&gt;

&lt;P&gt;This would help me alot!!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2015 11:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143806#M8699</guid>
      <dc:creator>deanilol</dc:creator>
      <dc:date>2015-04-05T11:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143807#M8700</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ curl -k -u admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/search/data/ui/views" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/data/ui/views&lt;/A&gt; -d "name=foo&amp;amp;eai:data=&amp;lt;dashboard&amp;gt;&amp;lt;label&amp;gt;weeee&amp;lt;/label&amp;gt;&amp;lt;/dashboard&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Creating a knowledge object always is a POST to the root of the knowledge object with a name passed as a parameter, modifying is a POST to that knowledge object itself with the name in the path.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2015 17:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143807#M8700</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-04-05T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143808#M8701</link>
      <description>&lt;P&gt;Thank you, @martin_mueller and @amrit, for your discussion of these endpoints. FYI, there is now documentation for /views and /views/{name} here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/RESTREF/RESTknowledge#data.2Fui.2Fviews"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/RESTREF/RESTknowledge#data.2Fui.2Fviews&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 00:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143808#M8701</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-10-09T00:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143809#M8702</link>
      <description>&lt;P&gt;Hi. Is there any way to retrieve the data from dashboard using REST API.&lt;BR /&gt;
/servicesNS/user_name/app_name/data/ui/views/view_name, this URL will give us the info about the dashboard.&lt;BR /&gt;
i want the data to be pulled from dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143809#M8702</guid>
      <dc:creator>vamsy7</dc:creator>
      <dc:date>2020-09-29T09:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use the Splunk REST API or Javascript SDK to create dashboards in Splunk using the XML sources?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143810#M8703</link>
      <description>&lt;P&gt;You should ask a separate question, @vamsy7.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 19:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-use-the-Splunk-REST-API-or-Javascript-SDK-to-create/m-p/143810#M8703</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-08-17T19:50:23Z</dc:date>
    </item>
  </channel>
</rss>

