1. Packages
  2. Okta
  3. API Docs
  4. policy
  5. RulePassword
Okta v4.9.2 published on Tuesday, Jun 25, 2024 by Pulumi

okta.policy.RulePassword

Explore with Pulumi AI

okta logo
Okta v4.9.2 published on Tuesday, Jun 25, 2024 by Pulumi

    Creates a Password Policy Rule. This resource allows you to create and configure a Password Policy Rule.

    Create RulePassword Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RulePassword(name: string, args?: RulePasswordArgs, opts?: CustomResourceOptions);
    @overload
    def RulePassword(resource_name: str,
                     args: Optional[RulePasswordArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def RulePassword(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     network_connection: Optional[str] = None,
                     network_excludes: Optional[Sequence[str]] = None,
                     network_includes: Optional[Sequence[str]] = None,
                     password_change: Optional[str] = None,
                     password_reset: Optional[str] = None,
                     password_unlock: Optional[str] = None,
                     policy_id: Optional[str] = None,
                     priority: Optional[int] = None,
                     status: Optional[str] = None,
                     users_excludeds: Optional[Sequence[str]] = None)
    func NewRulePassword(ctx *Context, name string, args *RulePasswordArgs, opts ...ResourceOption) (*RulePassword, error)
    public RulePassword(string name, RulePasswordArgs? args = null, CustomResourceOptions? opts = null)
    public RulePassword(String name, RulePasswordArgs args)
    public RulePassword(String name, RulePasswordArgs args, CustomResourceOptions options)
    
    type: okta:policy:RulePassword
    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 RulePasswordArgs
    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 RulePasswordArgs
    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 RulePasswordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RulePasswordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RulePasswordArgs
    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 rulePasswordResource = new Okta.Policy.RulePassword("rulePasswordResource", new()
    {
        Name = "string",
        NetworkConnection = "string",
        NetworkExcludes = new[]
        {
            "string",
        },
        NetworkIncludes = new[]
        {
            "string",
        },
        PasswordChange = "string",
        PasswordReset = "string",
        PasswordUnlock = "string",
        PolicyId = "string",
        Priority = 0,
        Status = "string",
        UsersExcludeds = new[]
        {
            "string",
        },
    });
    
    example, err := policy.NewRulePassword(ctx, "rulePasswordResource", &policy.RulePasswordArgs{
    	Name:              pulumi.String("string"),
    	NetworkConnection: pulumi.String("string"),
    	NetworkExcludes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NetworkIncludes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PasswordChange: pulumi.String("string"),
    	PasswordReset:  pulumi.String("string"),
    	PasswordUnlock: pulumi.String("string"),
    	PolicyId:       pulumi.String("string"),
    	Priority:       pulumi.Int(0),
    	Status:         pulumi.String("string"),
    	UsersExcludeds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var rulePasswordResource = new RulePassword("rulePasswordResource", RulePasswordArgs.builder()
        .name("string")
        .networkConnection("string")
        .networkExcludes("string")
        .networkIncludes("string")
        .passwordChange("string")
        .passwordReset("string")
        .passwordUnlock("string")
        .policyId("string")
        .priority(0)
        .status("string")
        .usersExcludeds("string")
        .build());
    
    rule_password_resource = okta.policy.RulePassword("rulePasswordResource",
        name="string",
        network_connection="string",
        network_excludes=["string"],
        network_includes=["string"],
        password_change="string",
        password_reset="string",
        password_unlock="string",
        policy_id="string",
        priority=0,
        status="string",
        users_excludeds=["string"])
    
    const rulePasswordResource = new okta.policy.RulePassword("rulePasswordResource", {
        name: "string",
        networkConnection: "string",
        networkExcludes: ["string"],
        networkIncludes: ["string"],
        passwordChange: "string",
        passwordReset: "string",
        passwordUnlock: "string",
        policyId: "string",
        priority: 0,
        status: "string",
        usersExcludeds: ["string"],
    });
    
    type: okta:policy:RulePassword
    properties:
        name: string
        networkConnection: string
        networkExcludes:
            - string
        networkIncludes:
            - string
        passwordChange: string
        passwordReset: string
        passwordUnlock: string
        policyId: string
        priority: 0
        status: string
        usersExcludeds:
            - string
    

    RulePassword 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 RulePassword resource accepts the following input properties:

    Name string
    Policy Rule Name
    NetworkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    NetworkExcludes List<string>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    NetworkIncludes List<string>
    Required if network_connection = ZONE. Indicates the network zones to include.
    PasswordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    PasswordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    PasswordUnlock string
    Allow or deny a user to unlock. Default: DENY
    PolicyId string
    Policy ID of the Rule
    Priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    Status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    UsersExcludeds List<string>
    Set of User IDs to Exclude
    Name string
    Policy Rule Name
    NetworkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    NetworkExcludes []string
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    NetworkIncludes []string
    Required if network_connection = ZONE. Indicates the network zones to include.
    PasswordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    PasswordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    PasswordUnlock string
    Allow or deny a user to unlock. Default: DENY
    PolicyId string
    Policy ID of the Rule
    Priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    Status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    UsersExcludeds []string
    Set of User IDs to Exclude
    name String
    Policy Rule Name
    networkConnection String
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange String
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset String
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock String
    Allow or deny a user to unlock. Default: DENY
    policyId String
    Policy ID of the Rule
    priority Integer
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status String
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds List<String>
    Set of User IDs to Exclude
    name string
    Policy Rule Name
    networkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes string[]
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes string[]
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock string
    Allow or deny a user to unlock. Default: DENY
    policyId string
    Policy ID of the Rule
    priority number
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds string[]
    Set of User IDs to Exclude
    name str
    Policy Rule Name
    network_connection str
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    network_excludes Sequence[str]
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    network_includes Sequence[str]
    Required if network_connection = ZONE. Indicates the network zones to include.
    password_change str
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    password_reset str
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    password_unlock str
    Allow or deny a user to unlock. Default: DENY
    policy_id str
    Policy ID of the Rule
    priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status str
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    users_excludeds Sequence[str]
    Set of User IDs to Exclude
    name String
    Policy Rule Name
    networkConnection String
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange String
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset String
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock String
    Allow or deny a user to unlock. Default: DENY
    policyId String
    Policy ID of the Rule
    priority Number
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status String
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds List<String>
    Set of User IDs to Exclude

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RulePassword 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 RulePassword Resource

    Get an existing RulePassword 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?: RulePasswordState, opts?: CustomResourceOptions): RulePassword
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            network_connection: Optional[str] = None,
            network_excludes: Optional[Sequence[str]] = None,
            network_includes: Optional[Sequence[str]] = None,
            password_change: Optional[str] = None,
            password_reset: Optional[str] = None,
            password_unlock: Optional[str] = None,
            policy_id: Optional[str] = None,
            priority: Optional[int] = None,
            status: Optional[str] = None,
            users_excludeds: Optional[Sequence[str]] = None) -> RulePassword
    func GetRulePassword(ctx *Context, name string, id IDInput, state *RulePasswordState, opts ...ResourceOption) (*RulePassword, error)
    public static RulePassword Get(string name, Input<string> id, RulePasswordState? state, CustomResourceOptions? opts = null)
    public static RulePassword get(String name, Output<String> id, RulePasswordState 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.
    The following state arguments are supported:
    Name string
    Policy Rule Name
    NetworkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    NetworkExcludes List<string>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    NetworkIncludes List<string>
    Required if network_connection = ZONE. Indicates the network zones to include.
    PasswordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    PasswordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    PasswordUnlock string
    Allow or deny a user to unlock. Default: DENY
    PolicyId string
    Policy ID of the Rule
    Priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    Status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    UsersExcludeds List<string>
    Set of User IDs to Exclude
    Name string
    Policy Rule Name
    NetworkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    NetworkExcludes []string
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    NetworkIncludes []string
    Required if network_connection = ZONE. Indicates the network zones to include.
    PasswordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    PasswordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    PasswordUnlock string
    Allow or deny a user to unlock. Default: DENY
    PolicyId string
    Policy ID of the Rule
    Priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    Status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    UsersExcludeds []string
    Set of User IDs to Exclude
    name String
    Policy Rule Name
    networkConnection String
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange String
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset String
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock String
    Allow or deny a user to unlock. Default: DENY
    policyId String
    Policy ID of the Rule
    priority Integer
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status String
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds List<String>
    Set of User IDs to Exclude
    name string
    Policy Rule Name
    networkConnection string
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes string[]
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes string[]
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange string
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset string
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock string
    Allow or deny a user to unlock. Default: DENY
    policyId string
    Policy ID of the Rule
    priority number
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status string
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds string[]
    Set of User IDs to Exclude
    name str
    Policy Rule Name
    network_connection str
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    network_excludes Sequence[str]
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    network_includes Sequence[str]
    Required if network_connection = ZONE. Indicates the network zones to include.
    password_change str
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    password_reset str
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    password_unlock str
    Allow or deny a user to unlock. Default: DENY
    policy_id str
    Policy ID of the Rule
    priority int
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status str
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    users_excludeds Sequence[str]
    Set of User IDs to Exclude
    name String
    Policy Rule Name
    networkConnection String
    Network selection mode: ANYWHERE, ZONE, ON_NETWORK, or OFF_NETWORK. Default: ANYWHERE
    networkExcludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to exclude.
    networkIncludes List<String>
    Required if network_connection = ZONE. Indicates the network zones to include.
    passwordChange String
    Allow or deny a user to change their password: ALLOW or DENY. Default: ALLOW
    passwordReset String
    Allow or deny a user to reset their password: ALLOW or DENY. Default: ALLOW
    passwordUnlock String
    Allow or deny a user to unlock. Default: DENY
    policyId String
    Policy ID of the Rule
    priority Number
    Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
    status String
    Policy Rule Status: ACTIVE or INACTIVE. Default: ACTIVE
    usersExcludeds List<String>
    Set of User IDs to Exclude

    Import

    $ pulumi import okta:policy/rulePassword:RulePassword example &#60;policy id&#62;/&#60;rule id&#62;
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.9.2 published on Tuesday, Jun 25, 2024 by Pulumi