- Products
- Learn
- Local User Groups
- Partners
-
More
Celebrate the New Year
With CheckMates!
Value of Security
Vendor Self-Awareness
Join Us for CPX 360
23-24 February 2021
Important certificate update to CloudGuard Controller, CME,
and Azure HA Security Gateways
How to Remediate Endpoint & VPN
Issues (in versions E81.10 or earlier)
Mobile Security
Buyer's Guide Out Now
Important! R80 and R80.10
End Of Support around the corner (May 2021)
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
WELCOME TO THE FUTURE OF CYBER SECURITY