oci_core_volume_backup_policy_assignment

This resource provides the Volume Backup Policy Assignment resource in Oracle Cloud Infrastructure Core service.

Assigns a volume backup policy to the specified volume or volume group. Note that a given volume or volume group can only have one backup policy assigned to it. If this operation is used for a volume or volume group that already has a different backup policy assigned, the prior backup policy will be silently unassigned.

Example Usage

resource "oci_core_volume_backup_policy_assignment" "test_volume_backup_policy_assignment" {
	#Required
	asset_id = oci_core_volume.test_volume.id
	policy_id = oci_core_volume_backup_policy.test_volume_backup_policy.id
}

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 Volume Backup Policy Assignment * update - (Defaults to 20 minutes), when updating the Volume Backup Policy Assignment * delete - (Defaults to 20 minutes), when destroying the Volume Backup Policy Assignment

Import

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

$ terraform import oci_core_volume_backup_policy_assignment.test_volume_backup_policy_assignment "id"