oci_core_volume_backup_policy

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

Creates a new user defined backup policy.

For more information about Oracle defined backup policies and user defined backup policies, see Policy-Based Backups.

Example Usage

resource "oci_core_volume_backup_policy" "test_volume_backup_policy" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	destination_region = var.volume_backup_policy_destination_region
	display_name = var.volume_backup_policy_display_name
	freeform_tags = {"Department"= "Finance"}
	schedules {
		#Required
		backup_type = var.volume_backup_policy_schedules_backup_type
		period = var.volume_backup_policy_schedules_period
		retention_seconds = var.volume_backup_policy_schedules_retention_seconds

		#Optional
		day_of_month = var.volume_backup_policy_schedules_day_of_month
		day_of_week = var.volume_backup_policy_schedules_day_of_week
		hour_of_day = var.volume_backup_policy_schedules_hour_of_day
		month = var.volume_backup_policy_schedules_month
		offset_seconds = var.volume_backup_policy_schedules_offset_seconds
		offset_type = var.volume_backup_policy_schedules_offset_type
		time_zone = var.volume_backup_policy_schedules_time_zone
	}
}

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

Import

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

$ terraform import oci_core_volume_backup_policy.test_volume_backup_policy "id"