UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

289 lines 19.5 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Wlan = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the Org Wlans. * * The WLAN object contains all the required configuration to broadcast an SSID (Authentication, VLAN, ...) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const wlanOne = new junipermist.org.Wlan("wlan_one", { * ssid: "wlan_one", * orgId: terraformTest.id, * templateId: test101.id, * bands: [ * "5", * "6", * ], * vlanEnabled: true, * vlanId: "143", * wlanLimitUp: "10000", * wlanLimitDown: "20000", * clientLimitUp: "512", * clientLimitDown: "1000", * auth: { * type: "psk", * psk: "secretpsk", * }, * "interface": "all", * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_wlan` with: * * Org WLAN can be imported by specifying the org_id and the wlan_id * * ```sh * $ pulumi import junipermist:org/wlan:Wlan wlan_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Wlan extends pulumi.CustomResource { /** * Get an existing Wlan 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, id, state, opts) { return new Wlan(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Wlan. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Wlan.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acctImmediateUpdate"] = state ? state.acctImmediateUpdate : undefined; resourceInputs["acctInterimInterval"] = state ? state.acctInterimInterval : undefined; resourceInputs["acctServers"] = state ? state.acctServers : undefined; resourceInputs["airwatch"] = state ? state.airwatch : undefined; resourceInputs["allowIpv6Ndp"] = state ? state.allowIpv6Ndp : undefined; resourceInputs["allowMdns"] = state ? state.allowMdns : undefined; resourceInputs["allowSsdp"] = state ? state.allowSsdp : undefined; resourceInputs["apIds"] = state ? state.apIds : undefined; resourceInputs["appLimit"] = state ? state.appLimit : undefined; resourceInputs["appQos"] = state ? state.appQos : undefined; resourceInputs["applyTo"] = state ? state.applyTo : undefined; resourceInputs["arpFilter"] = state ? state.arpFilter : undefined; resourceInputs["auth"] = state ? state.auth : undefined; resourceInputs["authServerSelection"] = state ? state.authServerSelection : undefined; resourceInputs["authServers"] = state ? state.authServers : undefined; resourceInputs["authServersNasId"] = state ? state.authServersNasId : undefined; resourceInputs["authServersNasIp"] = state ? state.authServersNasIp : undefined; resourceInputs["authServersRetries"] = state ? state.authServersRetries : undefined; resourceInputs["authServersTimeout"] = state ? state.authServersTimeout : undefined; resourceInputs["bandSteer"] = state ? state.bandSteer : undefined; resourceInputs["bandSteerForceBand5"] = state ? state.bandSteerForceBand5 : undefined; resourceInputs["bands"] = state ? state.bands : undefined; resourceInputs["blockBlacklistClients"] = state ? state.blockBlacklistClients : undefined; resourceInputs["bonjour"] = state ? state.bonjour : undefined; resourceInputs["ciscoCwa"] = state ? state.ciscoCwa : undefined; resourceInputs["clientLimitDown"] = state ? state.clientLimitDown : undefined; resourceInputs["clientLimitDownEnabled"] = state ? state.clientLimitDownEnabled : undefined; resourceInputs["clientLimitUp"] = state ? state.clientLimitUp : undefined; resourceInputs["clientLimitUpEnabled"] = state ? state.clientLimitUpEnabled : undefined; resourceInputs["coaServers"] = state ? state.coaServers : undefined; resourceInputs["disable11ax"] = state ? state.disable11ax : undefined; resourceInputs["disable11be"] = state ? state.disable11be : undefined; resourceInputs["disableHtVhtRates"] = state ? state.disableHtVhtRates : undefined; resourceInputs["disableUapsd"] = state ? state.disableUapsd : undefined; resourceInputs["disableV1RoamNotify"] = state ? state.disableV1RoamNotify : undefined; resourceInputs["disableV2RoamNotify"] = state ? state.disableV2RoamNotify : undefined; resourceInputs["disableWhenGatewayUnreachable"] = state ? state.disableWhenGatewayUnreachable : undefined; resourceInputs["disableWhenMxtunnelDown"] = state ? state.disableWhenMxtunnelDown : undefined; resourceInputs["disableWmm"] = state ? state.disableWmm : undefined; resourceInputs["dnsServerRewrite"] = state ? state.dnsServerRewrite : undefined; resourceInputs["dtim"] = state ? state.dtim : undefined; resourceInputs["dynamicPsk"] = state ? state.dynamicPsk : undefined; resourceInputs["dynamicVlan"] = state ? state.dynamicVlan : undefined; resourceInputs["enableLocalKeycaching"] = state ? state.enableLocalKeycaching : undefined; resourceInputs["enableWirelessBridging"] = state ? state.enableWirelessBridging : undefined; resourceInputs["enableWirelessBridgingDhcpTracking"] = state ? state.enableWirelessBridgingDhcpTracking : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["fastDot1xTimers"] = state ? state.fastDot1xTimers : undefined; resourceInputs["hideSsid"] = state ? state.hideSsid : undefined; resourceInputs["hostnameIe"] = state ? state.hostnameIe : undefined; resourceInputs["hotspot20"] = state ? state.hotspot20 : undefined; resourceInputs["injectDhcpOption82"] = state ? state.injectDhcpOption82 : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["isolation"] = state ? state.isolation : undefined; resourceInputs["l2Isolation"] = state ? state.l2Isolation : undefined; resourceInputs["legacyOverds"] = state ? state.legacyOverds : undefined; resourceInputs["limitBcast"] = state ? state.limitBcast : undefined; resourceInputs["limitProbeResponse"] = state ? state.limitProbeResponse : undefined; resourceInputs["maxIdletime"] = state ? state.maxIdletime : undefined; resourceInputs["maxNumClients"] = state ? state.maxNumClients : undefined; resourceInputs["mistNac"] = state ? state.mistNac : undefined; resourceInputs["mspId"] = state ? state.mspId : undefined; resourceInputs["mxtunnelIds"] = state ? state.mxtunnelIds : undefined; resourceInputs["mxtunnelNames"] = state ? state.mxtunnelNames : undefined; resourceInputs["noStaticDns"] = state ? state.noStaticDns : undefined; resourceInputs["noStaticIp"] = state ? state.noStaticIp : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["portal"] = state ? state.portal : undefined; resourceInputs["portalAllowedHostnames"] = state ? state.portalAllowedHostnames : undefined; resourceInputs["portalAllowedSubnets"] = state ? state.portalAllowedSubnets : undefined; resourceInputs["portalApiSecret"] = state ? state.portalApiSecret : undefined; resourceInputs["portalDeniedHostnames"] = state ? state.portalDeniedHostnames : undefined; resourceInputs["portalImage"] = state ? state.portalImage : undefined; resourceInputs["portalSsoUrl"] = state ? state.portalSsoUrl : undefined; resourceInputs["qos"] = state ? state.qos : undefined; resourceInputs["radsec"] = state ? state.radsec : undefined; resourceInputs["rateset"] = state ? state.rateset : undefined; resourceInputs["reconnectClientsWhenRoamingMxcluster"] = state ? state.reconnectClientsWhenRoamingMxcluster : undefined; resourceInputs["roamMode"] = state ? state.roamMode : undefined; resourceInputs["schedule"] = state ? state.schedule : undefined; resourceInputs["sleExcluded"] = state ? state.sleExcluded : undefined; resourceInputs["ssid"] = state ? state.ssid : undefined; resourceInputs["templateId"] = state ? state.templateId : undefined; resourceInputs["useEapolV1"] = state ? state.useEapolV1 : undefined; resourceInputs["vlanEnabled"] = state ? state.vlanEnabled : undefined; resourceInputs["vlanId"] = state ? state.vlanId : undefined; resourceInputs["vlanIds"] = state ? state.vlanIds : undefined; resourceInputs["vlanPooling"] = state ? state.vlanPooling : undefined; resourceInputs["wlanLimitDown"] = state ? state.wlanLimitDown : undefined; resourceInputs["wlanLimitDownEnabled"] = state ? state.wlanLimitDownEnabled : undefined; resourceInputs["wlanLimitUp"] = state ? state.wlanLimitUp : undefined; resourceInputs["wlanLimitUpEnabled"] = state ? state.wlanLimitUpEnabled : undefined; resourceInputs["wxtagIds"] = state ? state.wxtagIds : undefined; resourceInputs["wxtunnelId"] = state ? state.wxtunnelId : undefined; resourceInputs["wxtunnelRemoteId"] = state ? state.wxtunnelRemoteId : undefined; } else { const args = argsOrState; if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if ((!args || args.ssid === undefined) && !opts.urn) { throw new Error("Missing required property 'ssid'"); } if ((!args || args.templateId === undefined) && !opts.urn) { throw new Error("Missing required property 'templateId'"); } resourceInputs["acctImmediateUpdate"] = args ? args.acctImmediateUpdate : undefined; resourceInputs["acctInterimInterval"] = args ? args.acctInterimInterval : undefined; resourceInputs["acctServers"] = args ? args.acctServers : undefined; resourceInputs["airwatch"] = args ? args.airwatch : undefined; resourceInputs["allowIpv6Ndp"] = args ? args.allowIpv6Ndp : undefined; resourceInputs["allowMdns"] = args ? args.allowMdns : undefined; resourceInputs["allowSsdp"] = args ? args.allowSsdp : undefined; resourceInputs["apIds"] = args ? args.apIds : undefined; resourceInputs["appLimit"] = args ? args.appLimit : undefined; resourceInputs["appQos"] = args ? args.appQos : undefined; resourceInputs["applyTo"] = args ? args.applyTo : undefined; resourceInputs["arpFilter"] = args ? args.arpFilter : undefined; resourceInputs["auth"] = args ? args.auth : undefined; resourceInputs["authServerSelection"] = args ? args.authServerSelection : undefined; resourceInputs["authServers"] = args ? args.authServers : undefined; resourceInputs["authServersNasId"] = args ? args.authServersNasId : undefined; resourceInputs["authServersNasIp"] = args ? args.authServersNasIp : undefined; resourceInputs["authServersRetries"] = args ? args.authServersRetries : undefined; resourceInputs["authServersTimeout"] = args ? args.authServersTimeout : undefined; resourceInputs["bandSteer"] = args ? args.bandSteer : undefined; resourceInputs["bandSteerForceBand5"] = args ? args.bandSteerForceBand5 : undefined; resourceInputs["bands"] = args ? args.bands : undefined; resourceInputs["blockBlacklistClients"] = args ? args.blockBlacklistClients : undefined; resourceInputs["bonjour"] = args ? args.bonjour : undefined; resourceInputs["ciscoCwa"] = args ? args.ciscoCwa : undefined; resourceInputs["clientLimitDown"] = args ? args.clientLimitDown : undefined; resourceInputs["clientLimitDownEnabled"] = args ? args.clientLimitDownEnabled : undefined; resourceInputs["clientLimitUp"] = args ? args.clientLimitUp : undefined; resourceInputs["clientLimitUpEnabled"] = args ? args.clientLimitUpEnabled : undefined; resourceInputs["coaServers"] = args ? args.coaServers : undefined; resourceInputs["disable11ax"] = args ? args.disable11ax : undefined; resourceInputs["disable11be"] = args ? args.disable11be : undefined; resourceInputs["disableHtVhtRates"] = args ? args.disableHtVhtRates : undefined; resourceInputs["disableUapsd"] = args ? args.disableUapsd : undefined; resourceInputs["disableV1RoamNotify"] = args ? args.disableV1RoamNotify : undefined; resourceInputs["disableV2RoamNotify"] = args ? args.disableV2RoamNotify : undefined; resourceInputs["disableWhenGatewayUnreachable"] = args ? args.disableWhenGatewayUnreachable : undefined; resourceInputs["disableWhenMxtunnelDown"] = args ? args.disableWhenMxtunnelDown : undefined; resourceInputs["disableWmm"] = args ? args.disableWmm : undefined; resourceInputs["dnsServerRewrite"] = args ? args.dnsServerRewrite : undefined; resourceInputs["dtim"] = args ? args.dtim : undefined; resourceInputs["dynamicPsk"] = args ? args.dynamicPsk : undefined; resourceInputs["dynamicVlan"] = args ? args.dynamicVlan : undefined; resourceInputs["enableLocalKeycaching"] = args ? args.enableLocalKeycaching : undefined; resourceInputs["enableWirelessBridging"] = args ? args.enableWirelessBridging : undefined; resourceInputs["enableWirelessBridgingDhcpTracking"] = args ? args.enableWirelessBridgingDhcpTracking : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["fastDot1xTimers"] = args ? args.fastDot1xTimers : undefined; resourceInputs["hideSsid"] = args ? args.hideSsid : undefined; resourceInputs["hostnameIe"] = args ? args.hostnameIe : undefined; resourceInputs["hotspot20"] = args ? args.hotspot20 : undefined; resourceInputs["injectDhcpOption82"] = args ? args.injectDhcpOption82 : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["isolation"] = args ? args.isolation : undefined; resourceInputs["l2Isolation"] = args ? args.l2Isolation : undefined; resourceInputs["legacyOverds"] = args ? args.legacyOverds : undefined; resourceInputs["limitBcast"] = args ? args.limitBcast : undefined; resourceInputs["limitProbeResponse"] = args ? args.limitProbeResponse : undefined; resourceInputs["maxIdletime"] = args ? args.maxIdletime : undefined; resourceInputs["maxNumClients"] = args ? args.maxNumClients : undefined; resourceInputs["mistNac"] = args ? args.mistNac : undefined; resourceInputs["mxtunnelIds"] = args ? args.mxtunnelIds : undefined; resourceInputs["mxtunnelNames"] = args ? args.mxtunnelNames : undefined; resourceInputs["noStaticDns"] = args ? args.noStaticDns : undefined; resourceInputs["noStaticIp"] = args ? args.noStaticIp : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["portal"] = args ? args.portal : undefined; resourceInputs["portalAllowedHostnames"] = args ? args.portalAllowedHostnames : undefined; resourceInputs["portalAllowedSubnets"] = args ? args.portalAllowedSubnets : undefined; resourceInputs["portalDeniedHostnames"] = args ? args.portalDeniedHostnames : undefined; resourceInputs["qos"] = args ? args.qos : undefined; resourceInputs["radsec"] = args ? args.radsec : undefined; resourceInputs["rateset"] = args ? args.rateset : undefined; resourceInputs["reconnectClientsWhenRoamingMxcluster"] = args ? args.reconnectClientsWhenRoamingMxcluster : undefined; resourceInputs["roamMode"] = args ? args.roamMode : undefined; resourceInputs["schedule"] = args ? args.schedule : undefined; resourceInputs["sleExcluded"] = args ? args.sleExcluded : undefined; resourceInputs["ssid"] = args ? args.ssid : undefined; resourceInputs["templateId"] = args ? args.templateId : undefined; resourceInputs["useEapolV1"] = args ? args.useEapolV1 : undefined; resourceInputs["vlanEnabled"] = args ? args.vlanEnabled : undefined; resourceInputs["vlanId"] = args ? args.vlanId : undefined; resourceInputs["vlanIds"] = args ? args.vlanIds : undefined; resourceInputs["vlanPooling"] = args ? args.vlanPooling : undefined; resourceInputs["wlanLimitDown"] = args ? args.wlanLimitDown : undefined; resourceInputs["wlanLimitDownEnabled"] = args ? args.wlanLimitDownEnabled : undefined; resourceInputs["wlanLimitUp"] = args ? args.wlanLimitUp : undefined; resourceInputs["wlanLimitUpEnabled"] = args ? args.wlanLimitUpEnabled : undefined; resourceInputs["wxtagIds"] = args ? args.wxtagIds : undefined; resourceInputs["wxtunnelId"] = args ? args.wxtunnelId : undefined; resourceInputs["wxtunnelRemoteId"] = args ? args.wxtunnelRemoteId : undefined; resourceInputs["mspId"] = undefined /*out*/; resourceInputs["portalApiSecret"] = undefined /*out*/; resourceInputs["portalImage"] = undefined /*out*/; resourceInputs["portalSsoUrl"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Wlan.__pulumiType, name, resourceInputs, opts); } } exports.Wlan = Wlan; /** @internal */ Wlan.__pulumiType = 'junipermist:org/wlan:Wlan'; //# sourceMappingURL=wlan.js.map