@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
229 lines • 10.2 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! ***
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.DeviceprofileGateway = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
* This resource manages the Gateway Device Profiles (HUB Profiles).
*
* A HUB profile is a configuration profile that automates the creation of overlay networks and defines the attributes of a hub device in a network. It includes settings for wan interfaces, lan interfaces, dns servers, traffic steering preferences, application policies, and routing options. HUB profiles are used to create consistent configurations for hub devices and ensure efficient connectivity between hubs and spokes in a network.
*
* The Gateway 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 deviceprofileGwOne = new junipermist.org.DeviceprofileGateway("deviceprofile_gw_one", {
* name: "deviceprofile_gw_one",
* orgId: terraformTest.id,
* portConfig: {
* "ge-0/0/3": {
* name: "FTTH",
* usage: "wan",
* aggregated: false,
* redundant: false,
* critical: false,
* wanType: "broadband",
* ipConfig: {
* type: "static",
* ip: "192.168.1.8",
* netmask: "/24",
* gateway: "192.168.1.1",
* },
* disableAutoneg: false,
* speed: "auto",
* duplex: "auto",
* wanSourceNat: {
* disabled: false,
* },
* vpnPaths: {
* "SSR_HUB_DC-MPLS.OrgOverlay": {
* key: 0,
* role: "spoke",
* bfdProfile: "broadband",
* },
* },
* },
* "ge-0/0/5": {
* usage: "lan",
* critical: false,
* aggregated: true,
* aeDisableLacp: false,
* aeLacpForceUp: true,
* aeIdx: "0",
* redundant: false,
* networks: [
* "PRD-Core",
* "PRD-Mgmt",
* "PRD-Lab",
* ],
* },
* },
* ipConfigs: {
* "PRD-Core": {
* type: "static",
* ip: "10.3.100.9",
* netmask: "/24",
* },
* "PRD-Mgmt": {
* type: "static",
* ip: "10.3.172.1",
* netmask: "/24",
* },
* "PRD-Lab": {
* type: "static",
* ip: "10.3.171.1",
* netmask: "/24",
* },
* },
* servicePolicies: [{
* name: "Policy-14",
* tenants: ["PRD-Core"],
* services: ["any"],
* action: "allow",
* pathPreference: "HUB",
* idp: {
* enabled: true,
* profile: "critical",
* alertOnly: false,
* },
* }],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `junipermist.org.DeviceprofileGateway` with:
* Device Profile can be imported by specifying the orgId and the deviceprofileId
*
* ```sh
* $ pulumi import junipermist:org/deviceprofileGateway:DeviceprofileGateway deviceprofile_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
* ```
*/
class DeviceprofileGateway extends pulumi.CustomResource {
/**
* Get an existing DeviceprofileGateway 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 DeviceprofileGateway(name, state, { ...opts, id: id });
}
/** @internal */
static __pulumiType = 'junipermist:org/deviceprofileGateway:DeviceprofileGateway';
/**
* Returns true if the given object is an instance of DeviceprofileGateway. 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'] === DeviceprofileGateway.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["additionalConfigCmds"] = state?.additionalConfigCmds;
resourceInputs["bgpConfig"] = state?.bgpConfig;
resourceInputs["dhcpdConfig"] = state?.dhcpdConfig;
resourceInputs["dnsOverride"] = state?.dnsOverride;
resourceInputs["dnsServers"] = state?.dnsServers;
resourceInputs["dnsSuffixes"] = state?.dnsSuffixes;
resourceInputs["extraRoutes"] = state?.extraRoutes;
resourceInputs["extraRoutes6"] = state?.extraRoutes6;
resourceInputs["idpProfiles"] = state?.idpProfiles;
resourceInputs["ipConfigs"] = state?.ipConfigs;
resourceInputs["name"] = state?.name;
resourceInputs["networks"] = state?.networks;
resourceInputs["ntpOverride"] = state?.ntpOverride;
resourceInputs["ntpServers"] = state?.ntpServers;
resourceInputs["oobIpConfig"] = state?.oobIpConfig;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["pathPreferences"] = state?.pathPreferences;
resourceInputs["portConfig"] = state?.portConfig;
resourceInputs["routerId"] = state?.routerId;
resourceInputs["routingPolicies"] = state?.routingPolicies;
resourceInputs["servicePolicies"] = state?.servicePolicies;
resourceInputs["ssrAdditionalConfigCmds"] = state?.ssrAdditionalConfigCmds;
resourceInputs["tunnelConfigs"] = state?.tunnelConfigs;
resourceInputs["tunnelProviderOptions"] = state?.tunnelProviderOptions;
resourceInputs["type"] = state?.type;
resourceInputs["urlFilteringDenyMsg"] = state?.urlFilteringDenyMsg;
resourceInputs["vrfConfig"] = state?.vrfConfig;
resourceInputs["vrfInstances"] = state?.vrfInstances;
}
else {
const args = argsOrState;
if (args?.orgId === undefined && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["additionalConfigCmds"] = args?.additionalConfigCmds;
resourceInputs["bgpConfig"] = args?.bgpConfig;
resourceInputs["dhcpdConfig"] = args?.dhcpdConfig;
resourceInputs["dnsOverride"] = args?.dnsOverride;
resourceInputs["dnsServers"] = args?.dnsServers;
resourceInputs["dnsSuffixes"] = args?.dnsSuffixes;
resourceInputs["extraRoutes"] = args?.extraRoutes;
resourceInputs["extraRoutes6"] = args?.extraRoutes6;
resourceInputs["idpProfiles"] = args?.idpProfiles;
resourceInputs["ipConfigs"] = args?.ipConfigs;
resourceInputs["name"] = args?.name;
resourceInputs["networks"] = args?.networks;
resourceInputs["ntpOverride"] = args?.ntpOverride;
resourceInputs["ntpServers"] = args?.ntpServers;
resourceInputs["oobIpConfig"] = args?.oobIpConfig;
resourceInputs["orgId"] = args?.orgId;
resourceInputs["pathPreferences"] = args?.pathPreferences;
resourceInputs["portConfig"] = args?.portConfig;
resourceInputs["routerId"] = args?.routerId;
resourceInputs["routingPolicies"] = args?.routingPolicies;
resourceInputs["servicePolicies"] = args?.servicePolicies;
resourceInputs["ssrAdditionalConfigCmds"] = args?.ssrAdditionalConfigCmds;
resourceInputs["tunnelConfigs"] = args?.tunnelConfigs;
resourceInputs["tunnelProviderOptions"] = args?.tunnelProviderOptions;
resourceInputs["urlFilteringDenyMsg"] = args?.urlFilteringDenyMsg;
resourceInputs["vrfConfig"] = args?.vrfConfig;
resourceInputs["vrfInstances"] = args?.vrfInstances;
resourceInputs["type"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DeviceprofileGateway.__pulumiType, name, resourceInputs, opts);
}
}
exports.DeviceprofileGateway = DeviceprofileGateway;
//# sourceMappingURL=deviceprofileGateway.js.map