We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.notificationhub.getNamespace
Start a Neo task
Explain and create an azure.notificationhub.getNamespace resource
Use this data source to access information about an existing Notification Hub Namespace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.notificationhub.getNamespace({
name: "my-namespace",
resourceGroupName: "my-resource-group",
});
export const servicebusEndpoint = example.then(example => example.servicebusEndpoint);
import pulumi
import pulumi_azure as azure
example = azure.notificationhub.get_namespace(name="my-namespace",
resource_group_name="my-resource-group")
pulumi.export("servicebusEndpoint", example.servicebus_endpoint)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := notificationhub.LookupNamespace(ctx, ¬ificationhub.LookupNamespaceArgs{
Name: "my-namespace",
ResourceGroupName: "my-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("servicebusEndpoint", example.ServicebusEndpoint)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NotificationHub.GetNamespace.Invoke(new()
{
Name = "my-namespace",
ResourceGroupName = "my-resource-group",
});
return new Dictionary<string, object?>
{
["servicebusEndpoint"] = example.Apply(getNamespaceResult => getNamespaceResult.ServicebusEndpoint),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.notificationhub.NotificationhubFunctions;
import com.pulumi.azure.notificationhub.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 = NotificationhubFunctions.getNamespace(GetNamespaceArgs.builder()
.name("my-namespace")
.resourceGroupName("my-resource-group")
.build());
ctx.export("servicebusEndpoint", example.servicebusEndpoint());
}
}
variables:
example:
fn::invoke:
function: azure:notificationhub:getNamespace
arguments:
name: my-namespace
resourceGroupName: my-resource-group
outputs:
servicebusEndpoint: ${example.servicebusEndpoint}
API Providers
This data source uses the following Azure API Providers:
Microsoft.NotificationHubs- 2023-09-01
Using getNamespace
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 getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>def get_namespace(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput> Note: This function is named LookupNamespace in the Go SDK.
public static class GetNamespace
{
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: azure:notificationhub/getNamespace:getNamespace
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the Name of the Notification Hub Namespace.
- Resource
Group stringName - Specifies the Name of the Resource Group within which the Notification Hub exists.
- Name string
- Specifies the Name of the Notification Hub Namespace.
- Resource
Group stringName - Specifies the Name of the Resource Group within which the Notification Hub exists.
- name String
- Specifies the Name of the Notification Hub Namespace.
- resource
Group StringName - Specifies the Name of the Resource Group within which the Notification Hub exists.
- name string
- Specifies the Name of the Notification Hub Namespace.
- resource
Group stringName - Specifies the Name of the Resource Group within which the Notification Hub exists.
- name str
- Specifies the Name of the Notification Hub Namespace.
- resource_
group_ strname - Specifies the Name of the Resource Group within which the Notification Hub exists.
- name String
- Specifies the Name of the Notification Hub Namespace.
- resource
Group StringName - Specifies the Name of the Resource Group within which the Notification Hub exists.
getNamespace Result
The following output properties are available:
- Enabled bool
- Is this Notification Hub Namespace enabled?
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region in which this Notification Hub Namespace exists.
- Name string
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - Namespace
Type string - The Type of Namespace, such as
MessagingorNotificationHub. - Resource
Group stringName - Servicebus
Endpoint string - Sku
Get
Namespace Sku - A
skublock as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Enabled bool
- Is this Notification Hub Namespace enabled?
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region in which this Notification Hub Namespace exists.
- Name string
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - Namespace
Type string - The Type of Namespace, such as
MessagingorNotificationHub. - Resource
Group stringName - Servicebus
Endpoint string - Sku
Get
Namespace Sku - A
skublock as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- enabled Boolean
- Is this Notification Hub Namespace enabled?
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region in which this Notification Hub Namespace exists.
- name String
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - namespace
Type String - The Type of Namespace, such as
MessagingorNotificationHub. - resource
Group StringName - servicebus
Endpoint String - sku
Get
Namespace Sku - A
skublock as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- enabled boolean
- Is this Notification Hub Namespace enabled?
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region in which this Notification Hub Namespace exists.
- name string
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - namespace
Type string - The Type of Namespace, such as
MessagingorNotificationHub. - resource
Group stringName - servicebus
Endpoint string - sku
Get
Namespace Sku - A
skublock as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- enabled bool
- Is this Notification Hub Namespace enabled?
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region in which this Notification Hub Namespace exists.
- name str
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - namespace_
type str - The Type of Namespace, such as
MessagingorNotificationHub. - resource_
group_ strname - servicebus_
endpoint str - sku
Get
Namespace Sku - A
skublock as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- enabled Boolean
- Is this Notification Hub Namespace enabled?
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region in which this Notification Hub Namespace exists.
- name String
- The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. - namespace
Type String - The Type of Namespace, such as
MessagingorNotificationHub. - resource
Group StringName - servicebus
Endpoint String - sku Property Map
- A
skublock as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
GetNamespaceSku
- Name string
- Specifies the Name of the Notification Hub Namespace.
- Name string
- Specifies the Name of the Notification Hub Namespace.
- name String
- Specifies the Name of the Notification Hub Namespace.
- name string
- Specifies the Name of the Notification Hub Namespace.
- name str
- Specifies the Name of the Notification Hub Namespace.
- name String
- Specifies the Name of the Notification Hub Namespace.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
