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

tencentcloud.getTdmqRocketmqNamespace

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 tdmqRocketmq namespace

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleTdmqRocketmqCluster = new tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", {
        clusterName: "tf_example",
        remark: "remark.",
    });
    const exampleTdmqRocketmqNamespace = tencentcloud.getTdmqRocketmqNamespaceOutput({
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        nameKeyword: exampleIndex / tdmqRocketmqNamespaceTdmqRocketmqNamespace.namespaceName,
    });
    const exampleIndex_tdmqRocketmqNamespaceTdmqRocketmqNamespace = new tencentcloud.TdmqRocketmqNamespace("exampleIndex/tdmqRocketmqNamespaceTdmqRocketmqNamespace", {
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        namespaceName: "tf_example",
        remark: "remark.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_tdmq_rocketmq_cluster = tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster",
        cluster_name="tf_example",
        remark="remark.")
    example_tdmq_rocketmq_namespace = tencentcloud.get_tdmq_rocketmq_namespace_output(cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        name_keyword=example_index / tdmq_rocketmq_namespace_tdmq_rocketmq_namespace["namespaceName"])
    example_index_tdmq_rocketmq_namespace_tdmq_rocketmq_namespace = tencentcloud.TdmqRocketmqNamespace("exampleIndex/tdmqRocketmqNamespaceTdmqRocketmqNamespace",
        cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        namespace_name="tf_example",
        remark="remark.")
    
    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 {
    		exampleTdmqRocketmqCluster, err := tencentcloud.NewTdmqRocketmqCluster(ctx, "exampleTdmqRocketmqCluster", &tencentcloud.TdmqRocketmqClusterArgs{
    			ClusterName: pulumi.String("tf_example"),
    			Remark:      pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.LookupTdmqRocketmqNamespaceOutput(ctx, tencentcloud.GetTdmqRocketmqNamespaceOutputArgs{
    			ClusterId:   exampleTdmqRocketmqCluster.ClusterId,
    			NameKeyword: pulumi.String(exampleIndex / tdmqRocketmqNamespaceTdmqRocketmqNamespace.NamespaceName),
    		}, nil)
    		_, err = tencentcloud.NewTdmqRocketmqNamespace(ctx, "exampleIndex/tdmqRocketmqNamespaceTdmqRocketmqNamespace", &tencentcloud.TdmqRocketmqNamespaceArgs{
    			ClusterId:     exampleTdmqRocketmqCluster.ClusterId,
    			NamespaceName: pulumi.String("tf_example"),
    			Remark:        pulumi.String("remark."),
    		})
    		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 exampleTdmqRocketmqCluster = new Tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", new()
        {
            ClusterName = "tf_example",
            Remark = "remark.",
        });
    
        var exampleTdmqRocketmqNamespace = Tencentcloud.GetTdmqRocketmqNamespace.Invoke(new()
        {
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            NameKeyword = exampleIndex / tdmqRocketmqNamespaceTdmqRocketmqNamespace.NamespaceName,
        });
    
        var exampleIndex_tdmqRocketmqNamespaceTdmqRocketmqNamespace = new Tencentcloud.TdmqRocketmqNamespace("exampleIndex/tdmqRocketmqNamespaceTdmqRocketmqNamespace", new()
        {
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            NamespaceName = "tf_example",
            Remark = "remark.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TdmqRocketmqCluster;
    import com.pulumi.tencentcloud.TdmqRocketmqClusterArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetTdmqRocketmqNamespaceArgs;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespace;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespaceArgs;
    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 exampleTdmqRocketmqCluster = new TdmqRocketmqCluster("exampleTdmqRocketmqCluster", TdmqRocketmqClusterArgs.builder()
                .clusterName("tf_example")
                .remark("remark.")
                .build());
    
            final var exampleTdmqRocketmqNamespace = TencentcloudFunctions.getTdmqRocketmqNamespace(GetTdmqRocketmqNamespaceArgs.builder()
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .nameKeyword(exampleIndex / tdmqRocketmqNamespaceTdmqRocketmqNamespace.namespaceName())
                .build());
    
            var exampleIndex_tdmqRocketmqNamespaceTdmqRocketmqNamespace = new TdmqRocketmqNamespace("exampleIndex/tdmqRocketmqNamespaceTdmqRocketmqNamespace", TdmqRocketmqNamespaceArgs.builder()
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .namespaceName("tf_example")
                .remark("remark.")
                .build());
    
        }
    }
    
    Coming soon!
    

    Using getTdmqRocketmqNamespace

    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 getTdmqRocketmqNamespace(args: GetTdmqRocketmqNamespaceArgs, opts?: InvokeOptions): Promise<GetTdmqRocketmqNamespaceResult>
    function getTdmqRocketmqNamespaceOutput(args: GetTdmqRocketmqNamespaceOutputArgs, opts?: InvokeOptions): Output<GetTdmqRocketmqNamespaceResult>
    def get_tdmq_rocketmq_namespace(cluster_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    name_keyword: Optional[str] = None,
                                    result_output_file: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetTdmqRocketmqNamespaceResult
    def get_tdmq_rocketmq_namespace_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    name_keyword: Optional[pulumi.Input[str]] = None,
                                    result_output_file: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetTdmqRocketmqNamespaceResult]
    func LookupTdmqRocketmqNamespace(ctx *Context, args *LookupTdmqRocketmqNamespaceArgs, opts ...InvokeOption) (*LookupTdmqRocketmqNamespaceResult, error)
    func LookupTdmqRocketmqNamespaceOutput(ctx *Context, args *LookupTdmqRocketmqNamespaceOutputArgs, opts ...InvokeOption) LookupTdmqRocketmqNamespaceResultOutput

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

    public static class GetTdmqRocketmqNamespace 
    {
        public static Task<GetTdmqRocketmqNamespaceResult> InvokeAsync(GetTdmqRocketmqNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetTdmqRocketmqNamespaceResult> Invoke(GetTdmqRocketmqNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTdmqRocketmqNamespaceResult> getTdmqRocketmqNamespace(GetTdmqRocketmqNamespaceArgs args, InvokeOptions options)
    public static Output<GetTdmqRocketmqNamespaceResult> getTdmqRocketmqNamespace(GetTdmqRocketmqNamespaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTdmqRocketmqNamespace:getTdmqRocketmqNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID.
    Id string
    NameKeyword string
    Search by name.
    ResultOutputFile string
    Used to save results.
    ClusterId string
    Cluster ID.
    Id string
    NameKeyword string
    Search by name.
    ResultOutputFile string
    Used to save results.
    clusterId String
    Cluster ID.
    id String
    nameKeyword String
    Search by name.
    resultOutputFile String
    Used to save results.
    clusterId string
    Cluster ID.
    id string
    nameKeyword string
    Search by name.
    resultOutputFile string
    Used to save results.
    cluster_id str
    Cluster ID.
    id str
    name_keyword str
    Search by name.
    result_output_file str
    Used to save results.
    clusterId String
    Cluster ID.
    id String
    nameKeyword String
    Search by name.
    resultOutputFile String
    Used to save results.

    getTdmqRocketmqNamespace Result

    The following output properties are available:

    clusterId String
    id String
    namespaces List<Property Map>
    List of namespaces.
    nameKeyword String
    resultOutputFile String

    Supporting Types

    GetTdmqRocketmqNamespaceNamespace

    NamespaceId string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    PublicEndpoint string
    Public network access point address.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime double
    Retention time of persisted messages in milliseconds.
    Ttl double
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    VpcEndpoint string
    VPC access point address.
    NamespaceId string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    PublicEndpoint string
    Public network access point address.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime float64
    Retention time of persisted messages in milliseconds.
    Ttl float64
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    VpcEndpoint string
    VPC access point address.
    namespaceId String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint String
    Public network access point address.
    remark String
    Remarks (up to 128 characters).
    retentionTime Double
    Retention time of persisted messages in milliseconds.
    ttl Double
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    vpcEndpoint String
    VPC access point address.
    namespaceId string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint string
    Public network access point address.
    remark string
    Remarks (up to 128 characters).
    retentionTime number
    Retention time of persisted messages in milliseconds.
    ttl number
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    vpcEndpoint string
    VPC access point address.
    namespace_id str
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    public_endpoint str
    Public network access point address.
    remark str
    Remarks (up to 128 characters).
    retention_time float
    Retention time of persisted messages in milliseconds.
    ttl float
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    vpc_endpoint str
    VPC access point address.
    namespaceId String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint String
    Public network access point address.
    remark String
    Remarks (up to 128 characters).
    retentionTime Number
    Retention time of persisted messages in milliseconds.
    ttl Number
    Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
    vpcEndpoint String
    VPC access point address.

    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