@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
198 lines • 8.6 kB
JavaScript
;
// *** 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 Org Settings.
*
* The Org Settings can be used to customize the Org configuration
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const terraformTest = new junipermist.org.Setting("terraform_test", {
* orgId: terraformTestMistOrg.id,
* apUpdownThreshold: 10,
* cradlepoint: {
* cpApiId: "cp_api_id_test",
* cpApiKey: "secret",
* ecmApiId: "ecm_api_id_test",
* ecmApiKey: "secret",
* },
* deviceUpdownThreshold: 10,
* disablePcap: false,
* disableRemoteShell: true,
* gatewayUpdownThreshold: 10,
* mxedgeMgmt: {
* mistPassword: "root_secret_password",
* rootPassword: "root_secret_password",
* oobIpType: "dhcp",
* oobIpType6: "disabled",
* },
* passwordPolicy: {
* enabled: true,
* freshness: 180,
* minLength: 12,
* requiresSpecialChar: true,
* requiresTwoFactorAuth: false,
* },
* security: {
* disableLocalSsh: true,
* },
* switchUpdownThreshold: 10,
* syntheticTest: {
* disabled: false,
* vlans: [
* {
* vlanIds: [
* "10",
* "30",
* ],
* customTestUrls: [
* "http://www.abc.com/",
* "https://10.3.5.1:8080/about",
* ],
* },
* {
* vlanIds: ["20"],
* disabled: true,
* },
* ],
* },
* uiIdleTimeout: 120,
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `mist_org_setting` with:
*
* Org Setting can be imported by specifying the org_id
*
* ```sh
* $ pulumi import junipermist:org/setting:Setting 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["apUpdownThreshold"] = state?.apUpdownThreshold;
resourceInputs["apiPolicy"] = state?.apiPolicy;
resourceInputs["cacerts"] = state?.cacerts;
resourceInputs["celona"] = state?.celona;
resourceInputs["cloudshark"] = state?.cloudshark;
resourceInputs["cradlepoint"] = state?.cradlepoint;
resourceInputs["deviceCert"] = state?.deviceCert;
resourceInputs["deviceUpdownThreshold"] = state?.deviceUpdownThreshold;
resourceInputs["disablePcap"] = state?.disablePcap;
resourceInputs["disableRemoteShell"] = state?.disableRemoteShell;
resourceInputs["gatewayUpdownThreshold"] = state?.gatewayUpdownThreshold;
resourceInputs["installer"] = state?.installer;
resourceInputs["jcloud"] = state?.jcloud;
resourceInputs["jcloudRa"] = state?.jcloudRa;
resourceInputs["juniper"] = state?.juniper;
resourceInputs["juniperSrx"] = state?.juniperSrx;
resourceInputs["junosShellAccess"] = state?.junosShellAccess;
resourceInputs["marvis"] = state?.marvis;
resourceInputs["mgmt"] = state?.mgmt;
resourceInputs["mistNac"] = state?.mistNac;
resourceInputs["mxedgeMgmt"] = state?.mxedgeMgmt;
resourceInputs["opticPortConfig"] = state?.opticPortConfig;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["passwordPolicy"] = state?.passwordPolicy;
resourceInputs["pcap"] = state?.pcap;
resourceInputs["security"] = state?.security;
resourceInputs["ssr"] = state?.ssr;
resourceInputs["switch"] = state?.switch;
resourceInputs["switchMgmt"] = state?.switchMgmt;
resourceInputs["switchUpdownThreshold"] = state?.switchUpdownThreshold;
resourceInputs["syntheticTest"] = state?.syntheticTest;
resourceInputs["uiIdleTimeout"] = state?.uiIdleTimeout;
resourceInputs["uiNoTracking"] = state?.uiNoTracking;
resourceInputs["vpnOptions"] = state?.vpnOptions;
resourceInputs["wanPma"] = state?.wanPma;
resourceInputs["wiredPma"] = state?.wiredPma;
resourceInputs["wirelessPma"] = state?.wirelessPma;
}
else {
const args = argsOrState;
if (args?.orgId === undefined && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["apUpdownThreshold"] = args?.apUpdownThreshold;
resourceInputs["apiPolicy"] = args?.apiPolicy;
resourceInputs["cacerts"] = args?.cacerts;
resourceInputs["celona"] = args?.celona;
resourceInputs["cloudshark"] = args?.cloudshark;
resourceInputs["deviceCert"] = args?.deviceCert;
resourceInputs["deviceUpdownThreshold"] = args?.deviceUpdownThreshold;
resourceInputs["disablePcap"] = args?.disablePcap;
resourceInputs["disableRemoteShell"] = args?.disableRemoteShell;
resourceInputs["gatewayUpdownThreshold"] = args?.gatewayUpdownThreshold;
resourceInputs["installer"] = args?.installer;
resourceInputs["jcloud"] = args?.jcloud;
resourceInputs["jcloudRa"] = args?.jcloudRa;
resourceInputs["juniperSrx"] = args?.juniperSrx;
resourceInputs["junosShellAccess"] = args?.junosShellAccess;
resourceInputs["marvis"] = args?.marvis;
resourceInputs["mgmt"] = args?.mgmt;
resourceInputs["mistNac"] = args?.mistNac;
resourceInputs["mxedgeMgmt"] = args?.mxedgeMgmt;
resourceInputs["opticPortConfig"] = args?.opticPortConfig;
resourceInputs["orgId"] = args?.orgId;
resourceInputs["passwordPolicy"] = args?.passwordPolicy;
resourceInputs["security"] = args?.security;
resourceInputs["ssr"] = args?.ssr;
resourceInputs["switch"] = args?.switch;
resourceInputs["switchMgmt"] = args?.switchMgmt;
resourceInputs["switchUpdownThreshold"] = args?.switchUpdownThreshold;
resourceInputs["syntheticTest"] = args?.syntheticTest;
resourceInputs["uiIdleTimeout"] = args?.uiIdleTimeout;
resourceInputs["uiNoTracking"] = args?.uiNoTracking;
resourceInputs["vpnOptions"] = args?.vpnOptions;
resourceInputs["wanPma"] = args?.wanPma;
resourceInputs["wiredPma"] = args?.wiredPma;
resourceInputs["wirelessPma"] = args?.wirelessPma;
resourceInputs["cradlepoint"] = undefined /*out*/;
resourceInputs["juniper"] = undefined /*out*/;
resourceInputs["pcap"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Setting.__pulumiType, name, resourceInputs, opts);
}
}
exports.Setting = Setting;
/** @internal */
Setting.__pulumiType = 'junipermist:org/setting:Setting';
//# sourceMappingURL=setting.js.map