tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
Use this data source to query detailed information of tdmqRocketmq role
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cluster = new tencentcloud.TdmqRocketmqCluster("cluster", {
clusterName: "test_rocketmq_datasource_role",
remark: "test recket mq",
});
const roleTdmqRocketmqRole = new tencentcloud.TdmqRocketmqRole("role", {
roleName: "test_rocketmq_role",
remark: "test rocketmq role",
clusterId: cluster.clusterId,
});
const role = tencentcloud.getTdmqRocketmqRoleOutput({
roleName: roleTdmqRocketmqRole.roleName,
clusterId: cluster.clusterId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cluster = tencentcloud.TdmqRocketmqCluster("cluster",
cluster_name="test_rocketmq_datasource_role",
remark="test recket mq")
role_tdmq_rocketmq_role = tencentcloud.TdmqRocketmqRole("role",
role_name="test_rocketmq_role",
remark="test rocketmq role",
cluster_id=cluster.cluster_id)
role = tencentcloud.get_tdmq_rocketmq_role_output(role_name=role_tdmq_rocketmq_role.role_name,
cluster_id=cluster.cluster_id)
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 {
cluster, err := tencentcloud.NewTdmqRocketmqCluster(ctx, "cluster", &tencentcloud.TdmqRocketmqClusterArgs{
ClusterName: pulumi.String("test_rocketmq_datasource_role"),
Remark: pulumi.String("test recket mq"),
})
if err != nil {
return err
}
roleTdmqRocketmqRole, err := tencentcloud.NewTdmqRocketmqRole(ctx, "role", &tencentcloud.TdmqRocketmqRoleArgs{
RoleName: pulumi.String("test_rocketmq_role"),
Remark: pulumi.String("test rocketmq role"),
ClusterId: cluster.ClusterId,
})
if err != nil {
return err
}
_ = tencentcloud.LookupTdmqRocketmqRoleOutput(ctx, tencentcloud.GetTdmqRocketmqRoleOutputArgs{
RoleName: roleTdmqRocketmqRole.RoleName,
ClusterId: cluster.ClusterId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var cluster = new Tencentcloud.TdmqRocketmqCluster("cluster", new()
{
ClusterName = "test_rocketmq_datasource_role",
Remark = "test recket mq",
});
var roleTdmqRocketmqRole = new Tencentcloud.TdmqRocketmqRole("role", new()
{
RoleName = "test_rocketmq_role",
Remark = "test rocketmq role",
ClusterId = cluster.ClusterId,
});
var role = Tencentcloud.GetTdmqRocketmqRole.Invoke(new()
{
RoleName = roleTdmqRocketmqRole.RoleName,
ClusterId = cluster.ClusterId,
});
});
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.TdmqRocketmqRole;
import com.pulumi.tencentcloud.TdmqRocketmqRoleArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTdmqRocketmqRoleArgs;
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 cluster = new TdmqRocketmqCluster("cluster", TdmqRocketmqClusterArgs.builder()
.clusterName("test_rocketmq_datasource_role")
.remark("test recket mq")
.build());
var roleTdmqRocketmqRole = new TdmqRocketmqRole("roleTdmqRocketmqRole", TdmqRocketmqRoleArgs.builder()
.roleName("test_rocketmq_role")
.remark("test rocketmq role")
.clusterId(cluster.clusterId())
.build());
final var role = TencentcloudFunctions.getTdmqRocketmqRole(GetTdmqRocketmqRoleArgs.builder()
.roleName(roleTdmqRocketmqRole.roleName())
.clusterId(cluster.clusterId())
.build());
}
}
resources:
cluster:
type: tencentcloud:TdmqRocketmqCluster
properties:
clusterName: test_rocketmq_datasource_role
remark: test recket mq
roleTdmqRocketmqRole:
type: tencentcloud:TdmqRocketmqRole
name: role
properties:
roleName: test_rocketmq_role
remark: test rocketmq role
clusterId: ${cluster.clusterId}
variables:
role:
fn::invoke:
function: tencentcloud:getTdmqRocketmqRole
arguments:
roleName: ${roleTdmqRocketmqRole.roleName}
clusterId: ${cluster.clusterId}
Using getTdmqRocketmqRole
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 getTdmqRocketmqRole(args: GetTdmqRocketmqRoleArgs, opts?: InvokeOptions): Promise<GetTdmqRocketmqRoleResult>
function getTdmqRocketmqRoleOutput(args: GetTdmqRocketmqRoleOutputArgs, opts?: InvokeOptions): Output<GetTdmqRocketmqRoleResult>def get_tdmq_rocketmq_role(cluster_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
role_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTdmqRocketmqRoleResult
def get_tdmq_rocketmq_role_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
role_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTdmqRocketmqRoleResult]func LookupTdmqRocketmqRole(ctx *Context, args *LookupTdmqRocketmqRoleArgs, opts ...InvokeOption) (*LookupTdmqRocketmqRoleResult, error)
func LookupTdmqRocketmqRoleOutput(ctx *Context, args *LookupTdmqRocketmqRoleOutputArgs, opts ...InvokeOption) LookupTdmqRocketmqRoleResultOutput> Note: This function is named LookupTdmqRocketmqRole in the Go SDK.
public static class GetTdmqRocketmqRole
{
public static Task<GetTdmqRocketmqRoleResult> InvokeAsync(GetTdmqRocketmqRoleArgs args, InvokeOptions? opts = null)
public static Output<GetTdmqRocketmqRoleResult> Invoke(GetTdmqRocketmqRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTdmqRocketmqRoleResult> getTdmqRocketmqRole(GetTdmqRocketmqRoleArgs args, InvokeOptions options)
public static Output<GetTdmqRocketmqRoleResult> getTdmqRocketmqRole(GetTdmqRocketmqRoleArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTdmqRocketmqRole:getTdmqRocketmqRole
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID (required).
- Id string
- Result
Output stringFile - Used to save results.
- Role
Name string - Fuzzy query by role name.
- Cluster
Id string - Cluster ID (required).
- Id string
- Result
Output stringFile - Used to save results.
- Role
Name string - Fuzzy query by role name.
- cluster
Id String - Cluster ID (required).
- id String
- result
Output StringFile - Used to save results.
- role
Name String - Fuzzy query by role name.
- cluster
Id string - Cluster ID (required).
- id string
- result
Output stringFile - Used to save results.
- role
Name string - Fuzzy query by role name.
- cluster_
id str - Cluster ID (required).
- id str
- result_
output_ strfile - Used to save results.
- role_
name str - Fuzzy query by role name.
- cluster
Id String - Cluster ID (required).
- id String
- result
Output StringFile - Used to save results.
- role
Name String - Fuzzy query by role name.
getTdmqRocketmqRole Result
The following output properties are available:
- Cluster
Id string - Id string
- Role
Sets List<GetTdmq Rocketmq Role Role Set> - Array of roles.
- Result
Output stringFile - Role
Name string - Role name.
- Cluster
Id string - Id string
- Role
Sets []GetTdmq Rocketmq Role Role Set - Array of roles.
- Result
Output stringFile - Role
Name string - Role name.
- cluster
Id String - id String
- role
Sets List<GetTdmq Rocketmq Role Role Set> - Array of roles.
- result
Output StringFile - role
Name String - Role name.
- cluster
Id string - id string
- role
Sets GetTdmq Rocketmq Role Role Set[] - Array of roles.
- result
Output stringFile - role
Name string - Role name.
- cluster_
id str - id str
- role_
sets Sequence[GetTdmq Rocketmq Role Role Set] - Array of roles.
- result_
output_ strfile - role_
name str - Role name.
- cluster
Id String - id String
- role
Sets List<Property Map> - Array of roles.
- result
Output StringFile - role
Name String - Role name.
Supporting Types
GetTdmqRocketmqRoleRoleSet
- Create
Time string - Creation time.
- Remark string
- Remarks.
- Role
Name string - Fuzzy query by role name.
- Token string
- Value of the role token.
- Update
Time string - Update time.
- Create
Time string - Creation time.
- Remark string
- Remarks.
- Role
Name string - Fuzzy query by role name.
- Token string
- Value of the role token.
- Update
Time string - Update time.
- create
Time String - Creation time.
- remark String
- Remarks.
- role
Name String - Fuzzy query by role name.
- token String
- Value of the role token.
- update
Time String - Update time.
- create
Time string - Creation time.
- remark string
- Remarks.
- role
Name string - Fuzzy query by role name.
- token string
- Value of the role token.
- update
Time string - Update time.
- create_
time str - Creation time.
- remark str
- Remarks.
- role_
name str - Fuzzy query by role name.
- token str
- Value of the role token.
- update_
time str - Update time.
- create
Time String - Creation time.
- remark String
- Remarks.
- role
Name String - Fuzzy query by role name.
- token String
- Value of the role token.
- update
Time String - Update time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
