Moving a Snapshot Policy to Another Compartment
Move a snapshot policy to another compartment.
If you move a snapshot policy to another compartment, the snapshots created by the policy are still created in the compartment that contains the attached file system.
- Open the navigation menu and select Storage. Under File Storage, select File Systems.
- In the List scope section, under Compartment, select a compartment.
- Under Additional resources, click Snapshot Policies.
- Find the snapshot policy that you want to move, click the , and then click Move resource.
- Choose the Destination compartment from the list.
- Click Move resource.
Use the
oci fs filesystem-snapshot-policy change-compartment
command with the required parameters to move a snapshot policy:oci fs filesystem-snapshot-policy change-compartment --compartment-id <compartment_id> --filesystem-snapshot-policy-id <snapshot_policy_OCID> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Use ChangeFilesystemSnapshotPolicyCompartment to move a snapshot policy to another compartment within the same tenancy.
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.