Show / Hide Table of Contents

Class GetEventhubNamespace

Inheritance
System.Object
GetEventhubNamespace
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.EventHub
Assembly: Pulumi.Azure.dll
Syntax
[Obsolete("azure.eventhub.getEventhubNamespace has been deprecated in favor of azure.eventhub.getNamespace")]
public static class GetEventhubNamespace

Methods

View Source

InvokeAsync(GetEventhubNamespaceArgs, InvokeOptions)

Use this data source to access information about an existing EventHub Namespace.

{{% examples %}}

Example Usage

{{% example %}}

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

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetEventhubNamespaceResult> InvokeAsync(GetEventhubNamespaceArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetEventhubNamespaceArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetEventhubNamespaceResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.