GetNamespace
Use this data source to access information about an existing Notification Hub Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.NotificationHub.GetNamespace.InvokeAsync(new Azure.NotificationHub.GetNamespaceArgs
{
Name = "my-namespace",
ResourceGroupName = "my-resource-group",
}));
this.ServicebusEndpoint = example.Apply(example => example.ServicebusEndpoint);
}
[Output("servicebusEndpoint")]
public Output<string> ServicebusEndpoint { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v2/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
})
}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)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);Using GetNamespace
function getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>function get_namespace(name=None, resource_group_name=None, opts=None)func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)Note: This function is named
LookupNamespacein the Go SDK.
public static class GetNamespace {
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
}The 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 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.
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.- {[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
Dict[Get
Namespace Sku] A
skublock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
GetNamespaceSku
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.