<?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: What are the arguments for entity.getEntities? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/What-are-the-arguments-for-entity-getEntities/m-p/462932#M8401</link>
    <description>&lt;P&gt;One of my coworkers and I discussed this and all the pieces fell into place for me mentally.  For ['properties', 'verodin', 'verodin'] the fields can be found using &lt;A href="https://splunk_host:8089/services"&gt;https://splunk_host:8089/services&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;First item in list properties can be found at the top level when logged into the above website.&lt;BR /&gt;
Drill down into properties.&lt;BR /&gt;
Second item in list verodin is the name of the default/verodin.conf file.  As Tom noted at the top level of the TA a README directory is needed with a verodin.conf.spec file in it.&lt;BR /&gt;
Drill down into verodin.&lt;BR /&gt;
Third item in list verodin is the stanza inside the default/verodin.conf file.&lt;BR /&gt;
Drill down into it and there should be list of the items under the stanza.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 16:43:26 GMT</pubDate>
    <dc:creator>jwhughes58</dc:creator>
    <dc:date>2020-04-03T16:43:26Z</dc:date>
    <item>
      <title>What are the arguments for entity.getEntities?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-are-the-arguments-for-entity-getEntities/m-p/462931#M8400</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;I've got this code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#########################################################################
# Imports for Splunk
#########################################################################
import splunk.entity as entity

try:
    from splunk.clilib.bundle_paths import make_splunkhome_path
except ImportError:
    from splunkappserver.mrsparkle.lib.util import make_splunkhome_path

########################################
# get our config data returns a dict
########################################
def getConfig(sessionKey,nameSpace):
    try:
        resp = entity.getEntities(['properties', 'verodin', 'verodin'], namespace=nameSpace, owner='nobody', sessionKey=sessionKey)
    except Exception, e:
        raise Exception(" Could not get %s credentials from splunk. Error %s" % (nameSpace, str(e)))

    config = {}

    for k, v in resp.items():
        config[str(k)] = str(v)

    return config
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another member of the team got it working. I'm trying to create new code but I don't understand what the getEntities first argument is beyond a list. I've seen examples with [admin, password] but I haven't found a good example or documentation explaining how this works. Any idea?&lt;/P&gt;
&lt;P&gt;TIA,&lt;BR /&gt;Joe&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-are-the-arguments-for-entity-getEntities/m-p/462931#M8400</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-06-07T18:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: What are the arguments for entity.getEntities?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-are-the-arguments-for-entity-getEntities/m-p/462932#M8401</link>
      <description>&lt;P&gt;One of my coworkers and I discussed this and all the pieces fell into place for me mentally.  For ['properties', 'verodin', 'verodin'] the fields can be found using &lt;A href="https://splunk_host:8089/services"&gt;https://splunk_host:8089/services&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;First item in list properties can be found at the top level when logged into the above website.&lt;BR /&gt;
Drill down into properties.&lt;BR /&gt;
Second item in list verodin is the name of the default/verodin.conf file.  As Tom noted at the top level of the TA a README directory is needed with a verodin.conf.spec file in it.&lt;BR /&gt;
Drill down into verodin.&lt;BR /&gt;
Third item in list verodin is the stanza inside the default/verodin.conf file.&lt;BR /&gt;
Drill down into it and there should be list of the items under the stanza.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 16:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-are-the-arguments-for-entity-getEntities/m-p/462932#M8401</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-04-03T16:43:26Z</dc:date>
    </item>
  </channel>
</rss>

