UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

150 lines (149 loc) 5.03 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource manages the 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const nacruleOne = new junipermist.org.Nacrule("nacrule_one", { * name: "rule_one", * action: "allow", * orgId: terraformTest.id, * matching: { * portTypes: ["wired"], * authType: "mab", * nactags: ["c055c60b-351a-4311-8ee5-9b7be5e5f902"], * }, * applyTags: [ * "61c11327-5e1b-40ed-bbbf-5e95642c4f59", * "3f292454-ac5f-4a36-9aff-d0518d90b47a", * ], * enabled: true, * order: 9, * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_nacrule` with: * * NAC Rule can be imported by specifying the org_id and the nacrule_id * * ```sh * $ pulumi import junipermist:org/nacrule:Nacrule nacrule_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ export declare class Nacrule extends pulumi.CustomResource { /** * Get an existing Nacrule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NacruleState, opts?: pulumi.CustomResourceOptions): Nacrule; /** * Returns true if the given object is an instance of Nacrule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Nacrule; /** * enum: `allow`, `block` */ readonly action: pulumi.Output<string>; /** * All optional, this goes into Access-Accept */ readonly applyTags: pulumi.Output<string[]>; /** * Enabled or not */ readonly enabled: pulumi.Output<boolean>; /** * Guest portal authorization state. enum: `authorized`, `unknown` */ readonly guestAuthState: pulumi.Output<string | undefined>; readonly matching: pulumi.Output<outputs.org.NacruleMatching | undefined>; readonly name: pulumi.Output<string>; readonly notMatching: pulumi.Output<outputs.org.NacruleNotMatching | undefined>; /** * Order of the rule, lower value implies higher priority */ readonly order: pulumi.Output<number>; readonly orgId: pulumi.Output<string>; /** * Create a Nacrule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NacruleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Nacrule resources. */ export interface NacruleState { /** * enum: `allow`, `block` */ action?: pulumi.Input<string>; /** * All optional, this goes into Access-Accept */ applyTags?: pulumi.Input<pulumi.Input<string>[]>; /** * Enabled or not */ enabled?: pulumi.Input<boolean>; /** * Guest portal authorization state. enum: `authorized`, `unknown` */ guestAuthState?: pulumi.Input<string>; matching?: pulumi.Input<inputs.org.NacruleMatching>; name?: pulumi.Input<string>; notMatching?: pulumi.Input<inputs.org.NacruleNotMatching>; /** * Order of the rule, lower value implies higher priority */ order?: pulumi.Input<number>; orgId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Nacrule resource. */ export interface NacruleArgs { /** * enum: `allow`, `block` */ action: pulumi.Input<string>; /** * All optional, this goes into Access-Accept */ applyTags?: pulumi.Input<pulumi.Input<string>[]>; /** * Enabled or not */ enabled?: pulumi.Input<boolean>; /** * Guest portal authorization state. enum: `authorized`, `unknown` */ guestAuthState?: pulumi.Input<string>; matching?: pulumi.Input<inputs.org.NacruleMatching>; name?: pulumi.Input<string>; notMatching?: pulumi.Input<inputs.org.NacruleNotMatching>; /** * Order of the rule, lower value implies higher priority */ order: pulumi.Input<number>; orgId: pulumi.Input<string>; }