AnsweredAssumed Answered

Runtime error while creating OPSEC LEA object via API

Question asked by Erin Horning on Mar 8, 2018
Latest reply on Mar 8, 2018 by Robert Decker

I am trying to create an OPSEC LEA object using the management API via the Ansible URI module, and am getting a generic error  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?


- name: CONFIG ROUTING | Create splunk opsec lea object
   url: https://{{ ips_mgmt_host }}:443/web_api/add-opsec-application
   method: POST
      Content_Type: "application/json"
      X-chkp-sid: "{{ login_result.json.sid }}"
      name: "SplunkLea"
      host: "splunk_lea"
         access-permissions: "by profile"
         administrator-profile: "super user"
         enabled: true
      one-time-password: "test-password"
      tags: ["manager_ops"]
   body_format: json
   validate_certs: false


Below is the output from this request: 


"changed": false,
"connection": "close",
"content": "{\n \"code\" : \"generic_error\",\n \"message\" : \"Runtime error: java.util.ArrayList incompatible with
"content_type": "application/json",
"json": {
"code": "generic_error",
"message": "Runtime error: java.util.ArrayList incompatible with"
"msg": "Status code was not [200]: HTTP Error 400: Bad Request",
"redirected": false,
"server": "CPWS",
"status": 400,
"transfer_encoding": "chunked",
"url": "https://<mgmt ip>/web_api/add-opsec-application",
"x_forwarded_host_port": "443",
"x_frame_options": "SAMEORIGIN",
"x_ua_compatible": "IE=EmulateIE8"