» Data Source: azurerm_notification_hub
Use this data source to access information about an existing Notification Hub within a Notification Hub Namespace.
» Example Usage
data "azurerm_notification_hub" "test" {
name = "notification-hub"
namespace_name = "namespace-name"
resource_group_name = "resource-group-name"
}
output "id" {
value = "${data.azurerm_notification_hub.test.id}"
}
» Argument Reference
-
name- (Required) Specifies the Name of the Notification Hub. -
namespace_name- (Required) Specifies the Name of the Notification Hub Namespace which contains the Notification Hub. -
resource_group_name- (Required) Specifies the Name of the Resource Group within which the Notification Hub exists.
» Attributes Reference
-
id- The ID of the Notification Hub. -
location- The Azure Region in which this Notification Hub exists. -
apns_credential- Aapns_credentialblock as defined below. -
gcm_credential- Agcm_credentialblock as defined below.
A apns_credential block exports:
-
application_mode- The Application Mode which defines which server the APNS Messages should be sent to. Possible values areProductionandSandbox. -
bundle_id- The Bundle ID of the iOS/macOS application to send push notifications for, such ascom.hashicorp.example. -
key_id- The Apple Push Notifications Service (APNS) Key. -
team_id- The ID of the team the Token. -
token- The Push Token associated with the Apple Developer Account.
A gcm_credential block exports:
-
api_key- The API Key associated with the Google Cloud Messaging service.