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:
- Instance
Id string ID of the ALIKAFKA Instance that owns the consumer groups.
- Consumer
Id stringRegex A regex string to filter results by the consumer group id.
- Output
File string
- Instance
Id string ID of the ALIKAFKA Instance that owns the consumer groups.
- Consumer
Id stringRegex A regex string to filter results by the consumer group id.
- Output
File string
- instance
Id string ID of the ALIKAFKA Instance that owns the consumer groups.
- consumer
Id stringRegex A regex string to filter results by the consumer group id.
- output
File string
- instance_
id str ID of the ALIKAFKA Instance that owns the consumer groups.
- consumer_
id_ strregex A regex string to filter results by the consumer group id.
- output_
file str
GetConsumerGroups Result
The following output properties are available:
- Consumer
Ids List<string> A list of consumer group ids.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Consumer
Id stringRegex - Output
File string
- Consumer
Ids []string A list of consumer group ids.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Consumer
Id stringRegex - Output
File string
- consumer
Ids string[] A list of consumer group ids.
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string - consumer
Id stringRegex - output
File 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_ strregex - output_
file str
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.