oci_identity_domains_password_policy

This resource provides the Password Policy resource in Oracle Cloud Infrastructure Identity Domains service.

Create a password policy.

Example Usage

resource "oci_identity_domains_password_policy" "test_password_policy" {
    #Required
    idcs_endpoint = data.oci_identity_domain.test_domain.url
    name = var.password_policy_name
    schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:PasswordPolicy"]

    #Optional
    allowed_chars = var.password_policy_allowed_chars
    attribute_sets = []
    attributes = ""
    authorization = var.password_policy_authorization
    description = var.password_policy_description
    dictionary_delimiter = var.password_policy_dictionary_delimiter
    dictionary_location = var.password_policy_dictionary_location
    dictionary_word_disallowed = var.password_policy_dictionary_word_disallowed
    disallowed_chars = var.password_policy_disallowed_chars
    disallowed_substrings = var.password_policy_disallowed_substrings
    disallowed_user_attribute_values = var.password_policy_disallowed_user_attribute_values
    distinct_characters = var.password_policy_distinct_characters
    external_id = "externalId"
    first_name_disallowed = var.password_policy_first_name_disallowed
    force_password_reset = var.password_policy_force_password_reset
    groups {
        #Required
        value = oci_identity_domains_group.test_group.id
    }
    id = var.password_policy_id
    last_name_disallowed = var.password_policy_last_name_disallowed
    lockout_duration = var.password_policy_lockout_duration
    max_incorrect_attempts = var.password_policy_max_incorrect_attempts
    max_length = var.password_policy_max_length
    max_repeated_chars = var.password_policy_max_repeated_chars
    max_special_chars = var.password_policy_max_special_chars
    min_alpha_numerals = var.password_policy_min_alpha_numerals
    min_alphas = var.password_policy_min_alphas
    min_length = var.password_policy_min_length
    min_lower_case = var.password_policy_min_lower_case
    min_numerals = var.password_policy_min_numerals
    min_password_age = var.password_policy_min_password_age
    min_special_chars = var.password_policy_min_special_chars
    min_unique_chars = var.password_policy_min_unique_chars
    min_upper_case = var.password_policy_min_upper_case
    num_passwords_in_history = var.password_policy_num_passwords_in_history
    ocid = var.password_policy_ocid
    password_expire_warning = var.password_policy_password_expire_warning
    password_expires_after = var.password_policy_password_expires_after
    password_strength = var.password_policy_password_strength
    priority = var.password_policy_priority
    required_chars = var.password_policy_required_chars
    resource_type_schema_version = var.password_policy_resource_type_schema_version
    starts_with_alphabet = var.password_policy_starts_with_alphabet
    tags {
        #Required
        key = var.password_policy_tags_key
        value = var.password_policy_tags_value
    }
    user_name_disallowed = var.password_policy_user_name_disallowed
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Password Policy * update - (Defaults to 20 minutes), when updating the Password Policy * delete - (Defaults to 20 minutes), when destroying the Password Policy

Import

PasswordPolicies can be imported using the id, e.g.

$ terraform import oci_identity_domains_password_policy.test_password_policy "idcsEndpoint/{idcsEndpoint}/passwordPolicies/{passwordPolicyId}"