<?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 Permission to create gateway object from API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29466#M1780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the permission required for API to create a gateway object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a role using custom mode so I can remove the excessive privilege later, and I have assigned all the possible privilege with write permission. I am still getting run time error when creating a simple gateway object from ansible. It works find if the role is given full write permission.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message below:&lt;/P&gt;&lt;P&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "failed": true, "msg": "Command 'add-simple-gateway {u'one-time-password': u'aaa12345', u'interfaces': [{u'ipv4-network-mask': u'255.255.255.0', u'anti-spoofing': u'true', u'ipv4-address': u'10.0.1.88', u'name': u'eth0', u'topology': u'External'}, {u'anti-spoofing': u'true', u'name': u'eth1', u'topology-settings': {u'ip-address-behind-this-interface': u'network defined by the interface ip and net mask'}, u'ipv4-network-mask': u'255.255.255.0', u'ipv4-address': u'172.16.1.88', u'topology': u'Internal'}], u'name': u'demo_gateway', u'ip-address': u'192.0.1.88', u'comments': u'added by Ansible'}' failed with error message: Runtime error: Error reading XMLStreamReader: Unexpected EOF in prolog at javax.xml.stream.SerializableLocation@c1137a34. All changes are discarded and the session is invalidated."}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2018 09:34:09 GMT</pubDate>
    <dc:creator>Bryan_Lee</dc:creator>
    <dc:date>2018-09-26T09:34:09Z</dc:date>
    <item>
      <title>Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29466#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the permission required for API to create a gateway object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a role using custom mode so I can remove the excessive privilege later, and I have assigned all the possible privilege with write permission. I am still getting run time error when creating a simple gateway object from ansible. It works find if the role is given full write permission.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message below:&lt;/P&gt;&lt;P&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "failed": true, "msg": "Command 'add-simple-gateway {u'one-time-password': u'aaa12345', u'interfaces': [{u'ipv4-network-mask': u'255.255.255.0', u'anti-spoofing': u'true', u'ipv4-address': u'10.0.1.88', u'name': u'eth0', u'topology': u'External'}, {u'anti-spoofing': u'true', u'name': u'eth1', u'topology-settings': {u'ip-address-behind-this-interface': u'network defined by the interface ip and net mask'}, u'ipv4-network-mask': u'255.255.255.0', u'ipv4-address': u'172.16.1.88', u'topology': u'Internal'}], u'name': u'demo_gateway', u'ip-address': u'192.0.1.88', u'comments': u'added by Ansible'}' failed with error message: Runtime error: Error reading XMLStreamReader: Unexpected EOF in prolog at javax.xml.stream.SerializableLocation@c1137a34. All changes are discarded and the session is invalidated."}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 09:34:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29466#M1780</guid>
      <dc:creator>Bryan_Lee</dc:creator>
      <dc:date>2018-09-26T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29467#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Technically speaking, if you have access to do it from SmartConsole and you have API access, you should also be able to do it from the API.&lt;/P&gt;&lt;P&gt;Can you confirm that the user is able to create a gateway object via SmartConsole using the same permissions profile?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:33:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29467#M1781</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-09-27T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29468#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strangely, I could create the&amp;nbsp;gateway object on Smart Console using that API admin credential, whereas creating gateway object via API call failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:50:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29468#M1782</guid>
      <dc:creator>Bryan_Lee</dc:creator>
      <dc:date>2018-10-01T08:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29469#M1783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems that way.&lt;/P&gt;&lt;P&gt;In which case, we probably need a TAC case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 14:41:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29469#M1783</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-10-01T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29470#M1784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can create it without any issues &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli login -u user1 -p user1 &amp;gt; id.txt&lt;BR /&gt;mgmt_cli -s id.txt add simple-gateway name "Second_Security_Gateway" ip-address "11.1.1.10" firewall "true" vpn "true" interfaces.1.name eth0 interfaces.1.ipv4-address "11.1.1.10" interfaces.1.ipv4-network-mask "255.255.255.0" interfaces.1.anti-spoofing false interfaces.1.topology EXTERNAL&lt;BR /&gt;mgmt_cli -s id.txt publish&lt;BR /&gt;mgmt_cli -s id.txt logout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have "write" access to common objects? by default,&amp;nbsp;it is read while creating a new profile, search for " Others"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:05:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29470#M1784</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-10-01T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29471#M1785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ofir, I have&amp;nbsp;tried to assign all the privilege, and everything was write access. That was why I find it strange here. See the screenshot below for what you had indicated, write privilege was assigned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running R80.10 Build 435.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Privilege assigned to api_admin role (Others)" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/71116_api_role_others_permission.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 03:15:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29471#M1785</guid>
      <dc:creator>Bryan_Lee</dc:creator>
      <dc:date>2018-10-02T03:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Permission to create gateway object from API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29472#M1786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m using R80.20 &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;Are you able to check it with R80.20 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;I will try to check it with my R80.10 MDM and I will update - I hope to do it this week or week later&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 18:14:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Permission-to-create-gateway-object-from-API/m-p/29472#M1786</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-10-06T18:14:29Z</dc:date>
    </item>
  </channel>
</rss>

