<?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: failed with error message: message: Missing header: [X-chkp-sid] in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52367#M3407</link>
    <description>Most likely you haven't enabled the API server from all IPs.&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/Developers-API-CLI/Ansible-Unable-to-obtain-sid/m-p/31928" target="_blank"&gt;https://community.checkpoint.com/t5/Developers-API-CLI/Ansible-Unable-to-obtain-sid/m-p/31928&lt;/A&gt;</description>
    <pubDate>Thu, 02 May 2019 01:34:13 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-05-02T01:34:13Z</dc:date>
    <item>
      <title>failed with error message: message: Missing header: [X-chkp-sid]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52265#M3389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm getting strange errors when I tried to run my playbook; I tried many things that was recommended but I can't seem to fix the issues. Please assist, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error -&lt;/P&gt;&lt;P&gt;Command 'add-host {u'name': u'host_demo_2', u'ip-address': u'1.2.10.110'}' failed with error message: message: Missing header: [X-chkp-sid]&lt;/P&gt;&lt;P&gt;code: generic_err_missing_required_header&lt;/P&gt;&lt;P&gt;. All changes are discarded and the session is invalidated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Playbook-&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;- hosts: localhost&lt;BR /&gt;&amp;nbsp; tasks:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: include vars&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include_vars:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir: group_vars/{{pin_env}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: "login"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_point_mgmt:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command: login&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username: '{{checkpoint_user}}'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password: '{{checkpoint_password}}'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; management: '{{mgmt_server}}'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fingerprint: '{{mgmt_fingerprint}}'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; register: login_response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: add host&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_point_mgmt:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command: add-host&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: 'host_demo_2'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip-address: '1.2.10.110'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session-data: '{{login_response}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: "publish"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_point_mgmt:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command: publish&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session-data: '{{login_response}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: logout&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_point_mgmt:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command: logout&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session-data: '{{login_response}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:32:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52265#M3389</guid>
      <dc:creator>James_Le</dc:creator>
      <dc:date>2019-04-30T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: failed with error message: message: Missing header: [X-chkp-sid]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52367#M3407</link>
      <description>Most likely you haven't enabled the API server from all IPs.&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/Developers-API-CLI/Ansible-Unable-to-obtain-sid/m-p/31928" target="_blank"&gt;https://community.checkpoint.com/t5/Developers-API-CLI/Ansible-Unable-to-obtain-sid/m-p/31928&lt;/A&gt;</description>
      <pubDate>Thu, 02 May 2019 01:34:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52367#M3407</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-05-02T01:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: failed with error message: message: Missing header: [X-chkp-sid]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52414#M3409</link>
      <description>&lt;P&gt;Thanks for the response. I was able to resolve the issues, the problem was related to account permission in smart dashboard.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 12:53:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/failed-with-error-message-message-Missing-header-X-chkp-sid/m-p/52414#M3409</guid>
      <dc:creator>James_Le</dc:creator>
      <dc:date>2019-05-02T12:53:17Z</dc:date>
    </item>
  </channel>
</rss>

