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

set-if-exists example

Jump to solution

Could I have an example on how to use "set-if-exists"? And what versions of the API is this command compatiable with?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Admin
Admin

Re: set-if-exists example

Jump to solution
It's a parameter of several API calls specifically creating hosts, networks, and similar types of objects.
I believe it goes back to 1.0 but you can review the API docs and confirm: https://sc1.checkpoint.com/documents/latest/APIs/index.html#~v1.5

View solution in original post

0 Kudos
2 Replies
Highlighted
Admin
Admin

Re: set-if-exists example

Jump to solution
It's a parameter of several API calls specifically creating hosts, networks, and similar types of objects.
I believe it goes back to 1.0 but you can review the API docs and confirm: https://sc1.checkpoint.com/documents/latest/APIs/index.html#~v1.5

View solution in original post

0 Kudos
Highlighted

Re: set-if-exists example

Jump to solution

I was able to figure it it and it does work with version 1.0 and up.

Here's an example.

 

add host name "host_10.210.16.213" ip-address "10.210.16.213" set-if-exists "true" ignore-warnings "true"

0 Kudos