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.