Finding Clones
Find the File Storage clones created from a specific source snapshot or parent file system.
Find the clones created from a source snapshot or parent file system using the Search function.
- In the top navigation bar, click Search for resources, services, documentation, and Marketplace, and then click Advanced resource query.
- In the query text box, enter one of the following queries:
-
This query retrieves all clones for specific snapshot:
query filesystem resources where sourceDetails.sourceSnapshotId = '<Snapshot_OCID>'
-
This query retrieves all clones for a parent file system:
query filesystem resources where sourceDetails.parentFilesystemId = '<Parent_File_System_OCID>'
-
- Click Search.
For more information about using search to find resources, see Overview of Search and Search Language Syntax.
Use the
fs file-system list
command and include either--source-snapshot-id
or--parent-file-system-id
to find clones created from a snapshot or file system.An example using
--source-snapshot-id
:oci fs file-system list --availability-domain <target_availability_domain> --compartment-id <target_compartment_id> --source-snapshot-id <snapshot_id>
An example using
--parent-file-system-id
:oci fs file-system list --availability-domain <target_availability_domain> --compartment-id <target_compartment_id> --parent-file-system-id <parent_file_system_id>
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ListFileSystems operation with the
sourceSnapshotId
orparentFileSystemId
parameter to find clones.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.