tencentcloud.TsfCluster
Explore with Pulumi AI
Provides a resource to create a tsf cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cluster = new tencentcloud.TsfCluster("cluster", {
clusterCidr: "9.165.120.0/24",
clusterDesc: "test",
clusterName: "terraform-test",
clusterType: "C",
clusterVersion: "1.18.4",
maxClusterServiceNum: 128,
maxNodePodNum: 32,
tags: {
createdBy: "terraform",
},
tsfRegionId: "ap-guangzhou",
vpcId: "vpc-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cluster = tencentcloud.TsfCluster("cluster",
cluster_cidr="9.165.120.0/24",
cluster_desc="test",
cluster_name="terraform-test",
cluster_type="C",
cluster_version="1.18.4",
max_cluster_service_num=128,
max_node_pod_num=32,
tags={
"createdBy": "terraform",
},
tsf_region_id="ap-guangzhou",
vpc_id="vpc-xxxxxx")
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.NewTsfCluster(ctx, "cluster", &tencentcloud.TsfClusterArgs{
ClusterCidr: pulumi.String("9.165.120.0/24"),
ClusterDesc: pulumi.String("test"),
ClusterName: pulumi.String("terraform-test"),
ClusterType: pulumi.String("C"),
ClusterVersion: pulumi.String("1.18.4"),
MaxClusterServiceNum: pulumi.Float64(128),
MaxNodePodNum: pulumi.Float64(32),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
TsfRegionId: pulumi.String("ap-guangzhou"),
VpcId: pulumi.String("vpc-xxxxxx"),
})
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 cluster = new Tencentcloud.TsfCluster("cluster", new()
{
ClusterCidr = "9.165.120.0/24",
ClusterDesc = "test",
ClusterName = "terraform-test",
ClusterType = "C",
ClusterVersion = "1.18.4",
MaxClusterServiceNum = 128,
MaxNodePodNum = 32,
Tags =
{
{ "createdBy", "terraform" },
},
TsfRegionId = "ap-guangzhou",
VpcId = "vpc-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TsfCluster;
import com.pulumi.tencentcloud.TsfClusterArgs;
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 cluster = new TsfCluster("cluster", TsfClusterArgs.builder()
.clusterCidr("9.165.120.0/24")
.clusterDesc("test")
.clusterName("terraform-test")
.clusterType("C")
.clusterVersion("1.18.4")
.maxClusterServiceNum(128)
.maxNodePodNum(32)
.tags(Map.of("createdBy", "terraform"))
.tsfRegionId("ap-guangzhou")
.vpcId("vpc-xxxxxx")
.build());
}
}
resources:
cluster:
type: tencentcloud:TsfCluster
properties:
clusterCidr: 9.165.120.0/24
clusterDesc: test
clusterName: terraform-test
clusterType: C
clusterVersion: 1.18.4
maxClusterServiceNum: 128
maxNodePodNum: 32
tags:
createdBy: terraform
tsfRegionId: ap-guangzhou
vpcId: vpc-xxxxxx
Create TsfCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TsfCluster(name: string, args: TsfClusterArgs, opts?: CustomResourceOptions);
@overload
def TsfCluster(resource_name: str,
args: TsfClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TsfCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_type: Optional[str] = None,
vpc_id: Optional[str] = None,
cluster_name: Optional[str] = None,
kubernete_native_type: Optional[str] = None,
max_node_pod_num: Optional[float] = None,
cluster_version: Optional[str] = None,
kubernete_api_server: Optional[str] = None,
kubernete_native_secret: Optional[str] = None,
cluster_cidr: Optional[str] = None,
max_cluster_service_num: Optional[float] = None,
cluster_remark_name: Optional[str] = None,
program_id: Optional[str] = None,
program_id_lists: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tsf_cluster_id: Optional[str] = None,
tsf_region_id: Optional[str] = None,
tsf_zone_id: Optional[str] = None,
cluster_desc: Optional[str] = None)
func NewTsfCluster(ctx *Context, name string, args TsfClusterArgs, opts ...ResourceOption) (*TsfCluster, error)
public TsfCluster(string name, TsfClusterArgs args, CustomResourceOptions? opts = null)
public TsfCluster(String name, TsfClusterArgs args)
public TsfCluster(String name, TsfClusterArgs args, CustomResourceOptions options)
type: tencentcloud:TsfCluster
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 TsfClusterArgs
- 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 TsfClusterArgs
- 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 TsfClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TsfClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TsfClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TsfCluster 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 TsfCluster resource accepts the following input properties:
- Cluster
Name string - Cluster name.
- Cluster
Type string - Cluster type.
- Vpc
Id string - Vpc id.
- Cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- Cluster
Desc string - cluster notes.
- Cluster
Remark stringName - cluster remark name.
- Cluster
Version string - cluster version.
- Kubernete
Api stringServer - api address.
- Kubernete
Native stringSecret - native secret.
- Kubernete
Native stringType K
:kubeconfig,S
:service account.- Max
Cluster doubleService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- Max
Node doublePod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- Program
Id string - The dataset ID to be bound.
- Program
Id List<string>Lists - Program id list.
- Subnet
Id string - Subnet id.
- Dictionary<string, string>
- Tag description list.
- Tsf
Cluster stringId - ID of the resource.
- Tsf
Region stringId - The TSF region to which the cluster belongs.
- Tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- Cluster
Name string - Cluster name.
- Cluster
Type string - Cluster type.
- Vpc
Id string - Vpc id.
- Cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- Cluster
Desc string - cluster notes.
- Cluster
Remark stringName - cluster remark name.
- Cluster
Version string - cluster version.
- Kubernete
Api stringServer - api address.
- Kubernete
Native stringSecret - native secret.
- Kubernete
Native stringType K
:kubeconfig,S
:service account.- Max
Cluster float64Service Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- Max
Node float64Pod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- Program
Id string - The dataset ID to be bound.
- Program
Id []stringLists - Program id list.
- Subnet
Id string - Subnet id.
- map[string]string
- Tag description list.
- Tsf
Cluster stringId - ID of the resource.
- Tsf
Region stringId - The TSF region to which the cluster belongs.
- Tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- cluster
Name String - Cluster name.
- cluster
Type String - Cluster type.
- vpc
Id String - Vpc id.
- cluster
Cidr String - CIDR assigned to cluster containers and service IP.
- cluster
Desc String - cluster notes.
- cluster
Remark StringName - cluster remark name.
- cluster
Version String - cluster version.
- kubernete
Api StringServer - api address.
- kubernete
Native StringSecret - native secret.
- kubernete
Native StringType K
:kubeconfig,S
:service account.- max
Cluster DoubleService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node DoublePod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- program
Id String - The dataset ID to be bound.
- program
Id List<String>Lists - Program id list.
- subnet
Id String - Subnet id.
- Map<String,String>
- Tag description list.
- tsf
Cluster StringId - ID of the resource.
- tsf
Region StringId - The TSF region to which the cluster belongs.
- tsf
Zone StringId - The TSF availability zone to which the cluster belongs.
- cluster
Name string - Cluster name.
- cluster
Type string - Cluster type.
- vpc
Id string - Vpc id.
- cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- cluster
Desc string - cluster notes.
- cluster
Remark stringName - cluster remark name.
- cluster
Version string - cluster version.
- kubernete
Api stringServer - api address.
- kubernete
Native stringSecret - native secret.
- kubernete
Native stringType K
:kubeconfig,S
:service account.- max
Cluster numberService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node numberPod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- program
Id string - The dataset ID to be bound.
- program
Id string[]Lists - Program id list.
- subnet
Id string - Subnet id.
- {[key: string]: string}
- Tag description list.
- tsf
Cluster stringId - ID of the resource.
- tsf
Region stringId - The TSF region to which the cluster belongs.
- tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- cluster_
name str - Cluster name.
- cluster_
type str - Cluster type.
- vpc_
id str - Vpc id.
- cluster_
cidr str - CIDR assigned to cluster containers and service IP.
- cluster_
desc str - cluster notes.
- cluster_
remark_ strname - cluster remark name.
- cluster_
version str - cluster version.
- kubernete_
api_ strserver - api address.
- kubernete_
native_ strsecret - native secret.
- kubernete_
native_ strtype K
:kubeconfig,S
:service account.- max_
cluster_ floatservice_ num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max_
node_ floatpod_ num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- program_
id str - The dataset ID to be bound.
- program_
id_ Sequence[str]lists - Program id list.
- subnet_
id str - Subnet id.
- Mapping[str, str]
- Tag description list.
- tsf_
cluster_ strid - ID of the resource.
- tsf_
region_ strid - The TSF region to which the cluster belongs.
- tsf_
zone_ strid - The TSF availability zone to which the cluster belongs.
- cluster
Name String - Cluster name.
- cluster
Type String - Cluster type.
- vpc
Id String - Vpc id.
- cluster
Cidr String - CIDR assigned to cluster containers and service IP.
- cluster
Desc String - cluster notes.
- cluster
Remark StringName - cluster remark name.
- cluster
Version String - cluster version.
- kubernete
Api StringServer - api address.
- kubernete
Native StringSecret - native secret.
- kubernete
Native StringType K
:kubeconfig,S
:service account.- max
Cluster NumberService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node NumberPod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- program
Id String - The dataset ID to be bound.
- program
Id List<String>Lists - Program id list.
- subnet
Id String - Subnet id.
- Map<String>
- Tag description list.
- tsf
Cluster StringId - ID of the resource.
- tsf
Region StringId - The TSF region to which the cluster belongs.
- tsf
Zone StringId - The TSF availability zone to which the cluster belongs.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfCluster resource produces the following output properties:
- Abnormal
Group doubleCount - Abnormal number of deployment groups.
- Cluster
Id string - Cluster ID.
- Cluster
Limit stringCpu - Cluster remaining cpu limit.
- Cluster
Limit stringMem - Cluster remaining memory limit.
- Cluster
Status string - cluster status.
- Cluster
Total doubleCpu - The total CPU of the cluster, unit: core.
- Cluster
Total doubleMem - The total memory of the cluster, unit: G.
- Cluster
Used doubleCpu - CPU used by the cluster, unit: core.
- Cluster
Used doubleMem - The memory used by the cluster, unit: G.
- Create
Time string - Create time.
- Delete
Flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - Delete
Flag stringReason - Reasons why clusters cannot be deleted.
- Group
Count double - Total number of deployment groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count double - Number of cluster machine instances.
- Normal
Instance doubleCount - The number of machine instances in the normal state of the cluster.
- Operation
Infos List<TsfCluster Operation Info> - Control information for buttons on the front end.
- Run
Group doubleCount - Number of Deployment Groups in progress.
- Run
Instance doubleCount - Number of machine instances running in the cluster.
- Run
Service doubleInstance Count - Number of running service instances.
- Stop
Group doubleCount - Number of deployment groups in stop.
- Tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- Tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- Update
Time string - Update time.
- Abnormal
Group float64Count - Abnormal number of deployment groups.
- Cluster
Id string - Cluster ID.
- Cluster
Limit stringCpu - Cluster remaining cpu limit.
- Cluster
Limit stringMem - Cluster remaining memory limit.
- Cluster
Status string - cluster status.
- Cluster
Total float64Cpu - The total CPU of the cluster, unit: core.
- Cluster
Total float64Mem - The total memory of the cluster, unit: G.
- Cluster
Used float64Cpu - CPU used by the cluster, unit: core.
- Cluster
Used float64Mem - The memory used by the cluster, unit: G.
- Create
Time string - Create time.
- Delete
Flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - Delete
Flag stringReason - Reasons why clusters cannot be deleted.
- Group
Count float64 - Total number of deployment groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count float64 - Number of cluster machine instances.
- Normal
Instance float64Count - The number of machine instances in the normal state of the cluster.
- Operation
Infos []TsfCluster Operation Info - Control information for buttons on the front end.
- Run
Group float64Count - Number of Deployment Groups in progress.
- Run
Instance float64Count - Number of machine instances running in the cluster.
- Run
Service float64Instance Count - Number of running service instances.
- Stop
Group float64Count - Number of deployment groups in stop.
- Tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- Tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- Update
Time string - Update time.
- abnormal
Group DoubleCount - Abnormal number of deployment groups.
- cluster
Id String - Cluster ID.
- cluster
Limit StringCpu - Cluster remaining cpu limit.
- cluster
Limit StringMem - Cluster remaining memory limit.
- cluster
Status String - cluster status.
- cluster
Total DoubleCpu - The total CPU of the cluster, unit: core.
- cluster
Total DoubleMem - The total memory of the cluster, unit: G.
- cluster
Used DoubleCpu - CPU used by the cluster, unit: core.
- cluster
Used DoubleMem - The memory used by the cluster, unit: G.
- create
Time String - Create time.
- delete
Flag Boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag StringReason - Reasons why clusters cannot be deleted.
- group
Count Double - Total number of deployment groups.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Double - Number of cluster machine instances.
- normal
Instance DoubleCount - The number of machine instances in the normal state of the cluster.
- operation
Infos List<TsfCluster Operation Info> - Control information for buttons on the front end.
- run
Group DoubleCount - Number of Deployment Groups in progress.
- run
Instance DoubleCount - Number of machine instances running in the cluster.
- run
Service DoubleInstance Count - Number of running service instances.
- stop
Group DoubleCount - Number of deployment groups in stop.
- tsf
Region StringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone StringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time String - Update time.
- abnormal
Group numberCount - Abnormal number of deployment groups.
- cluster
Id string - Cluster ID.
- cluster
Limit stringCpu - Cluster remaining cpu limit.
- cluster
Limit stringMem - Cluster remaining memory limit.
- cluster
Status string - cluster status.
- cluster
Total numberCpu - The total CPU of the cluster, unit: core.
- cluster
Total numberMem - The total memory of the cluster, unit: G.
- cluster
Used numberCpu - CPU used by the cluster, unit: core.
- cluster
Used numberMem - The memory used by the cluster, unit: G.
- create
Time string - Create time.
- delete
Flag boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag stringReason - Reasons why clusters cannot be deleted.
- group
Count number - Total number of deployment groups.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Count number - Number of cluster machine instances.
- normal
Instance numberCount - The number of machine instances in the normal state of the cluster.
- operation
Infos TsfCluster Operation Info[] - Control information for buttons on the front end.
- run
Group numberCount - Number of Deployment Groups in progress.
- run
Instance numberCount - Number of machine instances running in the cluster.
- run
Service numberInstance Count - Number of running service instances.
- stop
Group numberCount - Number of deployment groups in stop.
- tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time string - Update time.
- abnormal_
group_ floatcount - Abnormal number of deployment groups.
- cluster_
id str - Cluster ID.
- cluster_
limit_ strcpu - Cluster remaining cpu limit.
- cluster_
limit_ strmem - Cluster remaining memory limit.
- cluster_
status str - cluster status.
- cluster_
total_ floatcpu - The total CPU of the cluster, unit: core.
- cluster_
total_ floatmem - The total memory of the cluster, unit: G.
- cluster_
used_ floatcpu - CPU used by the cluster, unit: core.
- cluster_
used_ floatmem - The memory used by the cluster, unit: G.
- create_
time str - Create time.
- delete_
flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete_
flag_ strreason - Reasons why clusters cannot be deleted.
- group_
count float - Total number of deployment groups.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
count float - Number of cluster machine instances.
- normal_
instance_ floatcount - The number of machine instances in the normal state of the cluster.
- operation_
infos Sequence[TsfCluster Operation Info] - Control information for buttons on the front end.
- run_
group_ floatcount - Number of Deployment Groups in progress.
- run_
instance_ floatcount - Number of machine instances running in the cluster.
- run_
service_ floatinstance_ count - Number of running service instances.
- stop_
group_ floatcount - Number of deployment groups in stop.
- tsf_
region_ strname - Name of the TSF region to which the cluster belongs.
- tsf_
zone_ strname - The name of the TSF availability zone to which the cluster belongs.
- update_
time str - Update time.
- abnormal
Group NumberCount - Abnormal number of deployment groups.
- cluster
Id String - Cluster ID.
- cluster
Limit StringCpu - Cluster remaining cpu limit.
- cluster
Limit StringMem - Cluster remaining memory limit.
- cluster
Status String - cluster status.
- cluster
Total NumberCpu - The total CPU of the cluster, unit: core.
- cluster
Total NumberMem - The total memory of the cluster, unit: G.
- cluster
Used NumberCpu - CPU used by the cluster, unit: core.
- cluster
Used NumberMem - The memory used by the cluster, unit: G.
- create
Time String - Create time.
- delete
Flag Boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag StringReason - Reasons why clusters cannot be deleted.
- group
Count Number - Total number of deployment groups.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Number - Number of cluster machine instances.
- normal
Instance NumberCount - The number of machine instances in the normal state of the cluster.
- operation
Infos List<Property Map> - Control information for buttons on the front end.
- run
Group NumberCount - Number of Deployment Groups in progress.
- run
Instance NumberCount - Number of machine instances running in the cluster.
- run
Service NumberInstance Count - Number of running service instances.
- stop
Group NumberCount - Number of deployment groups in stop.
- tsf
Region StringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone StringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time String - Update time.
Look up Existing TsfCluster Resource
Get an existing TsfCluster 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?: TsfClusterState, opts?: CustomResourceOptions): TsfCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
abnormal_group_count: Optional[float] = None,
cluster_cidr: Optional[str] = None,
cluster_desc: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_limit_cpu: Optional[str] = None,
cluster_limit_mem: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_remark_name: Optional[str] = None,
cluster_status: Optional[str] = None,
cluster_total_cpu: Optional[float] = None,
cluster_total_mem: Optional[float] = None,
cluster_type: Optional[str] = None,
cluster_used_cpu: Optional[float] = None,
cluster_used_mem: Optional[float] = None,
cluster_version: Optional[str] = None,
create_time: Optional[str] = None,
delete_flag: Optional[bool] = None,
delete_flag_reason: Optional[str] = None,
group_count: Optional[float] = None,
instance_count: Optional[float] = None,
kubernete_api_server: Optional[str] = None,
kubernete_native_secret: Optional[str] = None,
kubernete_native_type: Optional[str] = None,
max_cluster_service_num: Optional[float] = None,
max_node_pod_num: Optional[float] = None,
normal_instance_count: Optional[float] = None,
operation_infos: Optional[Sequence[TsfClusterOperationInfoArgs]] = None,
program_id: Optional[str] = None,
program_id_lists: Optional[Sequence[str]] = None,
run_group_count: Optional[float] = None,
run_instance_count: Optional[float] = None,
run_service_instance_count: Optional[float] = None,
stop_group_count: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tsf_cluster_id: Optional[str] = None,
tsf_region_id: Optional[str] = None,
tsf_region_name: Optional[str] = None,
tsf_zone_id: Optional[str] = None,
tsf_zone_name: Optional[str] = None,
update_time: Optional[str] = None,
vpc_id: Optional[str] = None) -> TsfCluster
func GetTsfCluster(ctx *Context, name string, id IDInput, state *TsfClusterState, opts ...ResourceOption) (*TsfCluster, error)
public static TsfCluster Get(string name, Input<string> id, TsfClusterState? state, CustomResourceOptions? opts = null)
public static TsfCluster get(String name, Output<String> id, TsfClusterState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TsfCluster 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.
- Abnormal
Group doubleCount - Abnormal number of deployment groups.
- Cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- Cluster
Desc string - cluster notes.
- Cluster
Id string - Cluster ID.
- Cluster
Limit stringCpu - Cluster remaining cpu limit.
- Cluster
Limit stringMem - Cluster remaining memory limit.
- Cluster
Name string - Cluster name.
- Cluster
Remark stringName - cluster remark name.
- Cluster
Status string - cluster status.
- Cluster
Total doubleCpu - The total CPU of the cluster, unit: core.
- Cluster
Total doubleMem - The total memory of the cluster, unit: G.
- Cluster
Type string - Cluster type.
- Cluster
Used doubleCpu - CPU used by the cluster, unit: core.
- Cluster
Used doubleMem - The memory used by the cluster, unit: G.
- Cluster
Version string - cluster version.
- Create
Time string - Create time.
- Delete
Flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - Delete
Flag stringReason - Reasons why clusters cannot be deleted.
- Group
Count double - Total number of deployment groups.
- Instance
Count double - Number of cluster machine instances.
- Kubernete
Api stringServer - api address.
- Kubernete
Native stringSecret - native secret.
- Kubernete
Native stringType K
:kubeconfig,S
:service account.- Max
Cluster doubleService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- Max
Node doublePod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- Normal
Instance doubleCount - The number of machine instances in the normal state of the cluster.
- Operation
Infos List<TsfCluster Operation Info> - Control information for buttons on the front end.
- Program
Id string - The dataset ID to be bound.
- Program
Id List<string>Lists - Program id list.
- Run
Group doubleCount - Number of Deployment Groups in progress.
- Run
Instance doubleCount - Number of machine instances running in the cluster.
- Run
Service doubleInstance Count - Number of running service instances.
- Stop
Group doubleCount - Number of deployment groups in stop.
- Subnet
Id string - Subnet id.
- Dictionary<string, string>
- Tag description list.
- Tsf
Cluster stringId - ID of the resource.
- Tsf
Region stringId - The TSF region to which the cluster belongs.
- Tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- Tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- Tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- Update
Time string - Update time.
- Vpc
Id string - Vpc id.
- Abnormal
Group float64Count - Abnormal number of deployment groups.
- Cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- Cluster
Desc string - cluster notes.
- Cluster
Id string - Cluster ID.
- Cluster
Limit stringCpu - Cluster remaining cpu limit.
- Cluster
Limit stringMem - Cluster remaining memory limit.
- Cluster
Name string - Cluster name.
- Cluster
Remark stringName - cluster remark name.
- Cluster
Status string - cluster status.
- Cluster
Total float64Cpu - The total CPU of the cluster, unit: core.
- Cluster
Total float64Mem - The total memory of the cluster, unit: G.
- Cluster
Type string - Cluster type.
- Cluster
Used float64Cpu - CPU used by the cluster, unit: core.
- Cluster
Used float64Mem - The memory used by the cluster, unit: G.
- Cluster
Version string - cluster version.
- Create
Time string - Create time.
- Delete
Flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - Delete
Flag stringReason - Reasons why clusters cannot be deleted.
- Group
Count float64 - Total number of deployment groups.
- Instance
Count float64 - Number of cluster machine instances.
- Kubernete
Api stringServer - api address.
- Kubernete
Native stringSecret - native secret.
- Kubernete
Native stringType K
:kubeconfig,S
:service account.- Max
Cluster float64Service Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- Max
Node float64Pod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- Normal
Instance float64Count - The number of machine instances in the normal state of the cluster.
- Operation
Infos []TsfCluster Operation Info Args - Control information for buttons on the front end.
- Program
Id string - The dataset ID to be bound.
- Program
Id []stringLists - Program id list.
- Run
Group float64Count - Number of Deployment Groups in progress.
- Run
Instance float64Count - Number of machine instances running in the cluster.
- Run
Service float64Instance Count - Number of running service instances.
- Stop
Group float64Count - Number of deployment groups in stop.
- Subnet
Id string - Subnet id.
- map[string]string
- Tag description list.
- Tsf
Cluster stringId - ID of the resource.
- Tsf
Region stringId - The TSF region to which the cluster belongs.
- Tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- Tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- Tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- Update
Time string - Update time.
- Vpc
Id string - Vpc id.
- abnormal
Group DoubleCount - Abnormal number of deployment groups.
- cluster
Cidr String - CIDR assigned to cluster containers and service IP.
- cluster
Desc String - cluster notes.
- cluster
Id String - Cluster ID.
- cluster
Limit StringCpu - Cluster remaining cpu limit.
- cluster
Limit StringMem - Cluster remaining memory limit.
- cluster
Name String - Cluster name.
- cluster
Remark StringName - cluster remark name.
- cluster
Status String - cluster status.
- cluster
Total DoubleCpu - The total CPU of the cluster, unit: core.
- cluster
Total DoubleMem - The total memory of the cluster, unit: G.
- cluster
Type String - Cluster type.
- cluster
Used DoubleCpu - CPU used by the cluster, unit: core.
- cluster
Used DoubleMem - The memory used by the cluster, unit: G.
- cluster
Version String - cluster version.
- create
Time String - Create time.
- delete
Flag Boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag StringReason - Reasons why clusters cannot be deleted.
- group
Count Double - Total number of deployment groups.
- instance
Count Double - Number of cluster machine instances.
- kubernete
Api StringServer - api address.
- kubernete
Native StringSecret - native secret.
- kubernete
Native StringType K
:kubeconfig,S
:service account.- max
Cluster DoubleService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node DoublePod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- normal
Instance DoubleCount - The number of machine instances in the normal state of the cluster.
- operation
Infos List<TsfCluster Operation Info> - Control information for buttons on the front end.
- program
Id String - The dataset ID to be bound.
- program
Id List<String>Lists - Program id list.
- run
Group DoubleCount - Number of Deployment Groups in progress.
- run
Instance DoubleCount - Number of machine instances running in the cluster.
- run
Service DoubleInstance Count - Number of running service instances.
- stop
Group DoubleCount - Number of deployment groups in stop.
- subnet
Id String - Subnet id.
- Map<String,String>
- Tag description list.
- tsf
Cluster StringId - ID of the resource.
- tsf
Region StringId - The TSF region to which the cluster belongs.
- tsf
Region StringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone StringId - The TSF availability zone to which the cluster belongs.
- tsf
Zone StringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time String - Update time.
- vpc
Id String - Vpc id.
- abnormal
Group numberCount - Abnormal number of deployment groups.
- cluster
Cidr string - CIDR assigned to cluster containers and service IP.
- cluster
Desc string - cluster notes.
- cluster
Id string - Cluster ID.
- cluster
Limit stringCpu - Cluster remaining cpu limit.
- cluster
Limit stringMem - Cluster remaining memory limit.
- cluster
Name string - Cluster name.
- cluster
Remark stringName - cluster remark name.
- cluster
Status string - cluster status.
- cluster
Total numberCpu - The total CPU of the cluster, unit: core.
- cluster
Total numberMem - The total memory of the cluster, unit: G.
- cluster
Type string - Cluster type.
- cluster
Used numberCpu - CPU used by the cluster, unit: core.
- cluster
Used numberMem - The memory used by the cluster, unit: G.
- cluster
Version string - cluster version.
- create
Time string - Create time.
- delete
Flag boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag stringReason - Reasons why clusters cannot be deleted.
- group
Count number - Total number of deployment groups.
- instance
Count number - Number of cluster machine instances.
- kubernete
Api stringServer - api address.
- kubernete
Native stringSecret - native secret.
- kubernete
Native stringType K
:kubeconfig,S
:service account.- max
Cluster numberService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node numberPod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- normal
Instance numberCount - The number of machine instances in the normal state of the cluster.
- operation
Infos TsfCluster Operation Info[] - Control information for buttons on the front end.
- program
Id string - The dataset ID to be bound.
- program
Id string[]Lists - Program id list.
- run
Group numberCount - Number of Deployment Groups in progress.
- run
Instance numberCount - Number of machine instances running in the cluster.
- run
Service numberInstance Count - Number of running service instances.
- stop
Group numberCount - Number of deployment groups in stop.
- subnet
Id string - Subnet id.
- {[key: string]: string}
- Tag description list.
- tsf
Cluster stringId - ID of the resource.
- tsf
Region stringId - The TSF region to which the cluster belongs.
- tsf
Region stringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone stringId - The TSF availability zone to which the cluster belongs.
- tsf
Zone stringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time string - Update time.
- vpc
Id string - Vpc id.
- abnormal_
group_ floatcount - Abnormal number of deployment groups.
- cluster_
cidr str - CIDR assigned to cluster containers and service IP.
- cluster_
desc str - cluster notes.
- cluster_
id str - Cluster ID.
- cluster_
limit_ strcpu - Cluster remaining cpu limit.
- cluster_
limit_ strmem - Cluster remaining memory limit.
- cluster_
name str - Cluster name.
- cluster_
remark_ strname - cluster remark name.
- cluster_
status str - cluster status.
- cluster_
total_ floatcpu - The total CPU of the cluster, unit: core.
- cluster_
total_ floatmem - The total memory of the cluster, unit: G.
- cluster_
type str - Cluster type.
- cluster_
used_ floatcpu - CPU used by the cluster, unit: core.
- cluster_
used_ floatmem - The memory used by the cluster, unit: G.
- cluster_
version str - cluster version.
- create_
time str - Create time.
- delete_
flag bool - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete_
flag_ strreason - Reasons why clusters cannot be deleted.
- group_
count float - Total number of deployment groups.
- instance_
count float - Number of cluster machine instances.
- kubernete_
api_ strserver - api address.
- kubernete_
native_ strsecret - native secret.
- kubernete_
native_ strtype K
:kubeconfig,S
:service account.- max_
cluster_ floatservice_ num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max_
node_ floatpod_ num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- normal_
instance_ floatcount - The number of machine instances in the normal state of the cluster.
- operation_
infos Sequence[TsfCluster Operation Info Args] - Control information for buttons on the front end.
- program_
id str - The dataset ID to be bound.
- program_
id_ Sequence[str]lists - Program id list.
- run_
group_ floatcount - Number of Deployment Groups in progress.
- run_
instance_ floatcount - Number of machine instances running in the cluster.
- run_
service_ floatinstance_ count - Number of running service instances.
- stop_
group_ floatcount - Number of deployment groups in stop.
- subnet_
id str - Subnet id.
- Mapping[str, str]
- Tag description list.
- tsf_
cluster_ strid - ID of the resource.
- tsf_
region_ strid - The TSF region to which the cluster belongs.
- tsf_
region_ strname - Name of the TSF region to which the cluster belongs.
- tsf_
zone_ strid - The TSF availability zone to which the cluster belongs.
- tsf_
zone_ strname - The name of the TSF availability zone to which the cluster belongs.
- update_
time str - Update time.
- vpc_
id str - Vpc id.
- abnormal
Group NumberCount - Abnormal number of deployment groups.
- cluster
Cidr String - CIDR assigned to cluster containers and service IP.
- cluster
Desc String - cluster notes.
- cluster
Id String - Cluster ID.
- cluster
Limit StringCpu - Cluster remaining cpu limit.
- cluster
Limit StringMem - Cluster remaining memory limit.
- cluster
Name String - Cluster name.
- cluster
Remark StringName - cluster remark name.
- cluster
Status String - cluster status.
- cluster
Total NumberCpu - The total CPU of the cluster, unit: core.
- cluster
Total NumberMem - The total memory of the cluster, unit: G.
- cluster
Type String - Cluster type.
- cluster
Used NumberCpu - CPU used by the cluster, unit: core.
- cluster
Used NumberMem - The memory used by the cluster, unit: G.
- cluster
Version String - cluster version.
- create
Time String - Create time.
- delete
Flag Boolean - Delete flag:
true
: can be deleted;false
: can not be deleted. - delete
Flag StringReason - Reasons why clusters cannot be deleted.
- group
Count Number - Total number of deployment groups.
- instance
Count Number - Number of cluster machine instances.
- kubernete
Api StringServer - api address.
- kubernete
Native StringSecret - native secret.
- kubernete
Native StringType K
:kubeconfig,S
:service account.- max
Cluster NumberService Num - The maximum number of services in the cluster. The value ranges from 32 to 32768. If it is not a power of 2, the nearest power of 2 will be taken up.
- max
Node NumberPod Num - The maximum number of Pods on each Node in the cluster. The value ranges from 4 to 256. When the value is not a power of 2, the nearest power of 2 will be taken up.
- normal
Instance NumberCount - The number of machine instances in the normal state of the cluster.
- operation
Infos List<Property Map> - Control information for buttons on the front end.
- program
Id String - The dataset ID to be bound.
- program
Id List<String>Lists - Program id list.
- run
Group NumberCount - Number of Deployment Groups in progress.
- run
Instance NumberCount - Number of machine instances running in the cluster.
- run
Service NumberInstance Count - Number of running service instances.
- stop
Group NumberCount - Number of deployment groups in stop.
- subnet
Id String - Subnet id.
- Map<String>
- Tag description list.
- tsf
Cluster StringId - ID of the resource.
- tsf
Region StringId - The TSF region to which the cluster belongs.
- tsf
Region StringName - Name of the TSF region to which the cluster belongs.
- tsf
Zone StringId - The TSF availability zone to which the cluster belongs.
- tsf
Zone StringName - The name of the TSF availability zone to which the cluster belongs.
- update
Time String - Update time.
- vpc
Id String - Vpc id.
Supporting Types
TsfClusterOperationInfo, TsfClusterOperationInfoArgs
- Add
Instances List<TsfCluster Operation Info Add Instance> - Add the control information of the instance button.
- Destroys
List<Tsf
Cluster Operation Info Destroy> - Destroy the control information of the machine.
- Inits
List<Tsf
Cluster Operation Info Init> - Initialize the control information of the button.
- Add
Instances []TsfCluster Operation Info Add Instance - Add the control information of the instance button.
- Destroys
[]Tsf
Cluster Operation Info Destroy - Destroy the control information of the machine.
- Inits
[]Tsf
Cluster Operation Info Init - Initialize the control information of the button.
- add
Instances List<TsfCluster Operation Info Add Instance> - Add the control information of the instance button.
- destroys
List<Tsf
Cluster Operation Info Destroy> - Destroy the control information of the machine.
- inits
List<Tsf
Cluster Operation Info Init> - Initialize the control information of the button.
- add
Instances TsfCluster Operation Info Add Instance[] - Add the control information of the instance button.
- destroys
Tsf
Cluster Operation Info Destroy[] - Destroy the control information of the machine.
- inits
Tsf
Cluster Operation Info Init[] - Initialize the control information of the button.
- add_
instances Sequence[TsfCluster Operation Info Add Instance] - Add the control information of the instance button.
- destroys
Sequence[Tsf
Cluster Operation Info Destroy] - Destroy the control information of the machine.
- inits
Sequence[Tsf
Cluster Operation Info Init] - Initialize the control information of the button.
- add
Instances List<Property Map> - Add the control information of the instance button.
- destroys List<Property Map>
- Destroy the control information of the machine.
- inits List<Property Map>
- Initialize the control information of the button.
TsfClusterOperationInfoAddInstance, TsfClusterOperationInfoAddInstanceArgs
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
- disabled
Reason string - Reason for not showing.
- enabled boolean
- Is the button clickable.
- supported boolean
- whether to show the button.
- disabled_
reason str - Reason for not showing.
- enabled bool
- Is the button clickable.
- supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
TsfClusterOperationInfoDestroy, TsfClusterOperationInfoDestroyArgs
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
- disabled
Reason string - Reason for not showing.
- enabled boolean
- Is the button clickable.
- supported boolean
- whether to show the button.
- disabled_
reason str - Reason for not showing.
- enabled bool
- Is the button clickable.
- supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
TsfClusterOperationInfoInit, TsfClusterOperationInfoInitArgs
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- Disabled
Reason string - Reason for not showing.
- Enabled bool
- Is the button clickable.
- Supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
- disabled
Reason string - Reason for not showing.
- enabled boolean
- Is the button clickable.
- supported boolean
- whether to show the button.
- disabled_
reason str - Reason for not showing.
- enabled bool
- Is the button clickable.
- supported bool
- whether to show the button.
- disabled
Reason String - Reason for not showing.
- enabled Boolean
- Is the button clickable.
- supported Boolean
- whether to show the button.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.