Show / Hide Table of Contents

Class GetServiceBusNamespace

Inheritance
System.Object
GetServiceBusNamespace
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.getServiceBusNamespace has been deprecated in favor of azure.servicebus.getNamespace")]
public static class GetServiceBusNamespace

Methods

View Source

InvokeAsync(GetServiceBusNamespaceArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.ServiceBus.GetNamespace.InvokeAsync(new Azure.ServiceBus.GetNamespaceArgs
    {
        Name = "examplenamespace",
        ResourceGroupName = "example-resources",
    }));
    this.Location = example.Apply(example => example.Location);
}

[Output("location")]
public Output<string> Location { get; set; }
}

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

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