tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTdcpgClusters
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of tdcpg clusters.
NOTE: This data source is still in internal testing. To experience its functions, you need to apply for a whitelist from Tencent Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const clusters = tencentcloud.getTdcpgClusters({
clusterId: "",
clusterName: "",
payMode: "",
projectId: "",
status: "",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
clusters = tencentcloud.get_tdcpg_clusters(cluster_id="",
cluster_name="",
pay_mode="",
project_id="",
status="")
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.GetTdcpgClusters(ctx, &tencentcloud.GetTdcpgClustersArgs{
ClusterId: pulumi.StringRef(""),
ClusterName: pulumi.StringRef(""),
PayMode: pulumi.StringRef(""),
ProjectId: pulumi.Float64Ref(""),
Status: pulumi.StringRef(""),
}, nil)
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 clusters = Tencentcloud.GetTdcpgClusters.Invoke(new()
{
ClusterId = "",
ClusterName = "",
PayMode = "",
ProjectId = "",
Status = "",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTdcpgClustersArgs;
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 clusters = TencentcloudFunctions.getTdcpgClusters(GetTdcpgClustersArgs.builder()
.clusterId("")
.clusterName("")
.payMode("")
.projectId("")
.status("")
.build());
}
}
variables:
clusters:
fn::invoke:
function: tencentcloud:getTdcpgClusters
arguments:
clusterId: ""
clusterName: ""
payMode: ""
projectId: ""
status: ""
Using getTdcpgClusters
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTdcpgClusters(args: GetTdcpgClustersArgs, opts?: InvokeOptions): Promise<GetTdcpgClustersResult>
function getTdcpgClustersOutput(args: GetTdcpgClustersOutputArgs, opts?: InvokeOptions): Output<GetTdcpgClustersResult>
def get_tdcpg_clusters(cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
id: Optional[str] = None,
pay_mode: Optional[str] = None,
project_id: Optional[float] = None,
result_output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTdcpgClustersResult
def get_tdcpg_clusters_output(cluster_id: Optional[pulumi.Input[str]] = None,
cluster_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
pay_mode: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTdcpgClustersResult]
func GetTdcpgClusters(ctx *Context, args *GetTdcpgClustersArgs, opts ...InvokeOption) (*GetTdcpgClustersResult, error)
func GetTdcpgClustersOutput(ctx *Context, args *GetTdcpgClustersOutputArgs, opts ...InvokeOption) GetTdcpgClustersResultOutput
> Note: This function is named GetTdcpgClusters
in the Go SDK.
public static class GetTdcpgClusters
{
public static Task<GetTdcpgClustersResult> InvokeAsync(GetTdcpgClustersArgs args, InvokeOptions? opts = null)
public static Output<GetTdcpgClustersResult> Invoke(GetTdcpgClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTdcpgClustersResult> getTdcpgClusters(GetTdcpgClustersArgs args, InvokeOptions options)
public static Output<GetTdcpgClustersResult> getTdcpgClusters(GetTdcpgClustersArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTdcpgClusters:getTdcpgClusters
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Id string
- Pay
Mode string - pay mode.
- Project
Id double - project id, default to 0, means default project.
- Result
Output stringFile - Used to save results.
- Status string
- cluster status.
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Id string
- Pay
Mode string - pay mode.
- Project
Id float64 - project id, default to 0, means default project.
- Result
Output stringFile - Used to save results.
- Status string
- cluster status.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- id String
- pay
Mode String - pay mode.
- project
Id Double - project id, default to 0, means default project.
- result
Output StringFile - Used to save results.
- status String
- cluster status.
- cluster
Id string - cluster id.
- cluster
Name string - cluster name.
- id string
- pay
Mode string - pay mode.
- project
Id number - project id, default to 0, means default project.
- result
Output stringFile - Used to save results.
- status string
- cluster status.
- cluster_
id str - cluster id.
- cluster_
name str - cluster name.
- id str
- pay_
mode str - pay mode.
- project_
id float - project id, default to 0, means default project.
- result_
output_ strfile - Used to save results.
- status str
- cluster status.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- id String
- pay
Mode String - pay mode.
- project
Id Number - project id, default to 0, means default project.
- result
Output StringFile - Used to save results.
- status String
- cluster status.
getTdcpgClusters Result
The following output properties are available:
- Id string
- Lists
List<Get
Tdcpg Clusters List> - cluster list.
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Pay
Mode string - pay mode.
- Project
Id double - project id.
- Result
Output stringFile - Status string
- status.
- Id string
- Lists
[]Get
Tdcpg Clusters List - cluster list.
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Pay
Mode string - pay mode.
- Project
Id float64 - project id.
- Result
Output stringFile - Status string
- status.
- id String
- lists
List<Get
Tdcpg Clusters List> - cluster list.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- pay
Mode String - pay mode.
- project
Id Double - project id.
- result
Output StringFile - status String
- status.
- id string
- lists
Get
Tdcpg Clusters List[] - cluster list.
- cluster
Id string - cluster id.
- cluster
Name string - cluster name.
- pay
Mode string - pay mode.
- project
Id number - project id.
- result
Output stringFile - status string
- status.
- id str
- lists
Sequence[Get
Tdcpg Clusters List] - cluster list.
- cluster_
id str - cluster id.
- cluster_
name str - cluster name.
- pay_
mode str - pay mode.
- project_
id float - project id.
- result_
output_ strfile - status str
- status.
- id String
- lists List<Property Map>
- cluster list.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- pay
Mode String - pay mode.
- project
Id Number - project id.
- result
Output StringFile - status String
- status.
Supporting Types
GetTdcpgClustersList
- Auto
Renew doubleFlag - auto renew flag.
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Create
Time string - create time.
- Db
Charset string - db charset.
- Db
Kernel stringVersion - db kernel version.
- Db
Major stringVersion - db major version.
- Db
Version string - db version.
- Endpoint
Sets List<GetTdcpg Clusters List Endpoint Set> - endpoint set.
- Instance
Count double - instance count.
- Pay
Mode string - pay mode.
- Pay
Period stringEnd Time - pay period expired time.
- Project
Id double - project id, default to 0, means default project.
- Region string
- region.
- Status string
- cluster status.
- Status
Desc string - status description.
- Storage
Limit double - storage limit, unit is GB.
- Storage
Pay stringMode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- Storage
Used double - storage used, unit is GB.
- Zone string
- zone.
- Auto
Renew float64Flag - auto renew flag.
- Cluster
Id string - cluster id.
- Cluster
Name string - cluster name.
- Create
Time string - create time.
- Db
Charset string - db charset.
- Db
Kernel stringVersion - db kernel version.
- Db
Major stringVersion - db major version.
- Db
Version string - db version.
- Endpoint
Sets []GetTdcpg Clusters List Endpoint Set - endpoint set.
- Instance
Count float64 - instance count.
- Pay
Mode string - pay mode.
- Pay
Period stringEnd Time - pay period expired time.
- Project
Id float64 - project id, default to 0, means default project.
- Region string
- region.
- Status string
- cluster status.
- Status
Desc string - status description.
- Storage
Limit float64 - storage limit, unit is GB.
- Storage
Pay stringMode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- Storage
Used float64 - storage used, unit is GB.
- Zone string
- zone.
- auto
Renew DoubleFlag - auto renew flag.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- create
Time String - create time.
- db
Charset String - db charset.
- db
Kernel StringVersion - db kernel version.
- db
Major StringVersion - db major version.
- db
Version String - db version.
- endpoint
Sets List<GetTdcpg Clusters List Endpoint Set> - endpoint set.
- instance
Count Double - instance count.
- pay
Mode String - pay mode.
- pay
Period StringEnd Time - pay period expired time.
- project
Id Double - project id, default to 0, means default project.
- region String
- region.
- status String
- cluster status.
- status
Desc String - status description.
- storage
Limit Double - storage limit, unit is GB.
- storage
Pay StringMode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- storage
Used Double - storage used, unit is GB.
- zone String
- zone.
- auto
Renew numberFlag - auto renew flag.
- cluster
Id string - cluster id.
- cluster
Name string - cluster name.
- create
Time string - create time.
- db
Charset string - db charset.
- db
Kernel stringVersion - db kernel version.
- db
Major stringVersion - db major version.
- db
Version string - db version.
- endpoint
Sets GetTdcpg Clusters List Endpoint Set[] - endpoint set.
- instance
Count number - instance count.
- pay
Mode string - pay mode.
- pay
Period stringEnd Time - pay period expired time.
- project
Id number - project id, default to 0, means default project.
- region string
- region.
- status string
- cluster status.
- status
Desc string - status description.
- storage
Limit number - storage limit, unit is GB.
- storage
Pay stringMode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- storage
Used number - storage used, unit is GB.
- zone string
- zone.
- auto_
renew_ floatflag - auto renew flag.
- cluster_
id str - cluster id.
- cluster_
name str - cluster name.
- create_
time str - create time.
- db_
charset str - db charset.
- db_
kernel_ strversion - db kernel version.
- db_
major_ strversion - db major version.
- db_
version str - db version.
- endpoint_
sets Sequence[GetTdcpg Clusters List Endpoint Set] - endpoint set.
- instance_
count float - instance count.
- pay_
mode str - pay mode.
- pay_
period_ strend_ time - pay period expired time.
- project_
id float - project id, default to 0, means default project.
- region str
- region.
- status str
- cluster status.
- status_
desc str - status description.
- storage_
limit float - storage limit, unit is GB.
- storage_
pay_ strmode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- storage_
used float - storage used, unit is GB.
- zone str
- zone.
- auto
Renew NumberFlag - auto renew flag.
- cluster
Id String - cluster id.
- cluster
Name String - cluster name.
- create
Time String - create time.
- db
Charset String - db charset.
- db
Kernel StringVersion - db kernel version.
- db
Major StringVersion - db major version.
- db
Version String - db version.
- endpoint
Sets List<Property Map> - endpoint set.
- instance
Count Number - instance count.
- pay
Mode String - pay mode.
- pay
Period StringEnd Time - pay period expired time.
- project
Id Number - project id, default to 0, means default project.
- region String
- region.
- status String
- cluster status.
- status
Desc String - status description.
- storage
Limit Number - storage limit, unit is GB.
- storage
Pay StringMode - storage pay mode, optional value is PREPAID or POSTPAID_BY_HOUR.
- storage
Used Number - storage used, unit is GB.
- zone String
- zone.
GetTdcpgClustersListEndpointSet
- Cluster
Id string - cluster id.
- Endpoint
Id string - endpoint id.
- Endpoint
Name string - endpoint name.
- Endpoint
Type string - endpoint type.
- Private
Ip string - private ip.
- Private
Port double - private port.
- Subnet
Id string - subnet id.
- Vpc
Id string - vpc id.
- Wan
Domain string - wan domain.
- Wan
Ip string - wan ip.
- Wan
Port double - wan port.
- Cluster
Id string - cluster id.
- Endpoint
Id string - endpoint id.
- Endpoint
Name string - endpoint name.
- Endpoint
Type string - endpoint type.
- Private
Ip string - private ip.
- Private
Port float64 - private port.
- Subnet
Id string - subnet id.
- Vpc
Id string - vpc id.
- Wan
Domain string - wan domain.
- Wan
Ip string - wan ip.
- Wan
Port float64 - wan port.
- cluster
Id String - cluster id.
- endpoint
Id String - endpoint id.
- endpoint
Name String - endpoint name.
- endpoint
Type String - endpoint type.
- private
Ip String - private ip.
- private
Port Double - private port.
- subnet
Id String - subnet id.
- vpc
Id String - vpc id.
- wan
Domain String - wan domain.
- wan
Ip String - wan ip.
- wan
Port Double - wan port.
- cluster
Id string - cluster id.
- endpoint
Id string - endpoint id.
- endpoint
Name string - endpoint name.
- endpoint
Type string - endpoint type.
- private
Ip string - private ip.
- private
Port number - private port.
- subnet
Id string - subnet id.
- vpc
Id string - vpc id.
- wan
Domain string - wan domain.
- wan
Ip string - wan ip.
- wan
Port number - wan port.
- cluster_
id str - cluster id.
- endpoint_
id str - endpoint id.
- endpoint_
name str - endpoint name.
- endpoint_
type str - endpoint type.
- private_
ip str - private ip.
- private_
port float - private port.
- subnet_
id str - subnet id.
- vpc_
id str - vpc id.
- wan_
domain str - wan domain.
- wan_
ip str - wan ip.
- wan_
port float - wan port.
- cluster
Id String - cluster id.
- endpoint
Id String - endpoint id.
- endpoint
Name String - endpoint name.
- endpoint
Type String - endpoint type.
- private
Ip String - private ip.
- private
Port Number - private port.
- subnet
Id String - subnet id.
- vpc
Id String - vpc id.
- wan
Domain String - wan domain.
- wan
Ip String - wan ip.
- wan
Port Number - wan port.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack