- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Exact match for object lookup in the rulebase
Options
- 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?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jump to solution
Exact match for object lookup in the rulebase
Hi all,
simple question: Is there any way to search in the rulebase an object by its exact name via api?
When i search an object in the rulebase with its name i.e. "MyName", the output reports also rules with objects like "Old_myname_checkpoint".
Case-insensitve mechanism is not a problem, but in my case i prefer to have an exact match just for the pattern that i'm looking for.
I also tried in ignorant fashion: "^MyName$" 🙂
I think that this could by tied to this note:
"Note - Typing the token name into the search box does not always produce the same results as selecting from the list." as reported in the guide
Thanks
1 Solution
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think the API has a concept of "exact match" for the show objects call.
You could probably pipe the output thru jq to print only the exact match you care about, though.
You could probably pipe the output thru jq to print only the exact match you care about, though.
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think the API has a concept of "exact match" for the show objects call.
You could probably pipe the output thru jq to print only the exact match you care about, though.
You could probably pipe the output thru jq to print only the exact match you care about, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you PhoneBoy, i suspected that...
I'll put the login into the script
I'll put the login into the script