1. Packages
  2. Packages
  3. Netskope Publisher
  4. API Docs
  5. TagPublisherAssignment
Viewing docs for Netskope Publisher v0.3.4
published on Thursday, May 21, 2026 by johnneerdael
netskope-publisher logo
Viewing docs for Netskope Publisher v0.3.4
published on Thursday, May 21, 2026 by johnneerdael

    Create TagPublisherAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TagPublisherAssignment(name: string, args: TagPublisherAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def TagPublisherAssignment(resource_name: str,
                               args: TagPublisherAssignmentArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def TagPublisherAssignment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               app_tags: Optional[Sequence[str]] = None,
                               publisher_placement_labels: Optional[Sequence[str]] = None,
                               publishers: Optional[Mapping[str, _provider.PublisherAssignmentInputArgs]] = None,
                               tenant_url: Optional[str] = None,
                               api_token: Optional[str] = None,
                               auth_mode: Optional[str] = None,
                               bearer_token: Optional[str] = None,
                               match_mode: Optional[str] = None,
                               oauth2: Optional[_provider.NetskopeOAuth2ArgsArgs] = None)
    func NewTagPublisherAssignment(ctx *Context, name string, args TagPublisherAssignmentArgs, opts ...ResourceOption) (*TagPublisherAssignment, error)
    public TagPublisherAssignment(string name, TagPublisherAssignmentArgs args, CustomResourceOptions? opts = null)
    public TagPublisherAssignment(String name, TagPublisherAssignmentArgs args)
    public TagPublisherAssignment(String name, TagPublisherAssignmentArgs args, CustomResourceOptions options)
    
    type: netskope-publisher:TagPublisherAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netskope-publisher_tagpublisherassignment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TagPublisherAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TagPublisherAssignmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TagPublisherAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagPublisherAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagPublisherAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var tagPublisherAssignmentResource = new NetskopePublisher.TagPublisherAssignment("tagPublisherAssignmentResource", new()
    {
        AppTags = new[]
        {
            "string",
        },
        PublisherPlacementLabels = new[]
        {
            "string",
        },
        Publishers = 
        {
            { "string", new NetskopePublisher.Provider.Inputs.PublisherAssignmentInputArgs
            {
                PublisherId = 0,
                PlacementLabels = new[]
                {
                    "string",
                },
            } },
        },
        TenantUrl = "string",
        ApiToken = "string",
        AuthMode = "string",
        BearerToken = "string",
        MatchMode = "string",
        Oauth2 = new NetskopePublisher.Provider.Inputs.NetskopeOAuth2ArgsArgs
        {
            ClientId = "string",
            ClientSecret = "string",
            TokenUrl = "string",
            Scope = "string",
        },
    });
    
    example, err := netskopepublisher.NewTagPublisherAssignment(ctx, "tagPublisherAssignmentResource", &netskopepublisher.TagPublisherAssignmentArgs{
    	AppTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PublisherPlacementLabels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Publishers: provider.PublisherAssignmentInputMap{
    		"string": &provider.PublisherAssignmentInputArgs{
    			PublisherId: pulumi.Int(0),
    			PlacementLabels: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	TenantUrl:   pulumi.String("string"),
    	ApiToken:    pulumi.String("string"),
    	AuthMode:    pulumi.String("string"),
    	BearerToken: pulumi.String("string"),
    	MatchMode:   pulumi.String("string"),
    	Oauth2: &provider.NetskopeOAuth2ArgsArgs{
    		ClientId:     pulumi.String("string"),
    		ClientSecret: pulumi.String("string"),
    		TokenUrl:     pulumi.String("string"),
    		Scope:        pulumi.String("string"),
    	},
    })
    
    resource "netskope-publisher_tagpublisherassignment" "tagPublisherAssignmentResource" {
      app_tags                   = ["string"]
      publisher_placement_labels = ["string"]
      publishers = {
        "string" = {
          publisher_id     = 0
          placement_labels = ["string"]
        }
      }
      tenant_url   = "string"
      api_token    = "string"
      auth_mode    = "string"
      bearer_token = "string"
      match_mode   = "string"
      oauth2 = {
        client_id     = "string"
        client_secret = "string"
        token_url     = "string"
        scope         = "string"
      }
    }
    
    var tagPublisherAssignmentResource = new TagPublisherAssignment("tagPublisherAssignmentResource", TagPublisherAssignmentArgs.builder()
        .appTags("string")
        .publisherPlacementLabels("string")
        .publishers(Map.of("string", PublisherAssignmentInputArgs.builder()
            .publisherId(0)
            .placementLabels("string")
            .build()))
        .tenantUrl("string")
        .apiToken("string")
        .authMode("string")
        .bearerToken("string")
        .matchMode("string")
        .oauth2(NetskopeOAuth2Args.builder()
            .clientId("string")
            .clientSecret("string")
            .tokenUrl("string")
            .scope("string")
            .build())
        .build());
    
    tag_publisher_assignment_resource = netskope_publisher.TagPublisherAssignment("tagPublisherAssignmentResource",
        app_tags=["string"],
        publisher_placement_labels=["string"],
        publishers={
            "string": {
                "publisher_id": 0,
                "placement_labels": ["string"],
            },
        },
        tenant_url="string",
        api_token="string",
        auth_mode="string",
        bearer_token="string",
        match_mode="string",
        oauth2={
            "client_id": "string",
            "client_secret": "string",
            "token_url": "string",
            "scope": "string",
        })
    
    const tagPublisherAssignmentResource = new netskope_publisher.TagPublisherAssignment("tagPublisherAssignmentResource", {
        appTags: ["string"],
        publisherPlacementLabels: ["string"],
        publishers: {
            string: {
                publisherId: 0,
                placementLabels: ["string"],
            },
        },
        tenantUrl: "string",
        apiToken: "string",
        authMode: "string",
        bearerToken: "string",
        matchMode: "string",
        oauth2: {
            clientId: "string",
            clientSecret: "string",
            tokenUrl: "string",
            scope: "string",
        },
    });
    
    type: netskope-publisher:TagPublisherAssignment
    properties:
        apiToken: string
        appTags:
            - string
        authMode: string
        bearerToken: string
        matchMode: string
        oauth2:
            clientId: string
            clientSecret: string
            scope: string
            tokenUrl: string
        publisherPlacementLabels:
            - string
        publishers:
            string:
                placementLabels:
                    - string
                publisherId: 0
        tenantUrl: string
    

    TagPublisherAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TagPublisherAssignment resource accepts the following input properties:

    AppTags List<string>
    PublisherPlacementLabels List<string>
    Publishers Dictionary<string, Pulumi.NetskopePublisher.Provider.Inputs.PublisherAssignmentInputArgs>
    TenantUrl string
    ApiToken string
    AuthMode string
    BearerToken string
    MatchMode string
    Oauth2 Pulumi.NetskopePublisher.Provider.Inputs.NetskopeOAuth2Args
    AppTags []string
    PublisherPlacementLabels []string
    Publishers PublisherAssignmentInputArgs
    TenantUrl string
    ApiToken string
    AuthMode string
    BearerToken string
    MatchMode string
    Oauth2 NetskopeOAuth2ArgsArgs
    app_tags list(string)
    publisher_placement_labels list(string)
    publishers map(object)
    tenant_url string
    api_token string
    auth_mode string
    bearer_token string
    match_mode string
    oauth2 object
    appTags List<String>
    publisherPlacementLabels List<String>
    publishers Map<String,PublisherAssignmentInputArgs>
    tenantUrl String
    apiToken String
    authMode String
    bearerToken String
    matchMode String
    oauth2 NetskopeOAuth2Args
    appTags string[]
    publisherPlacementLabels string[]
    publishers {[key: string]: providerPublisherAssignmentInputArgs}
    tenantUrl string
    apiToken string
    authMode string
    bearerToken string
    matchMode string
    oauth2 providerNetskopeOAuth2Args
    app_tags Sequence[str]
    publisher_placement_labels Sequence[str]
    publishers Mapping[str, provider.PublisherAssignmentInputArgs]
    tenant_url str
    api_token str
    auth_mode str
    bearer_token str
    match_mode str
    oauth2 provider.NetskopeOAuth2ArgsArgs
    appTags List<String>
    publisherPlacementLabels List<String>
    publishers Map<Property Map>
    tenantUrl String
    apiToken String
    authMode String
    bearerToken String
    matchMode String
    oauth2 Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TagPublisherAssignment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MatchedApps List<string>
    SelectedPublishers List<int>
    Id string
    The provider-assigned unique ID for this managed resource.
    MatchedApps []string
    SelectedPublishers []int
    id string
    The provider-assigned unique ID for this managed resource.
    matched_apps list(string)
    selected_publishers list(number)
    id String
    The provider-assigned unique ID for this managed resource.
    matchedApps List<String>
    selectedPublishers List<Integer>
    id string
    The provider-assigned unique ID for this managed resource.
    matchedApps string[]
    selectedPublishers number[]
    id str
    The provider-assigned unique ID for this managed resource.
    matched_apps Sequence[str]
    selected_publishers Sequence[int]
    id String
    The provider-assigned unique ID for this managed resource.
    matchedApps List<String>
    selectedPublishers List<Number>

    Supporting Types

    NetskopeOAuth2Args, NetskopeOAuth2ArgsArgs

    ClientId string
    ClientSecret string
    TokenUrl string
    Scope string
    ClientId string
    ClientSecret string
    TokenUrl string
    Scope string
    client_id string
    client_secret string
    token_url string
    scope string
    clientId String
    clientSecret String
    tokenUrl String
    scope String
    clientId string
    clientSecret string
    tokenUrl string
    scope string
    clientId String
    clientSecret String
    tokenUrl String
    scope String

    PublisherAssignmentInput, PublisherAssignmentInputArgs

    publisher_id number
    placement_labels list(string)
    publisherId Integer
    placementLabels List<String>
    publisherId Number
    placementLabels List<String>

    Package Details

    Repository
    netskope-publisher johnneerdael/pulumi-netskope-publisher
    License
    Apache-2.0
    netskope-publisher logo
    Viewing docs for Netskope Publisher v0.3.4
    published on Thursday, May 21, 2026 by johnneerdael

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial