fortios.user.Passwordpolicy
Explore with Pulumi AI
Configure user password policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.user.Passwordpolicy("trname", {
expireDays: 22,
warnDays: 13,
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.user.Passwordpolicy("trname",
expire_days=22,
warn_days=13)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/user"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := user.NewPasswordpolicy(ctx, "trname", &user.PasswordpolicyArgs{
ExpireDays: pulumi.Int(22),
WarnDays: pulumi.Int(13),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.User.Passwordpolicy("trname", new()
{
ExpireDays = 22,
WarnDays = 13,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.user.Passwordpolicy;
import com.pulumi.fortios.user.PasswordpolicyArgs;
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 trname = new Passwordpolicy("trname", PasswordpolicyArgs.builder()
.expireDays(22)
.warnDays(13)
.build());
}
}
resources:
trname:
type: fortios:user:Passwordpolicy
properties:
expireDays: 22
warnDays: 13
Create Passwordpolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Passwordpolicy(name: string, args?: PasswordpolicyArgs, opts?: CustomResourceOptions);
@overload
def Passwordpolicy(resource_name: str,
args: Optional[PasswordpolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Passwordpolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
expire_days: Optional[int] = None,
expire_status: Optional[str] = None,
expired_password_renewal: Optional[str] = None,
min_change_characters: Optional[int] = None,
min_lower_case_letter: Optional[int] = None,
min_non_alphanumeric: Optional[int] = None,
min_number: Optional[int] = None,
min_upper_case_letter: Optional[int] = None,
minimum_length: Optional[int] = None,
name: Optional[str] = None,
reuse_password: Optional[str] = None,
vdomparam: Optional[str] = None,
warn_days: Optional[int] = None)
func NewPasswordpolicy(ctx *Context, name string, args *PasswordpolicyArgs, opts ...ResourceOption) (*Passwordpolicy, error)
public Passwordpolicy(string name, PasswordpolicyArgs? args = null, CustomResourceOptions? opts = null)
public Passwordpolicy(String name, PasswordpolicyArgs args)
public Passwordpolicy(String name, PasswordpolicyArgs args, CustomResourceOptions options)
type: fortios:user:Passwordpolicy
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 PasswordpolicyArgs
- 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 PasswordpolicyArgs
- 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 PasswordpolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PasswordpolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PasswordpolicyArgs
- 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 fortiosPasswordpolicyResource = new Fortios.User.Passwordpolicy("fortiosPasswordpolicyResource", new()
{
ExpireDays = 0,
ExpireStatus = "string",
ExpiredPasswordRenewal = "string",
MinChangeCharacters = 0,
MinLowerCaseLetter = 0,
MinNonAlphanumeric = 0,
MinNumber = 0,
MinUpperCaseLetter = 0,
MinimumLength = 0,
Name = "string",
ReusePassword = "string",
Vdomparam = "string",
WarnDays = 0,
});
example, err := user.NewPasswordpolicy(ctx, "fortiosPasswordpolicyResource", &user.PasswordpolicyArgs{
ExpireDays: pulumi.Int(0),
ExpireStatus: pulumi.String("string"),
ExpiredPasswordRenewal: pulumi.String("string"),
MinChangeCharacters: pulumi.Int(0),
MinLowerCaseLetter: pulumi.Int(0),
MinNonAlphanumeric: pulumi.Int(0),
MinNumber: pulumi.Int(0),
MinUpperCaseLetter: pulumi.Int(0),
MinimumLength: pulumi.Int(0),
Name: pulumi.String("string"),
ReusePassword: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
WarnDays: pulumi.Int(0),
})
var fortiosPasswordpolicyResource = new Passwordpolicy("fortiosPasswordpolicyResource", PasswordpolicyArgs.builder()
.expireDays(0)
.expireStatus("string")
.expiredPasswordRenewal("string")
.minChangeCharacters(0)
.minLowerCaseLetter(0)
.minNonAlphanumeric(0)
.minNumber(0)
.minUpperCaseLetter(0)
.minimumLength(0)
.name("string")
.reusePassword("string")
.vdomparam("string")
.warnDays(0)
.build());
fortios_passwordpolicy_resource = fortios.user.Passwordpolicy("fortiosPasswordpolicyResource",
expire_days=0,
expire_status="string",
expired_password_renewal="string",
min_change_characters=0,
min_lower_case_letter=0,
min_non_alphanumeric=0,
min_number=0,
min_upper_case_letter=0,
minimum_length=0,
name="string",
reuse_password="string",
vdomparam="string",
warn_days=0)
const fortiosPasswordpolicyResource = new fortios.user.Passwordpolicy("fortiosPasswordpolicyResource", {
expireDays: 0,
expireStatus: "string",
expiredPasswordRenewal: "string",
minChangeCharacters: 0,
minLowerCaseLetter: 0,
minNonAlphanumeric: 0,
minNumber: 0,
minUpperCaseLetter: 0,
minimumLength: 0,
name: "string",
reusePassword: "string",
vdomparam: "string",
warnDays: 0,
});
type: fortios:user:Passwordpolicy
properties:
expireDays: 0
expireStatus: string
expiredPasswordRenewal: string
minChangeCharacters: 0
minLowerCaseLetter: 0
minNonAlphanumeric: 0
minNumber: 0
minUpperCaseLetter: 0
minimumLength: 0
name: string
reusePassword: string
vdomparam: string
warnDays: 0
Passwordpolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Passwordpolicy resource accepts the following input properties:
- Expire
Days int - Time in days before the user's password expires.
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- Min
Lower intCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- Min
Non intAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- Min
Number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- Min
Upper intCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- Minimum
Length int - Minimum password length (8 - 128, default = 8).
- Name string
- Password policy name.
- Reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Warn
Days int - Time in days before a password expiration warning message is displayed to the user upon login.
- Expire
Days int - Time in days before the user's password expires.
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- Min
Lower intCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- Min
Non intAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- Min
Number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- Min
Upper intCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- Minimum
Length int - Minimum password length (8 - 128, default = 8).
- Name string
- Password policy name.
- Reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Warn
Days int - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days Integer - Time in days before the user's password expires.
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password StringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change IntegerCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower IntegerCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non IntegerAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number Integer - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper IntegerCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length Integer - Minimum password length (8 - 128, default = 8).
- name String
- Password policy name.
- reuse
Password String - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days Integer - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days number - Time in days before the user's password expires.
- expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change numberCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower numberCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non numberAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number number - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper numberCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length number - Minimum password length (8 - 128, default = 8).
- name string
- Password policy name.
- reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days number - Time in days before a password expiration warning message is displayed to the user upon login.
- expire_
days int - Time in days before the user's password expires.
- expire_
status str - Enable/disable password expiration. Valid values:
enable
,disable
. - expired_
password_ strrenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min_
change_ intcharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min_
lower_ intcase_ letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min_
non_ intalphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min_
number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- min_
upper_ intcase_ letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum_
length int - Minimum password length (8 - 128, default = 8).
- name str
- Password policy name.
- reuse_
password str - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn_
days int - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days Number - Time in days before the user's password expires.
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password StringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change NumberCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower NumberCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non NumberAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number Number - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper NumberCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length Number - Minimum password length (8 - 128, default = 8).
- name String
- Password policy name.
- reuse
Password String - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days Number - Time in days before a password expiration warning message is displayed to the user upon login.
Outputs
All input properties are implicitly available as output properties. Additionally, the Passwordpolicy 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 Passwordpolicy Resource
Get an existing Passwordpolicy 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?: PasswordpolicyState, opts?: CustomResourceOptions): Passwordpolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expire_days: Optional[int] = None,
expire_status: Optional[str] = None,
expired_password_renewal: Optional[str] = None,
min_change_characters: Optional[int] = None,
min_lower_case_letter: Optional[int] = None,
min_non_alphanumeric: Optional[int] = None,
min_number: Optional[int] = None,
min_upper_case_letter: Optional[int] = None,
minimum_length: Optional[int] = None,
name: Optional[str] = None,
reuse_password: Optional[str] = None,
vdomparam: Optional[str] = None,
warn_days: Optional[int] = None) -> Passwordpolicy
func GetPasswordpolicy(ctx *Context, name string, id IDInput, state *PasswordpolicyState, opts ...ResourceOption) (*Passwordpolicy, error)
public static Passwordpolicy Get(string name, Input<string> id, PasswordpolicyState? state, CustomResourceOptions? opts = null)
public static Passwordpolicy get(String name, Output<String> id, PasswordpolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Expire
Days int - Time in days before the user's password expires.
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- Min
Lower intCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- Min
Non intAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- Min
Number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- Min
Upper intCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- Minimum
Length int - Minimum password length (8 - 128, default = 8).
- Name string
- Password policy name.
- Reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Warn
Days int - Time in days before a password expiration warning message is displayed to the user upon login.
- Expire
Days int - Time in days before the user's password expires.
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- Min
Lower intCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- Min
Non intAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- Min
Number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- Min
Upper intCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- Minimum
Length int - Minimum password length (8 - 128, default = 8).
- Name string
- Password policy name.
- Reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Warn
Days int - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days Integer - Time in days before the user's password expires.
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password StringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change IntegerCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower IntegerCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non IntegerAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number Integer - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper IntegerCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length Integer - Minimum password length (8 - 128, default = 8).
- name String
- Password policy name.
- reuse
Password String - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days Integer - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days number - Time in days before the user's password expires.
- expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password stringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change numberCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower numberCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non numberAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number number - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper numberCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length number - Minimum password length (8 - 128, default = 8).
- name string
- Password policy name.
- reuse
Password string - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days number - Time in days before a password expiration warning message is displayed to the user upon login.
- expire_
days int - Time in days before the user's password expires.
- expire_
status str - Enable/disable password expiration. Valid values:
enable
,disable
. - expired_
password_ strrenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min_
change_ intcharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min_
lower_ intcase_ letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min_
non_ intalphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min_
number int - Minimum number of numeric characters in password (0 - 128, default = 0).
- min_
upper_ intcase_ letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum_
length int - Minimum password length (8 - 128, default = 8).
- name str
- Password policy name.
- reuse_
password str - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn_
days int - Time in days before a password expiration warning message is displayed to the user upon login.
- expire
Days Number - Time in days before the user's password expires.
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - expired
Password StringRenewal - Enable/disable renewal of a password that already is expired. Valid values:
enable
,disable
. - min
Change NumberCharacters - Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
- min
Lower NumberCase Letter - Minimum number of lowercase characters in password (0 - 128, default = 0).
- min
Non NumberAlphanumeric - Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
- min
Number Number - Minimum number of numeric characters in password (0 - 128, default = 0).
- min
Upper NumberCase Letter - Minimum number of uppercase characters in password (0 - 128, default = 0).
- minimum
Length Number - Minimum password length (8 - 128, default = 8).
- name String
- Password policy name.
- reuse
Password String - Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values:
enable
,disable
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- warn
Days Number - Time in days before a password expiration warning message is displayed to the user upon login.
Import
User PasswordPolicy can be imported using any of these accepted formats:
$ pulumi import fortios:user/passwordpolicy:Passwordpolicy labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:user/passwordpolicy:Passwordpolicy labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.