Use this data source to access information about an existing Spring Cloud Application.
data "azurerm_spring_cloud_app" "example" {
name = azurerm_spring_cloud_app.example.name
resource_group_name = azurerm_spring_cloud_app.example.resource_group_name
service_name = azurerm_spring_cloud_app.example.service_name
}
output "spring_cloud_app_id" {
value = data.azurerm_spring_cloud_app.example.id
}
The following arguments are supported:
name
- (Required) The name of the Spring Cloud Application.
resource_group_name
- (Required) The name of the Resource Group where the Spring Cloud Application exists.
service_name
- (Required) The name of the Spring Cloud Service.
The following attributes are exported:
id
- The ID of Spring Cloud Application.
fqdn
- The Fully Qualified DNS Name.
https_only
- Is only HTTPS allowed?
identity
- An identity
block as defined below.
is_public
- Does the Spring Cloud Application have public endpoint?
persistent_disk
- A persistent_disk
block as defined below.
url
- The public endpoint of the Spring Cloud Application.
tls_enabled
- Is End to End TLS Enabled?
The identity
block exports the following:
principal_id
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
tenant_id
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
type
- The Type of Managed Identity assigned to the Spring Cloud Application.
The persistent_disk
block exports the following:
mount_path
- The mount path of the persistent disk.
size_in_gb
- The size of the persistent disk in GB.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Spring Cloud Application.