<?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 SOAR HTTP app to Cisco Secure Endpoint API in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674683#M1377</link>
    <description>&lt;P&gt;I'm trying to set up the HTTP app to access the CIsco Secure Endpoint API (v3).&amp;nbsp; I've generated the access token following the instructions found &lt;A href="https://developer.cisco.com/docs/secure-endpoint/#!authentication/5-access-secure-endpoint-api" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; &amp;nbsp; I can send a curl request in POSTMAN, using the access token, to get organisation details.&amp;nbsp; So I know the access token is ok:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -s 'https://api.amp.cisco.com/v3/organizations?size=10' \
                --header "Authorization: Bearer eyJhbGciOiJ....."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter the same value in the access_token field in the HTTP app and test connectivity, I always receive the following error status code:&lt;/P&gt;&lt;P&gt;error&amp;nbsp;&lt;SPAN&gt;401 Data from server: {"errors":["Missing token"]}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what to enter for the Type of Authentication Token, so maybe that's where I'm messing it up.&amp;nbsp; I think it should be Bearer, because that's the only thing in POSTMAN header other than the token itself.&lt;/P&gt;&lt;P&gt;Note that I haven't entered anything in any of the other authentication fields (username, password, url, Client ID, Client Secret).&amp;nbsp; And also - I get the same error if I don't enter anything in the access token field.&amp;nbsp; Basically, it's just ignored.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 14:59:53 GMT</pubDate>
    <dc:creator>m22oswald</dc:creator>
    <dc:date>2024-01-18T14:59:53Z</dc:date>
    <item>
      <title>SOAR HTTP app to Cisco Secure Endpoint API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674683#M1377</link>
      <description>&lt;P&gt;I'm trying to set up the HTTP app to access the CIsco Secure Endpoint API (v3).&amp;nbsp; I've generated the access token following the instructions found &lt;A href="https://developer.cisco.com/docs/secure-endpoint/#!authentication/5-access-secure-endpoint-api" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; &amp;nbsp; I can send a curl request in POSTMAN, using the access token, to get organisation details.&amp;nbsp; So I know the access token is ok:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -s 'https://api.amp.cisco.com/v3/organizations?size=10' \
                --header "Authorization: Bearer eyJhbGciOiJ....."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter the same value in the access_token field in the HTTP app and test connectivity, I always receive the following error status code:&lt;/P&gt;&lt;P&gt;error&amp;nbsp;&lt;SPAN&gt;401 Data from server: {"errors":["Missing token"]}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what to enter for the Type of Authentication Token, so maybe that's where I'm messing it up.&amp;nbsp; I think it should be Bearer, because that's the only thing in POSTMAN header other than the token itself.&lt;/P&gt;&lt;P&gt;Note that I haven't entered anything in any of the other authentication fields (username, password, url, Client ID, Client Secret).&amp;nbsp; And also - I get the same error if I don't enter anything in the access token field.&amp;nbsp; Basically, it's just ignored.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674683#M1377</guid>
      <dc:creator>m22oswald</dc:creator>
      <dc:date>2024-01-18T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR HTTP app to Cisco Secure Endpoint API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674765#M1382</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Carloszavala121_0-1705621107014.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29014i0DAED7436ADB91EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Carloszavala121_0-1705621107014.png" alt="Carloszavala121_0-1705621107014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello, apparently in SOAR the token section is optional, an idea would be that you do not enter anything in the token but you do enter the necessary credentials to carry out your request, in this case your username and password&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 23:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674765#M1382</guid>
      <dc:creator>Carloszavala121</dc:creator>
      <dc:date>2024-01-18T23:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: SOAR HTTP app to Cisco Secure Endpoint API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674766#M1383</link>
      <description>&lt;P&gt;Another solution that I would do to solve the problem would be with an executed actions in this case a code within a flow make the request through python code where the same url enter the token like this example&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; requests url = &lt;/SPAN&gt;&lt;SPAN class=""&gt;'&lt;A href="https://api.amp.cisco.com/v3/organizations?size=10" target="_blank" rel="noopener"&gt;https://api.amp.cisco.com/v3/organizations?size=10&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; headers = { &lt;/SPAN&gt;&lt;SPAN class=""&gt;'Authorization'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;'Bearer eyJhbGciOiJ.....'&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Asegúrate de reemplazar esto con tu token real&lt;/SPAN&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Realizar la petición GET&lt;/SPAN&gt;&lt;SPAN&gt; response = requests.get(url, headers=headers) &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Verificar si la petición fue exitosa (código de estado 200)&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; response.status_code == &lt;/SPAN&gt;&lt;SPAN class=""&gt;200&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Imprimir la respuesta JSON&lt;/SPAN&gt; &lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(response.json()) &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Imprimir el código de estado y el mensaje de error en caso de falla&lt;/SPAN&gt; &lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;f'Error: &lt;SPAN class=""&gt;{response.status_code}&lt;/SPAN&gt; - &lt;SPAN class=""&gt;{response.text}&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 23:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/SOAR-HTTP-app-to-Cisco-Secure-Endpoint-API/m-p/674766#M1383</guid>
      <dc:creator>Carloszavala121</dc:creator>
      <dc:date>2024-01-18T23:44:36Z</dc:date>
    </item>
  </channel>
</rss>

