Skip to main content

NPA Terraform Provider - how to query Publisher tags, and how to get to them in the GUI?

  • October 23, 2023
  • 3 replies
  • 226 views

elawaetz
Forum|alt.badge.img+4

I'm using the Netskope Provider version 0.2.5 for NPA to query for a list of Publishers based on a site code.
netskope_publishers | Data Sources | netskopeoss/netskope | Terraform | Terraform Registry


According to version 0.2.4 of the provider, I can filter on stuff in the query:

netskope_publishers | Data Sources | netskopeoss/netskope | Terraform | Terraform Registry

 

This simple query for site code (=key) works well:

data "netskope_publishers" "all" {

        for_each = toset(keys(local.datacenters))

        filter = "publisher_name sw ${each.key}"

}

 

However, I'd like to match also on "tags" which is a list of strings, and I'm failing to get that query right. 

I have also tried deploying a Publisher with a tag via the provider, but is there any way I can display that tag in the GUI?

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+16
  • Netskope Employee
  • 277 replies
  • October 23, 2023

Hello @elawaetz ,

Can you provide a sample of the query you attempt with tags?  Are you referring to application tags or Publisher tags? 


elawaetz
Forum|alt.badge.img+4
  • Author
  • Explorer III
  • 31 replies
  • October 23, 2023

Hi Sam

I am trying to match/filter on both publisher name and publisher tag:

 

 

data "netskope_publishers" "all" {
        for_each = toset(keys(local.datacenters))
        filter = "publisher_name sw ${each.key} and tags ne [“EXT"]”
}

 

 

 

 

 

 


elawaetz
Forum|alt.badge.img+4
  • Author
  • Explorer III
  • 31 replies
  • October 24, 2023

@sshiflett I got a reply from one of your colleagues this morning, that apparently filtering on Publisher tags is not possible yet, but there is an enhancement request for it.

 

So I guess I just need to sit tight and wait, and/or find other means of filtering in the mean time.