GetNamespace

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);

Using GetNamespace

function getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function  get_namespace(name=None, resource_group_name=None, opts=None)
func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)

Note: This function is named LookupNamespace in the Go SDK.

public static class GetNamespace {
    public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the EventHub Namespace.

ResourceGroupName string

The Name of the Resource Group where the EventHub Namespace exists.

Name string

The name of the EventHub Namespace.

ResourceGroupName string

The Name of the Resource Group where the EventHub Namespace exists.

name string

The name of the EventHub Namespace.

resourceGroupName string

The Name of the Resource Group where the EventHub Namespace exists.

name str

The name of the EventHub Namespace.

resource_group_name str

The Name of the Resource Group where the EventHub Namespace exists.

GetNamespace Result

The following output properties are available:

AutoInflateEnabled bool

Is Auto Inflate enabled for the EventHub Namespace?

Capacity int

The Capacity / Throughput Units for a Standard SKU namespace.

DefaultPrimaryConnectionString string

The primary connection string for the authorization rule RootManageSharedAccessKey.

DefaultPrimaryConnectionStringAlias string

The alias of the primary connection string for the authorization rule RootManageSharedAccessKey.

DefaultPrimaryKey string

The primary access key for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryConnectionString string

The secondary connection string for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryConnectionStringAlias string

The alias of the secondary connection string for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryKey string

The secondary access key for the authorization rule RootManageSharedAccessKey.

Id string

The provider-assigned unique ID for this managed resource.

KafkaEnabled bool
Location string

The Azure location where the EventHub Namespace exists

MaximumThroughputUnits int

Specifies the maximum number of throughput units when Auto Inflate is Enabled.

Name string
ResourceGroupName string
Sku string

Defines which tier to use.

Tags Dictionary<string, string>

A mapping of tags to assign to the EventHub Namespace.

AutoInflateEnabled bool

Is Auto Inflate enabled for the EventHub Namespace?

Capacity int

The Capacity / Throughput Units for a Standard SKU namespace.

DefaultPrimaryConnectionString string

The primary connection string for the authorization rule RootManageSharedAccessKey.

DefaultPrimaryConnectionStringAlias string

The alias of the primary connection string for the authorization rule RootManageSharedAccessKey.

DefaultPrimaryKey string

The primary access key for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryConnectionString string

The secondary connection string for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryConnectionStringAlias string

The alias of the secondary connection string for the authorization rule RootManageSharedAccessKey.

DefaultSecondaryKey string

The secondary access key for the authorization rule RootManageSharedAccessKey.

Id string

The provider-assigned unique ID for this managed resource.

KafkaEnabled bool
Location string

The Azure location where the EventHub Namespace exists

MaximumThroughputUnits int

Specifies the maximum number of throughput units when Auto Inflate is Enabled.

Name string
ResourceGroupName string
Sku string

Defines which tier to use.

Tags map[string]string

A mapping of tags to assign to the EventHub Namespace.

autoInflateEnabled boolean

Is Auto Inflate enabled for the EventHub Namespace?

capacity number

The Capacity / Throughput Units for a Standard SKU namespace.

defaultPrimaryConnectionString string

The primary connection string for the authorization rule RootManageSharedAccessKey.

defaultPrimaryConnectionStringAlias string

The alias of the primary connection string for the authorization rule RootManageSharedAccessKey.

defaultPrimaryKey string

The primary access key for the authorization rule RootManageSharedAccessKey.

defaultSecondaryConnectionString string

The secondary connection string for the authorization rule RootManageSharedAccessKey.

defaultSecondaryConnectionStringAlias string

The alias of the secondary connection string for the authorization rule RootManageSharedAccessKey.

defaultSecondaryKey string

The secondary access key for the authorization rule RootManageSharedAccessKey.

id string

The provider-assigned unique ID for this managed resource.

kafkaEnabled boolean
location string

The Azure location where the EventHub Namespace exists

maximumThroughputUnits number

Specifies the maximum number of throughput units when Auto Inflate is Enabled.

name string
resourceGroupName string
sku string

Defines which tier to use.

tags {[key: string]: string}

A mapping of tags to assign to the EventHub Namespace.

auto_inflate_enabled bool

Is Auto Inflate enabled for the EventHub Namespace?

capacity float

The Capacity / Throughput Units for a Standard SKU namespace.

default_primary_connection_string str

The primary connection string for the authorization rule RootManageSharedAccessKey.

default_primary_connection_string_alias str

The alias of the primary connection string for the authorization rule RootManageSharedAccessKey.

default_primary_key str

The primary access key for the authorization rule RootManageSharedAccessKey.

default_secondary_connection_string str

The secondary connection string for the authorization rule RootManageSharedAccessKey.

default_secondary_connection_string_alias str

The alias of the secondary connection string for the authorization rule RootManageSharedAccessKey.

default_secondary_key str

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_units float

Specifies the maximum number of throughput units when Auto Inflate is Enabled.

name str
resource_group_name str
sku str

Defines which tier to use.

tags 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 azurerm Terraform Provider.