1. Packages
  2. Azure Classic
  3. API Docs
  4. appplatform
  5. getSpringCloudApp

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.appplatform.getSpringCloudApp

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.appplatform.getSpringCloudApp({
        name: exampleAzurermSpringCloudApp.name,
        resourceGroupName: exampleAzurermSpringCloudApp.resourceGroupName,
        serviceName: exampleAzurermSpringCloudApp.serviceName,
    });
    export const springCloudAppId = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.appplatform.get_spring_cloud_app(name=example_azurerm_spring_cloud_app["name"],
        resource_group_name=example_azurerm_spring_cloud_app["resourceGroupName"],
        service_name=example_azurerm_spring_cloud_app["serviceName"])
    pulumi.export("springCloudAppId", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := appplatform.LookupSpringCloudApp(ctx, &appplatform.LookupSpringCloudAppArgs{
    			Name:              exampleAzurermSpringCloudApp.Name,
    			ResourceGroupName: exampleAzurermSpringCloudApp.ResourceGroupName,
    			ServiceName:       exampleAzurermSpringCloudApp.ServiceName,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("springCloudAppId", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.AppPlatform.GetSpringCloudApp.Invoke(new()
        {
            Name = exampleAzurermSpringCloudApp.Name,
            ResourceGroupName = exampleAzurermSpringCloudApp.ResourceGroupName,
            ServiceName = exampleAzurermSpringCloudApp.ServiceName,
        });
    
        return new Dictionary<string, object?>
        {
            ["springCloudAppId"] = example.Apply(getSpringCloudAppResult => getSpringCloudAppResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.appplatform.AppplatformFunctions;
    import com.pulumi.azure.appplatform.inputs.GetSpringCloudAppArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = AppplatformFunctions.getSpringCloudApp(GetSpringCloudAppArgs.builder()
                .name(exampleAzurermSpringCloudApp.name())
                .resourceGroupName(exampleAzurermSpringCloudApp.resourceGroupName())
                .serviceName(exampleAzurermSpringCloudApp.serviceName())
                .build());
    
            ctx.export("springCloudAppId", example.applyValue(getSpringCloudAppResult -> getSpringCloudAppResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:appplatform:getSpringCloudApp
          Arguments:
            name: ${exampleAzurermSpringCloudApp.name}
            resourceGroupName: ${exampleAzurermSpringCloudApp.resourceGroupName}
            serviceName: ${exampleAzurermSpringCloudApp.serviceName}
    outputs:
      springCloudAppId: ${example.id}
    

    Using getSpringCloudApp

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSpringCloudApp(args: GetSpringCloudAppArgs, opts?: InvokeOptions): Promise<GetSpringCloudAppResult>
    function getSpringCloudAppOutput(args: GetSpringCloudAppOutputArgs, opts?: InvokeOptions): Output<GetSpringCloudAppResult>
    def get_spring_cloud_app(name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             service_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSpringCloudAppResult
    def get_spring_cloud_app_output(name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             service_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSpringCloudAppResult]
    func LookupSpringCloudApp(ctx *Context, args *LookupSpringCloudAppArgs, opts ...InvokeOption) (*LookupSpringCloudAppResult, error)
    func LookupSpringCloudAppOutput(ctx *Context, args *LookupSpringCloudAppOutputArgs, opts ...InvokeOption) LookupSpringCloudAppResultOutput

    > Note: This function is named LookupSpringCloudApp in the Go SDK.

    public static class GetSpringCloudApp 
    {
        public static Task<GetSpringCloudAppResult> InvokeAsync(GetSpringCloudAppArgs args, InvokeOptions? opts = null)
        public static Output<GetSpringCloudAppResult> Invoke(GetSpringCloudAppInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSpringCloudAppResult> getSpringCloudApp(GetSpringCloudAppArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:appplatform/getSpringCloudApp:getSpringCloudApp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Spring Cloud Application.
    ResourceGroupName string
    The name of the Resource Group where the Spring Cloud Application exists.
    ServiceName string
    The name of the Spring Cloud Service.
    Name string
    The name of the Spring Cloud Application.
    ResourceGroupName string
    The name of the Resource Group where the Spring Cloud Application exists.
    ServiceName string
    The name of the Spring Cloud Service.
    name String
    The name of the Spring Cloud Application.
    resourceGroupName String
    The name of the Resource Group where the Spring Cloud Application exists.
    serviceName String
    The name of the Spring Cloud Service.
    name string
    The name of the Spring Cloud Application.
    resourceGroupName string
    The name of the Resource Group where the Spring Cloud Application exists.
    serviceName string
    The name of the Spring Cloud Service.
    name str
    The name of the Spring Cloud Application.
    resource_group_name str
    The name of the Resource Group where the Spring Cloud Application exists.
    service_name str
    The name of the Spring Cloud Service.
    name String
    The name of the Spring Cloud Application.
    resourceGroupName String
    The name of the Resource Group where the Spring Cloud Application exists.
    serviceName String
    The name of the Spring Cloud Service.

    getSpringCloudApp Result

    The following output properties are available:

    Fqdn string
    The Fully Qualified DNS Name.
    HttpsOnly bool
    Is only HTTPS allowed?
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetSpringCloudAppIdentity>
    An identity block as defined below.
    IsPublic bool
    Does the Spring Cloud Application have public endpoint?
    Name string
    PersistentDisks List<GetSpringCloudAppPersistentDisk>
    A persistent_disk block as defined below.
    ResourceGroupName string
    ServiceName string
    TlsEnabled bool
    Is End to End TLS Enabled?
    Url string
    The public endpoint of the Spring Cloud Application.
    Fqdn string
    The Fully Qualified DNS Name.
    HttpsOnly bool
    Is only HTTPS allowed?
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetSpringCloudAppIdentity
    An identity block as defined below.
    IsPublic bool
    Does the Spring Cloud Application have public endpoint?
    Name string
    PersistentDisks []GetSpringCloudAppPersistentDisk
    A persistent_disk block as defined below.
    ResourceGroupName string
    ServiceName string
    TlsEnabled bool
    Is End to End TLS Enabled?
    Url string
    The public endpoint of the Spring Cloud Application.
    fqdn String
    The Fully Qualified DNS Name.
    httpsOnly Boolean
    Is only HTTPS allowed?
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetSpringCloudAppIdentity>
    An identity block as defined below.
    isPublic Boolean
    Does the Spring Cloud Application have public endpoint?
    name String
    persistentDisks List<GetSpringCloudAppPersistentDisk>
    A persistent_disk block as defined below.
    resourceGroupName String
    serviceName String
    tlsEnabled Boolean
    Is End to End TLS Enabled?
    url String
    The public endpoint of the Spring Cloud Application.
    fqdn string
    The Fully Qualified DNS Name.
    httpsOnly boolean
    Is only HTTPS allowed?
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetSpringCloudAppIdentity[]
    An identity block as defined below.
    isPublic boolean
    Does the Spring Cloud Application have public endpoint?
    name string
    persistentDisks GetSpringCloudAppPersistentDisk[]
    A persistent_disk block as defined below.
    resourceGroupName string
    serviceName string
    tlsEnabled boolean
    Is End to End TLS Enabled?
    url string
    The public endpoint of the Spring Cloud Application.
    fqdn str
    The Fully Qualified DNS Name.
    https_only bool
    Is only HTTPS allowed?
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetSpringCloudAppIdentity]
    An identity block as defined below.
    is_public bool
    Does the Spring Cloud Application have public endpoint?
    name str
    persistent_disks Sequence[GetSpringCloudAppPersistentDisk]
    A persistent_disk block as defined below.
    resource_group_name str
    service_name str
    tls_enabled bool
    Is End to End TLS Enabled?
    url str
    The public endpoint of the Spring Cloud Application.
    fqdn String
    The Fully Qualified DNS Name.
    httpsOnly Boolean
    Is only HTTPS allowed?
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    An identity block as defined below.
    isPublic Boolean
    Does the Spring Cloud Application have public endpoint?
    name String
    persistentDisks List<Property Map>
    A persistent_disk block as defined below.
    resourceGroupName String
    serviceName String
    tlsEnabled Boolean
    Is End to End TLS Enabled?
    url String
    The public endpoint of the Spring Cloud Application.

    Supporting Types

    GetSpringCloudAppIdentity

    IdentityIds List<string>
    PrincipalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    TenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    Type string
    The Type of Managed Identity assigned to the Spring Cloud Application.
    IdentityIds []string
    PrincipalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    TenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    Type string
    The Type of Managed Identity assigned to the Spring Cloud Application.
    identityIds List<String>
    principalId String
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    tenantId String
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    type String
    The Type of Managed Identity assigned to the Spring Cloud Application.
    identityIds string[]
    principalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    tenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    type string
    The Type of Managed Identity assigned to the Spring Cloud Application.
    identity_ids Sequence[str]
    principal_id str
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    tenant_id str
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    type str
    The Type of Managed Identity assigned to the Spring Cloud Application.
    identityIds List<String>
    principalId String
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    tenantId String
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
    type String
    The Type of Managed Identity assigned to the Spring Cloud Application.

    GetSpringCloudAppPersistentDisk

    MountPath string
    The mount path of the persistent disk.
    SizeInGb int
    The size of the persistent disk in GB.
    MountPath string
    The mount path of the persistent disk.
    SizeInGb int
    The size of the persistent disk in GB.
    mountPath String
    The mount path of the persistent disk.
    sizeInGb Integer
    The size of the persistent disk in GB.
    mountPath string
    The mount path of the persistent disk.
    sizeInGb number
    The size of the persistent disk in GB.
    mount_path str
    The mount path of the persistent disk.
    size_in_gb int
    The size of the persistent disk in GB.
    mountPath String
    The mount path of the persistent disk.
    sizeInGb Number
    The size of the persistent disk in GB.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi