@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
114 lines • 7.05 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.Networktemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource managed the Org Network Templates (Switch templates).
*
* A network template is a predefined configuration that provides a consistent and reusable set of network settings for devices within an organization. It includes various parameters such as ip addressing, vlan configurations, routing protocols, security policies, and other network-specific settings.\
* Network templates simplify the deployment and management of switches by ensuring consistent configurations across multiple devices and sites. They help enforce standardization, reduce human error, and streamline troubleshooting and maintenance tasks.
*
* ## Import
*
* Using `pulumi import`, import `mist_org_networktemplate` with:
*
* Org Network Template can be imported by specifying the org_id and the networktemplate_id
*
* ```sh
* $ pulumi import junipermist:org/networktemplate:Networktemplate networktemplate_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
* ```
*/
class Networktemplate extends pulumi.CustomResource {
/**
* Get an existing Networktemplate 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 Networktemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Networktemplate. 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'] === Networktemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aclPolicies"] = state ? state.aclPolicies : undefined;
resourceInputs["aclTags"] = state ? state.aclTags : undefined;
resourceInputs["additionalConfigCmds"] = state ? state.additionalConfigCmds : undefined;
resourceInputs["dhcpSnooping"] = state ? state.dhcpSnooping : undefined;
resourceInputs["dnsServers"] = state ? state.dnsServers : undefined;
resourceInputs["dnsSuffixes"] = state ? state.dnsSuffixes : undefined;
resourceInputs["extraRoutes"] = state ? state.extraRoutes : undefined;
resourceInputs["extraRoutes6"] = state ? state.extraRoutes6 : undefined;
resourceInputs["mistNac"] = state ? state.mistNac : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["networks"] = state ? state.networks : undefined;
resourceInputs["ntpServers"] = state ? state.ntpServers : undefined;
resourceInputs["orgId"] = state ? state.orgId : undefined;
resourceInputs["ospfAreas"] = state ? state.ospfAreas : undefined;
resourceInputs["portMirroring"] = state ? state.portMirroring : undefined;
resourceInputs["portUsages"] = state ? state.portUsages : undefined;
resourceInputs["radiusConfig"] = state ? state.radiusConfig : undefined;
resourceInputs["remoteSyslog"] = state ? state.remoteSyslog : undefined;
resourceInputs["removeExistingConfigs"] = state ? state.removeExistingConfigs : undefined;
resourceInputs["snmpConfig"] = state ? state.snmpConfig : undefined;
resourceInputs["switchMatching"] = state ? state.switchMatching : undefined;
resourceInputs["switchMgmt"] = state ? state.switchMgmt : undefined;
resourceInputs["vrfConfig"] = state ? state.vrfConfig : undefined;
resourceInputs["vrfInstances"] = state ? state.vrfInstances : undefined;
}
else {
const args = argsOrState;
if ((!args || args.orgId === undefined) && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["aclPolicies"] = args ? args.aclPolicies : undefined;
resourceInputs["aclTags"] = args ? args.aclTags : undefined;
resourceInputs["additionalConfigCmds"] = args ? args.additionalConfigCmds : undefined;
resourceInputs["dhcpSnooping"] = args ? args.dhcpSnooping : undefined;
resourceInputs["dnsServers"] = args ? args.dnsServers : undefined;
resourceInputs["dnsSuffixes"] = args ? args.dnsSuffixes : undefined;
resourceInputs["extraRoutes"] = args ? args.extraRoutes : undefined;
resourceInputs["extraRoutes6"] = args ? args.extraRoutes6 : undefined;
resourceInputs["mistNac"] = args ? args.mistNac : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networks"] = args ? args.networks : undefined;
resourceInputs["ntpServers"] = args ? args.ntpServers : undefined;
resourceInputs["orgId"] = args ? args.orgId : undefined;
resourceInputs["ospfAreas"] = args ? args.ospfAreas : undefined;
resourceInputs["portMirroring"] = args ? args.portMirroring : undefined;
resourceInputs["portUsages"] = args ? args.portUsages : undefined;
resourceInputs["radiusConfig"] = args ? args.radiusConfig : undefined;
resourceInputs["remoteSyslog"] = args ? args.remoteSyslog : undefined;
resourceInputs["removeExistingConfigs"] = args ? args.removeExistingConfigs : undefined;
resourceInputs["snmpConfig"] = args ? args.snmpConfig : undefined;
resourceInputs["switchMatching"] = args ? args.switchMatching : undefined;
resourceInputs["switchMgmt"] = args ? args.switchMgmt : undefined;
resourceInputs["vrfConfig"] = args ? args.vrfConfig : undefined;
resourceInputs["vrfInstances"] = args ? args.vrfInstances : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Networktemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.Networktemplate = Networktemplate;
/** @internal */
Networktemplate.__pulumiType = 'junipermist:org/networktemplate:Networktemplate';
//# sourceMappingURL=networktemplate.js.map