oci_file_storage_filesystem_snapshot_policy

This resource provides the Filesystem Snapshot Policy resource in Oracle Cloud Infrastructure File Storage service.

Creates a new file system snapshot policy in the specified compartment and availability domain.

After you create a file system snapshot policy, you can associate it with file systems.

Example Usage

resource "oci_file_storage_filesystem_snapshot_policy" "test_filesystem_snapshot_policy" {
	#Required
	availability_domain = var.filesystem_snapshot_policy_availability_domain
	compartment_id = var.compartment_id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.filesystem_snapshot_policy_display_name
	freeform_tags = {"Department"= "Finance"}
	locks {
		#Required
		type = var.filesystem_snapshot_policy_locks_type

		#Optional
		message = var.filesystem_snapshot_policy_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.filesystem_snapshot_policy_locks_time_created
	}
	policy_prefix = var.filesystem_snapshot_policy_policy_prefix
	schedules {
		#Required
		period = var.filesystem_snapshot_policy_schedules_period
		time_zone = var.filesystem_snapshot_policy_schedules_time_zone

		#Optional
		day_of_month = var.filesystem_snapshot_policy_schedules_day_of_month
		day_of_week = var.filesystem_snapshot_policy_schedules_day_of_week
		hour_of_day = var.filesystem_snapshot_policy_schedules_hour_of_day
		month = var.filesystem_snapshot_policy_schedules_month
		retention_duration_in_seconds = var.filesystem_snapshot_policy_schedules_retention_duration_in_seconds
		schedule_prefix = var.filesystem_snapshot_policy_schedules_schedule_prefix
		time_schedule_start = var.filesystem_snapshot_policy_schedules_time_schedule_start
	}
}

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

Import

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

$ terraform import oci_file_storage_filesystem_snapshot_policy.test_filesystem_snapshot_policy "id"