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

tencentcloud.TcrInstance

Explore with Pulumi AI

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

    Use this resource to create tcr instance.

    Example Usage

    Create a basic tcr instance.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TcrInstance("example", {
        instanceType: "basic",
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TcrInstance("example",
        instance_type="basic",
        tags={
            "createdBy": "terraform",
        })
    
    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.NewTcrInstance(ctx, "example", &tencentcloud.TcrInstanceArgs{
    			InstanceType: pulumi.String("basic"),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		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.TcrInstance("example", new()
        {
            InstanceType = "basic",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TcrInstance;
    import com.pulumi.tencentcloud.TcrInstanceArgs;
    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 TcrInstance("example", TcrInstanceArgs.builder()
                .instanceType("basic")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TcrInstance
        properties:
          instanceType: basic
          tags:
            createdBy: terraform
    

    Create instance with the public network access whitelist.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TcrInstance("example", {
        instanceType: "basic",
        openPublicOperation: true,
        securityPolicies: [
            {
                cidrBlock: "10.0.0.1/24",
            },
            {
                cidrBlock: "192.168.1.1",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TcrInstance("example",
        instance_type="basic",
        open_public_operation=True,
        security_policies=[
            {
                "cidr_block": "10.0.0.1/24",
            },
            {
                "cidr_block": "192.168.1.1",
            },
        ])
    
    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.NewTcrInstance(ctx, "example", &tencentcloud.TcrInstanceArgs{
    			InstanceType:        pulumi.String("basic"),
    			OpenPublicOperation: pulumi.Bool(true),
    			SecurityPolicies: tencentcloud.TcrInstanceSecurityPolicyArray{
    				&tencentcloud.TcrInstanceSecurityPolicyArgs{
    					CidrBlock: pulumi.String("10.0.0.1/24"),
    				},
    				&tencentcloud.TcrInstanceSecurityPolicyArgs{
    					CidrBlock: pulumi.String("192.168.1.1"),
    				},
    			},
    		})
    		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.TcrInstance("example", new()
        {
            InstanceType = "basic",
            OpenPublicOperation = true,
            SecurityPolicies = new[]
            {
                new Tencentcloud.Inputs.TcrInstanceSecurityPolicyArgs
                {
                    CidrBlock = "10.0.0.1/24",
                },
                new Tencentcloud.Inputs.TcrInstanceSecurityPolicyArgs
                {
                    CidrBlock = "192.168.1.1",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TcrInstance;
    import com.pulumi.tencentcloud.TcrInstanceArgs;
    import com.pulumi.tencentcloud.inputs.TcrInstanceSecurityPolicyArgs;
    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 TcrInstance("example", TcrInstanceArgs.builder()
                .instanceType("basic")
                .openPublicOperation(true)
                .securityPolicies(            
                    TcrInstanceSecurityPolicyArgs.builder()
                        .cidrBlock("10.0.0.1/24")
                        .build(),
                    TcrInstanceSecurityPolicyArgs.builder()
                        .cidrBlock("192.168.1.1")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TcrInstance
        properties:
          instanceType: basic
          openPublicOperation: true
          securityPolicies:
            - cidrBlock: 10.0.0.1/24
            - cidrBlock: 192.168.1.1
    

    Create instance with Replications.

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const tcrRegionMap = config.getObject<{ap-bangkok?: number, ap-beijing?: number, ap-chengdu?: number, ap-chongqing?: number, ap-guangzhou?: number, ap-hongkong?: number, ap-jakarta?: number, ap-mumbai?: number, ap-nanjing?: number, ap-seoul?: number, ap-shanghai?: number, ap-singapore?: number, ap-taipei?: number, ap-tokyo?: number, eu-frankfurt?: number, eu-moscow?: number, na-ashburn?: number, na-siliconvalley?: number}>("tcrRegionMap") || {
        "ap-guangzhou": 1,
        "ap-shanghai": 4,
        "ap-hongkong": 5,
        "ap-beijing": 8,
        "ap-singapore": 9,
        "na-siliconvalley": 15,
        "ap-chengdu": 16,
        "eu-frankfurt": 17,
        "ap-seoul": 18,
        "ap-chongqing": 19,
        "ap-mumbai": 21,
        "na-ashburn": 22,
        "ap-bangkok": 23,
        "eu-moscow": 24,
        "ap-tokyo": 25,
        "ap-nanjing": 33,
        "ap-taipei": 39,
        "ap-jakarta": 72,
    };
    const example = new tencentcloud.TcrInstance("example", {
        instanceType: "premium",
        replications: [
            {
                regionId: tcrRegionMap["ap-guangzhou"],
            },
            {
                regionId: tcrRegionMap["ap-singapore"],
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    tcr_region_map = config.get_object("tcrRegionMap")
    if tcr_region_map is None:
        tcr_region_map = {
            "ap-guangzhou": 1,
            "ap-shanghai": 4,
            "ap-hongkong": 5,
            "ap-beijing": 8,
            "ap-singapore": 9,
            "na-siliconvalley": 15,
            "ap-chengdu": 16,
            "eu-frankfurt": 17,
            "ap-seoul": 18,
            "ap-chongqing": 19,
            "ap-mumbai": 21,
            "na-ashburn": 22,
            "ap-bangkok": 23,
            "eu-moscow": 24,
            "ap-tokyo": 25,
            "ap-nanjing": 33,
            "ap-taipei": 39,
            "ap-jakarta": 72,
        }
    example = tencentcloud.TcrInstance("example",
        instance_type="premium",
        replications=[
            {
                "region_id": tcr_region_map["ap-guangzhou"],
            },
            {
                "region_id": tcr_region_map["ap-singapore"],
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		tcrRegionMap := map[string]interface{}{
    			"ap-guangzhou":     1,
    			"ap-shanghai":      4,
    			"ap-hongkong":      5,
    			"ap-beijing":       8,
    			"ap-singapore":     9,
    			"na-siliconvalley": 15,
    			"ap-chengdu":       16,
    			"eu-frankfurt":     17,
    			"ap-seoul":         18,
    			"ap-chongqing":     19,
    			"ap-mumbai":        21,
    			"na-ashburn":       22,
    			"ap-bangkok":       23,
    			"eu-moscow":        24,
    			"ap-tokyo":         25,
    			"ap-nanjing":       33,
    			"ap-taipei":        39,
    			"ap-jakarta":       72,
    		}
    		if param := cfg.GetObject("tcrRegionMap"); param != nil {
    			tcrRegionMap = param
    		}
    		_, err := tencentcloud.NewTcrInstance(ctx, "example", &tencentcloud.TcrInstanceArgs{
    			InstanceType: pulumi.String("premium"),
    			Replications: tencentcloud.TcrInstanceReplicationArray{
    				&tencentcloud.TcrInstanceReplicationArgs{
    					RegionId: pulumi.Float64(tcrRegionMap.ApGuangzhou),
    				},
    				&tencentcloud.TcrInstanceReplicationArgs{
    					RegionId: pulumi.Float64(tcrRegionMap.ApSingapore),
    				},
    			},
    		})
    		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 config = new Config();
        var tcrRegionMap = config.GetObject<TcrRegionMap>("tcrRegionMap") ?? 
        {
            { "ap-guangzhou", 1 },
            { "ap-shanghai", 4 },
            { "ap-hongkong", 5 },
            { "ap-beijing", 8 },
            { "ap-singapore", 9 },
            { "na-siliconvalley", 15 },
            { "ap-chengdu", 16 },
            { "eu-frankfurt", 17 },
            { "ap-seoul", 18 },
            { "ap-chongqing", 19 },
            { "ap-mumbai", 21 },
            { "na-ashburn", 22 },
            { "ap-bangkok", 23 },
            { "eu-moscow", 24 },
            { "ap-tokyo", 25 },
            { "ap-nanjing", 33 },
            { "ap-taipei", 39 },
            { "ap-jakarta", 72 },
        };
        var example = new Tencentcloud.TcrInstance("example", new()
        {
            InstanceType = "premium",
            Replications = new[]
            {
                new Tencentcloud.Inputs.TcrInstanceReplicationArgs
                {
                    RegionId = tcrRegionMap.Ap_guangzhou,
                },
                new Tencentcloud.Inputs.TcrInstanceReplicationArgs
                {
                    RegionId = tcrRegionMap.Ap_singapore,
                },
            },
        });
    
    });
    
    public class TcrRegionMap
    {
        public double ap-bangkok { get; set; }
        public double ap-beijing { get; set; }
        public double ap-chengdu { get; set; }
        public double ap-chongqing { get; set; }
        public double ap-guangzhou { get; set; }
        public double ap-hongkong { get; set; }
        public double ap-jakarta { get; set; }
        public double ap-mumbai { get; set; }
        public double ap-nanjing { get; set; }
        public double ap-seoul { get; set; }
        public double ap-shanghai { get; set; }
        public double ap-singapore { get; set; }
        public double ap-taipei { get; set; }
        public double ap-tokyo { get; set; }
        public double eu-frankfurt { get; set; }
        public double eu-moscow { get; set; }
        public double na-ashburn { get; set; }
        public double na-siliconvalley { get; set; }
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TcrInstance;
    import com.pulumi.tencentcloud.TcrInstanceArgs;
    import com.pulumi.tencentcloud.inputs.TcrInstanceReplicationArgs;
    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) {
            final var config = ctx.config();
            final var tcrRegionMap = config.get("tcrRegionMap").orElse(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference));
            var example = new TcrInstance("example", TcrInstanceArgs.builder()
                .instanceType("premium")
                .replications(            
                    TcrInstanceReplicationArgs.builder()
                        .regionId(tcrRegionMap.ap-guangzhou())
                        .build(),
                    TcrInstanceReplicationArgs.builder()
                        .regionId(tcrRegionMap.ap-singapore())
                        .build())
                .build());
    
        }
    }
    
    configuration:
      tcrRegionMap:
        type: object({ap-bangkok = union(none, number), ap-beijing = union(none, number), ap-chengdu = union(none, number), ap-chongqing = union(none, number), ap-guangzhou = union(none, number), ap-hongkong = union(none, number), ap-jakarta = union(none, number), ap-mumbai = union(none, number), ap-nanjing = union(none, number), ap-seoul = union(none, number), ap-shanghai = union(none, number), ap-singapore = union(none, number), ap-taipei = union(none, number), ap-tokyo = union(none, number), eu-frankfurt = union(none, number), eu-moscow = union(none, number), na-ashburn = union(none, number), na-siliconvalley = union(none, number)})
        default:
          ap-guangzhou: 1
          ap-shanghai: 4
          ap-hongkong: 5
          ap-beijing: 8
          ap-singapore: 9
          na-siliconvalley: 15
          ap-chengdu: 16
          eu-frankfurt: 17
          ap-seoul: 18
          ap-chongqing: 19
          ap-mumbai: 21
          na-ashburn: 22
          ap-bangkok: 23
          eu-moscow: 24
          ap-tokyo: 25
          ap-nanjing: 33
          ap-taipei: 39
          ap-jakarta: 72
    resources:
      example:
        type: tencentcloud:TcrInstance
        properties:
          instanceType: premium
          replications:
            - regionId: ${tcrRegionMap"ap-guangzhou"[%!s(MISSING)]}
            - regionId: ${tcrRegionMap"ap-singapore"[%!s(MISSING)]}
    

    Create TcrInstance Resource

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

    Constructor syntax

    new TcrInstance(name: string, args: TcrInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def TcrInstance(resource_name: str,
                    args: TcrInstanceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def TcrInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    instance_type: Optional[str] = None,
                    delete_bucket: Optional[bool] = None,
                    instance_charge_type_prepaid_period: Optional[float] = None,
                    instance_charge_type_prepaid_renew_flag: Optional[float] = None,
                    name: Optional[str] = None,
                    open_public_operation: Optional[bool] = None,
                    registry_charge_type: Optional[float] = None,
                    replications: Optional[Sequence[TcrInstanceReplicationArgs]] = None,
                    security_policies: Optional[Sequence[TcrInstanceSecurityPolicyArgs]] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    tcr_instance_id: Optional[str] = None)
    func NewTcrInstance(ctx *Context, name string, args TcrInstanceArgs, opts ...ResourceOption) (*TcrInstance, error)
    public TcrInstance(string name, TcrInstanceArgs args, CustomResourceOptions? opts = null)
    public TcrInstance(String name, TcrInstanceArgs args)
    public TcrInstance(String name, TcrInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TcrInstance
    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 TcrInstanceArgs
    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 TcrInstanceArgs
    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 TcrInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TcrInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TcrInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TcrInstance 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 TcrInstance resource accepts the following input properties:

    InstanceType string
    TCR types. Valid values are: standard, basic, premium.
    DeleteBucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    InstanceChargeTypePrepaidPeriod double
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    InstanceChargeTypePrepaidRenewFlag double
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    Name string
    Name of the TCR instance.
    OpenPublicOperation bool
    Control public network access.
    RegistryChargeType double
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    Replications List<TcrInstanceReplication>
    Specify List of instance Replications, premium only. The available source region list is here.
    SecurityPolicies List<TcrInstanceSecurityPolicy>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    Tags Dictionary<string, string>
    The available tags within this TCR instance.
    TcrInstanceId string
    ID of the resource.
    InstanceType string
    TCR types. Valid values are: standard, basic, premium.
    DeleteBucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    InstanceChargeTypePrepaidPeriod float64
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    InstanceChargeTypePrepaidRenewFlag float64
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    Name string
    Name of the TCR instance.
    OpenPublicOperation bool
    Control public network access.
    RegistryChargeType float64
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    Replications []TcrInstanceReplicationArgs
    Specify List of instance Replications, premium only. The available source region list is here.
    SecurityPolicies []TcrInstanceSecurityPolicyArgs
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    Tags map[string]string
    The available tags within this TCR instance.
    TcrInstanceId string
    ID of the resource.
    instanceType String
    TCR types. Valid values are: standard, basic, premium.
    deleteBucket Boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    instanceChargeTypePrepaidPeriod Double
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag Double
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    name String
    Name of the TCR instance.
    openPublicOperation Boolean
    Control public network access.
    registryChargeType Double
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications List<TcrInstanceReplication>
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies List<TcrInstanceSecurityPolicy>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    tags Map<String,String>
    The available tags within this TCR instance.
    tcrInstanceId String
    ID of the resource.
    instanceType string
    TCR types. Valid values are: standard, basic, premium.
    deleteBucket boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    instanceChargeTypePrepaidPeriod number
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag number
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    name string
    Name of the TCR instance.
    openPublicOperation boolean
    Control public network access.
    registryChargeType number
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications TcrInstanceReplication[]
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies TcrInstanceSecurityPolicy[]
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    tags {[key: string]: string}
    The available tags within this TCR instance.
    tcrInstanceId string
    ID of the resource.
    instance_type str
    TCR types. Valid values are: standard, basic, premium.
    delete_bucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    instance_charge_type_prepaid_period float
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instance_charge_type_prepaid_renew_flag float
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    name str
    Name of the TCR instance.
    open_public_operation bool
    Control public network access.
    registry_charge_type float
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications Sequence[TcrInstanceReplicationArgs]
    Specify List of instance Replications, premium only. The available source region list is here.
    security_policies Sequence[TcrInstanceSecurityPolicyArgs]
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    tags Mapping[str, str]
    The available tags within this TCR instance.
    tcr_instance_id str
    ID of the resource.
    instanceType String
    TCR types. Valid values are: standard, basic, premium.
    deleteBucket Boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    instanceChargeTypePrepaidPeriod Number
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag Number
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    name String
    Name of the TCR instance.
    openPublicOperation Boolean
    Control public network access.
    registryChargeType Number
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications List<Property Map>
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies List<Property Map>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    tags Map<String>
    The available tags within this TCR instance.
    tcrInstanceId String
    ID of the resource.

    Outputs

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

    ExpiredAt string
    Instance expiration time (prepaid).
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    PublicDomain string
    Public address for access of the TCR instance.
    PublicStatus string
    Status of the TCR instance public network access.
    Status string
    Status of the TCR instance.
    ExpiredAt string
    Instance expiration time (prepaid).
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    PublicDomain string
    Public address for access of the TCR instance.
    PublicStatus string
    Status of the TCR instance public network access.
    Status string
    Status of the TCR instance.
    expiredAt String
    Instance expiration time (prepaid).
    id String
    The provider-assigned unique ID for this managed resource.
    internalEndPoint String
    Internal address for access of the TCR instance.
    publicDomain String
    Public address for access of the TCR instance.
    publicStatus String
    Status of the TCR instance public network access.
    status String
    Status of the TCR instance.
    expiredAt string
    Instance expiration time (prepaid).
    id string
    The provider-assigned unique ID for this managed resource.
    internalEndPoint string
    Internal address for access of the TCR instance.
    publicDomain string
    Public address for access of the TCR instance.
    publicStatus string
    Status of the TCR instance public network access.
    status string
    Status of the TCR instance.
    expired_at str
    Instance expiration time (prepaid).
    id str
    The provider-assigned unique ID for this managed resource.
    internal_end_point str
    Internal address for access of the TCR instance.
    public_domain str
    Public address for access of the TCR instance.
    public_status str
    Status of the TCR instance public network access.
    status str
    Status of the TCR instance.
    expiredAt String
    Instance expiration time (prepaid).
    id String
    The provider-assigned unique ID for this managed resource.
    internalEndPoint String
    Internal address for access of the TCR instance.
    publicDomain String
    Public address for access of the TCR instance.
    publicStatus String
    Status of the TCR instance public network access.
    status String
    Status of the TCR instance.

    Look up Existing TcrInstance Resource

    Get an existing TcrInstance 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?: TcrInstanceState, opts?: CustomResourceOptions): TcrInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_bucket: Optional[bool] = None,
            expired_at: Optional[str] = None,
            instance_charge_type_prepaid_period: Optional[float] = None,
            instance_charge_type_prepaid_renew_flag: Optional[float] = None,
            instance_type: Optional[str] = None,
            internal_end_point: Optional[str] = None,
            name: Optional[str] = None,
            open_public_operation: Optional[bool] = None,
            public_domain: Optional[str] = None,
            public_status: Optional[str] = None,
            registry_charge_type: Optional[float] = None,
            replications: Optional[Sequence[TcrInstanceReplicationArgs]] = None,
            security_policies: Optional[Sequence[TcrInstanceSecurityPolicyArgs]] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tcr_instance_id: Optional[str] = None) -> TcrInstance
    func GetTcrInstance(ctx *Context, name string, id IDInput, state *TcrInstanceState, opts ...ResourceOption) (*TcrInstance, error)
    public static TcrInstance Get(string name, Input<string> id, TcrInstanceState? state, CustomResourceOptions? opts = null)
    public static TcrInstance get(String name, Output<String> id, TcrInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TcrInstance    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:
    DeleteBucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    ExpiredAt string
    Instance expiration time (prepaid).
    InstanceChargeTypePrepaidPeriod double
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    InstanceChargeTypePrepaidRenewFlag double
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    InstanceType string
    TCR types. Valid values are: standard, basic, premium.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    Name string
    Name of the TCR instance.
    OpenPublicOperation bool
    Control public network access.
    PublicDomain string
    Public address for access of the TCR instance.
    PublicStatus string
    Status of the TCR instance public network access.
    RegistryChargeType double
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    Replications List<TcrInstanceReplication>
    Specify List of instance Replications, premium only. The available source region list is here.
    SecurityPolicies List<TcrInstanceSecurityPolicy>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    Status string
    Status of the TCR instance.
    Tags Dictionary<string, string>
    The available tags within this TCR instance.
    TcrInstanceId string
    ID of the resource.
    DeleteBucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    ExpiredAt string
    Instance expiration time (prepaid).
    InstanceChargeTypePrepaidPeriod float64
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    InstanceChargeTypePrepaidRenewFlag float64
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    InstanceType string
    TCR types. Valid values are: standard, basic, premium.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    Name string
    Name of the TCR instance.
    OpenPublicOperation bool
    Control public network access.
    PublicDomain string
    Public address for access of the TCR instance.
    PublicStatus string
    Status of the TCR instance public network access.
    RegistryChargeType float64
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    Replications []TcrInstanceReplicationArgs
    Specify List of instance Replications, premium only. The available source region list is here.
    SecurityPolicies []TcrInstanceSecurityPolicyArgs
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    Status string
    Status of the TCR instance.
    Tags map[string]string
    The available tags within this TCR instance.
    TcrInstanceId string
    ID of the resource.
    deleteBucket Boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    expiredAt String
    Instance expiration time (prepaid).
    instanceChargeTypePrepaidPeriod Double
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag Double
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    instanceType String
    TCR types. Valid values are: standard, basic, premium.
    internalEndPoint String
    Internal address for access of the TCR instance.
    name String
    Name of the TCR instance.
    openPublicOperation Boolean
    Control public network access.
    publicDomain String
    Public address for access of the TCR instance.
    publicStatus String
    Status of the TCR instance public network access.
    registryChargeType Double
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications List<TcrInstanceReplication>
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies List<TcrInstanceSecurityPolicy>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    status String
    Status of the TCR instance.
    tags Map<String,String>
    The available tags within this TCR instance.
    tcrInstanceId String
    ID of the resource.
    deleteBucket boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    expiredAt string
    Instance expiration time (prepaid).
    instanceChargeTypePrepaidPeriod number
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag number
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    instanceType string
    TCR types. Valid values are: standard, basic, premium.
    internalEndPoint string
    Internal address for access of the TCR instance.
    name string
    Name of the TCR instance.
    openPublicOperation boolean
    Control public network access.
    publicDomain string
    Public address for access of the TCR instance.
    publicStatus string
    Status of the TCR instance public network access.
    registryChargeType number
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications TcrInstanceReplication[]
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies TcrInstanceSecurityPolicy[]
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    status string
    Status of the TCR instance.
    tags {[key: string]: string}
    The available tags within this TCR instance.
    tcrInstanceId string
    ID of the resource.
    delete_bucket bool
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    expired_at str
    Instance expiration time (prepaid).
    instance_charge_type_prepaid_period float
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instance_charge_type_prepaid_renew_flag float
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    instance_type str
    TCR types. Valid values are: standard, basic, premium.
    internal_end_point str
    Internal address for access of the TCR instance.
    name str
    Name of the TCR instance.
    open_public_operation bool
    Control public network access.
    public_domain str
    Public address for access of the TCR instance.
    public_status str
    Status of the TCR instance public network access.
    registry_charge_type float
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications Sequence[TcrInstanceReplicationArgs]
    Specify List of instance Replications, premium only. The available source region list is here.
    security_policies Sequence[TcrInstanceSecurityPolicyArgs]
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    status str
    Status of the TCR instance.
    tags Mapping[str, str]
    The available tags within this TCR instance.
    tcr_instance_id str
    ID of the resource.
    deleteBucket Boolean
    Indicate to delete the COS bucket which is auto-created with the instance or not.
    expiredAt String
    Instance expiration time (prepaid).
    instanceChargeTypePrepaidPeriod Number
    Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
    instanceChargeTypePrepaidRenewFlag Number
    Auto renewal flag. 1: manual renewal, 2: automatic renewal, 3: no renewal and no notification. Must set when registry_charge_type is prepaid.
    instanceType String
    TCR types. Valid values are: standard, basic, premium.
    internalEndPoint String
    Internal address for access of the TCR instance.
    name String
    Name of the TCR instance.
    openPublicOperation Boolean
    Control public network access.
    publicDomain String
    Public address for access of the TCR instance.
    publicStatus String
    Status of the TCR instance public network access.
    registryChargeType Number
    Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
    replications List<Property Map>
    Specify List of instance Replications, premium only. The available source region list is here.
    securityPolicies List<Property Map>
    Public network access allowlist policies of the TCR instance. Only available when open_public_operation is true.
    status String
    Status of the TCR instance.
    tags Map<String>
    The available tags within this TCR instance.
    tcrInstanceId String
    ID of the resource.

    Supporting Types

    TcrInstanceReplication, TcrInstanceReplicationArgs

    Id string
    ID of the resource.
    RegionId double
    Replication region ID, check the example at the top of page to find out id of region.
    RegionName string
    Replication region name.
    SynTag bool
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.
    Id string
    ID of the resource.
    RegionId float64
    Replication region ID, check the example at the top of page to find out id of region.
    RegionName string
    Replication region name.
    SynTag bool
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.
    id String
    ID of the resource.
    regionId Double
    Replication region ID, check the example at the top of page to find out id of region.
    regionName String
    Replication region name.
    synTag Boolean
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.
    id string
    ID of the resource.
    regionId number
    Replication region ID, check the example at the top of page to find out id of region.
    regionName string
    Replication region name.
    synTag boolean
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.
    id str
    ID of the resource.
    region_id float
    Replication region ID, check the example at the top of page to find out id of region.
    region_name str
    Replication region name.
    syn_tag bool
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.
    id String
    ID of the resource.
    regionId Number
    Replication region ID, check the example at the top of page to find out id of region.
    regionName String
    Replication region name.
    synTag Boolean
    Specify whether to sync TCR cloud tags to COS Bucket. NOTE: You have to specify when adding, modifying will be ignored for now.

    TcrInstanceSecurityPolicy, TcrInstanceSecurityPolicyArgs

    CidrBlock string
    The public network IP address of the access source.
    Description string
    Remarks of policy.
    Index double
    Index of policy.
    Version string
    Version of policy.
    CidrBlock string
    The public network IP address of the access source.
    Description string
    Remarks of policy.
    Index float64
    Index of policy.
    Version string
    Version of policy.
    cidrBlock String
    The public network IP address of the access source.
    description String
    Remarks of policy.
    index Double
    Index of policy.
    version String
    Version of policy.
    cidrBlock string
    The public network IP address of the access source.
    description string
    Remarks of policy.
    index number
    Index of policy.
    version string
    Version of policy.
    cidr_block str
    The public network IP address of the access source.
    description str
    Remarks of policy.
    index float
    Index of policy.
    version str
    Version of policy.
    cidrBlock String
    The public network IP address of the access source.
    description String
    Remarks of policy.
    index Number
    Index of policy.
    version String
    Version of policy.

    Import

    tcr instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tcrInstance:TcrInstance foo instance_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    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