Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of rocketmq topics
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.rocketmq.getTopics({
instanceId: "rocketmq-cnoeea6b32118fc2",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.rocketmq.get_topics(instance_id="rocketmq-cnoeea6b32118fc2")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rocketmq"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rocketmq.GetTopics(ctx, &rocketmq.GetTopicsArgs{
InstanceId: "rocketmq-cnoeea6b32118fc2",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Rocketmq.GetTopics.Invoke(new()
{
InstanceId = "rocketmq-cnoeea6b32118fc2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rocketmq.RocketmqFunctions;
import com.pulumi.volcengine.rocketmq.inputs.GetTopicsArgs;
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 foo = RocketmqFunctions.getTopics(GetTopicsArgs.builder()
.instanceId("rocketmq-cnoeea6b32118fc2")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:rocketmq:getTopics
Arguments:
instanceId: rocketmq-cnoeea6b32118fc2
Using getTopics
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 getTopics(args: GetTopicsArgs, opts?: InvokeOptions): Promise<GetTopicsResult>
function getTopicsOutput(args: GetTopicsOutputArgs, opts?: InvokeOptions): Output<GetTopicsResult>def get_topics(instance_id: Optional[str] = None,
message_type: Optional[int] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
topic_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTopicsResult
def get_topics_output(instance_id: Optional[pulumi.Input[str]] = None,
message_type: Optional[pulumi.Input[int]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTopicsResult]func GetTopics(ctx *Context, args *GetTopicsArgs, opts ...InvokeOption) (*GetTopicsResult, error)
func GetTopicsOutput(ctx *Context, args *GetTopicsOutputArgs, opts ...InvokeOption) GetTopicsResultOutput> Note: This function is named GetTopics in the Go SDK.
public static class GetTopics
{
public static Task<GetTopicsResult> InvokeAsync(GetTopicsArgs args, InvokeOptions? opts = null)
public static Output<GetTopicsResult> Invoke(GetTopicsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTopicsResult> getTopics(GetTopicsArgs args, InvokeOptions options)
public static Output<GetTopicsResult> getTopics(GetTopicsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rocketmq/getTopics:getTopics
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - The id of rocketmq instance.
- Message
Type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- Instance
Id string - The id of rocketmq instance.
- Message
Type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- instance
Id String - The id of rocketmq instance.
- message
Type Integer - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- topic
Name String - The name of the rocketmq topic. This field support fuzzy query.
- instance
Id string - The id of rocketmq instance.
- message
Type number - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- instance_
id str - The id of rocketmq instance.
- message_
type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- topic_
name str - The name of the rocketmq topic. This field support fuzzy query.
- instance
Id String - The id of rocketmq instance.
- message
Type Number - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- topic
Name String - The name of the rocketmq topic. This field support fuzzy query.
getTopics Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The id of rocketmq instance.
- Rocketmq
Topics List<GetTopics Rocketmq Topic> - The collection of query.
- Total
Count int - The total count of query.
- Message
Type int - The type of the rocketmq message.
- Name
Regex string - Output
File string - Topic
Name string - The name of the rocketmq topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - The id of rocketmq instance.
- Rocketmq
Topics []GetTopics Rocketmq Topic - The collection of query.
- Total
Count int - The total count of query.
- Message
Type int - The type of the rocketmq message.
- Name
Regex string - Output
File string - Topic
Name string - The name of the rocketmq topic.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The id of rocketmq instance.
- rocketmq
Topics List<GetTopics Rocketmq Topic> - The collection of query.
- total
Count Integer - The total count of query.
- message
Type Integer - The type of the rocketmq message.
- name
Regex String - output
File String - topic
Name String - The name of the rocketmq topic.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - The id of rocketmq instance.
- rocketmq
Topics GetTopics Rocketmq Topic[] - The collection of query.
- total
Count number - The total count of query.
- message
Type number - The type of the rocketmq message.
- name
Regex string - output
File string - topic
Name string - The name of the rocketmq topic.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - The id of rocketmq instance.
- rocketmq_
topics Sequence[GetTopics Rocketmq Topic] - The collection of query.
- total_
count int - The total count of query.
- message_
type int - The type of the rocketmq message.
- name_
regex str - output_
file str - topic_
name str - The name of the rocketmq topic.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - The id of rocketmq instance.
- rocketmq
Topics List<Property Map> - The collection of query.
- total
Count Number - The total count of query.
- message
Type Number - The type of the rocketmq message.
- name
Regex String - output
File String - topic
Name String - The name of the rocketmq topic.
Supporting Types
GetTopicsRocketmqTopic
- Access
Policies List<GetTopics Rocketmq Topic Access Policy> - The access policies of the rocketmq topic.
- Create
Time string - The create time of the rocketmq topic.
- Description string
- The description of the rocketmq topic.
- Groups
List<Get
Topics Rocketmq Topic Group> - The groups information of the rocketmq topic.
- Instance
Id string - The id of rocketmq instance.
- Message
Type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- Queue
Number int - The number of the rocketmq topic queue.
- Queues
List<Get
Topics Rocketmq Topic Queue> - The queues information of the rocketmq topic.
- Topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- Access
Policies []GetTopics Rocketmq Topic Access Policy - The access policies of the rocketmq topic.
- Create
Time string - The create time of the rocketmq topic.
- Description string
- The description of the rocketmq topic.
- Groups
[]Get
Topics Rocketmq Topic Group - The groups information of the rocketmq topic.
- Instance
Id string - The id of rocketmq instance.
- Message
Type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- Queue
Number int - The number of the rocketmq topic queue.
- Queues
[]Get
Topics Rocketmq Topic Queue - The queues information of the rocketmq topic.
- Topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- access
Policies List<GetTopics Rocketmq Topic Access Policy> - The access policies of the rocketmq topic.
- create
Time String - The create time of the rocketmq topic.
- description String
- The description of the rocketmq topic.
- groups
List<Get
Topics Rocketmq Topic Group> - The groups information of the rocketmq topic.
- instance
Id String - The id of rocketmq instance.
- message
Type Integer - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- queue
Number Integer - The number of the rocketmq topic queue.
- queues
List<Get
Topics Rocketmq Topic Queue> - The queues information of the rocketmq topic.
- topic
Name String - The name of the rocketmq topic. This field support fuzzy query.
- access
Policies GetTopics Rocketmq Topic Access Policy[] - The access policies of the rocketmq topic.
- create
Time string - The create time of the rocketmq topic.
- description string
- The description of the rocketmq topic.
- groups
Get
Topics Rocketmq Topic Group[] - The groups information of the rocketmq topic.
- instance
Id string - The id of rocketmq instance.
- message
Type number - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- queue
Number number - The number of the rocketmq topic queue.
- queues
Get
Topics Rocketmq Topic Queue[] - The queues information of the rocketmq topic.
- topic
Name string - The name of the rocketmq topic. This field support fuzzy query.
- access_
policies Sequence[GetTopics Rocketmq Topic Access Policy] - The access policies of the rocketmq topic.
- create_
time str - The create time of the rocketmq topic.
- description str
- The description of the rocketmq topic.
- groups
Sequence[Get
Topics Rocketmq Topic Group] - The groups information of the rocketmq topic.
- instance_
id str - The id of rocketmq instance.
- message_
type int - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- queue_
number int - The number of the rocketmq topic queue.
- queues
Sequence[Get
Topics Rocketmq Topic Queue] - The queues information of the rocketmq topic.
- topic_
name str - The name of the rocketmq topic. This field support fuzzy query.
- access
Policies List<Property Map> - The access policies of the rocketmq topic.
- create
Time String - The create time of the rocketmq topic.
- description String
- The description of the rocketmq topic.
- groups List<Property Map>
- The groups information of the rocketmq topic.
- instance
Id String - The id of rocketmq instance.
- message
Type Number - The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows: 0: Regular message 1: Transaction message 2: Partition order message 3: Global sequential message 4: Delay message.
- queue
Number Number - The number of the rocketmq topic queue.
- queues List<Property Map>
- The queues information of the rocketmq topic.
- topic
Name String - The name of the rocketmq topic. This field support fuzzy query.
GetTopicsRocketmqTopicAccessPolicy
- Access
Key string - The access key of the rocketmq key.
- string
- The authority of the rocketmq key for the current topic.
- Access
Key string - The access key of the rocketmq key.
- string
- The authority of the rocketmq key for the current topic.
- access
Key String - The access key of the rocketmq key.
- String
- The authority of the rocketmq key for the current topic.
- access
Key string - The access key of the rocketmq key.
- string
- The authority of the rocketmq key for the current topic.
- access_
key str - The access key of the rocketmq key.
- str
- The authority of the rocketmq key for the current topic.
- access
Key String - The access key of the rocketmq key.
- String
- The authority of the rocketmq key for the current topic.
GetTopicsRocketmqTopicGroup
- Group
Id string - The id of the rocketmq group.
- Message
Model string - The message model of the rocketmq group.
- Sub
String string - The sub string of the rocketmq group.
- Group
Id string - The id of the rocketmq group.
- Message
Model string - The message model of the rocketmq group.
- Sub
String string - The sub string of the rocketmq group.
- group
Id String - The id of the rocketmq group.
- message
Model String - The message model of the rocketmq group.
- sub
String String - The sub string of the rocketmq group.
- group
Id string - The id of the rocketmq group.
- message
Model string - The message model of the rocketmq group.
- sub
String string - The sub string of the rocketmq group.
- group_
id str - The id of the rocketmq group.
- message_
model str - The message model of the rocketmq group.
- sub_
string str - The sub string of the rocketmq group.
- group
Id String - The id of the rocketmq group.
- message
Model String - The message model of the rocketmq group.
- sub
String String - The sub string of the rocketmq group.
GetTopicsRocketmqTopicQueue
- End
Offset int - The end offset of the rocketmq queue.
- Last
Update intTimestamp - The last update timestamp of the rocketmq queue.
- Message
Count int - The message count of the rocketmq queue.
- Queue
Id string - The id of the rocketmq queue.
- Start
Offset int - The start offset of the rocketmq queue.
- End
Offset int - The end offset of the rocketmq queue.
- Last
Update intTimestamp - The last update timestamp of the rocketmq queue.
- Message
Count int - The message count of the rocketmq queue.
- Queue
Id string - The id of the rocketmq queue.
- Start
Offset int - The start offset of the rocketmq queue.
- end
Offset Integer - The end offset of the rocketmq queue.
- last
Update IntegerTimestamp - The last update timestamp of the rocketmq queue.
- message
Count Integer - The message count of the rocketmq queue.
- queue
Id String - The id of the rocketmq queue.
- start
Offset Integer - The start offset of the rocketmq queue.
- end
Offset number - The end offset of the rocketmq queue.
- last
Update numberTimestamp - The last update timestamp of the rocketmq queue.
- message
Count number - The message count of the rocketmq queue.
- queue
Id string - The id of the rocketmq queue.
- start
Offset number - The start offset of the rocketmq queue.
- end_
offset int - The end offset of the rocketmq queue.
- last_
update_ inttimestamp - The last update timestamp of the rocketmq queue.
- message_
count int - The message count of the rocketmq queue.
- queue_
id str - The id of the rocketmq queue.
- start_
offset int - The start offset of the rocketmq queue.
- end
Offset Number - The end offset of the rocketmq queue.
- last
Update NumberTimestamp - The last update timestamp of the rocketmq queue.
- message
Count Number - The message count of the rocketmq queue.
- queue
Id String - The id of the rocketmq queue.
- start
Offset Number - The start offset of the rocketmq queue.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
