<?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: Unable to manipulate serverclass whitelist via REST in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203994#M7605</link>
    <description>&lt;P&gt;Found my own answer. The POST endpoint is not always /services/deployment/server/serverclasses/&lt;EM&gt;classname&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;It's different for the different serverclasses (depends on what application you were in when dropped into forwarder management and added the server class). When POSTing changes, you need to use the endpoint listed in the href for the &amp;lt;link&amp;gt; that has rel="edit"&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 14:47:03 GMT</pubDate>
    <dc:creator>wegscd</dc:creator>
    <dc:date>2016-06-08T14:47:03Z</dc:date>
    <item>
      <title>Unable to manipulate serverclass whitelist via REST</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203993#M7604</link>
      <description>&lt;P&gt;We're trying to script some whitelisting of hosts in serverclasses, hit a snag.&lt;/P&gt;

&lt;P&gt;We create a test serverclass named 'posttest' with one app and nothing in the whitelist. When we try to add a host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -x '' -k -u admin:xxxxxxx &lt;A href="https://splunk-c-ds.local:8089/services/deployment/server/serverclasses/posttest" target="test_blank"&gt;https://splunk-c-ds.local:8089/services/deployment/server/serverclasses/posttest&lt;/A&gt; -d whitelist.0=posted_host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;we get this response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="ERROR"&amp;gt;
 In handler 'serverclasses': bundle=serverclass stanza=serverClass:posttest The sourceApp=system doesn't equal callerApp=search&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This appears to be the same issue seen by a212830 seen down in the notes for &lt;A href="https://answers.splunk.com/answers/307335/why-am-i-getting-error-cannot-perform-action-post.html"&gt;https://answers.splunk.com/answers/307335/why-am-i-getting-error-cannot-perform-action-post.html&lt;/A&gt;, no there is no solution posted there.&lt;/P&gt;

&lt;P&gt;We're running 6.3.0.1.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203993#M7604</guid>
      <dc:creator>wegscd</dc:creator>
      <dc:date>2016-06-08T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to manipulate serverclass whitelist via REST</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203994#M7605</link>
      <description>&lt;P&gt;Found my own answer. The POST endpoint is not always /services/deployment/server/serverclasses/&lt;EM&gt;classname&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;It's different for the different serverclasses (depends on what application you were in when dropped into forwarder management and added the server class). When POSTing changes, you need to use the endpoint listed in the href for the &amp;lt;link&amp;gt; that has rel="edit"&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203994#M7605</guid>
      <dc:creator>wegscd</dc:creator>
      <dc:date>2016-06-08T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to manipulate serverclass whitelist via REST</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203995#M7606</link>
      <description>&lt;P&gt;Have you tried adding "reload" to the endpoint url?&lt;/P&gt;

&lt;P&gt;/services/deployment/server/serverclasses//reload &lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-manipulate-serverclass-whitelist-via-REST/m-p/203995#M7606</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2017-09-08T00:03:44Z</dc:date>
    </item>
  </channel>
</rss>

