1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getNacrules
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

junipermist.org.getNacrules

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

    This data source provides the list of NAC Rules (Auth Policies).

    A NAC Rule defines a list of criteria (NAC Tag) the network client must match to execute the Rule, an action (Allow/Deny)and a list of RADIUS Attributes (NAC Tags) to return

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const nacrules = junipermist.org.getNacrules({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    nacrules = junipermist.org.get_nacrules(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
    
    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.GetNacrules(ctx, &org.GetNacrulesArgs{
    			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 nacrules = JuniperMist.Org.GetNacrules.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.org.OrgFunctions;
    import com.pulumi.junipermist.org.inputs.GetNacrulesArgs;
    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 nacrules = OrgFunctions.getNacrules(GetNacrulesArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      nacrules:
        fn::invoke:
          function: junipermist:org:getNacrules
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getNacrules

    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 getNacrules(args: GetNacrulesArgs, opts?: InvokeOptions): Promise<GetNacrulesResult>
    function getNacrulesOutput(args: GetNacrulesOutputArgs, opts?: InvokeOptions): Output<GetNacrulesResult>
    def get_nacrules(org_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNacrulesResult
    def get_nacrules_output(org_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNacrulesResult]
    func GetNacrules(ctx *Context, args *GetNacrulesArgs, opts ...InvokeOption) (*GetNacrulesResult, error)
    func GetNacrulesOutput(ctx *Context, args *GetNacrulesOutputArgs, opts ...InvokeOption) GetNacrulesResultOutput

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

    public static class GetNacrules 
    {
        public static Task<GetNacrulesResult> InvokeAsync(GetNacrulesArgs args, InvokeOptions? opts = null)
        public static Output<GetNacrulesResult> Invoke(GetNacrulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNacrulesResult> getNacrules(GetNacrulesArgs args, InvokeOptions options)
    public static Output<GetNacrulesResult> getNacrules(GetNacrulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getNacrules:getNacrules
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getNacrules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgNacrules List<Pulumi.JuniperMist.Org.Outputs.GetNacrulesOrgNacrule>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgNacrules []GetNacrulesOrgNacrule
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgNacrules List<GetNacrulesOrgNacrule>
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgNacrules GetNacrulesOrgNacrule[]
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_nacrules Sequence[GetNacrulesOrgNacrule]
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgNacrules List<Property Map>

    Supporting Types

    GetNacrulesOrgNacrule

    CreatedTime double
    When the object has been created, in epoch
    Enabled bool
    Enabled or not
    Id string
    Unique ID of the object instance in the Mist Organization
    ModifiedTime double
    When the object has been modified for the last time, in epoch
    Name string
    Order int
    Order of the rule, lower value implies higher priority
    OrgId string
    CreatedTime float64
    When the object has been created, in epoch
    Enabled bool
    Enabled or not
    Id string
    Unique ID of the object instance in the Mist Organization
    ModifiedTime float64
    When the object has been modified for the last time, in epoch
    Name string
    Order int
    Order of the rule, lower value implies higher priority
    OrgId string
    createdTime Double
    When the object has been created, in epoch
    enabled Boolean
    Enabled or not
    id String
    Unique ID of the object instance in the Mist Organization
    modifiedTime Double
    When the object has been modified for the last time, in epoch
    name String
    order Integer
    Order of the rule, lower value implies higher priority
    orgId String
    createdTime number
    When the object has been created, in epoch
    enabled boolean
    Enabled or not
    id string
    Unique ID of the object instance in the Mist Organization
    modifiedTime number
    When the object has been modified for the last time, in epoch
    name string
    order number
    Order of the rule, lower value implies higher priority
    orgId string
    created_time float
    When the object has been created, in epoch
    enabled bool
    Enabled or not
    id str
    Unique ID of the object instance in the Mist Organization
    modified_time float
    When the object has been modified for the last time, in epoch
    name str
    order int
    Order of the rule, lower value implies higher priority
    org_id str
    createdTime Number
    When the object has been created, in epoch
    enabled Boolean
    Enabled or not
    id String
    Unique ID of the object instance in the Mist Organization
    modifiedTime Number
    When the object has been modified for the last time, in epoch
    name String
    order Number
    Order of the rule, lower value implies higher priority
    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.4.0 published on Wednesday, Apr 16, 2025 by Pulumi