published on Tuesday, Jun 30, 2026 by tencentcloudstack
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Provides a resource to create a CBS copy snapshot cross region resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CbsCopySnapshotCrossRegion("example", {
snapshotId: "snap-07ttd84z",
destinationRegion: "ap-beijing",
snapshotName: "tf-example-copy-snapshot",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CbsCopySnapshotCrossRegion("example",
snapshot_id="snap-07ttd84z",
destination_region="ap-beijing",
snapshot_name="tf-example-copy-snapshot")
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.NewCbsCopySnapshotCrossRegion(ctx, "example", &tencentcloud.CbsCopySnapshotCrossRegionArgs{
SnapshotId: pulumi.String("snap-07ttd84z"),
DestinationRegion: pulumi.String("ap-beijing"),
SnapshotName: pulumi.String("tf-example-copy-snapshot"),
})
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 example = new Tencentcloud.CbsCopySnapshotCrossRegion("example", new()
{
SnapshotId = "snap-07ttd84z",
DestinationRegion = "ap-beijing",
SnapshotName = "tf-example-copy-snapshot",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CbsCopySnapshotCrossRegion;
import com.pulumi.tencentcloud.CbsCopySnapshotCrossRegionArgs;
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 example = new CbsCopySnapshotCrossRegion("example", CbsCopySnapshotCrossRegionArgs.builder()
.snapshotId("snap-07ttd84z")
.destinationRegion("ap-beijing")
.snapshotName("tf-example-copy-snapshot")
.build());
}
}
resources:
example:
type: tencentcloud:CbsCopySnapshotCrossRegion
properties:
snapshotId: snap-07ttd84z
destinationRegion: ap-beijing
snapshotName: tf-example-copy-snapshot
Example coming soon!
Create CbsCopySnapshotCrossRegion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CbsCopySnapshotCrossRegion(name: string, args: CbsCopySnapshotCrossRegionArgs, opts?: CustomResourceOptions);@overload
def CbsCopySnapshotCrossRegion(resource_name: str,
args: CbsCopySnapshotCrossRegionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CbsCopySnapshotCrossRegion(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_region: Optional[str] = None,
snapshot_id: Optional[str] = None,
cbs_copy_snapshot_cross_region_id: Optional[str] = None,
delete_bind_images: Optional[bool] = None,
snapshot_name: Optional[str] = None,
timeouts: Optional[CbsCopySnapshotCrossRegionTimeoutsArgs] = None)func NewCbsCopySnapshotCrossRegion(ctx *Context, name string, args CbsCopySnapshotCrossRegionArgs, opts ...ResourceOption) (*CbsCopySnapshotCrossRegion, error)public CbsCopySnapshotCrossRegion(string name, CbsCopySnapshotCrossRegionArgs args, CustomResourceOptions? opts = null)
public CbsCopySnapshotCrossRegion(String name, CbsCopySnapshotCrossRegionArgs args)
public CbsCopySnapshotCrossRegion(String name, CbsCopySnapshotCrossRegionArgs args, CustomResourceOptions options)
type: tencentcloud:CbsCopySnapshotCrossRegion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_cbscopysnapshotcrossregion" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CbsCopySnapshotCrossRegionArgs
- 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 CbsCopySnapshotCrossRegionArgs
- 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 CbsCopySnapshotCrossRegionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CbsCopySnapshotCrossRegionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CbsCopySnapshotCrossRegionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CbsCopySnapshotCrossRegion 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 CbsCopySnapshotCrossRegion resource accepts the following input properties:
- Destination
Region string - Target region name for cross-region copy.
- Snapshot
Id string - Source snapshot ID for cross-region copy.
- Cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- Delete
Bind boolImages - Whether to force-delete images associated with the snapshots when deleting.
- Snapshot
Name string - Name of the copied snapshot.
- Timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- Destination
Region string - Target region name for cross-region copy.
- Snapshot
Id string - Source snapshot ID for cross-region copy.
- Cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- Delete
Bind boolImages - Whether to force-delete images associated with the snapshots when deleting.
- Snapshot
Name string - Name of the copied snapshot.
- Timeouts
Cbs
Copy Snapshot Cross Region Timeouts Args
- destination_
region string - Target region name for cross-region copy.
- snapshot_
id string - Source snapshot ID for cross-region copy.
- cbs_
copy_ stringsnapshot_ cross_ region_ id - ID of the resource.
- delete_
bind_ boolimages - Whether to force-delete images associated with the snapshots when deleting.
- snapshot_
name string - Name of the copied snapshot.
- timeouts object
- destination
Region String - Target region name for cross-region copy.
- snapshot
Id String - Source snapshot ID for cross-region copy.
- cbs
Copy StringSnapshot Cross Region Id - ID of the resource.
- delete
Bind BooleanImages - Whether to force-delete images associated with the snapshots when deleting.
- snapshot
Name String - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- destination
Region string - Target region name for cross-region copy.
- snapshot
Id string - Source snapshot ID for cross-region copy.
- cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- delete
Bind booleanImages - Whether to force-delete images associated with the snapshots when deleting.
- snapshot
Name string - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- destination_
region str - Target region name for cross-region copy.
- snapshot_
id str - Source snapshot ID for cross-region copy.
- cbs_
copy_ strsnapshot_ cross_ region_ id - ID of the resource.
- delete_
bind_ boolimages - Whether to force-delete images associated with the snapshots when deleting.
- snapshot_
name str - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts Args
- destination
Region String - Target region name for cross-region copy.
- snapshot
Id String - Source snapshot ID for cross-region copy.
- cbs
Copy StringSnapshot Cross Region Id - ID of the resource.
- delete
Bind BooleanImages - Whether to force-delete images associated with the snapshots when deleting.
- snapshot
Name String - Name of the copied snapshot.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CbsCopySnapshotCrossRegion 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 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 CbsCopySnapshotCrossRegion Resource
Get an existing CbsCopySnapshotCrossRegion 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?: CbsCopySnapshotCrossRegionState, opts?: CustomResourceOptions): CbsCopySnapshotCrossRegion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cbs_copy_snapshot_cross_region_id: Optional[str] = None,
delete_bind_images: Optional[bool] = None,
destination_region: Optional[str] = None,
snapshot_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
timeouts: Optional[CbsCopySnapshotCrossRegionTimeoutsArgs] = None) -> CbsCopySnapshotCrossRegionfunc GetCbsCopySnapshotCrossRegion(ctx *Context, name string, id IDInput, state *CbsCopySnapshotCrossRegionState, opts ...ResourceOption) (*CbsCopySnapshotCrossRegion, error)public static CbsCopySnapshotCrossRegion Get(string name, Input<string> id, CbsCopySnapshotCrossRegionState? state, CustomResourceOptions? opts = null)public static CbsCopySnapshotCrossRegion get(String name, Output<String> id, CbsCopySnapshotCrossRegionState state, CustomResourceOptions options)resources: _: type: tencentcloud:CbsCopySnapshotCrossRegion get: id: ${id}import {
to = tencentcloud_cbscopysnapshotcrossregion.example
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.
- Cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- Delete
Bind boolImages - Whether to force-delete images associated with the snapshots when deleting.
- Destination
Region string - Target region name for cross-region copy.
- Snapshot
Id string - Source snapshot ID for cross-region copy.
- Snapshot
Name string - Name of the copied snapshot.
- Timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- Cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- Delete
Bind boolImages - Whether to force-delete images associated with the snapshots when deleting.
- Destination
Region string - Target region name for cross-region copy.
- Snapshot
Id string - Source snapshot ID for cross-region copy.
- Snapshot
Name string - Name of the copied snapshot.
- Timeouts
Cbs
Copy Snapshot Cross Region Timeouts Args
- cbs_
copy_ stringsnapshot_ cross_ region_ id - ID of the resource.
- delete_
bind_ boolimages - Whether to force-delete images associated with the snapshots when deleting.
- destination_
region string - Target region name for cross-region copy.
- snapshot_
id string - Source snapshot ID for cross-region copy.
- snapshot_
name string - Name of the copied snapshot.
- timeouts object
- cbs
Copy StringSnapshot Cross Region Id - ID of the resource.
- delete
Bind BooleanImages - Whether to force-delete images associated with the snapshots when deleting.
- destination
Region String - Target region name for cross-region copy.
- snapshot
Id String - Source snapshot ID for cross-region copy.
- snapshot
Name String - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- cbs
Copy stringSnapshot Cross Region Id - ID of the resource.
- delete
Bind booleanImages - Whether to force-delete images associated with the snapshots when deleting.
- destination
Region string - Target region name for cross-region copy.
- snapshot
Id string - Source snapshot ID for cross-region copy.
- snapshot
Name string - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts
- cbs_
copy_ strsnapshot_ cross_ region_ id - ID of the resource.
- delete_
bind_ boolimages - Whether to force-delete images associated with the snapshots when deleting.
- destination_
region str - Target region name for cross-region copy.
- snapshot_
id str - Source snapshot ID for cross-region copy.
- snapshot_
name str - Name of the copied snapshot.
- timeouts
Cbs
Copy Snapshot Cross Region Timeouts Args
- cbs
Copy StringSnapshot Cross Region Id - ID of the resource.
- delete
Bind BooleanImages - Whether to force-delete images associated with the snapshots when deleting.
- destination
Region String - Target region name for cross-region copy.
- snapshot
Id String - Source snapshot ID for cross-region copy.
- snapshot
Name String - Name of the copied snapshot.
- timeouts Property Map
Supporting Types
CbsCopySnapshotCrossRegionTimeouts, CbsCopySnapshotCrossRegionTimeoutsArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Tuesday, Jun 30, 2026 by tencentcloudstack