I've been trying to list firewall rules with a filter for the targetTags field but I've been unable to get it to successfully return a list.
For reference, what I have is this:
filter := `targetTags = "web-server"`
req := computepb.ListFirewallsRequest{
Project: sdk.Project,
Filter: &filter,
}
it := sdk.Firewalls.List(ctx, &req)
for { ... }
I'm fairly sure that since the targetTags is an array, this is failing as the clause checks for equality. I've tried using targetTags:(web-server) but this also fails.
I can always do the filtering in-memory but I'd prefer to avoid that if possible. Anyone k ow how to get this to work?