Skip to content

Data Source: azurermSpringCloudApp

Use this data source to access information about an existing Spring Cloud Application.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermSpringCloudAppExample =
  new azurerm.dataAzurermSpringCloudApp.DataAzurermSpringCloudApp(
    this,
    "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}",
    }
  );
new cdktf.TerraformOutput(this, "spring_cloud_app_id", {
  value: dataAzurermSpringCloudAppExample.id,
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Spring Cloud Application.

  • resourceGroupName - (Required) The name of the Resource Group where the Spring Cloud Application exists.

  • serviceName - (Required) The name of the Spring Cloud Service.

Attributes Reference

The following attributes are exported:

  • id - The ID of Spring Cloud Application.

  • fqdn - The Fully Qualified DNS Name.

  • httpsOnly - Is only HTTPS allowed?

  • identity - An identity block as defined below.

  • isPublic - Does the Spring Cloud Application have public endpoint?

  • persistentDisk - A persistentDisk block as defined below.

  • url - The public endpoint of the Spring Cloud Application.

  • tlsEnabled - Is End to End TLS Enabled?


The identity block exports the following:

  • principalId - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.

  • tenantId - 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 persistentDisk block exports the following:

  • mountPath - The mount path of the persistent disk.

  • sizeInGb - The size of the persistent disk in GB.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Spring Cloud Application.