UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

236 lines 12.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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Setting = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages the Site Settings. * * The Site Settings can be used to customize the Site configuration and assign Site Variables (Sites Variables can be reused in configuration templates) * * > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, all the site level switches related settings are moved into the `junipermist.site.Networktemplate` resource * * > Only ONE `junipermist.site.Setting` resource can be configured per site. If multiple ones are configured, only the last one defined we be successfully deployed to Mist * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const siteOne = new junipermist.site.Setting("site_one", { * siteId: terraformSite.id, * apUpdownThreshold: 5, * deviceUpdownThreshold: 5, * autoUpgrade: { * enabled: true, * dayOfWeek: "tue", * timeOfDay: "02:00", * version: "beta", * }, * configAutoRevert: true, * persistConfigOnDevice: true, * proxy: { * url: "http://myproxy:3128", * }, * rogue: { * enabled: true, * honeypotEnabled: true, * minDuration: 5, * }, * }); * ``` * * ## Import * * Using `pulumi import`, import `junipermist.site.Setting` with: * Site Setting can be imported by specifying the siteId * * ```sh * $ pulumi import junipermist:site/setting:Setting site_setting_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a * ``` */ class Setting extends pulumi.CustomResource { /** * Get an existing Setting 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 Setting(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:site/setting:Setting'; /** * Returns true if the given object is an instance of Setting. 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'] === Setting.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowMist"] = state?.allowMist; resourceInputs["analytic"] = state?.analytic; resourceInputs["apSyntheticTest"] = state?.apSyntheticTest; resourceInputs["apUpdownThreshold"] = state?.apUpdownThreshold; resourceInputs["autoUpgrade"] = state?.autoUpgrade; resourceInputs["autoUpgradeEsl"] = state?.autoUpgradeEsl; resourceInputs["bgpNeighborUpdownThreshold"] = state?.bgpNeighborUpdownThreshold; resourceInputs["blacklistUrl"] = state?.blacklistUrl; resourceInputs["bleConfig"] = state?.bleConfig; resourceInputs["configAutoRevert"] = state?.configAutoRevert; resourceInputs["configPushPolicy"] = state?.configPushPolicy; resourceInputs["criticalUrlMonitoring"] = state?.criticalUrlMonitoring; resourceInputs["deviceUpdownThreshold"] = state?.deviceUpdownThreshold; resourceInputs["enableUnii4"] = state?.enableUnii4; resourceInputs["engagement"] = state?.engagement; resourceInputs["gatewayMgmt"] = state?.gatewayMgmt; resourceInputs["gatewayTunnelUpdownThreshold"] = state?.gatewayTunnelUpdownThreshold; resourceInputs["gatewayUpdownThreshold"] = state?.gatewayUpdownThreshold; resourceInputs["iotproxy"] = state?.iotproxy; resourceInputs["juniperSrx"] = state?.juniperSrx; resourceInputs["led"] = state?.led; resourceInputs["marvis"] = state?.marvis; resourceInputs["mxedgeMgmt"] = state?.mxedgeMgmt; resourceInputs["mxtunnel"] = state?.mxtunnel; resourceInputs["occupancy"] = state?.occupancy; resourceInputs["persistConfigOnDevice"] = state?.persistConfigOnDevice; resourceInputs["proxy"] = state?.proxy; resourceInputs["removeExistingConfigs"] = state?.removeExistingConfigs; resourceInputs["reportGatt"] = state?.reportGatt; resourceInputs["rogue"] = state?.rogue; resourceInputs["rtsa"] = state?.rtsa; resourceInputs["simpleAlert"] = state?.simpleAlert; resourceInputs["siteId"] = state?.siteId; resourceInputs["skyatp"] = state?.skyatp; resourceInputs["sleThresholds"] = state?.sleThresholds; resourceInputs["srxApp"] = state?.srxApp; resourceInputs["sshKeys"] = state?.sshKeys; resourceInputs["ssr"] = state?.ssr; resourceInputs["switchUpdownThreshold"] = state?.switchUpdownThreshold; resourceInputs["syntheticTest"] = state?.syntheticTest; resourceInputs["trackAnonymousDevices"] = state?.trackAnonymousDevices; resourceInputs["tuntermMonitoringDisabled"] = state?.tuntermMonitoringDisabled; resourceInputs["tuntermMonitorings"] = state?.tuntermMonitorings; resourceInputs["tuntermMulticastConfig"] = state?.tuntermMulticastConfig; resourceInputs["uplinkPortConfig"] = state?.uplinkPortConfig; resourceInputs["vars"] = state?.vars; resourceInputs["varsAnnotations"] = state?.varsAnnotations; resourceInputs["vna"] = state?.vna; resourceInputs["vpnPathUpdownThreshold"] = state?.vpnPathUpdownThreshold; resourceInputs["vpnPeerUpdownThreshold"] = state?.vpnPeerUpdownThreshold; resourceInputs["vsInstance"] = state?.vsInstance; resourceInputs["wanVna"] = state?.wanVna; resourceInputs["watchedStationUrl"] = state?.watchedStationUrl; resourceInputs["whitelistUrl"] = state?.whitelistUrl; resourceInputs["wids"] = state?.wids; resourceInputs["wifi"] = state?.wifi; resourceInputs["wiredVna"] = state?.wiredVna; resourceInputs["zoneOccupancyAlert"] = state?.zoneOccupancyAlert; } else { const args = argsOrState; if (args?.siteId === undefined && !opts.urn) { throw new Error("Missing required property 'siteId'"); } resourceInputs["allowMist"] = args?.allowMist; resourceInputs["analytic"] = args?.analytic; resourceInputs["apSyntheticTest"] = args?.apSyntheticTest; resourceInputs["apUpdownThreshold"] = args?.apUpdownThreshold; resourceInputs["autoUpgrade"] = args?.autoUpgrade; resourceInputs["autoUpgradeEsl"] = args?.autoUpgradeEsl; resourceInputs["bgpNeighborUpdownThreshold"] = args?.bgpNeighborUpdownThreshold; resourceInputs["bleConfig"] = args?.bleConfig; resourceInputs["configAutoRevert"] = args?.configAutoRevert; resourceInputs["configPushPolicy"] = args?.configPushPolicy; resourceInputs["criticalUrlMonitoring"] = args?.criticalUrlMonitoring; resourceInputs["deviceUpdownThreshold"] = args?.deviceUpdownThreshold; resourceInputs["enableUnii4"] = args?.enableUnii4; resourceInputs["engagement"] = args?.engagement; resourceInputs["gatewayMgmt"] = args?.gatewayMgmt; resourceInputs["gatewayTunnelUpdownThreshold"] = args?.gatewayTunnelUpdownThreshold; resourceInputs["gatewayUpdownThreshold"] = args?.gatewayUpdownThreshold; resourceInputs["iotproxy"] = args?.iotproxy; resourceInputs["juniperSrx"] = args?.juniperSrx; resourceInputs["led"] = args?.led; resourceInputs["marvis"] = args?.marvis; resourceInputs["mxedgeMgmt"] = args?.mxedgeMgmt; resourceInputs["mxtunnel"] = args?.mxtunnel; resourceInputs["occupancy"] = args?.occupancy; resourceInputs["persistConfigOnDevice"] = args?.persistConfigOnDevice; resourceInputs["proxy"] = args?.proxy; resourceInputs["removeExistingConfigs"] = args?.removeExistingConfigs; resourceInputs["reportGatt"] = args?.reportGatt; resourceInputs["rogue"] = args?.rogue; resourceInputs["rtsa"] = args?.rtsa; resourceInputs["simpleAlert"] = args?.simpleAlert; resourceInputs["siteId"] = args?.siteId; resourceInputs["skyatp"] = args?.skyatp; resourceInputs["sleThresholds"] = args?.sleThresholds; resourceInputs["srxApp"] = args?.srxApp; resourceInputs["sshKeys"] = args?.sshKeys; resourceInputs["ssr"] = args?.ssr; resourceInputs["switchUpdownThreshold"] = args?.switchUpdownThreshold; resourceInputs["syntheticTest"] = args?.syntheticTest; resourceInputs["trackAnonymousDevices"] = args?.trackAnonymousDevices; resourceInputs["tuntermMonitoringDisabled"] = args?.tuntermMonitoringDisabled; resourceInputs["tuntermMonitorings"] = args?.tuntermMonitorings; resourceInputs["tuntermMulticastConfig"] = args?.tuntermMulticastConfig; resourceInputs["uplinkPortConfig"] = args?.uplinkPortConfig; resourceInputs["vars"] = args?.vars; resourceInputs["varsAnnotations"] = args?.varsAnnotations; resourceInputs["vna"] = args?.vna; resourceInputs["vpnPathUpdownThreshold"] = args?.vpnPathUpdownThreshold; resourceInputs["vpnPeerUpdownThreshold"] = args?.vpnPeerUpdownThreshold; resourceInputs["vsInstance"] = args?.vsInstance; resourceInputs["wanVna"] = args?.wanVna; resourceInputs["wids"] = args?.wids; resourceInputs["wifi"] = args?.wifi; resourceInputs["wiredVna"] = args?.wiredVna; resourceInputs["zoneOccupancyAlert"] = args?.zoneOccupancyAlert; resourceInputs["blacklistUrl"] = undefined /*out*/; resourceInputs["watchedStationUrl"] = undefined /*out*/; resourceInputs["whitelistUrl"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Setting.__pulumiType, name, resourceInputs, opts); } } exports.Setting = Setting; //# sourceMappingURL=setting.js.map