GetEventhubNamespace
Use this data source to access information about an existing EventHub Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.EventHub.GetNamespace.InvokeAsync(new Azure.EventHub.GetNamespaceArgs
{
Name = "search-eventhubns",
ResourceGroupName = "search-service",
}));
this.EventhubNamespaceId = example.Apply(example => example.Id);
}
[Output("eventhubNamespaceId")]
public Output<string> EventhubNamespaceId { get; set; }
}
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 {
example, err := eventhub.LookupNamespace(ctx, &eventhub.LookupNamespaceArgs{
Name: "search-eventhubns",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("eventhubNamespaceId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.eventhub.get_namespace(name="search-eventhubns",
resource_group_name="search-service")
pulumi.export("eventhubNamespaceId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.eventhub.getNamespace({
name: "search-eventhubns",
resourceGroupName: "search-service",
});
export const eventhubNamespaceId = example.then(example => example.id);Deprecated: azure.eventhub.getEventhubNamespace has been deprecated in favor of azure.eventhub.getNamespace
Using GetEventhubNamespace
function getEventhubNamespace(args: GetEventhubNamespaceArgs, opts?: InvokeOptions): Promise<GetEventhubNamespaceResult>function get_eventhub_namespace(name=None, resource_group_name=None, opts=None)func GetEventhubNamespace(ctx *Context, args *GetEventhubNamespaceArgs, opts ...InvokeOption) (*GetEventhubNamespaceResult, error)public static class GetEventhubNamespace {
public static Task<GetEventhubNamespaceResult> InvokeAsync(GetEventhubNamespaceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the EventHub Namespace.
- Resource
Group stringName The Name of the Resource Group where the EventHub Namespace exists.
- Name string
The name of the EventHub Namespace.
- Resource
Group stringName The Name of the Resource Group where the EventHub Namespace exists.
- name string
The name of the EventHub Namespace.
- resource
Group stringName The Name of the Resource Group where the EventHub Namespace exists.
- name str
The name of the EventHub Namespace.
- resource_
group_ strname The Name of the Resource Group where the EventHub Namespace exists.
GetEventhubNamespace Result
The following output properties are available:
- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
The Capacity / Throughput Units for a
StandardSKU namespace.- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Enabled bool - Location string
The Azure location where the EventHub Namespace exists
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled.
- Name string
- Resource
Group stringName - Sku string
Defines which tier to use.
- Dictionary<string, string>
A mapping of tags to assign to the EventHub Namespace.
- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
The Capacity / Throughput Units for a
StandardSKU namespace.- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Enabled bool - Location string
The Azure location where the EventHub Namespace exists
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled.
- Name string
- Resource
Group stringName - Sku string
Defines which tier to use.
- map[string]string
A mapping of tags to assign to the EventHub Namespace.
- auto
Inflate booleanEnabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity number
The Capacity / Throughput Units for a
StandardSKU namespace.- default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey.- default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id string
The provider-assigned unique ID for this managed resource.
- kafka
Enabled boolean - location string
The Azure location where the EventHub Namespace exists
- maximum
Throughput numberUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled.
- name string
- resource
Group stringName - sku string
Defines which tier to use.
- {[key: string]: string}
A mapping of tags to assign to the EventHub Namespace.
- auto_
inflate_ boolenabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity float
The Capacity / Throughput Units for a
StandardSKU namespace.- default_
primary_ strconnection_ string The primary connection string for the authorization rule
RootManageSharedAccessKey.- default_
primary_ strconnection_ string_ alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey.- default_
primary_ strkey The primary access key for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string_ alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strkey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id str
The provider-assigned unique ID for this managed resource.
- kafka_
enabled bool - location str
The Azure location where the EventHub Namespace exists
- maximum_
throughput_ floatunits Specifies the maximum number of throughput units when Auto Inflate is Enabled.
- name str
- resource_
group_ strname - sku str
Defines which tier to use.
- Dict[str, str]
A mapping of tags to assign to the EventHub Namespace.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.