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 tls kafka consumers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tls.getKafkaConsumers({
ids: [
"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
"edf051ed-3c46-49ba-9339-bea628fedc15",
],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.get_kafka_consumers(ids=[
"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
"edf051ed-3c46-49ba-9339-bea628fedc15",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.GetKafkaConsumers(ctx, &tls.GetKafkaConsumersArgs{
Ids: []string{
"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
"edf051ed-3c46-49ba-9339-bea628fedc15",
},
}, 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 @default = Volcengine.Tls.GetKafkaConsumers.Invoke(new()
{
Ids = new[]
{
"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
"edf051ed-3c46-49ba-9339-bea628fedc15",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.TlsFunctions;
import com.pulumi.volcengine.tls.inputs.GetKafkaConsumersArgs;
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 default = TlsFunctions.getKafkaConsumers(GetKafkaConsumersArgs.builder()
.ids(
"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
"edf051ed-3c46-49ba-9339-bea628fedc15")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:tls:getKafkaConsumers
Arguments:
ids:
- 65d67d34-c5b4-4ec8-b3a9-175d33668b45
- cfb5c08b-0c7a-44fa-8971-8afc12f1b123
- edf051ed-3c46-49ba-9339-bea628fedc15
Using getKafkaConsumers
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 getKafkaConsumers(args: GetKafkaConsumersArgs, opts?: InvokeOptions): Promise<GetKafkaConsumersResult>
function getKafkaConsumersOutput(args: GetKafkaConsumersOutputArgs, opts?: InvokeOptions): Output<GetKafkaConsumersResult>def get_kafka_consumers(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaConsumersResult
def get_kafka_consumers_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaConsumersResult]func GetKafkaConsumers(ctx *Context, args *GetKafkaConsumersArgs, opts ...InvokeOption) (*GetKafkaConsumersResult, error)
func GetKafkaConsumersOutput(ctx *Context, args *GetKafkaConsumersOutputArgs, opts ...InvokeOption) GetKafkaConsumersResultOutput> Note: This function is named GetKafkaConsumers in the Go SDK.
public static class GetKafkaConsumers
{
public static Task<GetKafkaConsumersResult> InvokeAsync(GetKafkaConsumersArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaConsumersResult> Invoke(GetKafkaConsumersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaConsumersResult> getKafkaConsumers(GetKafkaConsumersArgs args, InvokeOptions options)
public static Output<GetKafkaConsumersResult> getKafkaConsumers(GetKafkaConsumersArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:tls/getKafkaConsumers:getKafkaConsumers
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of topic IDs.
- Output
File string - File name where to save data source results.
- Ids []string
- A list of topic IDs.
- Output
File string - File name where to save data source results.
- ids List<String>
- A list of topic IDs.
- output
File String - File name where to save data source results.
- ids string[]
- A list of topic IDs.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- A list of topic IDs.
- output_
file str - File name where to save data source results.
- ids List<String>
- A list of topic IDs.
- output
File String - File name where to save data source results.
getKafkaConsumers Result
The following output properties are available:
- Datas
List<Get
Kafka Consumers Data> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ids List<string>
- Output
File string
- Datas
[]Get
Kafka Consumers Data - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Ids []string
- Output
File string
- datas
List<Get
Kafka Consumers Data> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- ids List<String>
- output
File String
- datas
Get
Kafka Consumers Data[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- ids string[]
- output
File string
- datas
Sequence[Get
Kafka Consumers Data] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- ids Sequence[str]
- output_
file str
- datas List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- ids List<String>
- output
File String
Supporting Types
GetKafkaConsumersData
- Allow
Consume bool - Whether allow consume.
- Consume
Topic string - The topic of consume.
- Topic
Id string - The ID of Topic.
- Allow
Consume bool - Whether allow consume.
- Consume
Topic string - The topic of consume.
- Topic
Id string - The ID of Topic.
- allow
Consume Boolean - Whether allow consume.
- consume
Topic String - The topic of consume.
- topic
Id String - The ID of Topic.
- allow
Consume boolean - Whether allow consume.
- consume
Topic string - The topic of consume.
- topic
Id string - The ID of Topic.
- allow_
consume bool - Whether allow consume.
- consume_
topic str - The topic of consume.
- topic_
id str - The ID of Topic.
- allow
Consume Boolean - Whether allow consume.
- consume
Topic String - The topic of consume.
- topic
Id String - The ID of Topic.
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
