tryGetPastObject

Tries to retrieve a past version of an object based on its ID and version number.

Note: There is no software-level guarantee/SLA that objects with past versions can be retrieved by this API, even if the object and version exists/existed. The result may vary across nodes depending on their pruning policies. Return the object information for a specified version

Return

An Option containing a PastObjectResponse if the retrieval is successful, or None if the object/version is not found.

Parameters

objectId

the ID of the queried object.

version

the version of the queried object. If None, default to the latest known version.

options

for specifying the content to be returned.

Throws

if an error occurs during the retrieval process.