Class GetNamespace
Inheritance
System.Object
GetNamespace
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
public static class GetNamespace
Methods
View SourceInvokeAsync(GetNamespaceArgs, 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<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNamespaceArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNamespaceResult> |