1. Packages
  2. Packages
  3. Panos Provider
  4. API Docs
  5. PasswordProfile
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Viewing docs for panos 2.0.11
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 Property Map
    The location of this object.
    name String
    passwordChange 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) -> PasswordProfile
    func 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.

    Supporting Types

    PasswordProfileLocation, PasswordProfileLocationArgs

    Ngfw PasswordProfileLocationNgfw
    Located within device-level configuration
    Panorama PasswordProfileLocationPanorama
    Located in panorama.
    Template PasswordProfileLocationTemplate
    A management configuration object located within a specific template
    TemplateStack PasswordProfileLocationTemplateStack
    A management configuration object located within a specific template
    Ngfw PasswordProfileLocationNgfw
    Located within device-level configuration
    Panorama PasswordProfileLocationPanorama
    Located in panorama.
    Template PasswordProfileLocationTemplate
    A management configuration object located within a specific template
    TemplateStack PasswordProfileLocationTemplateStack
    A management configuration object located within a specific template
    ngfw PasswordProfileLocationNgfw
    Located within device-level configuration
    panorama PasswordProfileLocationPanorama
    Located in panorama.
    template PasswordProfileLocationTemplate
    A management configuration object located within a specific template
    templateStack PasswordProfileLocationTemplateStack
    A management configuration object located within a specific template
    ngfw PasswordProfileLocationNgfw
    Located within device-level configuration
    panorama PasswordProfileLocationPanorama
    Located in panorama.
    template PasswordProfileLocationTemplate
    A management configuration object located within a specific template
    templateStack PasswordProfileLocationTemplateStack
    A management configuration object located within a specific template
    ngfw PasswordProfileLocationNgfw
    Located within device-level configuration
    panorama PasswordProfileLocationPanorama
    Located in panorama.
    template PasswordProfileLocationTemplate
    A management configuration object located within a specific template
    template_stack PasswordProfileLocationTemplateStack
    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
    templateStack Property Map
    A management configuration object located within a specific template

    PasswordProfileLocationTemplate, PasswordProfileLocationTemplateArgs

    Name string
    Specific Panorama template
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template
    panoramaDevice String
    Specific Panorama device

    PasswordProfileLocationTemplateStack, PasswordProfileLocationTemplateStackArgs

    Name string
    The template stack
    PanoramaDevice string
    Specific Panorama device
    Name string
    The template stack
    PanoramaDevice string
    Specific Panorama device
    name String
    The template stack
    panoramaDevice String
    Specific Panorama device
    name string
    The template stack
    panoramaDevice string
    Specific Panorama device
    name str
    The template stack
    panorama_device str
    Specific Panorama device
    name String
    The template stack
    panoramaDevice String
    Specific Panorama device

    PasswordProfilePasswordChange, PasswordProfilePasswordChangeArgs

    ExpirationPeriod double
    Password expiry days
    ExpirationWarningPeriod double
    Password expiry warning period
    PostExpirationAdminLoginCount double
    Password post-expiry admin login count
    PostExpirationGracePeriod double
    Password post-expiry grace period
    ExpirationPeriod float64
    Password expiry days
    ExpirationWarningPeriod float64
    Password expiry warning period
    PostExpirationAdminLoginCount float64
    Password post-expiry admin login count
    PostExpirationGracePeriod float64
    Password post-expiry grace period
    expirationPeriod Double
    Password expiry days
    expirationWarningPeriod Double
    Password expiry warning period
    postExpirationAdminLoginCount Double
    Password post-expiry admin login count
    postExpirationGracePeriod Double
    Password post-expiry grace period
    expirationPeriod number
    Password expiry days
    expirationWarningPeriod number
    Password expiry warning period
    postExpirationAdminLoginCount number
    Password post-expiry admin login count
    postExpirationGracePeriod number
    Password post-expiry grace period
    expiration_period float
    Password expiry days
    expiration_warning_period float
    Password expiry warning period
    post_expiration_admin_login_count float
    Password post-expiry admin login count
    post_expiration_grace_period float
    Password post-expiry grace period
    expirationPeriod Number
    Password expiry days
    expirationWarningPeriod Number
    Password expiry warning period
    postExpirationAdminLoginCount Number
    Password post-expiry admin login count
    postExpirationGracePeriod Number
    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 panos Terraform Provider.
    Viewing docs for panos 2.0.11
    published on Tuesday, Apr 28, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.