- Documentation
Torch Object Storage
SDK Reference
C++
Object Interface
Manage objects
Restore Object (C++ SDK)
Manage objects
Restore Object (C++ SDK)
Restore Object (C++ SDK)
Restore cold archive objects; after restoration, the objects can be obtained via the download object interface. Different retrieval methods can be specified through parameters.
Precautions
- When the restoreObject interface is called for the first time, a 202 status code is returned. If a file is in the process of being restored, invoking the restoreObject interface again will result in a 409 error. If the object has already been restored, invoking the restoreObject API again will return a 200 OK response.
- For buckets with versioning enabled, you can restore a specific version of an object by specifying the versionId. If versionId is not specified, the current version of the object will be restored by default.
Sample Code
The following code is used to restore objects.
Relevant Documentation
For a detailed introduction to the Restore Object API, see RestoreObject. Last updated: 2025.09.25 14:22:48