Detaching a Snapshot Policy from a File System

Stop automatic snapshots of a file system or attach a different snapshot policy by detaching the snapshot policy from the file system.

  • You can detach a snapshot policy from a file system in two ways: through the snapshot policy's details page or through the file system's details page.

    1. Open the navigation menu  and select Storage. Under File Storage, select File Systems.
    2. (Optional) In the List scope section, under Compartment, select a compartment.
    3. To detach the policy through the snapshot policy's details page:
      1. Under Additional resources, click Snapshot Policies.
      2. In the Snapshot Policies list, click the name of the snapshot policy that you want to detach a file system.
      3. On the snapshot policy's details page, under Resources, click Associated File Systems.
      4. Use the check boxes to select one or more file systems that you want to detach from the snapshot policy.
      5. Click Detach.
      6. Confirm when prompted.
    4. To detach the policy through the file system's details page:
      1. In the File Systems list, click the name of the file system that you want to detach a snapshot policy from.
      2. On the file system's details page, under Resources, click Snapshot Policy.
      3. Find the snapshot policy that you want to detach, click the Actions menu (Actions Menu), and then select Detach.
      4. Confirm when prompted.
  • Use the oci fs file-system update command with an empty --filesystem-snapshot-policy-id parameter to detach a snapshot policy from a file system:

    oci fs file-system update --file-system-id <file_system_OCID> --filesystem-snapshot-policy-id "" [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Use UpdateFileSystem and with an empty filesystemSnapshotPolicyId to detach a snapshot policy from a file system.

    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.