We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.appplatform.getSpringCloudApp
Explore with Pulumi AI
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/v5/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.
- Resource
Group stringName - The name of the Resource Group where the Spring Cloud Application exists.
- Service
Name string - The name of the Spring Cloud Service.
- Name string
- The name of the Spring Cloud Application.
- Resource
Group stringName - The name of the Resource Group where the Spring Cloud Application exists.
- Service
Name string - The name of the Spring Cloud Service.
- name String
- The name of the Spring Cloud Application.
- resource
Group StringName - The name of the Resource Group where the Spring Cloud Application exists.
- service
Name String - The name of the Spring Cloud Service.
- name string
- The name of the Spring Cloud Application.
- resource
Group stringName - The name of the Resource Group where the Spring Cloud Application exists.
- service
Name string - The name of the Spring Cloud Service.
- name str
- The name of the Spring Cloud Application.
- resource_
group_ strname - 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.
- resource
Group StringName - The name of the Resource Group where the Spring Cloud Application exists.
- service
Name String - The name of the Spring Cloud Service.
getSpringCloudApp Result
The following output properties are available:
- Fqdn string
- The Fully Qualified DNS Name.
- Https
Only bool - Is only HTTPS allowed?
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Spring Cloud App Identity> - An
identity
block as defined below. - Is
Public bool - Does the Spring Cloud Application have public endpoint?
- Name string
- Persistent
Disks List<GetSpring Cloud App Persistent Disk> - A
persistent_disk
block as defined below. - Resource
Group stringName - Service
Name string - Tls
Enabled bool - Is End to End TLS Enabled?
- Url string
- The public endpoint of the Spring Cloud Application.
- Fqdn string
- The Fully Qualified DNS Name.
- Https
Only bool - Is only HTTPS allowed?
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Spring Cloud App Identity - An
identity
block as defined below. - Is
Public bool - Does the Spring Cloud Application have public endpoint?
- Name string
- Persistent
Disks []GetSpring Cloud App Persistent Disk - A
persistent_disk
block as defined below. - Resource
Group stringName - Service
Name string - Tls
Enabled bool - Is End to End TLS Enabled?
- Url string
- The public endpoint of the Spring Cloud Application.
- fqdn String
- The Fully Qualified DNS Name.
- https
Only Boolean - Is only HTTPS allowed?
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Spring Cloud App Identity> - An
identity
block as defined below. - is
Public Boolean - Does the Spring Cloud Application have public endpoint?
- name String
- persistent
Disks List<GetSpring Cloud App Persistent Disk> - A
persistent_disk
block as defined below. - resource
Group StringName - service
Name String - tls
Enabled Boolean - Is End to End TLS Enabled?
- url String
- The public endpoint of the Spring Cloud Application.
- fqdn string
- The Fully Qualified DNS Name.
- https
Only boolean - Is only HTTPS allowed?
- id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Spring Cloud App Identity[] - An
identity
block as defined below. - is
Public boolean - Does the Spring Cloud Application have public endpoint?
- name string
- persistent
Disks GetSpring Cloud App Persistent Disk[] - A
persistent_disk
block as defined below. - resource
Group stringName - service
Name string - tls
Enabled 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[Get
Spring Cloud App Identity] - An
identity
block as defined below. - is_
public bool - Does the Spring Cloud Application have public endpoint?
- name str
- persistent_
disks Sequence[GetSpring Cloud App Persistent Disk] - A
persistent_disk
block as defined below. - resource_
group_ strname - 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.
- https
Only 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. - is
Public Boolean - Does the Spring Cloud Application have public endpoint?
- name String
- persistent
Disks List<Property Map> - A
persistent_disk
block as defined below. - resource
Group StringName - service
Name String - tls
Enabled Boolean - Is End to End TLS Enabled?
- url String
- The public endpoint of the Spring Cloud Application.
Supporting Types
GetSpringCloudAppIdentity
- Identity
Ids List<string> - Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- Tenant
Id 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 []string - Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- Tenant
Id 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 List<String> - principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenant
Id 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 string[] - principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenant
Id 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.
- identity
Ids List<String> - principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenant
Id 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
- mount_
path str - The mount path of the persistent disk.
- size_
in_ intgb - 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.