published on Tuesday, Apr 28, 2026 by paloaltonetworks
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as panos from "@pulumi/panos";
const exampleTemplate = new panos.Template("example", {
location: {
panorama: {},
},
name: "example-template",
});
const example = new panos.LocalUser("example", {
location: {
templateVsys: {
template: exampleTemplate.name,
},
},
name: "example-user",
password: "SecurePassword123!",
disabled: false,
});
import pulumi
import pulumi_panos as panos
example_template = panos.Template("example",
location={
"panorama": {},
},
name="example-template")
example = panos.LocalUser("example",
location={
"template_vsys": {
"template": example_template.name,
},
},
name="example-user",
password="SecurePassword123!",
disabled=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleTemplate, err := panos.NewTemplate(ctx, "example", &panos.TemplateArgs{
Location: &panos.TemplateLocationArgs{
Panorama: &panos.TemplateLocationPanoramaArgs{},
},
Name: pulumi.String("example-template"),
})
if err != nil {
return err
}
_, err = panos.NewLocalUser(ctx, "example", &panos.LocalUserArgs{
Location: &panos.LocalUserLocationArgs{
TemplateVsys: &panos.LocalUserLocationTemplateVsysArgs{
Template: exampleTemplate.Name,
},
},
Name: pulumi.String("example-user"),
Password: pulumi.String("SecurePassword123!"),
Disabled: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Panos = Pulumi.Panos;
return await Deployment.RunAsync(() =>
{
var exampleTemplate = new Panos.Template("example", new()
{
Location = new Panos.Inputs.TemplateLocationArgs
{
Panorama = null,
},
Name = "example-template",
});
var example = new Panos.LocalUser("example", new()
{
Location = new Panos.Inputs.LocalUserLocationArgs
{
TemplateVsys = new Panos.Inputs.LocalUserLocationTemplateVsysArgs
{
Template = exampleTemplate.Name,
},
},
Name = "example-user",
Password = "SecurePassword123!",
Disabled = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.panos.Template;
import com.pulumi.panos.TemplateArgs;
import com.pulumi.panos.inputs.TemplateLocationArgs;
import com.pulumi.panos.inputs.TemplateLocationPanoramaArgs;
import com.pulumi.panos.LocalUser;
import com.pulumi.panos.LocalUserArgs;
import com.pulumi.panos.inputs.LocalUserLocationArgs;
import com.pulumi.panos.inputs.LocalUserLocationTemplateVsysArgs;
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) {
var exampleTemplate = new Template("exampleTemplate", TemplateArgs.builder()
.location(TemplateLocationArgs.builder()
.panorama(TemplateLocationPanoramaArgs.builder()
.build())
.build())
.name("example-template")
.build());
var example = new LocalUser("example", LocalUserArgs.builder()
.location(LocalUserLocationArgs.builder()
.templateVsys(LocalUserLocationTemplateVsysArgs.builder()
.template(exampleTemplate.name())
.build())
.build())
.name("example-user")
.password("SecurePassword123!")
.disabled(false)
.build());
}
}
resources:
example:
type: panos:LocalUser
properties:
location:
templateVsys:
template: ${exampleTemplate.name}
name: example-user
password: SecurePassword123!
disabled: false
exampleTemplate:
type: panos:Template
name: example
properties:
location:
panorama: {}
name: example-template
Create LocalUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocalUser(name: string, args: LocalUserArgs, opts?: CustomResourceOptions);@overload
def LocalUser(resource_name: str,
args: LocalUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LocalUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[LocalUserLocationArgs] = None,
disabled: Optional[bool] = None,
name: Optional[str] = None,
password: Optional[str] = None)func NewLocalUser(ctx *Context, name string, args LocalUserArgs, opts ...ResourceOption) (*LocalUser, error)public LocalUser(string name, LocalUserArgs args, CustomResourceOptions? opts = null)
public LocalUser(String name, LocalUserArgs args)
public LocalUser(String name, LocalUserArgs args, CustomResourceOptions options)
type: panos:LocalUser
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 LocalUserArgs
- 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 LocalUserArgs
- 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 LocalUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocalUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocalUserArgs
- 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 localUserResource = new Panos.LocalUser("localUserResource", new()
{
Location = new Panos.Inputs.LocalUserLocationArgs
{
Shared = null,
Template = new Panos.Inputs.LocalUserLocationTemplateArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.LocalUserLocationTemplateStackArgs
{
Name = "string",
NgfwDevice = "string",
PanoramaDevice = "string",
},
TemplateStackVsys = new Panos.Inputs.LocalUserLocationTemplateStackVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
TemplateStack = "string",
Vsys = "string",
},
TemplateVsys = new Panos.Inputs.LocalUserLocationTemplateVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
Template = "string",
Vsys = "string",
},
Vsys = new Panos.Inputs.LocalUserLocationVsysArgs
{
Name = "string",
NgfwDevice = "string",
},
},
Disabled = false,
Name = "string",
Password = "string",
});
example, err := panos.NewLocalUser(ctx, "localUserResource", &panos.LocalUserArgs{
Location: &panos.LocalUserLocationArgs{
Shared: &panos.LocalUserLocationSharedArgs{},
Template: &panos.LocalUserLocationTemplateArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.LocalUserLocationTemplateStackArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStackVsys: &panos.LocalUserLocationTemplateStackVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
TemplateStack: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
TemplateVsys: &panos.LocalUserLocationTemplateVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
Template: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
Vsys: &panos.LocalUserLocationVsysArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
},
},
Disabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
})
var localUserResource = new LocalUser("localUserResource", LocalUserArgs.builder()
.location(LocalUserLocationArgs.builder()
.shared(LocalUserLocationSharedArgs.builder()
.build())
.template(LocalUserLocationTemplateArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStack(LocalUserLocationTemplateStackArgs.builder()
.name("string")
.ngfwDevice("string")
.panoramaDevice("string")
.build())
.templateStackVsys(LocalUserLocationTemplateStackVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.templateStack("string")
.vsys("string")
.build())
.templateVsys(LocalUserLocationTemplateVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.template("string")
.vsys("string")
.build())
.vsys(LocalUserLocationVsysArgs.builder()
.name("string")
.ngfwDevice("string")
.build())
.build())
.disabled(false)
.name("string")
.password("string")
.build());
local_user_resource = panos.LocalUser("localUserResource",
location={
"shared": {},
"template": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"ngfw_device": "string",
"panorama_device": "string",
},
"template_stack_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template_stack": "string",
"vsys": "string",
},
"template_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template": "string",
"vsys": "string",
},
"vsys": {
"name": "string",
"ngfw_device": "string",
},
},
disabled=False,
name="string",
password="string")
const localUserResource = new panos.LocalUser("localUserResource", {
location: {
shared: {},
template: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
ngfwDevice: "string",
panoramaDevice: "string",
},
templateStackVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
templateStack: "string",
vsys: "string",
},
templateVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
template: "string",
vsys: "string",
},
vsys: {
name: "string",
ngfwDevice: "string",
},
},
disabled: false,
name: "string",
password: "string",
});
type: panos:LocalUser
properties:
disabled: false
location:
shared: {}
template:
name: string
ngfwDevice: string
panoramaDevice: string
templateStack:
name: string
ngfwDevice: string
panoramaDevice: string
templateStackVsys:
ngfwDevice: string
panoramaDevice: string
templateStack: string
vsys: string
templateVsys:
ngfwDevice: string
panoramaDevice: string
template: string
vsys: string
vsys:
name: string
ngfwDevice: string
name: string
password: string
LocalUser 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 LocalUser resource accepts the following input properties:
- Location
Local
User Location - The location of this object.
- Disabled bool
- Name string
- Password string
- User password
- Location
Local
User Location Args - The location of this object.
- Disabled bool
- Name string
- Password string
- User password
- location
Local
User Location - The location of this object.
- disabled Boolean
- name String
- password String
- User password
- location
Local
User Location - The location of this object.
- disabled boolean
- name string
- password string
- User password
- location
Local
User Location Args - The location of this object.
- disabled bool
- name str
- password str
- User password
- location Property Map
- The location of this object.
- disabled Boolean
- name String
- password String
- User password
Outputs
All input properties are implicitly available as output properties. Additionally, the LocalUser 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 LocalUser Resource
Get an existing LocalUser 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?: LocalUserState, opts?: CustomResourceOptions): LocalUser@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
location: Optional[LocalUserLocationArgs] = None,
name: Optional[str] = None,
password: Optional[str] = None) -> LocalUserfunc GetLocalUser(ctx *Context, name string, id IDInput, state *LocalUserState, opts ...ResourceOption) (*LocalUser, error)public static LocalUser Get(string name, Input<string> id, LocalUserState? state, CustomResourceOptions? opts = null)public static LocalUser get(String name, Output<String> id, LocalUserState state, CustomResourceOptions options)resources: _: type: panos:LocalUser 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.
- Disabled bool
- Location
Local
User Location - The location of this object.
- Name string
- Password string
- User password
- Disabled bool
- Location
Local
User Location Args - The location of this object.
- Name string
- Password string
- User password
- disabled Boolean
- location
Local
User Location - The location of this object.
- name String
- password String
- User password
- disabled boolean
- location
Local
User Location - The location of this object.
- name string
- password string
- User password
- disabled bool
- location
Local
User Location Args - The location of this object.
- name str
- password str
- User password
- disabled Boolean
- location Property Map
- The location of this object.
- name String
- password String
- User password
Supporting Types
LocalUserLocation, LocalUserLocationArgs
-
Local
User Location Shared - Panorama shared object
- Template
Local
User Location Template - Located in a specific template
- Template
Stack LocalUser Location Template Stack - Located in a specific template stack
- Template
Stack LocalVsys User Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys LocalUser Location Template Vsys - Located in a specific template, device and vsys.
- Vsys
Local
User Location Vsys - Located in a specific Virtual System
-
Local
User Location Shared - Panorama shared object
- Template
Local
User Location Template - Located in a specific template
- Template
Stack LocalUser Location Template Stack - Located in a specific template stack
- Template
Stack LocalVsys User Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys LocalUser Location Template Vsys - Located in a specific template, device and vsys.
- Vsys
Local
User Location Vsys - Located in a specific Virtual System
-
Local
User Location Shared - Panorama shared object
- template
Local
User Location Template - Located in a specific template
- template
Stack LocalUser Location Template Stack - Located in a specific template stack
- template
Stack LocalVsys User Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys LocalUser Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Local
User Location Vsys - Located in a specific Virtual System
-
Local
User Location Shared - Panorama shared object
- template
Local
User Location Template - Located in a specific template
- template
Stack LocalUser Location Template Stack - Located in a specific template stack
- template
Stack LocalVsys User Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys LocalUser Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Local
User Location Vsys - Located in a specific Virtual System
-
Local
User Location Shared - Panorama shared object
- template
Local
User Location Template - Located in a specific template
- template_
stack LocalUser Location Template Stack - Located in a specific template stack
- template_
stack_ Localvsys User Location Template Stack Vsys - Located in a specific template, device and vsys.
- template_
vsys LocalUser Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Local
User Location Vsys - Located in a specific Virtual System
- Property Map
- Panorama shared object
- template Property Map
- Located in a specific template
- template
Stack Property Map - Located in a specific template stack
- template
Stack Property MapVsys - Located in a specific template, device and vsys.
- template
Vsys Property Map - Located in a specific template, device and vsys.
- vsys Property Map
- Located in a specific Virtual System
LocalUserLocationTemplate, LocalUserLocationTemplateArgs
- Name string
- Specific Panorama template
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
LocalUserLocationTemplateStack, LocalUserLocationTemplateStackArgs
- Name string
- Specific Panorama template stack
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template stack
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template stack
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template stack
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template stack
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template stack
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
LocalUserLocationTemplateStackVsys, LocalUserLocationTemplateStackVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template
Stack string - The template stack
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template_
stack str - The template stack
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
LocalUserLocationTemplateVsys, LocalUserLocationTemplateVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template string
- Specific Panorama template
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template str
- Specific Panorama template
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
LocalUserLocationVsys, LocalUserLocationVsysArgs
- Name string
- The Virtual System name
- Ngfw
Device string - The NGFW device name
- Name string
- The Virtual System name
- Ngfw
Device string - The NGFW device name
- name String
- The Virtual System name
- ngfw
Device String - The NGFW device name
- name string
- The Virtual System name
- ngfw
Device string - The NGFW device name
- name str
- The Virtual System name
- ngfw_
device str - The NGFW device name
- name String
- The Virtual System name
- ngfw
Device String - The NGFW device name
Import
A local user can be imported by providing the following base64 encoded object as the ID
{
location = {
template_vsys = {
template = "example-template"
panorama_device = "localhost.localdomain"
}
}
name = “example-user”
}
$ pulumi import panos:index/localUser:LocalUser example $(echo '{"location":{"template_vsys":{"template":"example-template","panorama_device":"localhost.localdomain"}},"name":"example-user"}' | base64)
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panosTerraform Provider.
published on Tuesday, Apr 28, 2026 by paloaltonetworks
