GetConsumeGroup
Use this data source to access information about an existing Event Hubs Consumer Group within an Event Hub.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Azure.EventHub.GetConsumeGroup.InvokeAsync(new Azure.EventHub.GetConsumeGroupArgs
{
EventhubName = azurerm_eventhub.Test.Name,
Name = azurerm_eventhub_consumer_group.Test.Name,
NamespaceName = azurerm_eventhub_namespace.Test.Name,
ResourceGroupName = azurerm_resource_group.Test.Name,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/eventhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.GetConsumeGroup(ctx, &eventhub.GetConsumeGroupArgs{
EventhubName: azurerm_eventhub.Test.Name,
Name: azurerm_eventhub_consumer_group.Test.Name,
NamespaceName: azurerm_eventhub_namespace.Test.Name,
ResourceGroupName: azurerm_resource_group.Test.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
test = azure.eventhub.get_consume_group(eventhub_name=azurerm_eventhub["test"]["name"],
name=azurerm_eventhub_consumer_group["test"]["name"],
namespace_name=azurerm_eventhub_namespace["test"]["name"],
resource_group_name=azurerm_resource_group["test"]["name"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const test = pulumi.all([azurerm_eventhub_test.name, azurerm_eventhub_consumer_group_test.name, azurerm_eventhub_namespace_test.name, azurerm_resource_group_test.name]).apply(([azurerm_eventhub_testName, azurerm_eventhub_consumer_group_testName, azurerm_eventhub_namespace_testName, azurerm_resource_group_testName]) => azure.eventhub.getConsumeGroup({
eventhubName: azurerm_eventhub_testName,
name: azurerm_eventhub_consumer_group_testName,
namespaceName: azurerm_eventhub_namespace_testName,
resourceGroupName: azurerm_resource_group_testName,
}, { async: true }));Using GetConsumeGroup
function getConsumeGroup(args: GetConsumeGroupArgs, opts?: InvokeOptions): Promise<GetConsumeGroupResult>function get_consume_group(eventhub_name=None, name=None, namespace_name=None, resource_group_name=None, opts=None)func GetConsumeGroup(ctx *Context, args *GetConsumeGroupArgs, opts ...InvokeOption) (*GetConsumeGroupResult, error)public static class GetConsumeGroup {
public static Task<GetConsumeGroupResult> InvokeAsync(GetConsumeGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Eventhub
Name string Specifies the name of the EventHub.
- Name string
Specifies the name of the EventHub Consumer Group resource.
- Namespace
Name string Specifies the name of the grandparent EventHub Namespace.
- Resource
Group stringName The name of the resource group in which the EventHub Consumer Group’s grandparent Namespace exists.
- Eventhub
Name string Specifies the name of the EventHub.
- Name string
Specifies the name of the EventHub Consumer Group resource.
- Namespace
Name string Specifies the name of the grandparent EventHub Namespace.
- Resource
Group stringName The name of the resource group in which the EventHub Consumer Group’s grandparent Namespace exists.
- eventhub
Name string Specifies the name of the EventHub.
- name string
Specifies the name of the EventHub Consumer Group resource.
- namespace
Name string Specifies the name of the grandparent EventHub Namespace.
- resource
Group stringName The name of the resource group in which the EventHub Consumer Group’s grandparent Namespace exists.
- eventhub_
name str Specifies the name of the EventHub.
- name str
Specifies the name of the EventHub Consumer Group resource.
- namespace_
name str Specifies the name of the grandparent EventHub Namespace.
- resource_
group_ strname The name of the resource group in which the EventHub Consumer Group’s grandparent Namespace exists.
GetConsumeGroup Result
The following output properties are available:
- Eventhub
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Namespace
Name string - Resource
Group stringName - User
Metadata string Specifies the user metadata.
- Eventhub
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Namespace
Name string - Resource
Group stringName - User
Metadata string Specifies the user metadata.
- eventhub
Name string - id string
The provider-assigned unique ID for this managed resource.
- location string
- name string
- namespace
Name string - resource
Group stringName - user
Metadata string Specifies the user metadata.
- eventhub_
name str - id str
The provider-assigned unique ID for this managed resource.
- location str
- name str
- namespace_
name str - resource_
group_ strname - user_
metadata str Specifies the user metadata.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.