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, or by file system snapshot policy and compartment, or by file system snapshot policy and file system.

If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified.

Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID (sort by name is NOT supported for listing snapshots by policy and compartment).

Example Usage

data "oci_file_storage_snapshots" "test_snapshots" {

	#Optional
	compartment_id = var.compartment_id
	file_system_id = oci_file_storage_file_system.test_file_system.id
	filesystem_snapshot_policy_id = oci_file_storage_filesystem_snapshot_policy.test_filesystem_snapshot_policy.id
	id = var.snapshot_id
	state = var.snapshot_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Snapshot Reference

The following attributes are exported: