1. Packages
  2. Juniper Mist
  3. API Docs
  4. org
  5. Nacrule
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

junipermist.org.Nacrule

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

    This resource manages the NAC Rules (Auth Policies). A NAC Rule defines a list of critera (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

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.org.Nacrule;
    import com.pulumi.junipermist.org.NacruleArgs;
    import com.pulumi.junipermist.org.inputs.NacruleMatchingArgs;
    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 nacruleOne = new Nacrule("nacruleOne", NacruleArgs.builder()
                .name("rule_one")
                .action("allow")
                .orgId(terraformTest.id())
                .matching(NacruleMatchingArgs.builder()
                    .port_types("wired")
                    .auth_type("mab")
                    .nactags("c055c60b-351a-4311-8ee5-9b7be5e5f902")
                    .build())
                .applyTags(            
                    "61c11327-5e1b-40ed-bbbf-5e95642c4f59",
                    "3f292454-ac5f-4a36-9aff-d0518d90b47a")
                .enabled(true)
                .order(9)
                .build());
    
        }
    }
    
    resources:
      nacruleOne:
        type: junipermist:org:Nacrule
        name: nacrule_one
        properties:
          name: rule_one
          action: allow
          orgId: ${terraformTest.id}
          matching:
            port_types:
              - wired
            auth_type: mab
            nactags:
              - c055c60b-351a-4311-8ee5-9b7be5e5f902
          applyTags:
            - 61c11327-5e1b-40ed-bbbf-5e95642c4f59
            - 3f292454-ac5f-4a36-9aff-d0518d90b47a
          enabled: true
          order: 9
    

    Create Nacrule Resource

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

    Constructor syntax

    new Nacrule(name: string, args: NacruleArgs, opts?: CustomResourceOptions);
    @overload
    def Nacrule(resource_name: str,
                args: NacruleArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Nacrule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                action: Optional[str] = None,
                order: Optional[int] = None,
                org_id: Optional[str] = None,
                apply_tags: Optional[Sequence[str]] = None,
                enabled: Optional[bool] = None,
                matching: Optional[NacruleMatchingArgs] = None,
                name: Optional[str] = None,
                not_matching: Optional[NacruleNotMatchingArgs] = None)
    func NewNacrule(ctx *Context, name string, args NacruleArgs, opts ...ResourceOption) (*Nacrule, error)
    public Nacrule(string name, NacruleArgs args, CustomResourceOptions? opts = null)
    public Nacrule(String name, NacruleArgs args)
    public Nacrule(String name, NacruleArgs args, CustomResourceOptions options)
    
    type: junipermist:org:Nacrule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NacruleArgs
    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 NacruleArgs
    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 NacruleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NacruleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NacruleArgs
    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 nacruleResource = new JuniperMist.Org.Nacrule("nacruleResource", new()
    {
        Action = "string",
        Order = 0,
        OrgId = "string",
        ApplyTags = new[]
        {
            "string",
        },
        Enabled = false,
        Matching = new JuniperMist.Org.Inputs.NacruleMatchingArgs
        {
            AuthType = "string",
            Nactags = new[]
            {
                "string",
            },
            PortTypes = new[]
            {
                "string",
            },
            SiteIds = new[]
            {
                "string",
            },
            SitegroupIds = new[]
            {
                "string",
            },
            Vendors = new[]
            {
                "string",
            },
        },
        Name = "string",
        NotMatching = new JuniperMist.Org.Inputs.NacruleNotMatchingArgs
        {
            AuthType = "string",
            Nactags = new[]
            {
                "string",
            },
            PortTypes = new[]
            {
                "string",
            },
            SiteIds = new[]
            {
                "string",
            },
            SitegroupIds = new[]
            {
                "string",
            },
            Vendors = new[]
            {
                "string",
            },
        },
    });
    
    example, err := org.NewNacrule(ctx, "nacruleResource", &org.NacruleArgs{
    	Action: pulumi.String("string"),
    	Order:  pulumi.Int(0),
    	OrgId:  pulumi.String("string"),
    	ApplyTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Enabled: pulumi.Bool(false),
    	Matching: &org.NacruleMatchingArgs{
    		AuthType: pulumi.String("string"),
    		Nactags: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PortTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SiteIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SitegroupIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Vendors: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	NotMatching: &org.NacruleNotMatchingArgs{
    		AuthType: pulumi.String("string"),
    		Nactags: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PortTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SiteIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SitegroupIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Vendors: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var nacruleResource = new Nacrule("nacruleResource", NacruleArgs.builder()
        .action("string")
        .order(0)
        .orgId("string")
        .applyTags("string")
        .enabled(false)
        .matching(NacruleMatchingArgs.builder()
            .authType("string")
            .nactags("string")
            .portTypes("string")
            .siteIds("string")
            .sitegroupIds("string")
            .vendors("string")
            .build())
        .name("string")
        .notMatching(NacruleNotMatchingArgs.builder()
            .authType("string")
            .nactags("string")
            .portTypes("string")
            .siteIds("string")
            .sitegroupIds("string")
            .vendors("string")
            .build())
        .build());
    
    nacrule_resource = junipermist.org.Nacrule("nacruleResource",
        action="string",
        order=0,
        org_id="string",
        apply_tags=["string"],
        enabled=False,
        matching={
            "auth_type": "string",
            "nactags": ["string"],
            "port_types": ["string"],
            "site_ids": ["string"],
            "sitegroup_ids": ["string"],
            "vendors": ["string"],
        },
        name="string",
        not_matching={
            "auth_type": "string",
            "nactags": ["string"],
            "port_types": ["string"],
            "site_ids": ["string"],
            "sitegroup_ids": ["string"],
            "vendors": ["string"],
        })
    
    const nacruleResource = new junipermist.org.Nacrule("nacruleResource", {
        action: "string",
        order: 0,
        orgId: "string",
        applyTags: ["string"],
        enabled: false,
        matching: {
            authType: "string",
            nactags: ["string"],
            portTypes: ["string"],
            siteIds: ["string"],
            sitegroupIds: ["string"],
            vendors: ["string"],
        },
        name: "string",
        notMatching: {
            authType: "string",
            nactags: ["string"],
            portTypes: ["string"],
            siteIds: ["string"],
            sitegroupIds: ["string"],
            vendors: ["string"],
        },
    });
    
    type: junipermist:org:Nacrule
    properties:
        action: string
        applyTags:
            - string
        enabled: false
        matching:
            authType: string
            nactags:
                - string
            portTypes:
                - string
            siteIds:
                - string
            sitegroupIds:
                - string
            vendors:
                - string
        name: string
        notMatching:
            authType: string
            nactags:
                - string
            portTypes:
                - string
            siteIds:
                - string
            sitegroupIds:
                - string
            vendors:
                - string
        order: 0
        orgId: string
    

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

    Action string
    enum: allow, block
    Order int
    the order of the rule, lower value implies higher priority
    OrgId string
    ApplyTags List<string>
    all optional, this goes into Access-Accept
    Enabled bool
    enabled or not
    Matching Pulumi.JuniperMist.Org.Inputs.NacruleMatching
    Name string
    NotMatching Pulumi.JuniperMist.Org.Inputs.NacruleNotMatching
    Action string
    enum: allow, block
    Order int
    the order of the rule, lower value implies higher priority
    OrgId string
    ApplyTags []string
    all optional, this goes into Access-Accept
    Enabled bool
    enabled or not
    Matching NacruleMatchingArgs
    Name string
    NotMatching NacruleNotMatchingArgs
    action String
    enum: allow, block
    order Integer
    the order of the rule, lower value implies higher priority
    orgId String
    applyTags List<String>
    all optional, this goes into Access-Accept
    enabled Boolean
    enabled or not
    matching NacruleMatching
    name String
    notMatching NacruleNotMatching
    action string
    enum: allow, block
    order number
    the order of the rule, lower value implies higher priority
    orgId string
    applyTags string[]
    all optional, this goes into Access-Accept
    enabled boolean
    enabled or not
    matching NacruleMatching
    name string
    notMatching NacruleNotMatching
    action str
    enum: allow, block
    order int
    the order of the rule, lower value implies higher priority
    org_id str
    apply_tags Sequence[str]
    all optional, this goes into Access-Accept
    enabled bool
    enabled or not
    matching NacruleMatchingArgs
    name str
    not_matching NacruleNotMatchingArgs
    action String
    enum: allow, block
    order Number
    the order of the rule, lower value implies higher priority
    orgId String
    applyTags List<String>
    all optional, this goes into Access-Accept
    enabled Boolean
    enabled or not
    matching Property Map
    name String
    notMatching Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Nacrule 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 Nacrule Resource

    Get an existing Nacrule 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?: NacruleState, opts?: CustomResourceOptions): Nacrule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            apply_tags: Optional[Sequence[str]] = None,
            enabled: Optional[bool] = None,
            matching: Optional[NacruleMatchingArgs] = None,
            name: Optional[str] = None,
            not_matching: Optional[NacruleNotMatchingArgs] = None,
            order: Optional[int] = None,
            org_id: Optional[str] = None) -> Nacrule
    func GetNacrule(ctx *Context, name string, id IDInput, state *NacruleState, opts ...ResourceOption) (*Nacrule, error)
    public static Nacrule Get(string name, Input<string> id, NacruleState? state, CustomResourceOptions? opts = null)
    public static Nacrule get(String name, Output<String> id, NacruleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Action string
    enum: allow, block
    ApplyTags List<string>
    all optional, this goes into Access-Accept
    Enabled bool
    enabled or not
    Matching Pulumi.JuniperMist.Org.Inputs.NacruleMatching
    Name string
    NotMatching Pulumi.JuniperMist.Org.Inputs.NacruleNotMatching
    Order int
    the order of the rule, lower value implies higher priority
    OrgId string
    Action string
    enum: allow, block
    ApplyTags []string
    all optional, this goes into Access-Accept
    Enabled bool
    enabled or not
    Matching NacruleMatchingArgs
    Name string
    NotMatching NacruleNotMatchingArgs
    Order int
    the order of the rule, lower value implies higher priority
    OrgId string
    action String
    enum: allow, block
    applyTags List<String>
    all optional, this goes into Access-Accept
    enabled Boolean
    enabled or not
    matching NacruleMatching
    name String
    notMatching NacruleNotMatching
    order Integer
    the order of the rule, lower value implies higher priority
    orgId String
    action string
    enum: allow, block
    applyTags string[]
    all optional, this goes into Access-Accept
    enabled boolean
    enabled or not
    matching NacruleMatching
    name string
    notMatching NacruleNotMatching
    order number
    the order of the rule, lower value implies higher priority
    orgId string
    action str
    enum: allow, block
    apply_tags Sequence[str]
    all optional, this goes into Access-Accept
    enabled bool
    enabled or not
    matching NacruleMatchingArgs
    name str
    not_matching NacruleNotMatchingArgs
    order int
    the order of the rule, lower value implies higher priority
    org_id str
    action String
    enum: allow, block
    applyTags List<String>
    all optional, this goes into Access-Accept
    enabled Boolean
    enabled or not
    matching Property Map
    name String
    notMatching Property Map
    order Number
    the order of the rule, lower value implies higher priority
    orgId String

    Supporting Types

    NacruleMatching, NacruleMatchingArgs

    AuthType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    Nactags List<string>
    PortTypes List<string>
    SiteIds List<string>
    list of site ids to match
    SitegroupIds List<string>
    list of sitegroup ids to match
    Vendors List<string>
    list of vendors to match
    AuthType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    Nactags []string
    PortTypes []string
    SiteIds []string
    list of site ids to match
    SitegroupIds []string
    list of sitegroup ids to match
    Vendors []string
    list of vendors to match
    authType String
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags List<String>
    portTypes List<String>
    siteIds List<String>
    list of site ids to match
    sitegroupIds List<String>
    list of sitegroup ids to match
    vendors List<String>
    list of vendors to match
    authType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags string[]
    portTypes string[]
    siteIds string[]
    list of site ids to match
    sitegroupIds string[]
    list of sitegroup ids to match
    vendors string[]
    list of vendors to match
    auth_type str
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags Sequence[str]
    port_types Sequence[str]
    site_ids Sequence[str]
    list of site ids to match
    sitegroup_ids Sequence[str]
    list of sitegroup ids to match
    vendors Sequence[str]
    list of vendors to match
    authType String
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags List<String>
    portTypes List<String>
    siteIds List<String>
    list of site ids to match
    sitegroupIds List<String>
    list of sitegroup ids to match
    vendors List<String>
    list of vendors to match

    NacruleNotMatching, NacruleNotMatchingArgs

    AuthType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    Nactags List<string>
    PortTypes List<string>
    SiteIds List<string>
    list of site ids to match
    SitegroupIds List<string>
    list of sitegroup ids to match
    Vendors List<string>
    list of vendors to match
    AuthType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    Nactags []string
    PortTypes []string
    SiteIds []string
    list of site ids to match
    SitegroupIds []string
    list of sitegroup ids to match
    Vendors []string
    list of vendors to match
    authType String
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags List<String>
    portTypes List<String>
    siteIds List<String>
    list of site ids to match
    sitegroupIds List<String>
    list of sitegroup ids to match
    vendors List<String>
    list of vendors to match
    authType string
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags string[]
    portTypes string[]
    siteIds string[]
    list of site ids to match
    sitegroupIds string[]
    list of sitegroup ids to match
    vendors string[]
    list of vendors to match
    auth_type str
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags Sequence[str]
    port_types Sequence[str]
    site_ids Sequence[str]
    list of site ids to match
    sitegroup_ids Sequence[str]
    list of sitegroup ids to match
    vendors Sequence[str]
    list of vendors to match
    authType String
    enum: cert, device-auth, eap-teap, eap-tls, eap-ttls, idp, mab, psk
    nactags List<String>
    portTypes List<String>
    siteIds List<String>
    list of site ids to match
    sitegroupIds List<String>
    list of sitegroup ids to match
    vendors List<String>
    list of vendors to match

    Import

    Using pulumi import, import mist_org_nacrule with:

    NAC Rule can be imported by specifying the org_id and the nacrule_id

    $ pulumi import junipermist:org/nacrule:Nacrule nacrule_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 mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi