- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- batch add groups/members in JSON
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
batch add groups/members in JSON
Hi There,
I need to add multiple groups opf several types (service-group group) including members or adding members after that and I'd like to do it by means of JSON. that's because I already write a bunch of scripts for adding Hosts and services and the like.
I'm quite sure tis i possible but can't get my mind wrapped around the appropriate JSON Syntax.
Thanks & Kind Regards
Zoltan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok this seems to work:
POST {{server}}/set-objects-batch Content-Type: application/json X-chkp-sid: {{session}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a specific example of how to add a service group using JSON here (scroll to the bottom): https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-service-group~v1.9.1%20
You can also add services to a given service group when they are created (again, JSON example at the bottom): https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-service-tcp~v1.9.1%20
