Use this data source to access information about a ServiceBus Topic Authorization Rule within a ServiceBus Topic.
data "azurerm_servicebus_topic_authorization_rule" "example" {
name = "example-tfex_name"
resource_group_name = "example-resources"
namespace_name = "example-namespace"
topic_name = "example-servicebus_topic"
}
output "servicebus_authorization_rule_id" {
value = data.azurem_servicebus_topic_authorization_rule.example.id
}
The following arguments are supported:
name
- The name of the ServiceBus Topic Authorization Rule resource.
resource_group_name
- The name of the resource group in which the ServiceBus Namespace exists.
namespace_name
- The name of the ServiceBus Namespace.
topic_name
- The name of the ServiceBus Topic.
The following attributes are exported:
id
- The ServiceBus Topic ID.
primary_key
- The Primary Key for the ServiceBus Topic authorization Rule.
primary_connection_string
- The Primary Connection String for the ServiceBus Topic authorization Rule.
secondary_key
- The Secondary Key for the ServiceBus Topic authorization Rule.
secondary_connection_string
- The Secondary Connection String for the ServiceBus Topic authorization Rule.
primary_connection_string_alias
- The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
secondary_connection_string_alias
- The alias Secondary Connection String for the ServiceBus Namespace
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ServiceBus Topic Authorization Rule.