fortios.system.Passwordpolicy
Explore with Pulumi AI
Configure password policy for locally defined administrator passwords and IPsec VPN pre-shared keys.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.Passwordpolicy("trname", {
applyTo: "admin-password",
change4Characters: "disable",
expireDay: 90,
expireStatus: "disable",
minLowerCaseLetter: 0,
minNonAlphanumeric: 0,
minNumber: 0,
minUpperCaseLetter: 0,
minimumLength: 8,
reusePassword: "enable",
status: "disable",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.Passwordpolicy("trname",
apply_to="admin-password",
change4_characters="disable",
expire_day=90,
expire_status="disable",
min_lower_case_letter=0,
min_non_alphanumeric=0,
min_number=0,
min_upper_case_letter=0,
minimum_length=8,
reuse_password="enable",
status="disable")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.NewPasswordpolicy(ctx, "trname", &system.PasswordpolicyArgs{
ApplyTo: pulumi.String("admin-password"),
Change4Characters: pulumi.String("disable"),
ExpireDay: pulumi.Int(90),
ExpireStatus: pulumi.String("disable"),
MinLowerCaseLetter: pulumi.Int(0),
MinNonAlphanumeric: pulumi.Int(0),
MinNumber: pulumi.Int(0),
MinUpperCaseLetter: pulumi.Int(0),
MinimumLength: pulumi.Int(8),
ReusePassword: pulumi.String("enable"),
Status: pulumi.String("disable"),
})
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.System.Passwordpolicy("trname", new()
{
ApplyTo = "admin-password",
Change4Characters = "disable",
ExpireDay = 90,
ExpireStatus = "disable",
MinLowerCaseLetter = 0,
MinNonAlphanumeric = 0,
MinNumber = 0,
MinUpperCaseLetter = 0,
MinimumLength = 8,
ReusePassword = "enable",
Status = "disable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Passwordpolicy;
import com.pulumi.fortios.system.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()
.applyTo("admin-password")
.change4Characters("disable")
.expireDay(90)
.expireStatus("disable")
.minLowerCaseLetter(0)
.minNonAlphanumeric(0)
.minNumber(0)
.minUpperCaseLetter(0)
.minimumLength(8)
.reusePassword("enable")
.status("disable")
.build());
}
}
resources:
trname:
type: fortios:system:Passwordpolicy
properties:
applyTo: admin-password
change4Characters: disable
expireDay: 90
expireStatus: disable
minLowerCaseLetter: 0
minNonAlphanumeric: 0
minNumber: 0
minUpperCaseLetter: 0
minimumLength: 8
reusePassword: enable
status: disable
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,
apply_to: Optional[str] = None,
change4_characters: Optional[str] = None,
expire_day: Optional[int] = None,
expire_status: 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,
reuse_password: Optional[str] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = 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:system: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 passwordpolicyResource = new Fortios.System.Passwordpolicy("passwordpolicyResource", new()
{
ApplyTo = "string",
Change4Characters = "string",
ExpireDay = 0,
ExpireStatus = "string",
MinChangeCharacters = 0,
MinLowerCaseLetter = 0,
MinNonAlphanumeric = 0,
MinNumber = 0,
MinUpperCaseLetter = 0,
MinimumLength = 0,
ReusePassword = "string",
Status = "string",
Vdomparam = "string",
});
example, err := system.NewPasswordpolicy(ctx, "passwordpolicyResource", &system.PasswordpolicyArgs{
ApplyTo: pulumi.String("string"),
Change4Characters: pulumi.String("string"),
ExpireDay: pulumi.Int(0),
ExpireStatus: 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),
ReusePassword: pulumi.String("string"),
Status: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var passwordpolicyResource = new Passwordpolicy("passwordpolicyResource", PasswordpolicyArgs.builder()
.applyTo("string")
.change4Characters("string")
.expireDay(0)
.expireStatus("string")
.minChangeCharacters(0)
.minLowerCaseLetter(0)
.minNonAlphanumeric(0)
.minNumber(0)
.minUpperCaseLetter(0)
.minimumLength(0)
.reusePassword("string")
.status("string")
.vdomparam("string")
.build());
passwordpolicy_resource = fortios.system.Passwordpolicy("passwordpolicyResource",
apply_to="string",
change4_characters="string",
expire_day=0,
expire_status="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,
reuse_password="string",
status="string",
vdomparam="string")
const passwordpolicyResource = new fortios.system.Passwordpolicy("passwordpolicyResource", {
applyTo: "string",
change4Characters: "string",
expireDay: 0,
expireStatus: "string",
minChangeCharacters: 0,
minLowerCaseLetter: 0,
minNonAlphanumeric: 0,
minNumber: 0,
minUpperCaseLetter: 0,
minimumLength: 0,
reusePassword: "string",
status: "string",
vdomparam: "string",
});
type: fortios:system:Passwordpolicy
properties:
applyTo: string
change4Characters: string
expireDay: 0
expireStatus: string
minChangeCharacters: 0
minLowerCaseLetter: 0
minNonAlphanumeric: 0
minNumber: 0
minUpperCaseLetter: 0
minimumLength: 0
reusePassword: string
status: string
vdomparam: string
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:
- Apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - Change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - Expire
Day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- Reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - Status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- Apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - Change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - Expire
Day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- Reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - Status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To String - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters String
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day Integer - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change IntegerCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password String - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status String
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day number - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change numberCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply_
to str - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4_
characters str - Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire_
day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire_
status str - Enable/disable password expiration. Valid values:
enable
,disable
. - min_
change_ intcharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse_
password str - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status str
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To String - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters String
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day Number - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change NumberCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password String - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status String
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
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,
apply_to: Optional[str] = None,
change4_characters: Optional[str] = None,
expire_day: Optional[int] = None,
expire_status: 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,
reuse_password: Optional[str] = None,
status: Optional[str] = None,
vdomparam: Optional[str] = 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.
- Apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - Change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - Expire
Day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- Reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - Status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- Apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - Change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - Expire
Day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- Expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - Min
Change intCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- Reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - Status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To String - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters String
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day Integer - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change IntegerCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password String - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status String
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To string - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters string
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day number - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status string - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change numberCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password string - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status string
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply_
to str - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4_
characters str - Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire_
day int - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire_
status str - Enable/disable password expiration. Valid values:
enable
,disable
. - min_
change_ intcharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse_
password str - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status str
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
- apply
To String - Apply password policy to administrator passwords or IPsec pre-shared keys or both. Separate entries with a space. Valid values:
admin-password
,ipsec-preshared-key
. - change4Characters String
- Enable/disable changing at least 4 characters for a new password (This attribute overrides reuse-password if both are enabled). Valid values:
enable
,disable
. - expire
Day Number - Number of days after which passwords expire (1 - 999 days, default = 90).
- expire
Status String - Enable/disable password expiration. Valid values:
enable
,disable
. - min
Change NumberCharacters - Minimum number of unique characters in new password which do not exist in old password (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).
- reuse
Password String - Enable/disable reusing of password (if both reuse-password and change-4-characters are enabled, change-4-characters overrides). Valid values:
enable
,disable
. - status String
- Enable/disable setting a password policy for locally defined administrator passwords and IPsec VPN pre-shared keys. 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.
Import
System PasswordPolicy can be imported using any of these accepted formats:
$ pulumi import fortios:system/passwordpolicy:Passwordpolicy labelname SystemPasswordPolicy
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/passwordpolicy:Passwordpolicy labelname SystemPasswordPolicy
$ 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.