1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. Wxrule
Juniper Mist v0.3.1 published on Monday, Apr 14, 2025 by Pulumi

junipermist.org.Wxrule

Explore with Pulumi AI

This resource manages the Org WxRules (WxLAN policies).

A WxLAN policy is a set of rules and settings that can be applied to devices in a network to determine how they are treated. it provides support for access policies, network segmentation, role-based policies, micro-segmentation, and least privilege.
WxLAN policies are used to allow or deny specific users from accessing specific resources in a wireless network.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";

const wxruleOne = new junipermist.org.Wxrule("wxrule_one", {
    orgId: terraformTest.id,
    templateId: wlantemplateOne.id,
    srcWxtags: [wxtagOne.id],
    enabled: true,
    action: "allow",
    dstDenyWxtags: [wxtagTwo.id],
    order: 1,
});
Copy
import pulumi
import pulumi_juniper_mist as junipermist

wxrule_one = junipermist.org.Wxrule("wxrule_one",
    org_id=terraform_test["id"],
    template_id=wlantemplate_one["id"],
    src_wxtags=[wxtag_one["id"]],
    enabled=True,
    action="allow",
    dst_deny_wxtags=[wxtag_two["id"]],
    order=1)
Copy
package main

import (
	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := org.NewWxrule(ctx, "wxrule_one", &org.WxruleArgs{
			OrgId:      pulumi.Any(terraformTest.Id),
			TemplateId: pulumi.Any(wlantemplateOne.Id),
			SrcWxtags: pulumi.StringArray{
				wxtagOne.Id,
			},
			Enabled: pulumi.Bool(true),
			Action:  pulumi.String("allow"),
			DstDenyWxtags: pulumi.StringArray{
				wxtagTwo.Id,
			},
			Order: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;

return await Deployment.RunAsync(() => 
{
    var wxruleOne = new JuniperMist.Org.Wxrule("wxrule_one", new()
    {
        OrgId = terraformTest.Id,
        TemplateId = wlantemplateOne.Id,
        SrcWxtags = new[]
        {
            wxtagOne.Id,
        },
        Enabled = true,
        Action = "allow",
        DstDenyWxtags = new[]
        {
            wxtagTwo.Id,
        },
        Order = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.Wxrule;
import com.pulumi.junipermist.org.WxruleArgs;
import java.util.List;
import java.util.ArrayList;
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 wxruleOne = new Wxrule("wxruleOne", WxruleArgs.builder()
            .orgId(terraformTest.id())
            .templateId(wlantemplateOne.id())
            .srcWxtags(wxtagOne.id())
            .enabled(true)
            .action("allow")
            .dstDenyWxtags(wxtagTwo.id())
            .order(1)
            .build());

    }
}
Copy
resources:
  wxruleOne:
    type: junipermist:org:Wxrule
    name: wxrule_one
    properties:
      orgId: ${terraformTest.id}
      templateId: ${wlantemplateOne.id}
      srcWxtags:
        - ${wxtagOne.id}
      enabled: true
      action: allow
      dstDenyWxtags:
        - ${wxtagTwo.id}
      order: 1
Copy

Create Wxrule Resource

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

Constructor syntax

new Wxrule(name: string, args: WxruleArgs, opts?: CustomResourceOptions);
@overload
def Wxrule(resource_name: str,
           args: WxruleArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def Wxrule(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           action: Optional[str] = None,
           order: Optional[int] = None,
           org_id: Optional[str] = None,
           template_id: Optional[str] = None,
           apply_tags: Optional[Sequence[str]] = None,
           blocked_apps: Optional[Sequence[str]] = None,
           dst_allow_wxtags: Optional[Sequence[str]] = None,
           dst_deny_wxtags: Optional[Sequence[str]] = None,
           dst_wxtags: Optional[Sequence[str]] = None,
           enabled: Optional[bool] = None,
           src_wxtags: Optional[Sequence[str]] = None)
func NewWxrule(ctx *Context, name string, args WxruleArgs, opts ...ResourceOption) (*Wxrule, error)
public Wxrule(string name, WxruleArgs args, CustomResourceOptions? opts = null)
public Wxrule(String name, WxruleArgs args)
public Wxrule(String name, WxruleArgs args, CustomResourceOptions options)
type: junipermist:org:Wxrule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WxruleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WxruleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WxruleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WxruleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WxruleArgs
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 wxruleResource = new JuniperMist.Org.Wxrule("wxruleResource", new()
{
    Action = "string",
    Order = 0,
    OrgId = "string",
    TemplateId = "string",
    ApplyTags = new[]
    {
        "string",
    },
    BlockedApps = new[]
    {
        "string",
    },
    DstAllowWxtags = new[]
    {
        "string",
    },
    DstDenyWxtags = new[]
    {
        "string",
    },
    DstWxtags = new[]
    {
        "string",
    },
    Enabled = false,
    SrcWxtags = new[]
    {
        "string",
    },
});
Copy
example, err := org.NewWxrule(ctx, "wxruleResource", &org.WxruleArgs{
	Action:     pulumi.String("string"),
	Order:      pulumi.Int(0),
	OrgId:      pulumi.String("string"),
	TemplateId: pulumi.String("string"),
	ApplyTags: pulumi.StringArray{
		pulumi.String("string"),
	},
	BlockedApps: pulumi.StringArray{
		pulumi.String("string"),
	},
	DstAllowWxtags: pulumi.StringArray{
		pulumi.String("string"),
	},
	DstDenyWxtags: pulumi.StringArray{
		pulumi.String("string"),
	},
	DstWxtags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Enabled: pulumi.Bool(false),
	SrcWxtags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var wxruleResource = new Wxrule("wxruleResource", WxruleArgs.builder()
    .action("string")
    .order(0)
    .orgId("string")
    .templateId("string")
    .applyTags("string")
    .blockedApps("string")
    .dstAllowWxtags("string")
    .dstDenyWxtags("string")
    .dstWxtags("string")
    .enabled(false)
    .srcWxtags("string")
    .build());
Copy
wxrule_resource = junipermist.org.Wxrule("wxruleResource",
    action="string",
    order=0,
    org_id="string",
    template_id="string",
    apply_tags=["string"],
    blocked_apps=["string"],
    dst_allow_wxtags=["string"],
    dst_deny_wxtags=["string"],
    dst_wxtags=["string"],
    enabled=False,
    src_wxtags=["string"])
Copy
const wxruleResource = new junipermist.org.Wxrule("wxruleResource", {
    action: "string",
    order: 0,
    orgId: "string",
    templateId: "string",
    applyTags: ["string"],
    blockedApps: ["string"],
    dstAllowWxtags: ["string"],
    dstDenyWxtags: ["string"],
    dstWxtags: ["string"],
    enabled: false,
    srcWxtags: ["string"],
});
Copy
type: junipermist:org:Wxrule
properties:
    action: string
    applyTags:
        - string
    blockedApps:
        - string
    dstAllowWxtags:
        - string
    dstDenyWxtags:
        - string
    dstWxtags:
        - string
    enabled: false
    order: 0
    orgId: string
    srcWxtags:
        - string
    templateId: string
Copy

Wxrule 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 Wxrule resource accepts the following input properties:

Action This property is required. string
type of action, allow / block. enum: allow, block
Order This property is required. int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
OrgId This property is required. string
TemplateId This property is required. string
Only for Org Level WxRule
ApplyTags List<string>
BlockedApps List<string>
Blocked apps (always blocking, ignoring action), the key of Get Application List
DstAllowWxtags List<string>
List of WxTag UUID to indicate these tags are allowed access
DstDenyWxtags List<string>
List of WxTag UUID to indicate these tags are blocked access
DstWxtags List<string>
List of WxTag UUID
Enabled bool
SrcWxtags List<string>
List of WxTag UUID to determine if this rule would match
Action This property is required. string
type of action, allow / block. enum: allow, block
Order This property is required. int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
OrgId This property is required. string
TemplateId This property is required. string
Only for Org Level WxRule
ApplyTags []string
BlockedApps []string
Blocked apps (always blocking, ignoring action), the key of Get Application List
DstAllowWxtags []string
List of WxTag UUID to indicate these tags are allowed access
DstDenyWxtags []string
List of WxTag UUID to indicate these tags are blocked access
DstWxtags []string
List of WxTag UUID
Enabled bool
SrcWxtags []string
List of WxTag UUID to determine if this rule would match
action This property is required. String
type of action, allow / block. enum: allow, block
order This property is required. Integer
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId This property is required. String
templateId This property is required. String
Only for Org Level WxRule
applyTags List<String>
blockedApps List<String>
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags List<String>
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags List<String>
List of WxTag UUID to indicate these tags are blocked access
dstWxtags List<String>
List of WxTag UUID
enabled Boolean
srcWxtags List<String>
List of WxTag UUID to determine if this rule would match
action This property is required. string
type of action, allow / block. enum: allow, block
order This property is required. number
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId This property is required. string
templateId This property is required. string
Only for Org Level WxRule
applyTags string[]
blockedApps string[]
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags string[]
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags string[]
List of WxTag UUID to indicate these tags are blocked access
dstWxtags string[]
List of WxTag UUID
enabled boolean
srcWxtags string[]
List of WxTag UUID to determine if this rule would match
action This property is required. str
type of action, allow / block. enum: allow, block
order This property is required. int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
org_id This property is required. str
template_id This property is required. str
Only for Org Level WxRule
apply_tags Sequence[str]
blocked_apps Sequence[str]
Blocked apps (always blocking, ignoring action), the key of Get Application List
dst_allow_wxtags Sequence[str]
List of WxTag UUID to indicate these tags are allowed access
dst_deny_wxtags Sequence[str]
List of WxTag UUID to indicate these tags are blocked access
dst_wxtags Sequence[str]
List of WxTag UUID
enabled bool
src_wxtags Sequence[str]
List of WxTag UUID to determine if this rule would match
action This property is required. String
type of action, allow / block. enum: allow, block
order This property is required. Number
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId This property is required. String
templateId This property is required. String
Only for Org Level WxRule
applyTags List<String>
blockedApps List<String>
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags List<String>
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags List<String>
List of WxTag UUID to indicate these tags are blocked access
dstWxtags List<String>
List of WxTag UUID
enabled Boolean
srcWxtags List<String>
List of WxTag UUID to determine if this rule would match

Outputs

All input properties are implicitly available as output properties. Additionally, the Wxrule 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 str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Wxrule Resource

Get an existing Wxrule 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?: WxruleState, opts?: CustomResourceOptions): Wxrule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        apply_tags: Optional[Sequence[str]] = None,
        blocked_apps: Optional[Sequence[str]] = None,
        dst_allow_wxtags: Optional[Sequence[str]] = None,
        dst_deny_wxtags: Optional[Sequence[str]] = None,
        dst_wxtags: Optional[Sequence[str]] = None,
        enabled: Optional[bool] = None,
        order: Optional[int] = None,
        org_id: Optional[str] = None,
        src_wxtags: Optional[Sequence[str]] = None,
        template_id: Optional[str] = None) -> Wxrule
func GetWxrule(ctx *Context, name string, id IDInput, state *WxruleState, opts ...ResourceOption) (*Wxrule, error)
public static Wxrule Get(string name, Input<string> id, WxruleState? state, CustomResourceOptions? opts = null)
public static Wxrule get(String name, Output<String> id, WxruleState state, CustomResourceOptions options)
resources:  _:    type: junipermist:org:Wxrule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Action string
type of action, allow / block. enum: allow, block
ApplyTags List<string>
BlockedApps List<string>
Blocked apps (always blocking, ignoring action), the key of Get Application List
DstAllowWxtags List<string>
List of WxTag UUID to indicate these tags are allowed access
DstDenyWxtags List<string>
List of WxTag UUID to indicate these tags are blocked access
DstWxtags List<string>
List of WxTag UUID
Enabled bool
Order int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
OrgId string
SrcWxtags List<string>
List of WxTag UUID to determine if this rule would match
TemplateId string
Only for Org Level WxRule
Action string
type of action, allow / block. enum: allow, block
ApplyTags []string
BlockedApps []string
Blocked apps (always blocking, ignoring action), the key of Get Application List
DstAllowWxtags []string
List of WxTag UUID to indicate these tags are allowed access
DstDenyWxtags []string
List of WxTag UUID to indicate these tags are blocked access
DstWxtags []string
List of WxTag UUID
Enabled bool
Order int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
OrgId string
SrcWxtags []string
List of WxTag UUID to determine if this rule would match
TemplateId string
Only for Org Level WxRule
action String
type of action, allow / block. enum: allow, block
applyTags List<String>
blockedApps List<String>
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags List<String>
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags List<String>
List of WxTag UUID to indicate these tags are blocked access
dstWxtags List<String>
List of WxTag UUID
enabled Boolean
order Integer
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId String
srcWxtags List<String>
List of WxTag UUID to determine if this rule would match
templateId String
Only for Org Level WxRule
action string
type of action, allow / block. enum: allow, block
applyTags string[]
blockedApps string[]
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags string[]
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags string[]
List of WxTag UUID to indicate these tags are blocked access
dstWxtags string[]
List of WxTag UUID
enabled boolean
order number
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId string
srcWxtags string[]
List of WxTag UUID to determine if this rule would match
templateId string
Only for Org Level WxRule
action str
type of action, allow / block. enum: allow, block
apply_tags Sequence[str]
blocked_apps Sequence[str]
Blocked apps (always blocking, ignoring action), the key of Get Application List
dst_allow_wxtags Sequence[str]
List of WxTag UUID to indicate these tags are allowed access
dst_deny_wxtags Sequence[str]
List of WxTag UUID to indicate these tags are blocked access
dst_wxtags Sequence[str]
List of WxTag UUID
enabled bool
order int
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
org_id str
src_wxtags Sequence[str]
List of WxTag UUID to determine if this rule would match
template_id str
Only for Org Level WxRule
action String
type of action, allow / block. enum: allow, block
applyTags List<String>
blockedApps List<String>
Blocked apps (always blocking, ignoring action), the key of Get Application List
dstAllowWxtags List<String>
List of WxTag UUID to indicate these tags are allowed access
dstDenyWxtags List<String>
List of WxTag UUID to indicate these tags are blocked access
dstWxtags List<String>
List of WxTag UUID
enabled Boolean
order Number
Order how rules would be looked up, > 0 and bigger order got matched first, -1 means LAST, uniqueness not checked
orgId String
srcWxtags List<String>
List of WxTag UUID to determine if this rule would match
templateId String
Only for Org Level WxRule

Import

Using pulumi import, import mist_org_wxrule with:

Org WxRule can be imported by specifying the org_id and the wxrule_id

$ pulumi import junipermist:org/wxrule:Wxrule wxrule_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
Copy

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 mist Terraform Provider.