oci_file_storage_snapshot

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

Creates a new snapshot of the specified file system. You can access the snapshot at .snapshot/<name>.

Example Usage

resource "oci_file_storage_snapshot" "test_snapshot" {
	#Required
	file_system_id = oci_file_storage_file_system.test_file_system.id
	name = var.snapshot_name

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	expiration_time = var.snapshot_expiration_time
	freeform_tags = {"Department"= "Finance"}
	locks {
		#Required
		type = var.snapshot_locks_type

		#Optional
		message = var.snapshot_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.snapshot_locks_time_created
	}
}

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

Import

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

$ terraform import oci_file_storage_snapshot.test_snapshot "id"