tencentcloud.TcrInstance
Explore with Pulumi AI
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:
- Instance
Type string - 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 doubleType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- Instance
Charge doubleType Prepaid Renew Flag - 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.
- Open
Public boolOperation - Control public network access.
- Registry
Charge doubleType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- Replications
List<Tcr
Instance Replication> - Specify List of instance Replications, premium only. The available source region list is here.
- Security
Policies List<TcrInstance Security Policy> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Dictionary<string, string>
- The available tags within this TCR instance.
- Tcr
Instance stringId - ID of the resource.
- Instance
Type string - 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 float64Type Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- Instance
Charge float64Type Prepaid Renew Flag - 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.
- Open
Public boolOperation - Control public network access.
- Registry
Charge float64Type - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- Replications
[]Tcr
Instance Replication Args - Specify List of instance Replications, premium only. The available source region list is here.
- Security
Policies []TcrInstance Security Policy Args - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - map[string]string
- The available tags within this TCR instance.
- Tcr
Instance stringId - ID of the resource.
- instance
Type String - TCR types. Valid values are:
standard
,basic
,premium
. - delete
Bucket Boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- instance
Charge DoubleType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge DoubleType Prepaid Renew Flag - 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.
- open
Public BooleanOperation - Control public network access.
- registry
Charge DoubleType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
List<Tcr
Instance Replication> - Specify List of instance Replications, premium only. The available source region list is here.
- security
Policies List<TcrInstance Security Policy> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Map<String,String>
- The available tags within this TCR instance.
- tcr
Instance StringId - ID of the resource.
- instance
Type string - TCR types. Valid values are:
standard
,basic
,premium
. - delete
Bucket boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- instance
Charge numberType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge numberType Prepaid Renew Flag - 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.
- open
Public booleanOperation - Control public network access.
- registry
Charge numberType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
Tcr
Instance Replication[] - Specify List of instance Replications, premium only. The available source region list is here.
- security
Policies TcrInstance Security Policy[] - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - {[key: string]: string}
- The available tags within this TCR instance.
- tcr
Instance stringId - 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_ floattype_ prepaid_ period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance_
charge_ floattype_ prepaid_ renew_ flag - 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_ booloperation - Control public network access.
- registry_
charge_ floattype - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
Sequence[Tcr
Instance Replication Args] - Specify List of instance Replications, premium only. The available source region list is here.
- security_
policies Sequence[TcrInstance Security Policy Args] - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Mapping[str, str]
- The available tags within this TCR instance.
- tcr_
instance_ strid - ID of the resource.
- instance
Type String - TCR types. Valid values are:
standard
,basic
,premium
. - delete
Bucket Boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- instance
Charge NumberType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge NumberType Prepaid Renew Flag - 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.
- open
Public BooleanOperation - Control public network access.
- registry
Charge NumberType - 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.
- security
Policies List<Property Map> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Map<String>
- The available tags within this TCR instance.
- tcr
Instance StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TcrInstance resource produces the following output properties:
- Expired
At string - Instance expiration time (prepaid).
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
End stringPoint - Internal address for access of the TCR instance.
- Public
Domain string - Public address for access of the TCR instance.
- Public
Status string - Status of the TCR instance public network access.
- Status string
- Status of the TCR instance.
- Expired
At string - Instance expiration time (prepaid).
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
End stringPoint - Internal address for access of the TCR instance.
- Public
Domain string - Public address for access of the TCR instance.
- Public
Status string - Status of the TCR instance public network access.
- Status string
- Status of the TCR instance.
- expired
At String - Instance expiration time (prepaid).
- id String
- The provider-assigned unique ID for this managed resource.
- internal
End StringPoint - Internal address for access of the TCR instance.
- public
Domain String - Public address for access of the TCR instance.
- public
Status String - Status of the TCR instance public network access.
- status String
- Status of the TCR instance.
- expired
At string - Instance expiration time (prepaid).
- id string
- The provider-assigned unique ID for this managed resource.
- internal
End stringPoint - Internal address for access of the TCR instance.
- public
Domain string - Public address for access of the TCR instance.
- public
Status 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_ strpoint - 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.
- expired
At String - Instance expiration time (prepaid).
- id String
- The provider-assigned unique ID for this managed resource.
- internal
End StringPoint - Internal address for access of the TCR instance.
- public
Domain String - Public address for access of the TCR instance.
- public
Status 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.
- Delete
Bucket bool - Indicate to delete the COS bucket which is auto-created with the instance or not.
- Expired
At string - Instance expiration time (prepaid).
- Instance
Charge doubleType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- Instance
Charge doubleType Prepaid Renew Flag - 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 string - TCR types. Valid values are:
standard
,basic
,premium
. - Internal
End stringPoint - Internal address for access of the TCR instance.
- Name string
- Name of the TCR instance.
- Open
Public boolOperation - Control public network access.
- Public
Domain string - Public address for access of the TCR instance.
- Public
Status string - Status of the TCR instance public network access.
- Registry
Charge doubleType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- Replications
List<Tcr
Instance Replication> - Specify List of instance Replications, premium only. The available source region list is here.
- Security
Policies List<TcrInstance Security Policy> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Status string
- Status of the TCR instance.
- Dictionary<string, string>
- The available tags within this TCR instance.
- Tcr
Instance stringId - ID of the resource.
- Delete
Bucket bool - Indicate to delete the COS bucket which is auto-created with the instance or not.
- Expired
At string - Instance expiration time (prepaid).
- Instance
Charge float64Type Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- Instance
Charge float64Type Prepaid Renew Flag - 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 string - TCR types. Valid values are:
standard
,basic
,premium
. - Internal
End stringPoint - Internal address for access of the TCR instance.
- Name string
- Name of the TCR instance.
- Open
Public boolOperation - Control public network access.
- Public
Domain string - Public address for access of the TCR instance.
- Public
Status string - Status of the TCR instance public network access.
- Registry
Charge float64Type - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- Replications
[]Tcr
Instance Replication Args - Specify List of instance Replications, premium only. The available source region list is here.
- Security
Policies []TcrInstance Security Policy Args - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - Status string
- Status of the TCR instance.
- map[string]string
- The available tags within this TCR instance.
- Tcr
Instance stringId - ID of the resource.
- delete
Bucket Boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- expired
At String - Instance expiration time (prepaid).
- instance
Charge DoubleType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge DoubleType Prepaid Renew Flag - 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 String - TCR types. Valid values are:
standard
,basic
,premium
. - internal
End StringPoint - Internal address for access of the TCR instance.
- name String
- Name of the TCR instance.
- open
Public BooleanOperation - Control public network access.
- public
Domain String - Public address for access of the TCR instance.
- public
Status String - Status of the TCR instance public network access.
- registry
Charge DoubleType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
List<Tcr
Instance Replication> - Specify List of instance Replications, premium only. The available source region list is here.
- security
Policies List<TcrInstance Security Policy> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - status String
- Status of the TCR instance.
- Map<String,String>
- The available tags within this TCR instance.
- tcr
Instance StringId - ID of the resource.
- delete
Bucket boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- expired
At string - Instance expiration time (prepaid).
- instance
Charge numberType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge numberType Prepaid Renew Flag - 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 string - TCR types. Valid values are:
standard
,basic
,premium
. - internal
End stringPoint - Internal address for access of the TCR instance.
- name string
- Name of the TCR instance.
- open
Public booleanOperation - Control public network access.
- public
Domain string - Public address for access of the TCR instance.
- public
Status string - Status of the TCR instance public network access.
- registry
Charge numberType - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
Tcr
Instance Replication[] - Specify List of instance Replications, premium only. The available source region list is here.
- security
Policies TcrInstance Security Policy[] - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - status string
- Status of the TCR instance.
- {[key: string]: string}
- The available tags within this TCR instance.
- tcr
Instance stringId - 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_ floattype_ prepaid_ period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance_
charge_ floattype_ prepaid_ renew_ flag - 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_ strpoint - Internal address for access of the TCR instance.
- name str
- Name of the TCR instance.
- open_
public_ booloperation - 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_ floattype - Charge type of instance. 1: postpaid; 2: prepaid. Default is postpaid.
- replications
Sequence[Tcr
Instance Replication Args] - Specify List of instance Replications, premium only. The available source region list is here.
- security_
policies Sequence[TcrInstance Security Policy Args] - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - status str
- Status of the TCR instance.
- Mapping[str, str]
- The available tags within this TCR instance.
- tcr_
instance_ strid - ID of the resource.
- delete
Bucket Boolean - Indicate to delete the COS bucket which is auto-created with the instance or not.
- expired
At String - Instance expiration time (prepaid).
- instance
Charge NumberType Prepaid Period - Length of time to purchase an instance (in month). Must set when registry_charge_type is prepaid.
- instance
Charge NumberType Prepaid Renew Flag - 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 String - TCR types. Valid values are:
standard
,basic
,premium
. - internal
End StringPoint - Internal address for access of the TCR instance.
- name String
- Name of the TCR instance.
- open
Public BooleanOperation - Control public network access.
- public
Domain String - Public address for access of the TCR instance.
- public
Status String - Status of the TCR instance public network access.
- registry
Charge NumberType - 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.
- security
Policies List<Property Map> - Public network access allowlist policies of the TCR instance. Only available when
open_public_operation
istrue
. - status String
- Status of the TCR instance.
- Map<String>
- The available tags within this TCR instance.
- tcr
Instance StringId - ID of the resource.
Supporting Types
TcrInstanceReplication, TcrInstanceReplicationArgs
- Id string
- ID of the resource.
- Region
Id double - Replication region ID, check the example at the top of page to find out id of region.
- Region
Name string - 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.
- Region
Id float64 - Replication region ID, check the example at the top of page to find out id of region.
- Region
Name string - 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.
- region
Id Double - Replication region ID, check the example at the top of page to find out id of region.
- region
Name String - Replication region name.
- syn
Tag 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.
- region
Id number - Replication region ID, check the example at the top of page to find out id of region.
- region
Name string - Replication region name.
- syn
Tag 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.
- region
Id Number - Replication region ID, check the example at the top of page to find out id of region.
- region
Name String - Replication region name.
- syn
Tag 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
- Cidr
Block 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.
- Cidr
Block 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.
- cidr
Block 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.
- cidr
Block 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.
- cidr
Block 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.