published on Thursday, Apr 16, 2026 by Pulumi
published on Thursday, Apr 16, 2026 by Pulumi
This resource is used to customize the NAC Portal.
The NAC Portal Template can be used to define:
The portal alignment, color scheme, and logo
, and whether to display the “Powered by Juniper Mist” footer.
Notes:
- There is no feedback from the API, so there is no possibility to validate the changes. The resource state is directly generated based on the resource plan. Deleting this resource will revert the NAC Portal Template to its default values. Once removed from state, it is possible to create a new one, which will replace the previous template.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
// Create a NAC Portal first
const guestPortal = new junipermist.org.NacPortal("guest_portal", {
orgId: terraformTest.id,
name: "Guest Portal",
type: "guest_portal",
accessType: "wireless",
ssid: "Guest-Network",
});
// Example 1: Basic NAC Portal Template with centered alignment
const centeredTemplate = new junipermist.org.NacPortalTemplate("centered_template", {
orgId: terraformTest.id,
nacportalId: guestPortal.id,
alignment: "center",
color: "#1074bc",
poweredBy: false,
});
// Example 2: NAC Portal Template with logo and left alignment
const logoTemplate = new junipermist.org.NacPortalTemplate("logo_template", {
orgId: terraformTest.id,
nacportalId: guestPortal.id,
alignment: "left",
color: "#ff6600",
logo: "logo.png",
poweredBy: true,
});
import pulumi
import pulumi_juniper_mist as junipermist
# Create a NAC Portal first
guest_portal = junipermist.org.NacPortal("guest_portal",
org_id=terraform_test["id"],
name="Guest Portal",
type="guest_portal",
access_type="wireless",
ssid="Guest-Network")
# Example 1: Basic NAC Portal Template with centered alignment
centered_template = junipermist.org.NacPortalTemplate("centered_template",
org_id=terraform_test["id"],
nacportal_id=guest_portal.id,
alignment="center",
color="#1074bc",
powered_by=False)
# Example 2: NAC Portal Template with logo and left alignment
logo_template = junipermist.org.NacPortalTemplate("logo_template",
org_id=terraform_test["id"],
nacportal_id=guest_portal.id,
alignment="left",
color="#ff6600",
logo="logo.png",
powered_by=True)
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a NAC Portal first
guestPortal, err := org.NewNacPortal(ctx, "guest_portal", &org.NacPortalArgs{
OrgId: pulumi.Any(terraformTest.Id),
Name: pulumi.String("Guest Portal"),
Type: pulumi.String("guest_portal"),
AccessType: pulumi.String("wireless"),
Ssid: pulumi.String("Guest-Network"),
})
if err != nil {
return err
}
// Example 1: Basic NAC Portal Template with centered alignment
_, err = org.NewNacPortalTemplate(ctx, "centered_template", &org.NacPortalTemplateArgs{
OrgId: pulumi.Any(terraformTest.Id),
NacportalId: guestPortal.ID(),
Alignment: pulumi.String("center"),
Color: pulumi.String("#1074bc"),
PoweredBy: pulumi.Bool(false),
})
if err != nil {
return err
}
// Example 2: NAC Portal Template with logo and left alignment
_, err = org.NewNacPortalTemplate(ctx, "logo_template", &org.NacPortalTemplateArgs{
OrgId: pulumi.Any(terraformTest.Id),
NacportalId: guestPortal.ID(),
Alignment: pulumi.String("left"),
Color: pulumi.String("#ff6600"),
Logo: pulumi.String("logo.png"),
PoweredBy: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;
return await Deployment.RunAsync(() =>
{
// Create a NAC Portal first
var guestPortal = new JuniperMist.Org.NacPortal("guest_portal", new()
{
OrgId = terraformTest.Id,
Name = "Guest Portal",
Type = "guest_portal",
AccessType = "wireless",
Ssid = "Guest-Network",
});
// Example 1: Basic NAC Portal Template with centered alignment
var centeredTemplate = new JuniperMist.Org.NacPortalTemplate("centered_template", new()
{
OrgId = terraformTest.Id,
NacportalId = guestPortal.Id,
Alignment = "center",
Color = "#1074bc",
PoweredBy = false,
});
// Example 2: NAC Portal Template with logo and left alignment
var logoTemplate = new JuniperMist.Org.NacPortalTemplate("logo_template", new()
{
OrgId = terraformTest.Id,
NacportalId = guestPortal.Id,
Alignment = "left",
Color = "#ff6600",
Logo = "logo.png",
PoweredBy = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.NacPortal;
import com.pulumi.junipermist.org.NacPortalArgs;
import com.pulumi.junipermist.org.NacPortalTemplate;
import com.pulumi.junipermist.org.NacPortalTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create a NAC Portal first
var guestPortal = new NacPortal("guestPortal", NacPortalArgs.builder()
.orgId(terraformTest.id())
.name("Guest Portal")
.type("guest_portal")
.accessType("wireless")
.ssid("Guest-Network")
.build());
// Example 1: Basic NAC Portal Template with centered alignment
var centeredTemplate = new NacPortalTemplate("centeredTemplate", NacPortalTemplateArgs.builder()
.orgId(terraformTest.id())
.nacportalId(guestPortal.id())
.alignment("center")
.color("#1074bc")
.poweredBy(false)
.build());
// Example 2: NAC Portal Template with logo and left alignment
var logoTemplate = new NacPortalTemplate("logoTemplate", NacPortalTemplateArgs.builder()
.orgId(terraformTest.id())
.nacportalId(guestPortal.id())
.alignment("left")
.color("#ff6600")
.logo("logo.png")
.poweredBy(true)
.build());
}
}
resources:
# Create a NAC Portal first
guestPortal:
type: junipermist:org:NacPortal
name: guest_portal
properties:
orgId: ${terraformTest.id}
name: Guest Portal
type: guest_portal
accessType: wireless
ssid: Guest-Network
# Example 1: Basic NAC Portal Template with centered alignment
centeredTemplate:
type: junipermist:org:NacPortalTemplate
name: centered_template
properties:
orgId: ${terraformTest.id}
nacportalId: ${guestPortal.id}
alignment: center
color: '#1074bc'
poweredBy: false
# Example 2: NAC Portal Template with logo and left alignment
logoTemplate:
type: junipermist:org:NacPortalTemplate
name: logo_template
properties:
orgId: ${terraformTest.id}
nacportalId: ${guestPortal.id}
alignment: left
color: '#ff6600'
logo: logo.png
poweredBy: true
Create NacPortalTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NacPortalTemplate(name: string, args: NacPortalTemplateArgs, opts?: CustomResourceOptions);@overload
def NacPortalTemplate(resource_name: str,
args: NacPortalTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NacPortalTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
nacportal_id: Optional[str] = None,
org_id: Optional[str] = None,
alignment: Optional[str] = None,
color: Optional[str] = None,
logo: Optional[str] = None,
powered_by: Optional[bool] = None)func NewNacPortalTemplate(ctx *Context, name string, args NacPortalTemplateArgs, opts ...ResourceOption) (*NacPortalTemplate, error)public NacPortalTemplate(string name, NacPortalTemplateArgs args, CustomResourceOptions? opts = null)
public NacPortalTemplate(String name, NacPortalTemplateArgs args)
public NacPortalTemplate(String name, NacPortalTemplateArgs args, CustomResourceOptions options)
type: junipermist:org:NacPortalTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NacPortalTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NacPortalTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NacPortalTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NacPortalTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NacPortalTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nacPortalTemplateResource = new JuniperMist.Org.NacPortalTemplate("nacPortalTemplateResource", new()
{
NacportalId = "string",
OrgId = "string",
Alignment = "string",
Color = "string",
Logo = "string",
PoweredBy = false,
});
example, err := org.NewNacPortalTemplate(ctx, "nacPortalTemplateResource", &org.NacPortalTemplateArgs{
NacportalId: pulumi.String("string"),
OrgId: pulumi.String("string"),
Alignment: pulumi.String("string"),
Color: pulumi.String("string"),
Logo: pulumi.String("string"),
PoweredBy: pulumi.Bool(false),
})
var nacPortalTemplateResource = new NacPortalTemplate("nacPortalTemplateResource", NacPortalTemplateArgs.builder()
.nacportalId("string")
.orgId("string")
.alignment("string")
.color("string")
.logo("string")
.poweredBy(false)
.build());
nac_portal_template_resource = junipermist.org.NacPortalTemplate("nacPortalTemplateResource",
nacportal_id="string",
org_id="string",
alignment="string",
color="string",
logo="string",
powered_by=False)
const nacPortalTemplateResource = new junipermist.org.NacPortalTemplate("nacPortalTemplateResource", {
nacportalId: "string",
orgId: "string",
alignment: "string",
color: "string",
logo: "string",
poweredBy: false,
});
type: junipermist:org:NacPortalTemplate
properties:
alignment: string
color: string
logo: string
nacportalId: string
orgId: string
poweredBy: false
NacPortalTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NacPortalTemplate resource accepts the following input properties:
- Nacportal
Id string - Org NAC Portal ID
- Org
Id string - Alignment string
- defines alignment on portal. enum:
center,left,right - Color string
- Logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - Powered
By bool - Whether to hide "Powered by Juniper Mist" and email footers
- Nacportal
Id string - Org NAC Portal ID
- Org
Id string - Alignment string
- defines alignment on portal. enum:
center,left,right - Color string
- Logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - Powered
By bool - Whether to hide "Powered by Juniper Mist" and email footers
- nacportal
Id String - Org NAC Portal ID
- org
Id String - alignment String
- defines alignment on portal. enum:
center,left,right - color String
- logo String
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - powered
By Boolean - Whether to hide "Powered by Juniper Mist" and email footers
- nacportal
Id string - Org NAC Portal ID
- org
Id string - alignment string
- defines alignment on portal. enum:
center,left,right - color string
- logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - powered
By boolean - Whether to hide "Powered by Juniper Mist" and email footers
- nacportal_
id str - Org NAC Portal ID
- org_
id str - alignment str
- defines alignment on portal. enum:
center,left,right - color str
- logo str
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - powered_
by bool - Whether to hide "Powered by Juniper Mist" and email footers
- nacportal
Id String - Org NAC Portal ID
- org
Id String - alignment String
- defines alignment on portal. enum:
center,left,right - color String
- logo String
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - powered
By Boolean - Whether to hide "Powered by Juniper Mist" and email footers
Outputs
All input properties are implicitly available as output properties. Additionally, the NacPortalTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NacPortalTemplate Resource
Get an existing NacPortalTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NacPortalTemplateState, opts?: CustomResourceOptions): NacPortalTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alignment: Optional[str] = None,
color: Optional[str] = None,
logo: Optional[str] = None,
nacportal_id: Optional[str] = None,
org_id: Optional[str] = None,
powered_by: Optional[bool] = None) -> NacPortalTemplatefunc GetNacPortalTemplate(ctx *Context, name string, id IDInput, state *NacPortalTemplateState, opts ...ResourceOption) (*NacPortalTemplate, error)public static NacPortalTemplate Get(string name, Input<string> id, NacPortalTemplateState? state, CustomResourceOptions? opts = null)public static NacPortalTemplate get(String name, Output<String> id, NacPortalTemplateState state, CustomResourceOptions options)resources: _: type: junipermist:org:NacPortalTemplate get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alignment string
- defines alignment on portal. enum:
center,left,right - Color string
- Logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - Nacportal
Id string - Org NAC Portal ID
- Org
Id string - Powered
By bool - Whether to hide "Powered by Juniper Mist" and email footers
- Alignment string
- defines alignment on portal. enum:
center,left,right - Color string
- Logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - Nacportal
Id string - Org NAC Portal ID
- Org
Id string - Powered
By bool - Whether to hide "Powered by Juniper Mist" and email footers
- alignment String
- defines alignment on portal. enum:
center,left,right - color String
- logo String
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - nacportal
Id String - Org NAC Portal ID
- org
Id String - powered
By Boolean - Whether to hide "Powered by Juniper Mist" and email footers
- alignment string
- defines alignment on portal. enum:
center,left,right - color string
- logo string
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - nacportal
Id string - Org NAC Portal ID
- org
Id string - powered
By boolean - Whether to hide "Powered by Juniper Mist" and email footers
- alignment str
- defines alignment on portal. enum:
center,left,right - color str
- logo str
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - nacportal_
id str - Org NAC Portal ID
- org_
id str - powered_
by bool - Whether to hide "Powered by Juniper Mist" and email footers
- alignment String
- defines alignment on portal. enum:
center,left,right - color String
- logo String
- path to the logo image file. File must be a
pngimage less than 100kB and image dimension must be less 500px x 200px (width x height). - nacportal
Id String - Org NAC Portal ID
- org
Id String - powered
By Boolean - Whether to hide "Powered by Juniper Mist" and email footers
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mistTerraform Provider.
published on Thursday, Apr 16, 2026 by Pulumi
