<?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: Runtime error while creating OPSEC LEA object via API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34445#M2103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try removing the tags field and see if it works - according to the error, this is my assumption.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 22:22:20 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-03-08T22:22:20Z</dc:date>
    <item>
      <title>Runtime error while creating OPSEC LEA object via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34444#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an OPSEC LEA object using the management API via the Ansible URI module, and am getting a generic error&amp;nbsp; with the message included in the response text below. I haven't been able to find anything online about this particular error. Can anyone shed some light on what's going on here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- name: CONFIG ROUTING | Create splunk opsec lea object&lt;BR /&gt; uri:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;url: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;{{ ips_mgmt_host }}:443/web_api/add-opsec-application&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;method: POST&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;headers:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Content_Type: "application/json"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X-chkp-sid: "{{ login_result.json.sid }}"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;body:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name: "SplunkLea"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;host: "splunk_lea"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lea:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;access-permissions: "by profile"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;administrator-profile: "super user"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;enabled: true&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;one-time-password: "test-password"&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tags: ["manager_ops"]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;body_format: json&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;validate_certs: false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the output from this request:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"changed": false,&lt;BR /&gt; "connection": "close",&lt;BR /&gt; "content": "{\n \"code\" : \"generic_error\",\n \"message\" : \"Runtime error: java.util.ArrayList incompatible with com.checkpoint.management.web_api_is.common.m&lt;BR /&gt;ulti_values.objects.MultiString\"\n}",&lt;BR /&gt; "content_type": "application/json",&lt;BR /&gt;"json": {&lt;BR /&gt; "code": "generic_error",&lt;BR /&gt; "message": "Runtime error: java.util.ArrayList incompatible with com.checkpoint.management.web_api_is.common.multi_values.objects.MultiString"&lt;BR /&gt; },&lt;BR /&gt; "msg": "Status code was not [200]: HTTP Error 400: Bad Request",&lt;BR /&gt; "redirected": false,&lt;BR /&gt; "server": "CPWS",&lt;BR /&gt; "status": 400,&lt;BR /&gt; "transfer_encoding": "chunked",&lt;BR /&gt;&lt;SPAN&gt; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt ip&amp;gt;/web_api/add-opsec-application",&lt;/SPAN&gt;&lt;BR /&gt; "x_forwarded_host_port": "443",&lt;BR /&gt; "x_frame_options": "SAMEORIGIN",&lt;BR /&gt; "x_ua_compatible": "IE=EmulateIE8"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 20:56:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34444#M2102</guid>
      <dc:creator>Erin_Horning</dc:creator>
      <dc:date>2018-03-08T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while creating OPSEC LEA object via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34445#M2103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try removing the tags field and see if it works - according to the error, this is my assumption.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:22:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34445#M2103</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-08T22:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while creating OPSEC LEA object via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34446#M2104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked, thanks!&amp;nbsp;Ruled that out because I'd successfully used the same tagging syntax on other objects but I guess opsec objects require a different syntax than most.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:35:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34446#M2104</guid>
      <dc:creator>Erin_Horning</dc:creator>
      <dc:date>2018-03-08T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while creating OPSEC LEA object via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34447#M2105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work with tags, maybe you have a syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:46:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Runtime-error-while-creating-OPSEC-LEA-object-via-API/m-p/34447#M2105</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-08T22:46:10Z</dc:date>
    </item>
  </channel>
</rss>

