On this page
Data Source: azurerm_eventhub_namespace
Use this data source to obtain information about an EventHub Namespace.
Example Usage
data "azurerm_eventhub_namespace" "test" {
name = "search-eventhubns"
resource_group_name = "search-service"
}
output "eventhub_namespace_id" {
value = "${data.azurerm_eventhub_namespace.test.id}"
}
Argument Reference
name- (Required) The name of the EventHub Namespace.resource_group_name- (Required) The Name of the Resource Group where the EventHub Namespace exists.
Attributes Reference
id- The ID of the EventHub Namespace.location- The Azure location where the EventHub Namespace existssku- Defines which tier to use.capacity- The Capacity / Throughput Units for aStandardSKU namespace.auto_inflate_enabled- Is Auto Inflate enabled for the EventHub Namespace?maximum_throughput_units- Specifies the maximum number of throughput units when Auto Inflate is Enabled.tags- A mapping of tags to assign to the EventHub Namespace.
The following attributes are exported only if there is an authorization rule named RootManageSharedAccessKey which is created automatically by Azure.
default_primary_connection_string- The primary connection string for the authorization ruleRootManageSharedAccessKey.default_secondary_connection_string- The secondary connection string for the authorization ruleRootManageSharedAccessKey.default_primary_key- The primary access key for the authorization ruleRootManageSharedAccessKey.default_secondary_key- The secondary access key for the authorization ruleRootManageSharedAccessKey.
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/eventhub_namespace.html