- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
Hi,
Is it possible to search a object with a tag ?
If i use this JSON body, this don't work
{
"limit" : 10,
"offset" : 0,
"order" : [ {
"ASC" : "name"
} ],
"in" : [ "tags", "test" ],
"type" : "object",
"details-level" : "full"
}
I think the cause is tags not only a field but a array. Is it possible to search in a array ?
Or do you have some other idea to find all objects with a tag ?
Thanks
Maybe start by searching for objects that have a tag, so tag is not empty, then on those, do a search in the tags array for the tag you need.
Hi Marc,
It's possible to search for an object with a tag, but you must use the tag identifier (not name).
Search for objects with a tag identified as "a80dda2f-e616-4e53-b2cb-43efdb1791e3"
show-objects
{
"in": ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3"],
"details-level": "full",
"type": "object"
}
Search for hosts with a tag identified as "a80dda2f-e616-4e53-b2cb-43efdb1791e3"
show-objects
{
"in": ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3"],
"details-level": "full",
"type": "host"
}
Search for networks with a tag identified as "a80dda2f-e616-4e53-b2cb-43efdb1791e3"
OR "f671818b-7adc-4a41-a5d1-cec35e6f4a70"
show-objects
{
"in" : ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3", "tags", "f671818b-7adc-4a41-a5d1-cec35e6f4a70"],
"details-level" : "full",
"type": "network"
}
PS For now it is not possible to search for an object by "tag AND tag" but you can intersect results of a few calls yourself.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY