@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
131 lines • 6.33 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.DeviceprofileAp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource manages the AP Device Profiles.
* AP Device profiles for aps are used to specify a configuration that can be applied to a select set of aps from any site in the organization. They allow for efficient application of configurations based on ap groups, wlan groups, RF settings, and sites. Device profiles enable various use cases such as activating ethernet passthrough, applying different rf settings, applying mesh configuration, activating specific features like esl or vble, and more.
*
* The AP Device Profile can be assigned to a gateway with the `junipermist.org.DeviceprofileAssign` resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const deviceprofileApOne = new junipermist.org.DeviceprofileAp("deviceprofile_ap_one", {
* name: "deviceprofile_ap_one",
* orgId: terraformTest.id,
* eslConfig: {
* enabled: true,
* host: "1.2.3.4",
* type: "native",
* },
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `mist_org_deviceprofile_ap` with:
*
* Device Profile can be imported by specifying the org_id and the deviceprofile_id
*
* ```sh
* $ pulumi import junipermist:org/deviceprofileAp:DeviceprofileAp deviceprofile_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
* ```
*/
class DeviceprofileAp extends pulumi.CustomResource {
/**
* Get an existing DeviceprofileAp 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 DeviceprofileAp(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of DeviceprofileAp. 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'] === DeviceprofileAp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aeroscout"] = state?.aeroscout;
resourceInputs["airista"] = state?.airista;
resourceInputs["bleConfig"] = state?.bleConfig;
resourceInputs["disableEth1"] = state?.disableEth1;
resourceInputs["disableEth2"] = state?.disableEth2;
resourceInputs["disableEth3"] = state?.disableEth3;
resourceInputs["disableModule"] = state?.disableModule;
resourceInputs["eslConfig"] = state?.eslConfig;
resourceInputs["ipConfig"] = state?.ipConfig;
resourceInputs["lacpConfig"] = state?.lacpConfig;
resourceInputs["led"] = state?.led;
resourceInputs["mesh"] = state?.mesh;
resourceInputs["name"] = state?.name;
resourceInputs["ntpServers"] = state?.ntpServers;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["poePassthrough"] = state?.poePassthrough;
resourceInputs["portConfig"] = state?.portConfig;
resourceInputs["pwrConfig"] = state?.pwrConfig;
resourceInputs["radioConfig"] = state?.radioConfig;
resourceInputs["siteId"] = state?.siteId;
resourceInputs["type"] = state?.type;
resourceInputs["uplinkPortConfig"] = state?.uplinkPortConfig;
resourceInputs["usbConfig"] = state?.usbConfig;
resourceInputs["vars"] = state?.vars;
}
else {
const args = argsOrState;
if (args?.orgId === undefined && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["aeroscout"] = args?.aeroscout;
resourceInputs["airista"] = args?.airista;
resourceInputs["bleConfig"] = args?.bleConfig;
resourceInputs["disableEth1"] = args?.disableEth1;
resourceInputs["disableEth2"] = args?.disableEth2;
resourceInputs["disableEth3"] = args?.disableEth3;
resourceInputs["disableModule"] = args?.disableModule;
resourceInputs["eslConfig"] = args?.eslConfig;
resourceInputs["ipConfig"] = args?.ipConfig;
resourceInputs["lacpConfig"] = args?.lacpConfig;
resourceInputs["led"] = args?.led;
resourceInputs["mesh"] = args?.mesh;
resourceInputs["name"] = args?.name;
resourceInputs["ntpServers"] = args?.ntpServers;
resourceInputs["orgId"] = args?.orgId;
resourceInputs["poePassthrough"] = args?.poePassthrough;
resourceInputs["portConfig"] = args?.portConfig;
resourceInputs["pwrConfig"] = args?.pwrConfig;
resourceInputs["radioConfig"] = args?.radioConfig;
resourceInputs["siteId"] = args?.siteId;
resourceInputs["uplinkPortConfig"] = args?.uplinkPortConfig;
resourceInputs["usbConfig"] = args?.usbConfig;
resourceInputs["vars"] = args?.vars;
resourceInputs["type"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DeviceprofileAp.__pulumiType, name, resourceInputs, opts);
}
}
exports.DeviceprofileAp = DeviceprofileAp;
/** @internal */
DeviceprofileAp.__pulumiType = 'junipermist:org/deviceprofileAp:DeviceprofileAp';
//# sourceMappingURL=deviceprofileAp.js.map