<?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: update default.meta stanzas using REST API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402483#M71578</link>
    <description>&lt;P&gt;---Current---&lt;BR /&gt;
[views/]&lt;BR /&gt;
access = read : [ admin ], write : [ admin ]&lt;/P&gt;

&lt;P&gt;----Expected---&lt;BR /&gt;
[views/]&lt;BR /&gt;
access = read : [ user], write : [user ]&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2019 09:23:16 GMT</pubDate>
    <dc:creator>ganesh_crms</dc:creator>
    <dc:date>2019-07-22T09:23:16Z</dc:date>
    <item>
      <title>update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402479#M71574</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
    How to update default.meta stanzas using REST API. Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 00:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402479#M71574</guid>
      <dc:creator>ganesh_crms</dc:creator>
      <dc:date>2019-07-22T00:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402480#M71575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please provide more information about what you would like to change in .meta files ? Additionally it is not good idea to change anything in &lt;CODE&gt;default.meta&lt;/CODE&gt; because it will overwrite when you upgrade the app/add-on, so best practice is to change permissions in &lt;CODE&gt;local.meta&lt;/CODE&gt; file. &lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 08:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402480#M71575</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-07-22T08:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402481#M71576</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I wants to modify the "access" field (under stanzas) to restrict role base access for a view in app&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 09:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402481#M71576</guid>
      <dc:creator>ganesh_crms</dc:creator>
      <dc:date>2019-07-22T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402482#M71577</link>
      <description>&lt;P&gt;Under which stanza ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 09:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402482#M71577</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-07-22T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402483#M71578</link>
      <description>&lt;P&gt;---Current---&lt;BR /&gt;
[views/]&lt;BR /&gt;
access = read : [ admin ], write : [ admin ]&lt;/P&gt;

&lt;P&gt;----Expected---&lt;BR /&gt;
[views/]&lt;BR /&gt;
access = read : [ user], write : [user ]&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 09:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402483#M71578</guid>
      <dc:creator>ganesh_crms</dc:creator>
      <dc:date>2019-07-22T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402484#M71579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;To change &lt;CODE&gt;views&lt;/CODE&gt; permissions using REST API, you can use below REST API (In below example please change values for &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt; based on your environment.&lt;/P&gt;

&lt;P&gt;To change permissions of particular dashboard&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -vk -u user:password &lt;A href="https://&amp;lt;your_splunk_server&amp;gt;:8089/servicesNS/&amp;lt;username&amp;gt;/&amp;lt;app_name&amp;gt;/data/ui/views/&amp;lt;dashboard_name&amp;gt;/acl" target="test_blank"&gt;https://&amp;lt;your_splunk_server&amp;gt;:8089/servicesNS/&amp;lt;username&amp;gt;/&amp;lt;app_name&amp;gt;/data/ui/views/&amp;lt;dashboard_name&amp;gt;/acl&lt;/A&gt; -d "perms.read"="user" -d "perms.write"="user" -d sharing=&amp;lt;app/user/global&amp;gt; -d owner=&amp;lt;owner_name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To change permissions of dashboards page, try below REST API.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -vk -u user:password &lt;A href="https://&amp;lt;your_splunk_server&amp;gt;:8089/servicesNS/nobody/&amp;lt;app_name&amp;gt;/data/ui/views/_acl" target="test_blank"&gt;https://&amp;lt;your_splunk_server&amp;gt;:8089/servicesNS/nobody/&amp;lt;app_name&amp;gt;/data/ui/views/_acl&lt;/A&gt; -d "perms.read"="user" -d "perms.write"="user" -d sharing=&amp;lt;app/user/global&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 10:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402484#M71579</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-07-22T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402485#M71580</link>
      <description>&lt;P&gt;Hi Harsmarvania,&lt;BR /&gt;
     Thanks for your answer.&lt;BR /&gt;
    whats the use of this parameter "-d sharing=&lt;APP&gt;".&lt;BR /&gt;
    What value i should pass? &lt;/APP&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 11:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402485#M71580</guid>
      <dc:creator>ganesh_crms</dc:creator>
      <dc:date>2019-07-22T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402486#M71581</link>
      <description>&lt;P&gt;sharing means would you like to share this dashboard at user level (Private), app level or global level ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 11:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/402486#M71581</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-07-22T11:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: update default.meta stanzas using REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/518595#M87674</link>
      <description>&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;data = {&lt;BR /&gt;'owner' : '&amp;lt;owner&amp;gt;',&lt;BR /&gt;'sharing' : '&amp;lt;app/global/system&amp;gt;',&lt;BR /&gt;'perms.read' : '*',&lt;BR /&gt;'perms.write' : '*'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;url = 'https://&amp;lt;hostname&amp;gt;:8089/services/apps/local/test_app/acl'&lt;BR /&gt;response = requests.post(url, data=data, verify=False, auth=('admin', '&amp;lt;password&amp;gt;'))&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 05:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/update-default-meta-stanzas-using-REST-API/m-p/518595#M87674</guid>
      <dc:creator>harimadambi</dc:creator>
      <dc:date>2020-09-09T05:24:35Z</dc:date>
    </item>
  </channel>
</rss>

