<?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: Support for api key in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97191#M378</link>
    <description>&lt;P&gt;Use of API keys have been supported since the 1.0.5 release of the Ansible module.&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/releases/tag/1.0.5" target="_blank"&gt;https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/releases/tag/1.0.5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 13:44:17 GMT</pubDate>
    <dc:creator>masher</dc:creator>
    <dc:date>2020-09-21T13:44:17Z</dc:date>
    <item>
      <title>Support for api key</title>
      <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97181#M377</link>
      <description>&lt;P&gt;As R80.40 support users with API key, we need a method to login using this feature.&lt;/P&gt;&lt;P&gt;Keys are easier to work with in automation and I think the code only needs a small adjustment to support this.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if command == "login":

...

if command == "login-api":

# Login parameters:
api_key = parameters.get("user", parameters.get("api-key"))
...
# Tries to login:
client.login_with_api_key(api_key, domain=domain, payload=payload)
       &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Sep 2020 10:50:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97181#M377</guid>
      <dc:creator>Harald_Hansen</dc:creator>
      <dc:date>2020-09-21T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Support for api key</title>
      <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97191#M378</link>
      <description>&lt;P&gt;Use of API keys have been supported since the 1.0.5 release of the Ansible module.&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/releases/tag/1.0.5" target="_blank"&gt;https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/releases/tag/1.0.5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:44:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97191#M378</guid>
      <dc:creator>masher</dc:creator>
      <dc:date>2020-09-21T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Support for api key</title>
      <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97192#M379</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I looked into&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/cpAnsible" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/cpAnsible&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the reason to have this as well?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:51:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97192#M379</guid>
      <dc:creator>Harald_Hansen</dc:creator>
      <dc:date>2020-09-21T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Support for api key</title>
      <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97194#M380</link>
      <description>&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;Indeed, the API Key is supported since R80.40 (Management API v1.6).&lt;/P&gt;&lt;P&gt;Administrators of Management Server can use this method of authentication along with other existing methods.&lt;/P&gt;&lt;P&gt;Of course, a corresponding administrator account should be set to use this method, and an API key should be generated.&lt;/P&gt;&lt;P&gt;This configuration can be done in the SmartConsole, or using the Management API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-api-key~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-api-key~v1.6%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-administrator~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-administrator~v1.6%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The login command can be found &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/login~v1.6%20" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:55:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97194#M380</guid>
      <dc:creator>Alex_Mitsevich</dc:creator>
      <dc:date>2020-09-21T13:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Support for api key</title>
      <link>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97210#M381</link>
      <description>&lt;P&gt;This collection was necessary because Ansible did not have any support for Check Point management. This did not happen until Ansible 2.9. If this module is being used, I recommended updating playbooks to use the official management API modules collection.&amp;nbsp; If you would still rather use the github repository rather than ansible galaxy, then the new module (synced with Ansible Galaxy) should be used.&lt;/P&gt;
&lt;P&gt;- &lt;A href="https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection" target="_blank"&gt;https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 18:17:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Support-for-api-key/m-p/97210#M381</guid>
      <dc:creator>masher</dc:creator>
      <dc:date>2020-09-21T18:17:25Z</dc:date>
    </item>
  </channel>
</rss>

