» Data Source: oci_file_storage_snapshots
This data source provides the list of Snapshots in Oracle Cloud Infrastructure File Storage service.
Lists snapshots of the specified file system.
» Example Usage
data "oci_file_storage_snapshots" "test_snapshots" {
#Required
file_system_id = "${oci_file_storage_file_system.test_file_system.id}"
#Optional
id = "${var.snapshot_id}"
state = "${var.snapshot_state}"
}
» Argument Reference
The following arguments are supported:
-
file_system_id
- (Required) The OCID of the file system. -
id
- (Optional) Filter results by OCID. Must be an OCID of the correct type for the resouce type. -
state
- (Optional) Filter results by the specified lifecycle state. Must be a valid state for the resource type.
» Attributes Reference
The following attributes are exported:
-
snapshots
- The list of snapshots.
» Snapshot 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