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

tencentcloud.getTdmqProInstances

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 tdmq pro_instances

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const proInstancesFilter = tencentcloud.getTdmqProInstances({
        filters: [{
            name: "InstanceName",
            values: ["keep"],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    pro_instances_filter = tencentcloud.get_tdmq_pro_instances(filters=[{
        "name": "InstanceName",
        "values": ["keep"],
    }])
    
    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.GetTdmqProInstances(ctx, &tencentcloud.GetTdmqProInstancesArgs{
    			Filters: []tencentcloud.GetTdmqProInstancesFilter{
    				{
    					Name: pulumi.StringRef("InstanceName"),
    					Values: []string{
    						"keep",
    					},
    				},
    			},
    		}, 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 proInstancesFilter = Tencentcloud.GetTdmqProInstances.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetTdmqProInstancesFilterInputArgs
                {
                    Name = "InstanceName",
                    Values = new[]
                    {
                        "keep",
                    },
                },
            },
        });
    
    });
    
    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.GetTdmqProInstancesArgs;
    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 proInstancesFilter = TencentcloudFunctions.getTdmqProInstances(GetTdmqProInstancesArgs.builder()
                .filters(GetTdmqProInstancesFilterArgs.builder()
                    .name("InstanceName")
                    .values("keep")
                    .build())
                .build());
    
        }
    }
    
    variables:
      proInstancesFilter:
        fn::invoke:
          function: tencentcloud:getTdmqProInstances
          arguments:
            filters:
              - name: InstanceName
                values:
                  - keep
    

    Using getTdmqProInstances

    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 getTdmqProInstances(args: GetTdmqProInstancesArgs, opts?: InvokeOptions): Promise<GetTdmqProInstancesResult>
    function getTdmqProInstancesOutput(args: GetTdmqProInstancesOutputArgs, opts?: InvokeOptions): Output<GetTdmqProInstancesResult>
    def get_tdmq_pro_instances(filters: Optional[Sequence[GetTdmqProInstancesFilter]] = None,
                               id: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetTdmqProInstancesResult
    def get_tdmq_pro_instances_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTdmqProInstancesFilterArgs]]]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               result_output_file: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetTdmqProInstancesResult]
    func GetTdmqProInstances(ctx *Context, args *GetTdmqProInstancesArgs, opts ...InvokeOption) (*GetTdmqProInstancesResult, error)
    func GetTdmqProInstancesOutput(ctx *Context, args *GetTdmqProInstancesOutputArgs, opts ...InvokeOption) GetTdmqProInstancesResultOutput

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

    public static class GetTdmqProInstances 
    {
        public static Task<GetTdmqProInstancesResult> InvokeAsync(GetTdmqProInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetTdmqProInstancesResult> Invoke(GetTdmqProInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTdmqProInstancesResult> getTdmqProInstances(GetTdmqProInstancesArgs args, InvokeOptions options)
    public static Output<GetTdmqProInstancesResult> getTdmqProInstances(GetTdmqProInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTdmqProInstances:getTdmqProInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetTdmqProInstancesFilter>
    query condition filter.
    Id string
    ResultOutputFile string
    Used to save results.
    Filters []GetTdmqProInstancesFilter
    query condition filter.
    Id string
    ResultOutputFile string
    Used to save results.
    filters List<GetTdmqProInstancesFilter>
    query condition filter.
    id String
    resultOutputFile String
    Used to save results.
    filters GetTdmqProInstancesFilter[]
    query condition filter.
    id string
    resultOutputFile string
    Used to save results.
    filters Sequence[GetTdmqProInstancesFilter]
    query condition filter.
    id str
    result_output_file str
    Used to save results.
    filters List<Property Map>
    query condition filter.
    id String
    resultOutputFile String
    Used to save results.

    getTdmqProInstances Result

    The following output properties are available:

    Supporting Types

    GetTdmqProInstancesFilter

    Name string
    The name of the filter parameter.
    Values List<string>
    value.
    Name string
    The name of the filter parameter.
    Values []string
    value.
    name String
    The name of the filter parameter.
    values List<String>
    value.
    name string
    The name of the filter parameter.
    values string[]
    value.
    name str
    The name of the filter parameter.
    values Sequence[str]
    value.
    name String
    The name of the filter parameter.
    values List<String>
    value.

    GetTdmqProInstancesInstance

    AutoRenewFlag double
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    ConfigDisplay string
    Instance configuration specification name.
    CreateTime string
    Create time.
    ExpireTime double
    Instance expiration time, in milliseconds.
    InstanceId string
    Instance ID.
    InstanceName string
    Instance name.
    InstanceVersion string
    Instance version.
    MaxBandWidth double
    Peak bandwidth. Unit: mbps.
    MaxStorage double
    Storage capacity, in GB.
    MaxTps double
    Peak TPS.
    PayMode double
    0-postpaid, 1-prepaid.
    Remark string
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    ScalableTps double
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    SpecName string
    Instance Configuration ID.
    Status double
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    SubnetId string
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    Tags List<GetTdmqProInstancesInstanceTag>
    Tag list.
    VpcId string
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.
    AutoRenewFlag float64
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    ConfigDisplay string
    Instance configuration specification name.
    CreateTime string
    Create time.
    ExpireTime float64
    Instance expiration time, in milliseconds.
    InstanceId string
    Instance ID.
    InstanceName string
    Instance name.
    InstanceVersion string
    Instance version.
    MaxBandWidth float64
    Peak bandwidth. Unit: mbps.
    MaxStorage float64
    Storage capacity, in GB.
    MaxTps float64
    Peak TPS.
    PayMode float64
    0-postpaid, 1-prepaid.
    Remark string
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    ScalableTps float64
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    SpecName string
    Instance Configuration ID.
    Status float64
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    SubnetId string
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    Tags []GetTdmqProInstancesInstanceTag
    Tag list.
    VpcId string
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.
    autoRenewFlag Double
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    configDisplay String
    Instance configuration specification name.
    createTime String
    Create time.
    expireTime Double
    Instance expiration time, in milliseconds.
    instanceId String
    Instance ID.
    instanceName String
    Instance name.
    instanceVersion String
    Instance version.
    maxBandWidth Double
    Peak bandwidth. Unit: mbps.
    maxStorage Double
    Storage capacity, in GB.
    maxTps Double
    Peak TPS.
    payMode Double
    0-postpaid, 1-prepaid.
    remark String
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    scalableTps Double
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    specName String
    Instance Configuration ID.
    status Double
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    subnetId String
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    tags List<GetTdmqProInstancesInstanceTag>
    Tag list.
    vpcId String
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.
    autoRenewFlag number
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    configDisplay string
    Instance configuration specification name.
    createTime string
    Create time.
    expireTime number
    Instance expiration time, in milliseconds.
    instanceId string
    Instance ID.
    instanceName string
    Instance name.
    instanceVersion string
    Instance version.
    maxBandWidth number
    Peak bandwidth. Unit: mbps.
    maxStorage number
    Storage capacity, in GB.
    maxTps number
    Peak TPS.
    payMode number
    0-postpaid, 1-prepaid.
    remark string
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    scalableTps number
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    specName string
    Instance Configuration ID.
    status number
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    subnetId string
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    tags GetTdmqProInstancesInstanceTag[]
    Tag list.
    vpcId string
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.
    auto_renew_flag float
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    config_display str
    Instance configuration specification name.
    create_time str
    Create time.
    expire_time float
    Instance expiration time, in milliseconds.
    instance_id str
    Instance ID.
    instance_name str
    Instance name.
    instance_version str
    Instance version.
    max_band_width float
    Peak bandwidth. Unit: mbps.
    max_storage float
    Storage capacity, in GB.
    max_tps float
    Peak TPS.
    pay_mode float
    0-postpaid, 1-prepaid.
    remark str
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    scalable_tps float
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    spec_name str
    Instance Configuration ID.
    status float
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    subnet_id str
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    tags Sequence[GetTdmqProInstancesInstanceTag]
    Tag list.
    vpc_id str
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.
    autoRenewFlag Number
    Automatic renewal mark, 0 indicates the default state (the user has not set it, that is, the initial state is manual renewal), 1 indicates automatic renewal, 2 indicates that the automatic renewal is not specified (user setting).
    configDisplay String
    Instance configuration specification name.
    createTime String
    Create time.
    expireTime Number
    Instance expiration time, in milliseconds.
    instanceId String
    Instance ID.
    instanceName String
    Instance name.
    instanceVersion String
    Instance version.
    maxBandWidth Number
    Peak bandwidth. Unit: mbps.
    maxStorage Number
    Storage capacity, in GB.
    maxTps Number
    Peak TPS.
    payMode Number
    0-postpaid, 1-prepaid.
    remark String
    RemarksNote: This field may return null, indicating that no valid value can be obtained.
    scalableTps Number
    Elastic TPS outside specificationNote: This field may return null, indicating that no valid value can be obtained.
    specName String
    Instance Configuration ID.
    status Number
    Instance status, 0-creating, 1-normal, 2-isolating, 3-destroyed, 4-abnormal, 5-delivery failure, 6-allocation change, 7-allocation failure.
    subnetId String
    Subnet idNote: This field may return null, indicating that no valid value can be obtained.
    tags List<Property Map>
    Tag list.
    vpcId String
    Id of the VPCNote: This field may return null, indicating that no valid value can be obtained.

    GetTdmqProInstancesInstanceTag

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    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