Use this data source to access information about an existing Notification Hub Namespace.
data "azurerm_notification_hub_namespace" "example" {
name = "my-namespace"
resource_group_name = "my-resource-group"
}
output "servicebus_endpoint" {
value = data.azurerm_notification_hub_namespace.example.servicebus_endpoint
}
name
- Specifies the Name of the Notification Hub Namespace.
resource_group_name
- Specifies the Name of the Resource Group within which the Notification Hub exists.
id
- The ID of the Notification Hub Namespace.
location
- The Azure Region in which this Notification Hub Namespace exists.
namespace_type
- The Type of Namespace, such as Messaging
or NotificationHub
.
sku
- A sku
block as defined below.
enabled
- Is this Notification Hub Namespace enabled?
tags
- A mapping of tags to assign to the resource.
A sku
block exports the following:
name
- The name of the SKU to use for this Notification Hub Namespace. Possible values are Free
, Basic
or Standard.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Notification Hub Namespace.