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

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"