tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
Provides a resource to create a TCR replication
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TcrReplication("example", {
sourceRegistryId: "tcr-9q9h1nof",
destinationRegistryId: "tcr-jtih9ngc",
rule: {
name: "tf-example",
destNamespace: "",
override: true,
deletion: true,
filters: [{
type: "name",
value: "tf-example/**",
}],
},
destinationRegionId: 1,
description: "remark.",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TcrReplication("example",
source_registry_id="tcr-9q9h1nof",
destination_registry_id="tcr-jtih9ngc",
rule={
"name": "tf-example",
"dest_namespace": "",
"override": True,
"deletion": True,
"filters": [{
"type": "name",
"value": "tf-example/**",
}],
},
destination_region_id=1,
description="remark.")
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.NewTcrReplication(ctx, "example", &tencentcloud.TcrReplicationArgs{
SourceRegistryId: pulumi.String("tcr-9q9h1nof"),
DestinationRegistryId: pulumi.String("tcr-jtih9ngc"),
Rule: &tencentcloud.TcrReplicationRuleArgs{
Name: pulumi.String("tf-example"),
DestNamespace: pulumi.String(""),
Override: pulumi.Bool(true),
Deletion: pulumi.Bool(true),
Filters: tencentcloud.TcrReplicationRuleFilterArray{
&tencentcloud.TcrReplicationRuleFilterArgs{
Type: pulumi.String("name"),
Value: pulumi.String("tf-example/**"),
},
},
},
DestinationRegionId: pulumi.Float64(1),
Description: pulumi.String("remark."),
})
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.TcrReplication("example", new()
{
SourceRegistryId = "tcr-9q9h1nof",
DestinationRegistryId = "tcr-jtih9ngc",
Rule = new Tencentcloud.Inputs.TcrReplicationRuleArgs
{
Name = "tf-example",
DestNamespace = "",
Override = true,
Deletion = true,
Filters = new[]
{
new Tencentcloud.Inputs.TcrReplicationRuleFilterArgs
{
Type = "name",
Value = "tf-example/**",
},
},
},
DestinationRegionId = 1,
Description = "remark.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcrReplication;
import com.pulumi.tencentcloud.TcrReplicationArgs;
import com.pulumi.tencentcloud.inputs.TcrReplicationRuleArgs;
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 TcrReplication("example", TcrReplicationArgs.builder()
.sourceRegistryId("tcr-9q9h1nof")
.destinationRegistryId("tcr-jtih9ngc")
.rule(TcrReplicationRuleArgs.builder()
.name("tf-example")
.destNamespace("")
.override(true)
.deletion(true)
.filters(TcrReplicationRuleFilterArgs.builder()
.type("name")
.value("tf-example/**")
.build())
.build())
.destinationRegionId(1.0)
.description("remark.")
.build());
}
}
resources:
example:
type: tencentcloud:TcrReplication
properties:
sourceRegistryId: tcr-9q9h1nof
destinationRegistryId: tcr-jtih9ngc
rule:
name: tf-example
destNamespace: ""
override: true
deletion: true
filters:
- type: name
value: tf-example/**
destinationRegionId: 1
description: remark.
Create TcrReplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcrReplication(name: string, args: TcrReplicationArgs, opts?: CustomResourceOptions);@overload
def TcrReplication(resource_name: str,
args: TcrReplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcrReplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_registry_id: Optional[str] = None,
rule: Optional[TcrReplicationRuleArgs] = None,
source_registry_id: Optional[str] = None,
description: Optional[str] = None,
destination_region_id: Optional[float] = None,
peer_replication_option: Optional[TcrReplicationPeerReplicationOptionArgs] = None,
tcr_replication_id: Optional[str] = None)func NewTcrReplication(ctx *Context, name string, args TcrReplicationArgs, opts ...ResourceOption) (*TcrReplication, error)public TcrReplication(string name, TcrReplicationArgs args, CustomResourceOptions? opts = null)
public TcrReplication(String name, TcrReplicationArgs args)
public TcrReplication(String name, TcrReplicationArgs args, CustomResourceOptions options)
type: tencentcloud:TcrReplication
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 TcrReplicationArgs
- 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 TcrReplicationArgs
- 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 TcrReplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcrReplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcrReplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TcrReplication 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 TcrReplication resource accepts the following input properties:
- Destination
Registry stringId - Destination instance ID.
- Rule
Tcr
Replication Rule - Synchronization rule.
- Source
Registry stringId - Source instance ID.
- Description string
- Rule description.
- Destination
Region doubleId - Region ID of the destination instance. For example,
1represents Guangzhou. - Peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- Tcr
Replication stringId - ID of the resource.
- Destination
Registry stringId - Destination instance ID.
- Rule
Tcr
Replication Rule Args - Synchronization rule.
- Source
Registry stringId - Source instance ID.
- Description string
- Rule description.
- Destination
Region float64Id - Region ID of the destination instance. For example,
1represents Guangzhou. - Peer
Replication TcrOption Replication Peer Replication Option Args - Configuration of the synchronization rule.
- Tcr
Replication stringId - ID of the resource.
- destination
Registry StringId - Destination instance ID.
- rule
Tcr
Replication Rule - Synchronization rule.
- source
Registry StringId - Source instance ID.
- description String
- Rule description.
- destination
Region DoubleId - Region ID of the destination instance. For example,
1represents Guangzhou. - peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- tcr
Replication StringId - ID of the resource.
- destination
Registry stringId - Destination instance ID.
- rule
Tcr
Replication Rule - Synchronization rule.
- source
Registry stringId - Source instance ID.
- description string
- Rule description.
- destination
Region numberId - Region ID of the destination instance. For example,
1represents Guangzhou. - peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- tcr
Replication stringId - ID of the resource.
- destination_
registry_ strid - Destination instance ID.
- rule
Tcr
Replication Rule Args - Synchronization rule.
- source_
registry_ strid - Source instance ID.
- description str
- Rule description.
- destination_
region_ floatid - Region ID of the destination instance. For example,
1represents Guangzhou. - peer_
replication_ Tcroption Replication Peer Replication Option Args - Configuration of the synchronization rule.
- tcr_
replication_ strid - ID of the resource.
- destination
Registry StringId - Destination instance ID.
- rule Property Map
- Synchronization rule.
- source
Registry StringId - Source instance ID.
- description String
- Rule description.
- destination
Region NumberId - Region ID of the destination instance. For example,
1represents Guangzhou. - peer
Replication Property MapOption - Configuration of the synchronization rule.
- tcr
Replication StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TcrReplication 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 TcrReplication Resource
Get an existing TcrReplication 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?: TcrReplicationState, opts?: CustomResourceOptions): TcrReplication@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
destination_region_id: Optional[float] = None,
destination_registry_id: Optional[str] = None,
peer_replication_option: Optional[TcrReplicationPeerReplicationOptionArgs] = None,
rule: Optional[TcrReplicationRuleArgs] = None,
source_registry_id: Optional[str] = None,
tcr_replication_id: Optional[str] = None) -> TcrReplicationfunc GetTcrReplication(ctx *Context, name string, id IDInput, state *TcrReplicationState, opts ...ResourceOption) (*TcrReplication, error)public static TcrReplication Get(string name, Input<string> id, TcrReplicationState? state, CustomResourceOptions? opts = null)public static TcrReplication get(String name, Output<String> id, TcrReplicationState state, CustomResourceOptions options)resources: _: type: tencentcloud:TcrReplication 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.
- Description string
- Rule description.
- Destination
Region doubleId - Region ID of the destination instance. For example,
1represents Guangzhou. - Destination
Registry stringId - Destination instance ID.
- Peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- Rule
Tcr
Replication Rule - Synchronization rule.
- Source
Registry stringId - Source instance ID.
- Tcr
Replication stringId - ID of the resource.
- Description string
- Rule description.
- Destination
Region float64Id - Region ID of the destination instance. For example,
1represents Guangzhou. - Destination
Registry stringId - Destination instance ID.
- Peer
Replication TcrOption Replication Peer Replication Option Args - Configuration of the synchronization rule.
- Rule
Tcr
Replication Rule Args - Synchronization rule.
- Source
Registry stringId - Source instance ID.
- Tcr
Replication stringId - ID of the resource.
- description String
- Rule description.
- destination
Region DoubleId - Region ID of the destination instance. For example,
1represents Guangzhou. - destination
Registry StringId - Destination instance ID.
- peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- rule
Tcr
Replication Rule - Synchronization rule.
- source
Registry StringId - Source instance ID.
- tcr
Replication StringId - ID of the resource.
- description string
- Rule description.
- destination
Region numberId - Region ID of the destination instance. For example,
1represents Guangzhou. - destination
Registry stringId - Destination instance ID.
- peer
Replication TcrOption Replication Peer Replication Option - Configuration of the synchronization rule.
- rule
Tcr
Replication Rule - Synchronization rule.
- source
Registry stringId - Source instance ID.
- tcr
Replication stringId - ID of the resource.
- description str
- Rule description.
- destination_
region_ floatid - Region ID of the destination instance. For example,
1represents Guangzhou. - destination_
registry_ strid - Destination instance ID.
- peer_
replication_ Tcroption Replication Peer Replication Option Args - Configuration of the synchronization rule.
- rule
Tcr
Replication Rule Args - Synchronization rule.
- source_
registry_ strid - Source instance ID.
- tcr_
replication_ strid - ID of the resource.
- description String
- Rule description.
- destination
Region NumberId - Region ID of the destination instance. For example,
1represents Guangzhou. - destination
Registry StringId - Destination instance ID.
- peer
Replication Property MapOption - Configuration of the synchronization rule.
- rule Property Map
- Synchronization rule.
- source
Registry StringId - Source instance ID.
- tcr
Replication StringId - ID of the resource.
Supporting Types
TcrReplicationPeerReplicationOption, TcrReplicationPeerReplicationOptionArgs
- Enable
Peer boolReplication - Whether to enable cross-account synchronization.
- Peer
Registry stringToken - Permanent access Token for the destination instance.
- Peer
Registry stringUin - UIN of the destination instance.
- Enable
Peer boolReplication - Whether to enable cross-account synchronization.
- Peer
Registry stringToken - Permanent access Token for the destination instance.
- Peer
Registry stringUin - UIN of the destination instance.
- enable
Peer BooleanReplication - Whether to enable cross-account synchronization.
- peer
Registry StringToken - Permanent access Token for the destination instance.
- peer
Registry StringUin - UIN of the destination instance.
- enable
Peer booleanReplication - Whether to enable cross-account synchronization.
- peer
Registry stringToken - Permanent access Token for the destination instance.
- peer
Registry stringUin - UIN of the destination instance.
- enable_
peer_ boolreplication - Whether to enable cross-account synchronization.
- peer_
registry_ strtoken - Permanent access Token for the destination instance.
- peer_
registry_ struin - UIN of the destination instance.
- enable
Peer BooleanReplication - Whether to enable cross-account synchronization.
- peer
Registry StringToken - Permanent access Token for the destination instance.
- peer
Registry StringUin - UIN of the destination instance.
TcrReplicationRule, TcrReplicationRuleArgs
- Dest
Namespace string - Destination namespace.
- Filters
List<Tcr
Replication Rule Filter> - Synchronization filters.
- Name string
- Name of synchronization rule.
- Override bool
- Whether to override.
- Deletion bool
- Whether synchronous deletion event.
- Dest
Namespace string - Destination namespace.
- Filters
[]Tcr
Replication Rule Filter - Synchronization filters.
- Name string
- Name of synchronization rule.
- Override bool
- Whether to override.
- Deletion bool
- Whether synchronous deletion event.
- dest
Namespace String - Destination namespace.
- filters
List<Tcr
Replication Rule Filter> - Synchronization filters.
- name String
- Name of synchronization rule.
- override Boolean
- Whether to override.
- deletion Boolean
- Whether synchronous deletion event.
- dest
Namespace string - Destination namespace.
- filters
Tcr
Replication Rule Filter[] - Synchronization filters.
- name string
- Name of synchronization rule.
- override boolean
- Whether to override.
- deletion boolean
- Whether synchronous deletion event.
- dest_
namespace str - Destination namespace.
- filters
Sequence[Tcr
Replication Rule Filter] - Synchronization filters.
- name str
- Name of synchronization rule.
- override bool
- Whether to override.
- deletion bool
- Whether synchronous deletion event.
- dest
Namespace String - Destination namespace.
- filters List<Property Map>
- Synchronization filters.
- name String
- Name of synchronization rule.
- override Boolean
- Whether to override.
- deletion Boolean
- Whether synchronous deletion event.
TcrReplicationRuleFilter, TcrReplicationRuleFilterArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
