Changing Snapshot Expiration Time
If you need to keep a policy-based snapshot beyond its retention period, you can change or remove its expiration time. You can also add expiration times to user-created snapshots and change them as needed.
A snapshot without an expiration time persists unless it's manually deleted by a user or a new expiration time is set.
You can delete a snapshot manually at any time before it expires. Changes to the expiration time on a policy-based snapshot only apply to that snapshot, not the corresponding schedule or policy.
Use the
oci fs snapshot update
command and the--expiration-time
parameter to change a snapshot's expiration time.oci fs snapshot update --snapshot-id <snapshot_OCID> --expiration-time <expiration_time> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Use UpdateSnapshot and
expirationTime
to change or remove a snapshot's expiration time.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.