<?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: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338437#M40751</link>
    <description>&lt;P&gt;Check out the tools found in Splunk_TA_aws/bin/tools/configure.  This will provide you with a CLI approach to add IAM roles by using your custom-created JSON files for your configurations.&lt;/P&gt;

&lt;P&gt;You can run something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd python aws_config_cli.py iam-role create --config-file description_input.json --hostname localhost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will expect your &lt;CODE&gt;description_input.json&lt;/CODE&gt; file and a separate &lt;CODE&gt;splunk-info.json&lt;/CODE&gt; file that contains your authentication information.  Unfortunately it doesn't look like you can specify a file/location name for &lt;CODE&gt;splunk-info.json&lt;/CODE&gt; so it needs to reside in the same directory as the &lt;CODE&gt;aws_config_cli.py&lt;/CODE&gt; script.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:10:25 GMT</pubDate>
    <dc:creator>drutstein</dc:creator>
    <dc:date>2020-09-29T18:10:25Z</dc:date>
    <item>
      <title>Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338434#M40748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are currently planing an automated deployment of Splunk our VPCs on AWS. To do this, we need to configure the Splunk Add-on for Amazon Web Services via API. So, it would be great if we could see the documentation for the API. &lt;BR /&gt;
So the question is: How can I access the REST API and find out what are the allowed operations for the Splunk Add-on for Amazon Web Services?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Igor&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338434#M40748</guid>
      <dc:creator>Igor1984</dc:creator>
      <dc:date>2017-04-19T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338435#M40749</link>
      <description>&lt;P&gt;I just had the same problem as you, and I found this endpoint: &lt;A href="https://localhost:8089/servicesNS/nobody/Splunk_TA_aws"&gt;https://localhost:8089/servicesNS/nobody/Splunk_TA_aws&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I am poking around this endpoint with &lt;A href="https://curl.haxx.se/"&gt;curl&lt;/A&gt; and &lt;A href="https://stedolan.github.io/jq/"&gt;jq&lt;/A&gt;, which I've defined this handy shell function for: &lt;CODE&gt;req() {curl -ku admin:changeme "$1?output_mode=json"  | jq -C .  | less -R}&lt;/CODE&gt; (of course, you'll have to adjust the admin/changeme passwords to suit your deployment).&lt;/P&gt;

&lt;P&gt;Then, &lt;CODE&gt;req &lt;A href="https://localhost:8089/servicesNS/nobody/Splunk_TA_aws" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/Splunk_TA_aws&lt;/A&gt;&lt;/CODE&gt; to discover all the query endpoints that the AWS add-on REST api supports. You'll see, for example:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;{&lt;BR /&gt;
      "name": "splunk_ta_aws_iam_roles",&lt;BR /&gt;
      "id": "https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles",&lt;BR /&gt;
      "updated": "2018-01-26T10:08:27+00:00",&lt;BR /&gt;
      "links": {&lt;BR /&gt;
        "alternate": "/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles",&lt;BR /&gt;
        "create": "/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles/_new",&lt;BR /&gt;
        "list": "/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles",&lt;BR /&gt;
        "_acl": "/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles/_acl"&lt;BR /&gt;
      },&lt;BR /&gt;
      "author": "system",&lt;BR /&gt;
      "acl": {&lt;BR /&gt;
        "app": "",&lt;BR /&gt;
        "can_list": true,&lt;BR /&gt;
        "can_write": true,&lt;BR /&gt;
        "modifiable": false,&lt;BR /&gt;
        "owner": "system",&lt;BR /&gt;
        "perms": null,&lt;BR /&gt;
        "removable": false,&lt;BR /&gt;
        "sharing": "system"&lt;BR /&gt;
      },&lt;BR /&gt;
      "content": {&lt;BR /&gt;
        "eai:acl": null&lt;BR /&gt;
      }&lt;BR /&gt;
    },&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;links&lt;/CODE&gt; section here takes you to other endpoints that you can use, and you can, for example, make a GET request on the "create" endpoint to figure out the parameters that it takes.&lt;/P&gt;

&lt;P&gt;As a side note, I'm pretty sure there are no guarantees on backwards/forwards-compatibility here, but I super feel your pain re. having to set up machines automatically, so it looks like this is the best way to set things up automatically for now.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338435#M40749</guid>
      <dc:creator>asf_stripe</dc:creator>
      <dc:date>2018-01-26T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338436#M40750</link>
      <description>&lt;P&gt;One additional note that tripped me up: To create an object, you POST to the plain endpoint, not the one ending in &lt;CODE&gt;/_new&lt;/CODE&gt;, so for example &lt;CODE&gt;POST &lt;A href="https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles&lt;/A&gt;&lt;/CODE&gt; - not &lt;CODE&gt;POST &lt;A href="https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles/_new" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles/_new&lt;/A&gt;&lt;/CODE&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 13:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338436#M40750</guid>
      <dc:creator>asf_stripe</dc:creator>
      <dc:date>2018-01-26T13:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338437#M40751</link>
      <description>&lt;P&gt;Check out the tools found in Splunk_TA_aws/bin/tools/configure.  This will provide you with a CLI approach to add IAM roles by using your custom-created JSON files for your configurations.&lt;/P&gt;

&lt;P&gt;You can run something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd python aws_config_cli.py iam-role create --config-file description_input.json --hostname localhost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will expect your &lt;CODE&gt;description_input.json&lt;/CODE&gt; file and a separate &lt;CODE&gt;splunk-info.json&lt;/CODE&gt; file that contains your authentication information.  Unfortunately it doesn't look like you can specify a file/location name for &lt;CODE&gt;splunk-info.json&lt;/CODE&gt; so it needs to reside in the same directory as the &lt;CODE&gt;aws_config_cli.py&lt;/CODE&gt; script.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338437#M40751</guid>
      <dc:creator>drutstein</dc:creator>
      <dc:date>2020-09-29T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338438#M40752</link>
      <description>&lt;P&gt;I was provided some specific documentation on this REST API, you may find this helpful: &lt;A href="http://splunkservices.io/downloads/PROD-AWSAdd-on4.0.0ConfigurationRESTAPIReference-210417-1515-50.pdf"&gt;http://splunkservices.io/downloads/PROD-AWSAdd-on4.0.0ConfigurationRESTAPIReference-210417-1515-50.pdf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm planning to make a Terraform provider for this API at some point, as I suspect many may find it helpful.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 03:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338438#M40752</guid>
      <dc:creator>mcluver</dc:creator>
      <dc:date>2018-10-06T03:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Amazon Web Services: How can I access the REST API and find out what are the allowed operations for the add-on?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338439#M40753</link>
      <description>&lt;P&gt;@mcluver any chance you have the update URL on where this documentation moved to?&lt;/P&gt;

&lt;P&gt;I am currently working on automating adding our accounts into the AWS addon as well as keeping the accounts up to date and having some trouble. I think this info would help. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Amazon-Web-Services-How-can-I-access-the-REST/m-p/338439#M40753</guid>
      <dc:creator>we553</dc:creator>
      <dc:date>2020-03-05T10:54:23Z</dc:date>
    </item>
  </channel>
</rss>

