Use this data source to access information about an existing Azure Web Pubsub service.
data "azurerm_web_pubsub" "example" {
name = "test-webpubsub"
resource_group_name = "wps-resource-group"
}
The following arguments are supported:
name
- Specifies the name of the Web Pubsub service.
resource_group_name
- Specifies the name of the resource group the Web Pubsub service is located in.
The following attributes are exported:
id
- The ID of the Web Pubsub service.
hostname
- The FQDN of the Web Pubsub service.
ip_address
- The publicly accessible IP of the Web Pubsub service.
location
- The Azure location where the Web Pubsub service exists.
public_port
- The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
server_port
- The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
primary_access_key
- The primary access key of the Web Pubsub service.
primary_connection_string
- The primary connection string of the Web Pubsub service.
secondary_access_key
- The secondary access key of the Web Pubsub service.
secondary_connection_string
- The secondary connection string of the Web Pubsub service.
identity
- An identity
block as documented below.
The identity
block exports the following:
type
- The type of identity used for the web pubsub.
user_assigned_identity_id
- The ID of the User Assigned Identity. This value will be empty when using system assigned identity.
principal_id
- The principal id of the system assigned identity.
tenant_id
- The tenant id of the system assigned identity.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Web Pubsub service.