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

tencentcloud.getDcdbShardSpec

Explore with Pulumi AI

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

    Use this data source to query detailed information of dcdb shard_spec

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const shardSpec = tencentcloud.getDcdbShardSpec({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    shard_spec = tencentcloud.get_dcdb_shard_spec()
    
    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.GetDcdbShardSpec(ctx, &tencentcloud.GetDcdbShardSpecArgs{}, 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 shardSpec = Tencentcloud.GetDcdbShardSpec.Invoke();
    
    });
    
    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.GetDcdbShardSpecArgs;
    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 shardSpec = TencentcloudFunctions.getDcdbShardSpec();
    
        }
    }
    
    variables:
      shardSpec:
        fn::invoke:
          function: tencentcloud:getDcdbShardSpec
          arguments: {}
    

    Using getDcdbShardSpec

    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 getDcdbShardSpec(args: GetDcdbShardSpecArgs, opts?: InvokeOptions): Promise<GetDcdbShardSpecResult>
    function getDcdbShardSpecOutput(args: GetDcdbShardSpecOutputArgs, opts?: InvokeOptions): Output<GetDcdbShardSpecResult>
    def get_dcdb_shard_spec(id: Optional[str] = None,
                            result_output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDcdbShardSpecResult
    def get_dcdb_shard_spec_output(id: Optional[pulumi.Input[str]] = None,
                            result_output_file: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDcdbShardSpecResult]
    func GetDcdbShardSpec(ctx *Context, args *GetDcdbShardSpecArgs, opts ...InvokeOption) (*GetDcdbShardSpecResult, error)
    func GetDcdbShardSpecOutput(ctx *Context, args *GetDcdbShardSpecOutputArgs, opts ...InvokeOption) GetDcdbShardSpecResultOutput

    > Note: This function is named GetDcdbShardSpec in the Go SDK.

    public static class GetDcdbShardSpec 
    {
        public static Task<GetDcdbShardSpecResult> InvokeAsync(GetDcdbShardSpecArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbShardSpecResult> Invoke(GetDcdbShardSpecInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbShardSpecResult> getDcdbShardSpec(GetDcdbShardSpecArgs args, InvokeOptions options)
    public static Output<GetDcdbShardSpecResult> getDcdbShardSpec(GetDcdbShardSpecArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbShardSpec:getDcdbShardSpec
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbShardSpec Result

    The following output properties are available:

    Id string
    SpecConfigs List<GetDcdbShardSpecSpecConfig>
    list of instance specifications.
    ResultOutputFile string
    Id string
    SpecConfigs []GetDcdbShardSpecSpecConfig
    list of instance specifications.
    ResultOutputFile string
    id String
    specConfigs List<GetDcdbShardSpecSpecConfig>
    list of instance specifications.
    resultOutputFile String
    id string
    specConfigs GetDcdbShardSpecSpecConfig[]
    list of instance specifications.
    resultOutputFile string
    id String
    specConfigs List<Property Map>
    list of instance specifications.
    resultOutputFile String

    Supporting Types

    GetDcdbShardSpecSpecConfig

    Machine string
    machine type.
    SpecConfigInfos List<GetDcdbShardSpecSpecConfigSpecConfigInfo>
    list of machine specifications.
    Machine string
    machine type.
    SpecConfigInfos []GetDcdbShardSpecSpecConfigSpecConfigInfo
    list of machine specifications.
    machine String
    machine type.
    specConfigInfos List<GetDcdbShardSpecSpecConfigSpecConfigInfo>
    list of machine specifications.
    machine string
    machine type.
    specConfigInfos GetDcdbShardSpecSpecConfigSpecConfigInfo[]
    list of machine specifications.
    machine String
    machine type.
    specConfigInfos List<Property Map>
    list of machine specifications.

    GetDcdbShardSpecSpecConfigSpecConfigInfo

    Cpu double
    CPU cores.
    MaxStorage double
    maximum storage size, inGB.
    Memory double
    memory, in GB.
    MinStorage double
    minimum storage size, in GB.
    NodeCount double
    node count.
    Pid double
    product price id.
    Qps double
    maximum QPS.
    SuitInfo string
    recommended usage scenarios.
    Cpu float64
    CPU cores.
    MaxStorage float64
    maximum storage size, inGB.
    Memory float64
    memory, in GB.
    MinStorage float64
    minimum storage size, in GB.
    NodeCount float64
    node count.
    Pid float64
    product price id.
    Qps float64
    maximum QPS.
    SuitInfo string
    recommended usage scenarios.
    cpu Double
    CPU cores.
    maxStorage Double
    maximum storage size, inGB.
    memory Double
    memory, in GB.
    minStorage Double
    minimum storage size, in GB.
    nodeCount Double
    node count.
    pid Double
    product price id.
    qps Double
    maximum QPS.
    suitInfo String
    recommended usage scenarios.
    cpu number
    CPU cores.
    maxStorage number
    maximum storage size, inGB.
    memory number
    memory, in GB.
    minStorage number
    minimum storage size, in GB.
    nodeCount number
    node count.
    pid number
    product price id.
    qps number
    maximum QPS.
    suitInfo string
    recommended usage scenarios.
    cpu float
    CPU cores.
    max_storage float
    maximum storage size, inGB.
    memory float
    memory, in GB.
    min_storage float
    minimum storage size, in GB.
    node_count float
    node count.
    pid float
    product price id.
    qps float
    maximum QPS.
    suit_info str
    recommended usage scenarios.
    cpu Number
    CPU cores.
    maxStorage Number
    maximum storage size, inGB.
    memory Number
    memory, in GB.
    minStorage Number
    minimum storage size, in GB.
    nodeCount Number
    node count.
    pid Number
    product price id.
    qps Number
    maximum QPS.
    suitInfo String
    recommended usage scenarios.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack