Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Tomer_Sole
Mentor
Mentor

Create sites automatically using CloudGuard Connect REST API

If you have more than 10 branch offices, you should consider automation when adding all these as Site objects to Check Point's CloudGuard Connect.

 

Check out the attached create-sites.7z below which creates random sites using API.

 

Check Point's CloudGuard Connect REST API is available at: https://sc1.checkpoint.com/documents/latest/api_reference/index.html

(navigate to CloudGuard Connect API)

cgc-api.png     cgc-api-page.png

 

Prior to making API calls, generate an API Key in order to authenticate.

  • Browse to Infinity Portal and navigate to GLOBAL SETTINGS > API Keys.
  • Create a new API Key.
  • Product should be set to CloudGuard Connect.
  • Click CREATE.
  • Copy the 2 GUID's that were generated.

 

Running This script requires Python 3.7 and above.

  • Replace the parameters at the Login function call with the API Key that you created at your Infinity Portal account.
  • Set a pre-shared key next to the "preSharedKey" part of the request dictionary.
  • Run the script
  • Observe the results

 

Update version 1.1 of the script: now supporting static or dynamic IP addresses for the sites.

 

 

sites-created.png

 

 

0 Replies
Upcoming Events

    CheckMates Events