tencent cloud


Restoring Archived Objects

Last updated: 2021-11-30 12:24:32


    This document provides an overview of APIs and SDK code samples related to restoring an archived object.

    API Operation Description
    POST Object restore Restoring an archived object Restores an archived object for access.

    SDK API References

    For the parameters and method description of all the APIs in the SDK, see API Documentation.

    Restoring an Archived Object


    This API (POST Object restore) is used to restore an archived object for access.

    Sample code

     // Bucket name in the format of bucketname-APPID. You can get APPID by referring to https://console.tencentcloud.com/developer.
     string bucket = "examplebucket-1250000000";
     string key = "exampleobject"; // Object key
     RestoreObjectRequest request = new RestoreObjectRequest(bucket, key);
     // Restoration time
      // Execute the request
     RestoreObjectResult result = cosXml.RestoreObject(request);
     // Request succeeded
    catch (COSXML.CosException.CosClientException clientEx)
     // Request failed
     Console.WriteLine("CosClientException: " + clientEx);
    catch (COSXML.CosException.CosServerException serverEx)
     // Request failed
     Console.WriteLine("CosServerException: " + serverEx.GetInfo());

    For the complete sample, go to GitHub.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support