1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getWxtags
Juniper Mist v0.2.4 published on Saturday, Mar 1, 2025 by Pulumi

junipermist.org.getWxtags

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.2.4 published on Saturday, Mar 1, 2025 by Pulumi

    This resource provides the list of Org 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_org_wxrule.dst_allow_wxtags
      • mist_org_wxrule.dst_deny_wxtags
      • mist_org_wxrule.dst_wxtags
      • mist_org_wxrule.src_wxtags
    • within the Org WxRules to assign specific VLAN:
      • mist_org_wxrule.apply_tags
    • in the WLANs configuration to assign a WLAN to specific APs:
      • mist_org_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/junipermist";
    
    const switchStats = junipermist.device.getSwitchStats({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    switch_stats = junipermist.device.get_switch_stats(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/device"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := device.GetSwitchStats(ctx, &device.GetSwitchStatsArgs{
    			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    		}, nil)
    		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 switchStats = JuniperMist.Device.GetSwitchStats.Invoke(new()
        {
            OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.device.DeviceFunctions;
    import com.pulumi.junipermist.device.inputs.GetSwitchStatsArgs;
    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) {
            final var switchStats = DeviceFunctions.getSwitchStats(GetSwitchStatsArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      switchStats:
        fn::invoke:
          function: junipermist:device:getSwitchStats
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getWxtags

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWxtags(args: GetWxtagsArgs, opts?: InvokeOptions): Promise<GetWxtagsResult>
    function getWxtagsOutput(args: GetWxtagsOutputArgs, opts?: InvokeOptions): Output<GetWxtagsResult>
    def get_wxtags(org_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetWxtagsResult
    def get_wxtags_output(org_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetWxtagsResult]
    func GetWxtags(ctx *Context, args *GetWxtagsArgs, opts ...InvokeOption) (*GetWxtagsResult, error)
    func GetWxtagsOutput(ctx *Context, args *GetWxtagsOutputArgs, opts ...InvokeOption) GetWxtagsResultOutput

    > Note: This function is named GetWxtags in the Go SDK.

    public static class GetWxtags 
    {
        public static Task<GetWxtagsResult> InvokeAsync(GetWxtagsArgs args, InvokeOptions? opts = null)
        public static Output<GetWxtagsResult> Invoke(GetWxtagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWxtagsResult> getWxtags(GetWxtagsArgs args, InvokeOptions options)
    public static Output<GetWxtagsResult> getWxtags(GetWxtagsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getWxtags:getWxtags
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    OrgId string
    orgId String
    orgId string
    org_id str
    orgId String

    getWxtags Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgWxtags List<Pulumi.JuniperMist.Org.Outputs.GetWxtagsOrgWxtag>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgWxtags []GetWxtagsOrgWxtag
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgWxtags List<GetWxtagsOrgWxtag>
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgWxtags GetWxtagsOrgWxtag[]
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_wxtags Sequence[GetWxtagsOrgWxtag]
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgWxtags List<Property Map>

    Supporting Types

    GetWxtagsOrgWxtag

    CreatedTime double
    Id string
    ModifiedTime double
    Name string
    OrgId string
    CreatedTime float64
    Id string
    ModifiedTime float64
    Name string
    OrgId string
    createdTime Double
    id String
    modifiedTime Double
    name String
    orgId String
    createdTime number
    id string
    modifiedTime number
    name string
    orgId string
    createdTime Number
    id String
    modifiedTime Number
    name String
    orgId String

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.2.4 published on Saturday, Mar 1, 2025 by Pulumi