GetConsumerGroups

This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.56.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var consumerGroupsDs = Output.Create(AliCloud.ActionTrail.GetConsumerGroups.InvokeAsync(new AliCloud.ActionTrail.GetConsumerGroupsArgs
        {
            ConsumerIdRegex = "CID-alikafkaGroupDatasourceName",
            InstanceId = "xxx",
            OutputFile = "consumerGroups.txt",
        }));
        this.FirstGroupName = consumerGroupsDs.Apply(consumerGroupsDs => consumerGroupsDs.ConsumerIds[0]);
    }

    [Output("firstGroupName")]
    public Output<string> FirstGroupName { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

consumer_groups_ds = alicloud.actiontrail.get_consumer_groups(consumer_id_regex="CID-alikafkaGroupDatasourceName",
    instance_id="xxx",
    output_file="consumerGroups.txt")
pulumi.export("firstGroupName", consumer_groups_ds.consumer_ids[0])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const consumerGroupsDs = pulumi.output(alicloud.actiontrail.getConsumerGroups({
    consumerIdRegex: "CID-alikafkaGroupDatasourceName",
    instanceId: "xxx",
    outputFile: "consumerGroups.txt",
}, { async: true }));

export const firstGroupName = consumerGroupsDs.consumerIds[0];

Using GetConsumerGroups

function getConsumerGroups(args: GetConsumerGroupsArgs, opts?: InvokeOptions): Promise<GetConsumerGroupsResult>
function  get_consumer_groups(consumer_id_regex=None, instance_id=None, output_file=None, opts=None)
func GetConsumerGroups(ctx *Context, args *GetConsumerGroupsArgs, opts ...InvokeOption) (*GetConsumerGroupsResult, error)
public static class GetConsumerGroups {
    public static Task<GetConsumerGroupsResult> InvokeAsync(GetConsumerGroupsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

InstanceId string

ID of the ALIKAFKA Instance that owns the consumer groups.

ConsumerIdRegex string

A regex string to filter results by the consumer group id.

OutputFile string
InstanceId string

ID of the ALIKAFKA Instance that owns the consumer groups.

ConsumerIdRegex string

A regex string to filter results by the consumer group id.

OutputFile string
instanceId string

ID of the ALIKAFKA Instance that owns the consumer groups.

consumerIdRegex string

A regex string to filter results by the consumer group id.

outputFile string
instance_id str

ID of the ALIKAFKA Instance that owns the consumer groups.

consumer_id_regex str

A regex string to filter results by the consumer group id.

output_file str

GetConsumerGroups Result

The following output properties are available:

ConsumerIds List<string>

A list of consumer group ids.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
ConsumerIdRegex string
OutputFile string
ConsumerIds []string

A list of consumer group ids.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
ConsumerIdRegex string
OutputFile string
consumerIds string[]

A list of consumer group ids.

id string

The provider-assigned unique ID for this managed resource.

instanceId string
consumerIdRegex string
outputFile string
consumer_ids List[str]

A list of consumer group ids.

id str

The provider-assigned unique ID for this managed resource.

instance_id str
consumer_id_regex str
output_file str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.