» 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"}
    freeform_tags = {"Department"= "Finance"}
}

» Argument Reference

The following arguments are supported:

  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • file_system_id - (Required) The OCID of the file system to take a snapshot of.
  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • name - (Required) Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.

    Avoid entering confidential information.

    Example: Sunday

** 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:

  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • file_system_id - The OCID of the file system from which the snapshot was created.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the snapshot.
  • name - Name of the snapshot. This value is immutable.

    Avoid entering confidential information.

    Example: Sunday

  • state - The current state of the snapshot.

  • time_created - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

» Import

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

$ terraform import oci_file_storage_snapshot.test_snapshot "id"