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:

** 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 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}"