UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

196 lines 10.1 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.Setting = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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 `mist_site_setting` with: * * Site Setting can be imported by specifying the site_id * * ```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 }); } /** * 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["analytic"] = state?.analytic; 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["defaultPortUsage"] = state?.defaultPortUsage; resourceInputs["deviceUpdownThreshold"] = state?.deviceUpdownThreshold; resourceInputs["enableUnii4"] = state?.enableUnii4; resourceInputs["engagement"] = state?.engagement; resourceInputs["gatewayMgmt"] = state?.gatewayMgmt; resourceInputs["gatewayUpdownThreshold"] = state?.gatewayUpdownThreshold; resourceInputs["juniperSrx"] = state?.juniperSrx; resourceInputs["led"] = state?.led; resourceInputs["marvis"] = state?.marvis; 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["uplinkPortConfig"] = state?.uplinkPortConfig; resourceInputs["vars"] = state?.vars; 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["analytic"] = args?.analytic; 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["defaultPortUsage"] = args?.defaultPortUsage; resourceInputs["deviceUpdownThreshold"] = args?.deviceUpdownThreshold; resourceInputs["enableUnii4"] = args?.enableUnii4; resourceInputs["engagement"] = args?.engagement; resourceInputs["gatewayMgmt"] = args?.gatewayMgmt; resourceInputs["gatewayUpdownThreshold"] = args?.gatewayUpdownThreshold; resourceInputs["juniperSrx"] = args?.juniperSrx; resourceInputs["led"] = args?.led; resourceInputs["marvis"] = args?.marvis; 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["uplinkPortConfig"] = args?.uplinkPortConfig; resourceInputs["vars"] = args?.vars; 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; /** @internal */ Setting.__pulumiType = 'junipermist:site/setting:Setting'; //# sourceMappingURL=setting.js.map