published on Friday, Jul 10, 2026 by Pulumi
published on Friday, Jul 10, 2026 by Pulumi
This resource manages the Site Wxlan tags (labels). A WxTag is a label or tag used in the mist system to classify and categorize applications, users, and resources for the purpose of creating policies and making network management decisions.They can be used
- within the Org WxRules to create filtering rules:
mist_site_wxrule.dst_allow_wxtagsmist_site_wxrule.dst_deny_wxtagsmist_site_wxrule.dst_wxtagsmist_site_wxrule.src_wxtags
- within the Org WxRules to assign specific VLAN:
mist_site_wxrule.apply_tags
- in the WLANs configuration to assign a WLAN to specific APs:
mist_site_wlan.wxtag_ids
- to identify unknown application used by Wi-Fi clients
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const wxtagOne = new junipermist.site.Wxtag("wxtag_one", {
siteId: terraformTest.id,
name: "wtag_one",
values: ["10.3.0.0/16"],
op: "in",
type: "match",
match: "ip_range_subnet",
});
import pulumi
import pulumi_juniper_mist as junipermist
wxtag_one = junipermist.site.Wxtag("wxtag_one",
site_id=terraform_test["id"],
name="wtag_one",
values=["10.3.0.0/16"],
op="in",
type="match",
match="ip_range_subnet")
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/site"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := site.NewWxtag(ctx, "wxtag_one", &site.WxtagArgs{
SiteId: pulumi.Any(terraformTest.Id),
Name: pulumi.String("wtag_one"),
Values: pulumi.StringArray{
pulumi.String("10.3.0.0/16"),
},
Op: pulumi.String("in"),
Type: pulumi.String("match"),
Match: pulumi.String("ip_range_subnet"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;
return await Deployment.RunAsync(() =>
{
var wxtagOne = new JuniperMist.Site.Wxtag("wxtag_one", new()
{
SiteId = terraformTest.Id,
Name = "wtag_one",
Values = new[]
{
"10.3.0.0/16",
},
Op = "in",
Type = "match",
Match = "ip_range_subnet",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.site.Wxtag;
import com.pulumi.junipermist.site.WxtagArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var wxtagOne = new Wxtag("wxtagOne", WxtagArgs.builder()
.siteId(terraformTest.id())
.name("wtag_one")
.values("10.3.0.0/16")
.op("in")
.type("match")
.match("ip_range_subnet")
.build());
}
}
resources:
wxtagOne:
type: junipermist:site:Wxtag
name: wxtag_one
properties:
siteId: ${terraformTest.id}
name: wtag_one
values:
- 10.3.0.0/16
op: in
type: match
match: ip_range_subnet
pulumi {
required_providers {
junipermist = {
source = "pulumi/junipermist"
}
}
}
resource "junipermist_site_wxtag" "wxtag_one" {
site_id = terraformTest.id
name = "wtag_one"
values = ["10.3.0.0/16"]
op = "in"
type = "match"
match = "ip_range_subnet"
}
Create Wxtag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Wxtag(name: string, args: WxtagArgs, opts?: CustomResourceOptions);@overload
def Wxtag(resource_name: str,
args: WxtagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Wxtag(resource_name: str,
opts: Optional[ResourceOptions] = None,
site_id: Optional[str] = None,
type: Optional[str] = None,
mac: Optional[str] = None,
match: Optional[str] = None,
name: Optional[str] = None,
op: Optional[str] = None,
specs: Optional[Sequence[WxtagSpecArgs]] = None,
values: Optional[Sequence[str]] = None,
vlan_id: Optional[str] = None)func NewWxtag(ctx *Context, name string, args WxtagArgs, opts ...ResourceOption) (*Wxtag, error)public Wxtag(string name, WxtagArgs args, CustomResourceOptions? opts = null)type: junipermist:site:Wxtag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "junipermist_site_wxtag" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WxtagArgs
- 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 WxtagArgs
- 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 WxtagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WxtagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WxtagArgs
- 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 junipermistWxtagResource = new JuniperMist.Site.Wxtag("junipermistWxtagResource", new()
{
SiteId = "string",
Type = "string",
Mac = "string",
Match = "string",
Name = "string",
Op = "string",
Specs = new[]
{
new JuniperMist.Site.Inputs.WxtagSpecArgs
{
PortRange = "string",
Protocol = "string",
Subnets = new[]
{
"string",
},
},
},
Values = new[]
{
"string",
},
VlanId = "string",
});
example, err := site.NewWxtag(ctx, "junipermistWxtagResource", &site.WxtagArgs{
SiteId: pulumi.String("string"),
Type: pulumi.String("string"),
Mac: pulumi.String("string"),
Match: pulumi.String("string"),
Name: pulumi.String("string"),
Op: pulumi.String("string"),
Specs: site.WxtagSpecArray{
&site.WxtagSpecArgs{
PortRange: pulumi.String("string"),
Protocol: pulumi.String("string"),
Subnets: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Values: pulumi.StringArray{
pulumi.String("string"),
},
VlanId: pulumi.String("string"),
})
resource "junipermist_site_wxtag" "junipermistWxtagResource" {
site_id = "string"
type = "string"
mac = "string"
match = "string"
name = "string"
op = "string"
specs {
port_range = "string"
protocol = "string"
subnets = ["string"]
}
values = ["string"]
vlan_id = "string"
}
var junipermistWxtagResource = new com.pulumi.junipermist.site.Wxtag("junipermistWxtagResource", com.pulumi.junipermist.site.WxtagArgs.builder()
.siteId("string")
.type("string")
.mac("string")
.match("string")
.name("string")
.op("string")
.specs(com.pulumi.junipermist.site.inputs.WxtagSpecArgs.builder()
.portRange("string")
.protocol("string")
.subnets("string")
.build())
.values("string")
.vlanId("string")
.build());
junipermist_wxtag_resource = junipermist.site.Wxtag("junipermistWxtagResource",
site_id="string",
type="string",
mac="string",
match="string",
name="string",
op="string",
specs=[{
"port_range": "string",
"protocol": "string",
"subnets": ["string"],
}],
values=["string"],
vlan_id="string")
const junipermistWxtagResource = new junipermist.site.Wxtag("junipermistWxtagResource", {
siteId: "string",
type: "string",
mac: "string",
match: "string",
name: "string",
op: "string",
specs: [{
portRange: "string",
protocol: "string",
subnets: ["string"],
}],
values: ["string"],
vlanId: "string",
});
type: junipermist:site:Wxtag
properties:
mac: string
match: string
name: string
op: string
siteId: string
specs:
- portRange: string
protocol: string
subnets:
- string
type: string
values:
- string
vlanId: string
Wxtag 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 Wxtag resource accepts the following input properties:
- Site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- Type string
- Kind of WxLAN tag and how it is populated
- Mac string
- If
type==client, Client MAC address - Match string
- Required if
type==match; attribute compared againstvalues - Name string
- Display name of the WxLAN tag
- Op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - Specs
List<Pulumi.
Juniper Mist. Site. Inputs. Wxtag Spec> - Traffic match specifications used when
type==spec - Values List<string>
- Comparison values for the selected
matchattribute whentype==match - Vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- Site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- Type string
- Kind of WxLAN tag and how it is populated
- Mac string
- If
type==client, Client MAC address - Match string
- Required if
type==match; attribute compared againstvalues - Name string
- Display name of the WxLAN tag
- Op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - Specs
[]Wxtag
Spec Args - Traffic match specifications used when
type==spec - Values []string
- Comparison values for the selected
matchattribute whentype==match - Vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- site_
id string - Mist site associated with this WxLAN tag, when site-scoped
- type string
- Kind of WxLAN tag and how it is populated
- mac string
- If
type==client, Client MAC address - match string
- Required if
type==match; attribute compared againstvalues - name string
- Display name of the WxLAN tag
- op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - specs list(object)
- Traffic match specifications used when
type==spec - values list(string)
- Comparison values for the selected
matchattribute whentype==match - vlan_
id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- site
Id String - Mist site associated with this WxLAN tag, when site-scoped
- type String
- Kind of WxLAN tag and how it is populated
- mac String
- If
type==client, Client MAC address - match String
- Required if
type==match; attribute compared againstvalues - name String
- Display name of the WxLAN tag
- op String
- Required if
type==match; whethervaluesare inclusive or exclusive matches - specs
List<Wxtag
Spec> - Traffic match specifications used when
type==spec - values List<String>
- Comparison values for the selected
matchattribute whentype==match - vlan
Id String - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- type string
- Kind of WxLAN tag and how it is populated
- mac string
- If
type==client, Client MAC address - match string
- Required if
type==match; attribute compared againstvalues - name string
- Display name of the WxLAN tag
- op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - specs
Wxtag
Spec[] - Traffic match specifications used when
type==spec - values string[]
- Comparison values for the selected
matchattribute whentype==match - vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- site_
id str - Mist site associated with this WxLAN tag, when site-scoped
- type str
- Kind of WxLAN tag and how it is populated
- mac str
- If
type==client, Client MAC address - match str
- Required if
type==match; attribute compared againstvalues - name str
- Display name of the WxLAN tag
- op str
- Required if
type==match; whethervaluesare inclusive or exclusive matches - specs
Sequence[Wxtag
Spec Args] - Traffic match specifications used when
type==spec - values Sequence[str]
- Comparison values for the selected
matchattribute whentype==match - vlan_
id str - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- site
Id String - Mist site associated with this WxLAN tag, when site-scoped
- type String
- Kind of WxLAN tag and how it is populated
- mac String
- If
type==client, Client MAC address - match String
- Required if
type==match; attribute compared againstvalues - name String
- Display name of the WxLAN tag
- op String
- Required if
type==match; whethervaluesare inclusive or exclusive matches - specs List<Property Map>
- Traffic match specifications used when
type==spec - values List<String>
- Comparison values for the selected
matchattribute whentype==match - vlan
Id String - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
Outputs
All input properties are implicitly available as output properties. Additionally, the Wxtag resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Wxtag Resource
Get an existing Wxtag resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WxtagState, opts?: CustomResourceOptions): Wxtag@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
mac: Optional[str] = None,
match: Optional[str] = None,
name: Optional[str] = None,
op: Optional[str] = None,
site_id: Optional[str] = None,
specs: Optional[Sequence[WxtagSpecArgs]] = None,
type: Optional[str] = None,
values: Optional[Sequence[str]] = None,
vlan_id: Optional[str] = None) -> Wxtagfunc GetWxtag(ctx *Context, name string, id IDInput, state *WxtagState, opts ...ResourceOption) (*Wxtag, error)public static Wxtag Get(string name, Input<string> id, WxtagState? state, CustomResourceOptions? opts = null)public static Wxtag get(String name, Output<String> id, WxtagState state, CustomResourceOptions options)resources: _: type: junipermist:site:Wxtag get: id: ${id}import {
to = junipermist_site_wxtag.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Mac string
- If
type==client, Client MAC address - Match string
- Required if
type==match; attribute compared againstvalues - Name string
- Display name of the WxLAN tag
- Op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - Site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- Specs
List<Pulumi.
Juniper Mist. Site. Inputs. Wxtag Spec> - Traffic match specifications used when
type==spec - Type string
- Kind of WxLAN tag and how it is populated
- Values List<string>
- Comparison values for the selected
matchattribute whentype==match - Vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- Mac string
- If
type==client, Client MAC address - Match string
- Required if
type==match; attribute compared againstvalues - Name string
- Display name of the WxLAN tag
- Op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - Site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- Specs
[]Wxtag
Spec Args - Traffic match specifications used when
type==spec - Type string
- Kind of WxLAN tag and how it is populated
- Values []string
- Comparison values for the selected
matchattribute whentype==match - Vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- mac string
- If
type==client, Client MAC address - match string
- Required if
type==match; attribute compared againstvalues - name string
- Display name of the WxLAN tag
- op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - site_
id string - Mist site associated with this WxLAN tag, when site-scoped
- specs list(object)
- Traffic match specifications used when
type==spec - type string
- Kind of WxLAN tag and how it is populated
- values list(string)
- Comparison values for the selected
matchattribute whentype==match - vlan_
id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- mac String
- If
type==client, Client MAC address - match String
- Required if
type==match; attribute compared againstvalues - name String
- Display name of the WxLAN tag
- op String
- Required if
type==match; whethervaluesare inclusive or exclusive matches - site
Id String - Mist site associated with this WxLAN tag, when site-scoped
- specs
List<Wxtag
Spec> - Traffic match specifications used when
type==spec - type String
- Kind of WxLAN tag and how it is populated
- values List<String>
- Comparison values for the selected
matchattribute whentype==match - vlan
Id String - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- mac string
- If
type==client, Client MAC address - match string
- Required if
type==match; attribute compared againstvalues - name string
- Display name of the WxLAN tag
- op string
- Required if
type==match; whethervaluesare inclusive or exclusive matches - site
Id string - Mist site associated with this WxLAN tag, when site-scoped
- specs
Wxtag
Spec[] - Traffic match specifications used when
type==spec - type string
- Kind of WxLAN tag and how it is populated
- values string[]
- Comparison values for the selected
matchattribute whentype==match - vlan
Id string - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- mac str
- If
type==client, Client MAC address - match str
- Required if
type==match; attribute compared againstvalues - name str
- Display name of the WxLAN tag
- op str
- Required if
type==match; whethervaluesare inclusive or exclusive matches - site_
id str - Mist site associated with this WxLAN tag, when site-scoped
- specs
Sequence[Wxtag
Spec Args] - Traffic match specifications used when
type==spec - type str
- Kind of WxLAN tag and how it is populated
- values Sequence[str]
- Comparison values for the selected
matchattribute whentype==match - vlan_
id str - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
- mac String
- If
type==client, Client MAC address - match String
- Required if
type==match; attribute compared againstvalues - name String
- Display name of the WxLAN tag
- op String
- Required if
type==match; whethervaluesare inclusive or exclusive matches - site
Id String - Mist site associated with this WxLAN tag, when site-scoped
- specs List<Property Map>
- Traffic match specifications used when
type==spec - type String
- Kind of WxLAN tag and how it is populated
- values List<String>
- Comparison values for the selected
matchattribute whentype==match - vlan
Id String - Identifier of the VLAN associated with this WxLAN tag when
type==vlan
Supporting Types
WxtagSpec, WxtagSpecArgs
- port_
range string - Matched destination port, "0" means any
- protocol string
- tcp / udp / icmp / gre / any / ":protocol_number",
protocolNumberis between 1-254 - subnets list(string)
- Destination subnets or IP addresses matched by this WxLAN tag spec
- port_
range str - Matched destination port, "0" means any
- protocol str
- tcp / udp / icmp / gre / any / ":protocol_number",
protocolNumberis between 1-254 - subnets Sequence[str]
- Destination subnets or IP addresses matched by this WxLAN tag spec
Import
Using pulumi import, import junipermist.site.Wxtag with:
Site WxTag can be imported by specifying the siteId and the wxtagId
$ pulumi import junipermist:site/wxtag:Wxtag wxtag_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mistTerraform Provider.
published on Friday, Jul 10, 2026 by Pulumi