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 example = new panos.PasswordProfile("example", {
location: {
template: {
name: "my-template",
},
},
name: "example-password-profile",
passwordChange: {
expirationPeriod: 90,
expirationWarningPeriod: 7,
postExpirationAdminLoginCount: 3,
postExpirationGracePeriod: 5,
},
});
import pulumi
import pulumi_panos as panos
example = panos.PasswordProfile("example",
location={
"template": {
"name": "my-template",
},
},
name="example-password-profile",
password_change={
"expiration_period": 90,
"expiration_warning_period": 7,
"post_expiration_admin_login_count": 3,
"post_expiration_grace_period": 5,
})
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 {
_, err := panos.NewPasswordProfile(ctx, "example", &panos.PasswordProfileArgs{
Location: &panos.PasswordProfileLocationArgs{
Template: &panos.PasswordProfileLocationTemplateArgs{
Name: pulumi.String("my-template"),
},
},
Name: pulumi.String("example-password-profile"),
PasswordChange: &panos.PasswordProfilePasswordChangeArgs{
ExpirationPeriod: pulumi.Float64(90),
ExpirationWarningPeriod: pulumi.Float64(7),
PostExpirationAdminLoginCount: pulumi.Float64(3),
PostExpirationGracePeriod: pulumi.Float64(5),
},
})
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 example = new Panos.PasswordProfile("example", new()
{
Location = new Panos.Inputs.PasswordProfileLocationArgs
{
Template = new Panos.Inputs.PasswordProfileLocationTemplateArgs
{
Name = "my-template",
},
},
Name = "example-password-profile",
PasswordChange = new Panos.Inputs.PasswordProfilePasswordChangeArgs
{
ExpirationPeriod = 90,
ExpirationWarningPeriod = 7,
PostExpirationAdminLoginCount = 3,
PostExpirationGracePeriod = 5,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.panos.PasswordProfile;
import com.pulumi.panos.PasswordProfileArgs;
import com.pulumi.panos.inputs.PasswordProfileLocationArgs;
import com.pulumi.panos.inputs.PasswordProfileLocationTemplateArgs;
import com.pulumi.panos.inputs.PasswordProfilePasswordChangeArgs;
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 example = new PasswordProfile("example", PasswordProfileArgs.builder()
.location(PasswordProfileLocationArgs.builder()
.template(PasswordProfileLocationTemplateArgs.builder()
.name("my-template")
.build())
.build())
.name("example-password-profile")
.passwordChange(PasswordProfilePasswordChangeArgs.builder()
.expirationPeriod(90.0)
.expirationWarningPeriod(7.0)
.postExpirationAdminLoginCount(3.0)
.postExpirationGracePeriod(5.0)
.build())
.build());
}
}
resources:
example:
type: panos:PasswordProfile
properties:
location:
template:
name: my-template
name: example-password-profile
passwordChange:
expirationPeriod: 90
expirationWarningPeriod: 7
postExpirationAdminLoginCount: 3
postExpirationGracePeriod: 5
Create PasswordProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PasswordProfile(name: string, args: PasswordProfileArgs, opts?: CustomResourceOptions);@overload
def PasswordProfile(resource_name: str,
args: PasswordProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PasswordProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[PasswordProfileLocationArgs] = None,
name: Optional[str] = None,
password_change: Optional[PasswordProfilePasswordChangeArgs] = None)func NewPasswordProfile(ctx *Context, name string, args PasswordProfileArgs, opts ...ResourceOption) (*PasswordProfile, error)public PasswordProfile(string name, PasswordProfileArgs args, CustomResourceOptions? opts = null)
public PasswordProfile(String name, PasswordProfileArgs args)
public PasswordProfile(String name, PasswordProfileArgs args, CustomResourceOptions options)
type: panos:PasswordProfile
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 PasswordProfileArgs
- 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 PasswordProfileArgs
- 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 PasswordProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PasswordProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PasswordProfileArgs
- 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 passwordProfileResource = new Panos.PasswordProfile("passwordProfileResource", new()
{
Location = new Panos.Inputs.PasswordProfileLocationArgs
{
Ngfw = null,
Panorama = null,
Template = new Panos.Inputs.PasswordProfileLocationTemplateArgs
{
Name = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.PasswordProfileLocationTemplateStackArgs
{
Name = "string",
PanoramaDevice = "string",
},
},
Name = "string",
PasswordChange = new Panos.Inputs.PasswordProfilePasswordChangeArgs
{
ExpirationPeriod = 0,
ExpirationWarningPeriod = 0,
PostExpirationAdminLoginCount = 0,
PostExpirationGracePeriod = 0,
},
});
example, err := panos.NewPasswordProfile(ctx, "passwordProfileResource", &panos.PasswordProfileArgs{
Location: &panos.PasswordProfileLocationArgs{
Ngfw: &panos.PasswordProfileLocationNgfwArgs{},
Panorama: &panos.PasswordProfileLocationPanoramaArgs{},
Template: &panos.PasswordProfileLocationTemplateArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.PasswordProfileLocationTemplateStackArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PasswordChange: &panos.PasswordProfilePasswordChangeArgs{
ExpirationPeriod: pulumi.Float64(0),
ExpirationWarningPeriod: pulumi.Float64(0),
PostExpirationAdminLoginCount: pulumi.Float64(0),
PostExpirationGracePeriod: pulumi.Float64(0),
},
})
var passwordProfileResource = new PasswordProfile("passwordProfileResource", PasswordProfileArgs.builder()
.location(PasswordProfileLocationArgs.builder()
.ngfw(PasswordProfileLocationNgfwArgs.builder()
.build())
.panorama(PasswordProfileLocationPanoramaArgs.builder()
.build())
.template(PasswordProfileLocationTemplateArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.templateStack(PasswordProfileLocationTemplateStackArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.build())
.name("string")
.passwordChange(PasswordProfilePasswordChangeArgs.builder()
.expirationPeriod(0.0)
.expirationWarningPeriod(0.0)
.postExpirationAdminLoginCount(0.0)
.postExpirationGracePeriod(0.0)
.build())
.build());
password_profile_resource = panos.PasswordProfile("passwordProfileResource",
location={
"ngfw": {},
"panorama": {},
"template": {
"name": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"panorama_device": "string",
},
},
name="string",
password_change={
"expiration_period": float(0),
"expiration_warning_period": float(0),
"post_expiration_admin_login_count": float(0),
"post_expiration_grace_period": float(0),
})
const passwordProfileResource = new panos.PasswordProfile("passwordProfileResource", {
location: {
ngfw: {},
panorama: {},
template: {
name: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
panoramaDevice: "string",
},
},
name: "string",
passwordChange: {
expirationPeriod: 0,
expirationWarningPeriod: 0,
postExpirationAdminLoginCount: 0,
postExpirationGracePeriod: 0,
},
});
type: panos:PasswordProfile
properties:
location:
ngfw: {}
panorama: {}
template:
name: string
panoramaDevice: string
templateStack:
name: string
panoramaDevice: string
name: string
passwordChange:
expirationPeriod: 0
expirationWarningPeriod: 0
postExpirationAdminLoginCount: 0
postExpirationGracePeriod: 0
PasswordProfile 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 PasswordProfile resource accepts the following input properties:
- Location
Password
Profile Location - The location of this object.
- Name string
- Password
Change PasswordProfile Password Change
- Location
Password
Profile Location Args - The location of this object.
- Name string
- Password
Change PasswordProfile Password Change Args
- location
Password
Profile Location - The location of this object.
- name String
- password
Change PasswordProfile Password Change
- location
Password
Profile Location - The location of this object.
- name string
- password
Change PasswordProfile Password Change
- location
Password
Profile Location Args - The location of this object.
- name str
- password_
change PasswordProfile Password Change Args
- location Property Map
- The location of this object.
- name String
- password
Change Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PasswordProfile 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 PasswordProfile Resource
Get an existing PasswordProfile 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?: PasswordProfileState, opts?: CustomResourceOptions): PasswordProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[PasswordProfileLocationArgs] = None,
name: Optional[str] = None,
password_change: Optional[PasswordProfilePasswordChangeArgs] = None) -> PasswordProfilefunc GetPasswordProfile(ctx *Context, name string, id IDInput, state *PasswordProfileState, opts ...ResourceOption) (*PasswordProfile, error)public static PasswordProfile Get(string name, Input<string> id, PasswordProfileState? state, CustomResourceOptions? opts = null)public static PasswordProfile get(String name, Output<String> id, PasswordProfileState state, CustomResourceOptions options)resources: _: type: panos:PasswordProfile 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.
- Location
Password
Profile Location - The location of this object.
- Name string
- Password
Change PasswordProfile Password Change
- Location
Password
Profile Location Args - The location of this object.
- Name string
- Password
Change PasswordProfile Password Change Args
- location
Password
Profile Location - The location of this object.
- name String
- password
Change PasswordProfile Password Change
- location
Password
Profile Location - The location of this object.
- name string
- password
Change PasswordProfile Password Change
- location
Password
Profile Location Args - The location of this object.
- name str
- password_
change PasswordProfile Password Change Args
- location Property Map
- The location of this object.
- name String
- password
Change Property Map
Supporting Types
PasswordProfileLocation, PasswordProfileLocationArgs
- Ngfw
Password
Profile Location Ngfw - Located within device-level configuration
- Panorama
Password
Profile Location Panorama - Located in panorama.
- Template
Password
Profile Location Template - A management configuration object located within a specific template
- Template
Stack PasswordProfile Location Template Stack - A management configuration object located within a specific template
- Ngfw
Password
Profile Location Ngfw - Located within device-level configuration
- Panorama
Password
Profile Location Panorama - Located in panorama.
- Template
Password
Profile Location Template - A management configuration object located within a specific template
- Template
Stack PasswordProfile Location Template Stack - A management configuration object located within a specific template
- ngfw
Password
Profile Location Ngfw - Located within device-level configuration
- panorama
Password
Profile Location Panorama - Located in panorama.
- template
Password
Profile Location Template - A management configuration object located within a specific template
- template
Stack PasswordProfile Location Template Stack - A management configuration object located within a specific template
- ngfw
Password
Profile Location Ngfw - Located within device-level configuration
- panorama
Password
Profile Location Panorama - Located in panorama.
- template
Password
Profile Location Template - A management configuration object located within a specific template
- template
Stack PasswordProfile Location Template Stack - A management configuration object located within a specific template
- ngfw
Password
Profile Location Ngfw - Located within device-level configuration
- panorama
Password
Profile Location Panorama - Located in panorama.
- template
Password
Profile Location Template - A management configuration object located within a specific template
- template_
stack PasswordProfile Location Template Stack - A management configuration object located within a specific template
- ngfw Property Map
- Located within device-level configuration
- panorama Property Map
- Located in panorama.
- template Property Map
- A management configuration object located within a specific template
- template
Stack Property Map - A management configuration object located within a specific template
PasswordProfileLocationTemplate, PasswordProfileLocationTemplateArgs
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
PasswordProfileLocationTemplateStack, PasswordProfileLocationTemplateStackArgs
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
- name string
- The template stack
- panorama
Device string - Specific Panorama device
- name str
- The template stack
- panorama_
device str - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
PasswordProfilePasswordChange, PasswordProfilePasswordChangeArgs
- Expiration
Period double - Password expiry days
- Expiration
Warning doublePeriod - Password expiry warning period
- Post
Expiration doubleAdmin Login Count - Password post-expiry admin login count
- Post
Expiration doubleGrace Period - Password post-expiry grace period
- Expiration
Period float64 - Password expiry days
- Expiration
Warning float64Period - Password expiry warning period
- Post
Expiration float64Admin Login Count - Password post-expiry admin login count
- Post
Expiration float64Grace Period - Password post-expiry grace period
- expiration
Period Double - Password expiry days
- expiration
Warning DoublePeriod - Password expiry warning period
- post
Expiration DoubleAdmin Login Count - Password post-expiry admin login count
- post
Expiration DoubleGrace Period - Password post-expiry grace period
- expiration
Period number - Password expiry days
- expiration
Warning numberPeriod - Password expiry warning period
- post
Expiration numberAdmin Login Count - Password post-expiry admin login count
- post
Expiration numberGrace Period - Password post-expiry grace period
- expiration_
period float - Password expiry days
- expiration_
warning_ floatperiod - Password expiry warning period
- post_
expiration_ floatadmin_ login_ count - Password post-expiry admin login count
- post_
expiration_ floatgrace_ period - Password post-expiry grace period
- expiration
Period Number - Password expiry days
- expiration
Warning NumberPeriod - Password expiry warning period
- post
Expiration NumberAdmin Login Count - Password post-expiry admin login count
- post
Expiration NumberGrace Period - Password post-expiry grace period
Import
A password profile can be imported by providing the following base64 encoded object as the ID
{
location = {
template = {
name = "my-template"
panorama_device = "localhost.localdomain"
}
}
name = “example-password-profile”
}
$ pulumi import panos:index/passwordProfile:PasswordProfile example $(echo '{"location":{"template":{"name":"my-template","panorama_device":"localhost.localdomain"}},"name":"example-password-profile"}' | 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
