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

show-host API filter not working with subnet.

I am currently working on a script to compare internal host objects to our IPAM system. However, when I add a filter to show host for "10.0.0.0/8" which will encompass all of our internal IP addresses I get 0 result returned in the API.

When doing this same search from the object explorer I get around 4000 results.  

I believe this to be an issue with escaping the forward slash character but there is no documentation on escaping characters of any kind for the API.

Check Point - Management API reference

The API states: 

Search expression to filter objects by. The provided text should be exactly the same as it would be given
in SmartConsole Object Explorer. The logical operators in the expression ('AND', 'OR') should be provided
in capital letters. The search involves both a IP search and a textual search in name, comment, tags etc.

I also cannot find a guide of what searches/formats are allowed in the Object Explorer. 

EDIT:

This does work by using the show-objects endpoint with the same filter and "type":"host"

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events