cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
cloudfoundry.getApp
Explore with Pulumi AI
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
Gets information on a Cloud Foundry application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const my_app = cloudfoundry.getApp({
nameOrId: "my-app",
space: "space-id",
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
my_app = cloudfoundry.get_app(name_or_id="my-app",
space="space-id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfoundry.LookupApp(ctx, &cloudfoundry.LookupAppArgs{
NameOrId: "my-app",
Space: "space-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var my_app = Cloudfoundry.GetApp.Invoke(new()
{
NameOrId = "my-app",
Space = "space-id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudfoundry.CloudfoundryFunctions;
import com.pulumi.cloudfoundry.inputs.GetAppArgs;
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 my-app = CloudfoundryFunctions.getApp(GetAppArgs.builder()
.nameOrId("my-app")
.space("space-id")
.build());
}
}
variables:
my-app:
fn::invoke:
function: cloudfoundry:getApp
arguments:
nameOrId: my-app
space: space-id
Using getApp
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 getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
function getAppOutput(args: GetAppOutputArgs, opts?: InvokeOptions): Output<GetAppResult>
def get_app(annotations: Optional[Mapping[str, str]] = None,
buildpacks: Optional[Sequence[str]] = None,
id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name_or_id: Optional[str] = None,
space: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppResult
def get_app_output(annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
buildpacks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name_or_id: Optional[pulumi.Input[str]] = None,
space: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]
func LookupApp(ctx *Context, args *LookupAppArgs, opts ...InvokeOption) (*LookupAppResult, error)
func LookupAppOutput(ctx *Context, args *LookupAppOutputArgs, opts ...InvokeOption) LookupAppResultOutput
> Note: This function is named LookupApp
in the Go SDK.
public static class GetApp
{
public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
public static Output<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
fn::invoke:
function: cloudfoundry:index/getApp:getApp
arguments:
# arguments dictionary
The following arguments are supported:
- Name
Or stringId - The name of the application or its guid.
- Space string
- The space guid of the app.
- Annotations Dictionary<string, string>
- Annotations as described here.
- Buildpacks List<string>
- Id string
- The GUID of the application
- Labels Dictionary<string, string>
- Labels as described here.
- Name
Or stringId - The name of the application or its guid.
- Space string
- The space guid of the app.
- Annotations map[string]string
- Annotations as described here.
- Buildpacks []string
- Id string
- The GUID of the application
- Labels map[string]string
- Labels as described here.
- name
Or StringId - The name of the application or its guid.
- space String
- The space guid of the app.
- annotations Map<String,String>
- Annotations as described here.
- buildpacks List<String>
- id String
- The GUID of the application
- labels Map<String,String>
- Labels as described here.
- name
Or stringId - The name of the application or its guid.
- space string
- The space guid of the app.
- annotations {[key: string]: string}
- Annotations as described here.
- buildpacks string[]
- id string
- The GUID of the application
- labels {[key: string]: string}
- Labels as described here.
- name_
or_ strid - The name of the application or its guid.
- space str
- The space guid of the app.
- annotations Mapping[str, str]
- Annotations as described here.
- buildpacks Sequence[str]
- id str
- The GUID of the application
- labels Mapping[str, str]
- Labels as described here.
- name
Or StringId - The name of the application or its guid.
- space String
- The space guid of the app.
- annotations Map<String>
- Annotations as described here.
- buildpacks List<String>
- id String
- The GUID of the application
- labels Map<String>
- Labels as described here.
getApp Result
The following output properties are available:
- Buildpack string
- The buildpack used to stage the application.
- Command string
- The custom start command for the application.
- Disk
Quota double - The disk space to be allocated for each application instance in megabytes.
- Enable
Ssh bool - Whether to enable or disable SSH access to the container.
- Environment Dictionary<string, string>
- Key/value pairs of custom environment variables to set in your app.
- Health
Check stringHttp Endpoint - The endpoint for the http health check type.
- Health
Check doubleTimeout - The timeout in seconds for the health check.
- Health
Check stringType - The health check type which can be one of "
port
", "process
", "http
" or "none
". - Id string
- The GUID of the application
- Instances double
- The number of app instances that you want to start. Defaults to 1.
- Memory double
- The memory limit for each application instance in megabytes.
- Name string
- The name of the application.
- Name
Or stringId - Space string
- Stack string
- The GUID of the stack the application will be deployed to.
- State string
- Current state of the app (
stopped
orrunning
orstarted
). - Annotations Dictionary<string, string>
- Annotations as described here.
- Buildpacks List<string>
- Labels Dictionary<string, string>
- Labels as described here.
- Buildpack string
- The buildpack used to stage the application.
- Command string
- The custom start command for the application.
- Disk
Quota float64 - The disk space to be allocated for each application instance in megabytes.
- Enable
Ssh bool - Whether to enable or disable SSH access to the container.
- Environment map[string]string
- Key/value pairs of custom environment variables to set in your app.
- Health
Check stringHttp Endpoint - The endpoint for the http health check type.
- Health
Check float64Timeout - The timeout in seconds for the health check.
- Health
Check stringType - The health check type which can be one of "
port
", "process
", "http
" or "none
". - Id string
- The GUID of the application
- Instances float64
- The number of app instances that you want to start. Defaults to 1.
- Memory float64
- The memory limit for each application instance in megabytes.
- Name string
- The name of the application.
- Name
Or stringId - Space string
- Stack string
- The GUID of the stack the application will be deployed to.
- State string
- Current state of the app (
stopped
orrunning
orstarted
). - Annotations map[string]string
- Annotations as described here.
- Buildpacks []string
- Labels map[string]string
- Labels as described here.
- buildpack String
- The buildpack used to stage the application.
- command String
- The custom start command for the application.
- disk
Quota Double - The disk space to be allocated for each application instance in megabytes.
- enable
Ssh Boolean - Whether to enable or disable SSH access to the container.
- environment Map<String,String>
- Key/value pairs of custom environment variables to set in your app.
- health
Check StringHttp Endpoint - The endpoint for the http health check type.
- health
Check DoubleTimeout - The timeout in seconds for the health check.
- health
Check StringType - The health check type which can be one of "
port
", "process
", "http
" or "none
". - id String
- The GUID of the application
- instances Double
- The number of app instances that you want to start. Defaults to 1.
- memory Double
- The memory limit for each application instance in megabytes.
- name String
- The name of the application.
- name
Or StringId - space String
- stack String
- The GUID of the stack the application will be deployed to.
- state String
- Current state of the app (
stopped
orrunning
orstarted
). - annotations Map<String,String>
- Annotations as described here.
- buildpacks List<String>
- labels Map<String,String>
- Labels as described here.
- buildpack string
- The buildpack used to stage the application.
- command string
- The custom start command for the application.
- disk
Quota number - The disk space to be allocated for each application instance in megabytes.
- enable
Ssh boolean - Whether to enable or disable SSH access to the container.
- environment {[key: string]: string}
- Key/value pairs of custom environment variables to set in your app.
- health
Check stringHttp Endpoint - The endpoint for the http health check type.
- health
Check numberTimeout - The timeout in seconds for the health check.
- health
Check stringType - The health check type which can be one of "
port
", "process
", "http
" or "none
". - id string
- The GUID of the application
- instances number
- The number of app instances that you want to start. Defaults to 1.
- memory number
- The memory limit for each application instance in megabytes.
- name string
- The name of the application.
- name
Or stringId - space string
- stack string
- The GUID of the stack the application will be deployed to.
- state string
- Current state of the app (
stopped
orrunning
orstarted
). - annotations {[key: string]: string}
- Annotations as described here.
- buildpacks string[]
- labels {[key: string]: string}
- Labels as described here.
- buildpack str
- The buildpack used to stage the application.
- command str
- The custom start command for the application.
- disk_
quota float - The disk space to be allocated for each application instance in megabytes.
- enable_
ssh bool - Whether to enable or disable SSH access to the container.
- environment Mapping[str, str]
- Key/value pairs of custom environment variables to set in your app.
- health_
check_ strhttp_ endpoint - The endpoint for the http health check type.
- health_
check_ floattimeout - The timeout in seconds for the health check.
- health_
check_ strtype - The health check type which can be one of "
port
", "process
", "http
" or "none
". - id str
- The GUID of the application
- instances float
- The number of app instances that you want to start. Defaults to 1.
- memory float
- The memory limit for each application instance in megabytes.
- name str
- The name of the application.
- name_
or_ strid - space str
- stack str
- The GUID of the stack the application will be deployed to.
- state str
- Current state of the app (
stopped
orrunning
orstarted
). - annotations Mapping[str, str]
- Annotations as described here.
- buildpacks Sequence[str]
- labels Mapping[str, str]
- Labels as described here.
- buildpack String
- The buildpack used to stage the application.
- command String
- The custom start command for the application.
- disk
Quota Number - The disk space to be allocated for each application instance in megabytes.
- enable
Ssh Boolean - Whether to enable or disable SSH access to the container.
- environment Map<String>
- Key/value pairs of custom environment variables to set in your app.
- health
Check StringHttp Endpoint - The endpoint for the http health check type.
- health
Check NumberTimeout - The timeout in seconds for the health check.
- health
Check StringType - The health check type which can be one of "
port
", "process
", "http
" or "none
". - id String
- The GUID of the application
- instances Number
- The number of app instances that you want to start. Defaults to 1.
- memory Number
- The memory limit for each application instance in megabytes.
- name String
- The name of the application.
- name
Or StringId - space String
- stack String
- The GUID of the stack the application will be deployed to.
- state String
- Current state of the app (
stopped
orrunning
orstarted
). - annotations Map<String>
- Annotations as described here.
- buildpacks List<String>
- labels Map<String>
- Labels as described here.
Package Details
- Repository
- cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundry
Terraform Provider.
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community