tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTdmqRocketmqNamespace
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 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:
- Cluster
Id string - Cluster ID.
- Id string
- Name
Keyword string - Search by name.
- Result
Output stringFile - Used to save results.
- Cluster
Id string - Cluster ID.
- Id string
- Name
Keyword string - Search by name.
- Result
Output stringFile - Used to save results.
- cluster
Id String - Cluster ID.
- id String
- name
Keyword String - Search by name.
- result
Output StringFile - Used to save results.
- cluster
Id string - Cluster ID.
- id string
- name
Keyword string - Search by name.
- result
Output stringFile - Used to save results.
- cluster_
id str - Cluster ID.
- id str
- name_
keyword str - Search by name.
- result_
output_ strfile - Used to save results.
- cluster
Id String - Cluster ID.
- id String
- name
Keyword String - Search by name.
- result
Output StringFile - Used to save results.
getTdmqRocketmqNamespace Result
The following output properties are available:
- Cluster
Id string - Id string
- Namespaces
List<Get
Tdmq Rocketmq Namespace Namespace> - List of namespaces.
- Name
Keyword string - Result
Output stringFile
- Cluster
Id string - Id string
- Namespaces
[]Get
Tdmq Rocketmq Namespace Namespace - List of namespaces.
- Name
Keyword string - Result
Output stringFile
- cluster
Id String - id String
- namespaces
List<Get
Tdmq Rocketmq Namespace Namespace> - List of namespaces.
- name
Keyword String - result
Output StringFile
- cluster
Id string - id string
- namespaces
Get
Tdmq Rocketmq Namespace Namespace[] - List of namespaces.
- name
Keyword string - result
Output stringFile
- cluster_
id str - id str
- namespaces
Sequence[Get
Tdmq Rocketmq Namespace Namespace] - List of namespaces.
- name_
keyword str - result_
output_ strfile
- cluster
Id String - id String
- namespaces List<Property Map>
- List of namespaces.
- name
Keyword String - result
Output StringFile
Supporting Types
GetTdmqRocketmqNamespaceNamespace
- Namespace
Id string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Public
Endpoint string - Public network access point address.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time double - Retention time of persisted messages in milliseconds.
- Ttl double
- Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
- Vpc
Endpoint string - VPC access point address.
- Namespace
Id string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Public
Endpoint string - Public network access point address.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time float64 - Retention time of persisted messages in milliseconds.
- Ttl float64
- Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
- Vpc
Endpoint string - VPC access point address.
- namespace
Id String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint String - Public network access point address.
- remark String
- Remarks (up to 128 characters).
- retention
Time Double - Retention time of persisted messages in milliseconds.
- ttl Double
- Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
- vpc
Endpoint String - VPC access point address.
- namespace
Id string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint string - Public network access point address.
- remark string
- Remarks (up to 128 characters).
- retention
Time number - Retention time of persisted messages in milliseconds.
- ttl number
- Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
- vpc
Endpoint 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.
- namespace
Id String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint String - Public network access point address.
- remark String
- Remarks (up to 128 characters).
- retention
Time Number - Retention time of persisted messages in milliseconds.
- ttl Number
- Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.
- vpc
Endpoint 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack