1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CosObjectRestoreOperation
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CosObjectRestoreOperation

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to restore object

    NOTE: The current resource does not support cdc.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const objectRestore = new tencentcloud.CosObjectRestoreOperation("objectRestore", {
        bucket: "keep-test-1308919341",
        days: 2,
        key: "test-restore.txt",
        tier: "Expedited",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    object_restore = tencentcloud.CosObjectRestoreOperation("objectRestore",
        bucket="keep-test-1308919341",
        days=2,
        key="test-restore.txt",
        tier="Expedited")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewCosObjectRestoreOperation(ctx, "objectRestore", &tencentcloud.CosObjectRestoreOperationArgs{
    			Bucket: pulumi.String("keep-test-1308919341"),
    			Days:   pulumi.Float64(2),
    			Key:    pulumi.String("test-restore.txt"),
    			Tier:   pulumi.String("Expedited"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var objectRestore = new Tencentcloud.CosObjectRestoreOperation("objectRestore", new()
        {
            Bucket = "keep-test-1308919341",
            Days = 2,
            Key = "test-restore.txt",
            Tier = "Expedited",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CosObjectRestoreOperation;
    import com.pulumi.tencentcloud.CosObjectRestoreOperationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var objectRestore = new CosObjectRestoreOperation("objectRestore", CosObjectRestoreOperationArgs.builder()
                .bucket("keep-test-1308919341")
                .days(2)
                .key("test-restore.txt")
                .tier("Expedited")
                .build());
    
        }
    }
    
    resources:
      objectRestore:
        type: tencentcloud:CosObjectRestoreOperation
        properties:
          bucket: keep-test-1308919341
          days: 2
          key: test-restore.txt
          tier: Expedited
    

    Create CosObjectRestoreOperation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CosObjectRestoreOperation(name: string, args: CosObjectRestoreOperationArgs, opts?: CustomResourceOptions);
    @overload
    def CosObjectRestoreOperation(resource_name: str,
                                  args: CosObjectRestoreOperationArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CosObjectRestoreOperation(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  bucket: Optional[str] = None,
                                  days: Optional[float] = None,
                                  key: Optional[str] = None,
                                  tier: Optional[str] = None,
                                  cos_object_restore_operation_id: Optional[str] = None)
    func NewCosObjectRestoreOperation(ctx *Context, name string, args CosObjectRestoreOperationArgs, opts ...ResourceOption) (*CosObjectRestoreOperation, error)
    public CosObjectRestoreOperation(string name, CosObjectRestoreOperationArgs args, CustomResourceOptions? opts = null)
    public CosObjectRestoreOperation(String name, CosObjectRestoreOperationArgs args)
    public CosObjectRestoreOperation(String name, CosObjectRestoreOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CosObjectRestoreOperation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CosObjectRestoreOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CosObjectRestoreOperationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CosObjectRestoreOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CosObjectRestoreOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CosObjectRestoreOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CosObjectRestoreOperation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CosObjectRestoreOperation resource accepts the following input properties:

    Bucket string
    Bucket.
    Days double
    Specifies the valid duration of the restored temporary copy in days.
    Key string
    Object key.
    Tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    CosObjectRestoreOperationId string
    ID of the resource.
    Bucket string
    Bucket.
    Days float64
    Specifies the valid duration of the restored temporary copy in days.
    Key string
    Object key.
    Tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    CosObjectRestoreOperationId string
    ID of the resource.
    bucket String
    Bucket.
    days Double
    Specifies the valid duration of the restored temporary copy in days.
    key String
    Object key.
    tier String
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    cosObjectRestoreOperationId String
    ID of the resource.
    bucket string
    Bucket.
    days number
    Specifies the valid duration of the restored temporary copy in days.
    key string
    Object key.
    tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    cosObjectRestoreOperationId string
    ID of the resource.
    bucket str
    Bucket.
    days float
    Specifies the valid duration of the restored temporary copy in days.
    key str
    Object key.
    tier str
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    cos_object_restore_operation_id str
    ID of the resource.
    bucket String
    Bucket.
    days Number
    Specifies the valid duration of the restored temporary copy in days.
    key String
    Object key.
    tier String
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    cosObjectRestoreOperationId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CosObjectRestoreOperation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CosObjectRestoreOperation Resource

    Get an existing CosObjectRestoreOperation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CosObjectRestoreOperationState, opts?: CustomResourceOptions): CosObjectRestoreOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            cos_object_restore_operation_id: Optional[str] = None,
            days: Optional[float] = None,
            key: Optional[str] = None,
            tier: Optional[str] = None) -> CosObjectRestoreOperation
    func GetCosObjectRestoreOperation(ctx *Context, name string, id IDInput, state *CosObjectRestoreOperationState, opts ...ResourceOption) (*CosObjectRestoreOperation, error)
    public static CosObjectRestoreOperation Get(string name, Input<string> id, CosObjectRestoreOperationState? state, CustomResourceOptions? opts = null)
    public static CosObjectRestoreOperation get(String name, Output<String> id, CosObjectRestoreOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CosObjectRestoreOperation    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Bucket string
    Bucket.
    CosObjectRestoreOperationId string
    ID of the resource.
    Days double
    Specifies the valid duration of the restored temporary copy in days.
    Key string
    Object key.
    Tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    Bucket string
    Bucket.
    CosObjectRestoreOperationId string
    ID of the resource.
    Days float64
    Specifies the valid duration of the restored temporary copy in days.
    Key string
    Object key.
    Tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    bucket String
    Bucket.
    cosObjectRestoreOperationId String
    ID of the resource.
    days Double
    Specifies the valid duration of the restored temporary copy in days.
    key String
    Object key.
    tier String
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    bucket string
    Bucket.
    cosObjectRestoreOperationId string
    ID of the resource.
    days number
    Specifies the valid duration of the restored temporary copy in days.
    key string
    Object key.
    tier string
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    bucket str
    Bucket.
    cos_object_restore_operation_id str
    ID of the resource.
    days float
    Specifies the valid duration of the restored temporary copy in days.
    key str
    Object key.
    tier str
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.
    bucket String
    Bucket.
    cosObjectRestoreOperationId String
    ID of the resource.
    days Number
    Specifies the valid duration of the restored temporary copy in days.
    key String
    Object key.
    tier String
    when restoring, Tier can be specified as the supported recovery model. There are three recovery models for recovering archived storage type data, which are:

    • Expedited: quick retrieval mode, and the recovery task can be completed in 1-5 minutes.
    • Standard: standard retrieval mode. Recovery task is completed within 3-5 hours.
    • Bulk: batch retrieval mode, and the recovery task is completed within 5-12 hours. For deep recovery archive storage type data, there are two recovery models, which are:
    • Standard: standard retrieval mode, recovery time is 12-24 hours.
    • Bulk: batch retrieval mode, recovery time is 24-48 hours.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack