We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.eventhub.getEventhubNamespace
Explore with Pulumi AI
Deprecated: azure.eventhub.getEventhubNamespace has been deprecated in favor of azure.eventhub.getNamespace
Use this data source to access information about an existing EventHub Namespace.
Example Usage
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);
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)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventhub"
"github.com/pulumi/pulumi/sdk/v3/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.EventHub.GetNamespace.Invoke(new()
{
Name = "search-eventhubns",
ResourceGroupName = "search-service",
});
return new Dictionary<string, object?>
{
["eventhubNamespaceId"] = example.Apply(getNamespaceResult => getNamespaceResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.eventhub.EventhubFunctions;
import com.pulumi.azure.eventhub.inputs.GetNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = EventhubFunctions.getNamespace(GetNamespaceArgs.builder()
.name("search-eventhubns")
.resourceGroupName("search-service")
.build());
ctx.export("eventhubNamespaceId", example.applyValue(getNamespaceResult -> getNamespaceResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:eventhub:getNamespace
Arguments:
name: search-eventhubns
resourceGroupName: search-service
outputs:
eventhubNamespaceId: ${example.id}
Using getEventhubNamespace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEventhubNamespace(args: GetEventhubNamespaceArgs, opts?: InvokeOptions): Promise<GetEventhubNamespaceResult>
function getEventhubNamespaceOutput(args: GetEventhubNamespaceOutputArgs, opts?: InvokeOptions): Output<GetEventhubNamespaceResult>
def get_eventhub_namespace(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEventhubNamespaceResult
def get_eventhub_namespace_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEventhubNamespaceResult]
func GetEventhubNamespace(ctx *Context, args *GetEventhubNamespaceArgs, opts ...InvokeOption) (*GetEventhubNamespaceResult, error)
func GetEventhubNamespaceOutput(ctx *Context, args *GetEventhubNamespaceOutputArgs, opts ...InvokeOption) GetEventhubNamespaceResultOutput
> Note: This function is named GetEventhubNamespace
in the Go SDK.
public static class GetEventhubNamespace
{
public static Task<GetEventhubNamespaceResult> InvokeAsync(GetEventhubNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetEventhubNamespaceResult> Invoke(GetEventhubNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventhubNamespaceResult> getEventhubNamespace(GetEventhubNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:eventhub/getEventhubNamespace:getEventhubNamespace
arguments:
# arguments dictionary
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 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.
- name String
- The name of the EventHub Namespace.
- resource
Group StringName - 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
Standard
SKU namespace. - Dedicated
Cluster stringId - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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.
- Zone
Redundant bool - Is this EventHub Namespace deployed across Availability Zones?
- Auto
Inflate boolEnabled - Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
- The Capacity / Throughput Units for a
Standard
SKU namespace. - Dedicated
Cluster stringId - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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.
- Zone
Redundant bool - Is this EventHub Namespace deployed across Availability Zones?
- auto
Inflate BooleanEnabled - Is Auto Inflate enabled for the EventHub Namespace?
- capacity Integer
- The Capacity / Throughput Units for a
Standard
SKU namespace. - dedicated
Cluster StringId - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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 IntegerUnits - 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.
- zone
Redundant Boolean - Is this EventHub Namespace deployed across Availability Zones?
- auto
Inflate booleanEnabled - Is Auto Inflate enabled for the EventHub Namespace?
- capacity number
- The Capacity / Throughput Units for a
Standard
SKU namespace. - dedicated
Cluster stringId - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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.
- zone
Redundant boolean - Is this EventHub Namespace deployed across Availability Zones?
- auto_
inflate_ boolenabled - Is Auto Inflate enabled for the EventHub Namespace?
- capacity int
- The Capacity / Throughput Units for a
Standard
SKU namespace. - dedicated_
cluster_ strid - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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_ intunits - Specifies the maximum number of throughput units when Auto Inflate is Enabled.
- name str
- resource_
group_ strname - sku str
- Defines which tier to use.
- Mapping[str, str]
- A mapping of tags to assign to the EventHub Namespace.
- zone_
redundant bool - Is this EventHub Namespace deployed across Availability Zones?
- auto
Inflate BooleanEnabled - Is Auto Inflate enabled for the EventHub Namespace?
- capacity Number
- The Capacity / Throughput Units for a
Standard
SKU namespace. - dedicated
Cluster StringId - The ID of the EventHub Dedicated Cluster where this Namespace exists.
- 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.
- Map<String>
- A mapping of tags to assign to the EventHub Namespace.
- zone
Redundant Boolean - Is this EventHub Namespace deployed across Availability Zones?
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.