oci_identity_authentication_policy
This resource provides the Authentication Policy resource in Oracle Cloud Infrastructure Identity service.
Updates authentication policy for the specified tenancy
Example Usage
resource "oci_identity_authentication_policy" "test_authentication_policy" {
#Required
compartment_id = var.tenancy_ocid
#Optional
network_policy {
#Optional
network_source_ids = var.authentication_policy_network_policy_network_source_ids
}
password_policy {
#Optional
is_lowercase_characters_required = var.authentication_policy_password_policy_is_lowercase_characters_required
is_numeric_characters_required = var.authentication_policy_password_policy_is_numeric_characters_required
is_special_characters_required = var.authentication_policy_password_policy_is_special_characters_required
is_uppercase_characters_required = var.authentication_policy_password_policy_is_uppercase_characters_required
is_username_containment_allowed = var.authentication_policy_password_policy_is_username_containment_allowed
minimum_password_length = var.authentication_policy_password_policy_minimum_password_length
}
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.network_policy
- (Optional) (Updatable) Network policy, Consists of a list of Network Source ids.network_source_ids
- (Optional) (Updatable) Network Source ids
password_policy
- (Optional) (Updatable) Password policy, currently set for the given compartment.is_lowercase_characters_required
- (Optional) (Updatable) At least one lower case character required.is_numeric_characters_required
- (Optional) (Updatable) At least one numeric character required.is_special_characters_required
- (Optional) (Updatable) At least one special character required.is_uppercase_characters_required
- (Optional) (Updatable) At least one uppercase character required.is_username_containment_allowed
- (Optional) (Updatable) User name is allowed to be part of the password.minimum_password_length
- (Optional) (Updatable) Minimum password length required.
** 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:
compartment_id
- Compartment OCID.network_policy
- Network policy, Consists of a list of Network Source ids.network_source_ids
- Network Source ids
password_policy
- Password policy, currently set for the given compartment.is_lowercase_characters_required
- At least one lower case character required.is_numeric_characters_required
- At least one numeric character required.is_special_characters_required
- At least one special character required.is_uppercase_characters_required
- At least one uppercase character required.is_username_containment_allowed
- User name is allowed to be part of the password.minimum_password_length
- Minimum password length required.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Authentication Policy
* update
- (Defaults to 20 minutes), when updating the Authentication Policy
* delete
- (Defaults to 20 minutes), when destroying the Authentication Policy
Import
AuthenticationPolicies can be imported using the id
, e.g.
$ terraform import oci_identity_authentication_policy.test_authentication_policy "authenticationPolicies/{compartmentId}"