GetServiceBusNamespace
Use this data source to access information about an existing ServiceBus Namespace.
Example Usage
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; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/servicebus"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := servicebus.LookupNamespace(ctx, &servicebus.LookupNamespaceArgs{
Name: "examplenamespace",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("location", example.Location)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.servicebus.get_namespace(name="examplenamespace",
resource_group_name="example-resources")
pulumi.export("location", example.location)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.servicebus.getNamespace({
name: "examplenamespace",
resourceGroupName: "example-resources",
});
export const location = example.then(example => example.location);Deprecated: azure.eventhub.getServiceBusNamespace has been deprecated in favor of azure.servicebus.getNamespace
Using GetServiceBusNamespace
function getServiceBusNamespace(args: GetServiceBusNamespaceArgs, opts?: InvokeOptions): Promise<GetServiceBusNamespaceResult>function get_service_bus_namespace(name=None, resource_group_name=None, opts=None)func GetServiceBusNamespace(ctx *Context, args *GetServiceBusNamespaceArgs, opts ...InvokeOption) (*GetServiceBusNamespaceResult, error)public static class GetServiceBusNamespace {
public static Task<GetServiceBusNamespaceResult> InvokeAsync(GetServiceBusNamespaceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the ServiceBus Namespace.
- Resource
Group stringName Specifies the name of the Resource Group where the ServiceBus Namespace exists.
- Name string
Specifies the name of the ServiceBus Namespace.
- Resource
Group stringName Specifies the name of the Resource Group where the ServiceBus Namespace exists.
- name string
Specifies the name of the ServiceBus Namespace.
- resource
Group stringName Specifies the name of the Resource Group where the ServiceBus Namespace exists.
- name str
Specifies the name of the ServiceBus Namespace.
- resource_
group_ strname Specifies the name of the Resource Group where the ServiceBus Namespace exists.
GetServiceBusNamespace Result
The following output properties are available:
- Capacity int
The capacity of the ServiceBus Namespace.
- Default
Primary stringConnection String 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 stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The location of the Resource Group in which the ServiceBus Namespace exists.
- Name string
- Resource
Group stringName - Sku string
The Tier used for the ServiceBus Namespace.
- Dictionary<string, string>
A mapping of tags assigned to the resource.
- Zone
Redundant bool Whether or not this ServiceBus Namespace is zone redundant.
- Capacity int
The capacity of the ServiceBus Namespace.
- Default
Primary stringConnection String 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 stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The location of the Resource Group in which the ServiceBus Namespace exists.
- Name string
- Resource
Group stringName - Sku string
The Tier used for the ServiceBus Namespace.
- map[string]string
A mapping of tags assigned to the resource.
- Zone
Redundant bool Whether or not this ServiceBus Namespace is zone redundant.
- capacity number
The capacity of the ServiceBus Namespace.
- default
Primary stringConnection String 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 stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id string
The provider-assigned unique ID for this managed resource.
- location string
The location of the Resource Group in which the ServiceBus Namespace exists.
- name string
- resource
Group stringName - sku string
The Tier used for the ServiceBus Namespace.
- {[key: string]: string}
A mapping of tags assigned to the resource.
- zone
Redundant boolean Whether or not this ServiceBus Namespace is zone redundant.
- capacity float
The capacity of the ServiceBus Namespace.
- default_
primary_ strconnection_ string 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_ strkey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id str
The provider-assigned unique ID for this managed resource.
- location str
The location of the Resource Group in which the ServiceBus Namespace exists.
- name str
- resource_
group_ strname - sku str
The Tier used for the ServiceBus Namespace.
- Dict[str, str]
A mapping of tags assigned to the resource.
- zone_
redundant bool Whether or not this ServiceBus Namespace is zone redundant.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.