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
uri:
url: https://{{ ips_mgmt_host }}:443/web_api/add-opsec-application
method: POST
headers:
Content_Type: "application/json"
X-chkp-sid: "{{ login_result.json.sid }}"
body:
name: "SplunkLea"
host: "splunk_lea"
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 com.checkpoint.management.web_api_is.common.m
ulti_values.objects.MultiString\"\n}",
"content_type": "application/json",
"json": {
"code": "generic_error",
"message": "Runtime error: java.util.ArrayList incompatible with com.checkpoint.management.web_api_is.common.multi_values.objects.MultiString"
},
"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"