UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

119 lines 7.45 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.DeviceprofileGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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. * * ## Import * * Using `pulumi import`, import `mist_org_deviceprofile_gateway` with: * * Device Profile can be imported by specifying the org_id and the deviceprofile_id * * ```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, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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 ? state.additionalConfigCmds : undefined; resourceInputs["bgpConfig"] = state ? state.bgpConfig : undefined; resourceInputs["dhcpdConfig"] = state ? state.dhcpdConfig : undefined; resourceInputs["dnsOverride"] = state ? state.dnsOverride : 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["idpProfiles"] = state ? state.idpProfiles : undefined; resourceInputs["ipConfigs"] = state ? state.ipConfigs : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networks"] = state ? state.networks : undefined; resourceInputs["ntpOverride"] = state ? state.ntpOverride : undefined; resourceInputs["ntpServers"] = state ? state.ntpServers : undefined; resourceInputs["oobIpConfig"] = state ? state.oobIpConfig : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["pathPreferences"] = state ? state.pathPreferences : undefined; resourceInputs["portConfig"] = state ? state.portConfig : undefined; resourceInputs["routerId"] = state ? state.routerId : undefined; resourceInputs["routingPolicies"] = state ? state.routingPolicies : undefined; resourceInputs["servicePolicies"] = state ? state.servicePolicies : undefined; resourceInputs["tunnelConfigs"] = state ? state.tunnelConfigs : undefined; resourceInputs["tunnelProviderOptions"] = state ? state.tunnelProviderOptions : undefined; resourceInputs["type"] = state ? state.type : 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["additionalConfigCmds"] = args ? args.additionalConfigCmds : undefined; resourceInputs["bgpConfig"] = args ? args.bgpConfig : undefined; resourceInputs["dhcpdConfig"] = args ? args.dhcpdConfig : undefined; resourceInputs["dnsOverride"] = args ? args.dnsOverride : 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["idpProfiles"] = args ? args.idpProfiles : undefined; resourceInputs["ipConfigs"] = args ? args.ipConfigs : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networks"] = args ? args.networks : undefined; resourceInputs["ntpOverride"] = args ? args.ntpOverride : undefined; resourceInputs["ntpServers"] = args ? args.ntpServers : undefined; resourceInputs["oobIpConfig"] = args ? args.oobIpConfig : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["pathPreferences"] = args ? args.pathPreferences : undefined; resourceInputs["portConfig"] = args ? args.portConfig : undefined; resourceInputs["routerId"] = args ? args.routerId : undefined; resourceInputs["routingPolicies"] = args ? args.routingPolicies : undefined; resourceInputs["servicePolicies"] = args ? args.servicePolicies : undefined; resourceInputs["tunnelConfigs"] = args ? args.tunnelConfigs : undefined; resourceInputs["tunnelProviderOptions"] = args ? args.tunnelProviderOptions : undefined; resourceInputs["vrfConfig"] = args ? args.vrfConfig : undefined; resourceInputs["vrfInstances"] = args ? args.vrfInstances : undefined; resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DeviceprofileGateway.__pulumiType, name, resourceInputs, opts); } } exports.DeviceprofileGateway = DeviceprofileGateway; /** @internal */ DeviceprofileGateway.__pulumiType = 'junipermist:org/deviceprofileGateway:DeviceprofileGateway'; //# sourceMappingURL=deviceprofileGateway.js.map