Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
Gets information of Cloud Foundry stacks present.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const all = cloudfoundry.getStacks({
name: "stack",
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
all = cloudfoundry.get_stacks(name="stack")
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.GetStacks(ctx, &cloudfoundry.GetStacksArgs{
Name: pulumi.StringRef("stack"),
}, 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 all = Cloudfoundry.GetStacks.Invoke(new()
{
Name = "stack",
});
});
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.GetStacksArgs;
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 all = CloudfoundryFunctions.getStacks(GetStacksArgs.builder()
.name("stack")
.build());
}
}
variables:
all:
fn::invoke:
function: cloudfoundry:getStacks
arguments:
name: stack
Example coming soon!
Using getStacks
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 getStacks(args: GetStacksArgs, opts?: InvokeOptions): Promise<GetStacksResult>
function getStacksOutput(args: GetStacksOutputArgs, opts?: InvokeOutputOptions): Output<GetStacksResult>def get_stacks(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStacksResult
def get_stacks_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetStacksResult]func GetStacks(ctx *Context, args *GetStacksArgs, opts ...InvokeOption) (*GetStacksResult, error)
func GetStacksOutput(ctx *Context, args *GetStacksOutputArgs, opts ...InvokeOption) GetStacksResultOutput> Note: This function is named GetStacks in the Go SDK.
public static class GetStacks
{
public static Task<GetStacksResult> InvokeAsync(GetStacksArgs args, InvokeOptions? opts = null)
public static Output<GetStacksResult> Invoke(GetStacksInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetStacksResult> Invoke(GetStacksInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetStacksResult> getStacks(GetStacksArgs args, InvokeOptions options)
public static Output<GetStacksResult> getStacks(GetStacksArgs args, InvokeOptions options)
public static Output<GetStacksResult> getStacks(GetStacksArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudfoundry:index/getStacks:getStacks
arguments:
# arguments dictionarydata "cloudfoundry_get_stacks" "name" {
# arguments
}The following arguments are supported:
- Name string
- Name of the stack to filter by
- Name string
- Name of the stack to filter by
- name string
- Name of the stack to filter by
- name String
- Name of the stack to filter by
- name string
- Name of the stack to filter by
- name str
- Name of the stack to filter by
- name String
- Name of the stack to filter by
getStacks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Stacks
List<Get
Stacks Stack> - The list of stacks
- Name string
- Name of the stack to filter by
- Id string
- The provider-assigned unique ID for this managed resource.
- Stacks
[]Get
Stacks Stack - The list of stacks
- Name string
- Name of the stack to filter by
- id string
- The provider-assigned unique ID for this managed resource.
- stacks list(object)
- The list of stacks
- name string
- Name of the stack to filter by
- id String
- The provider-assigned unique ID for this managed resource.
- stacks
List<Get
Stacks Stack> - The list of stacks
- name String
- Name of the stack to filter by
- id string
- The provider-assigned unique ID for this managed resource.
- stacks
Get
Stacks Stack[] - The list of stacks
- name string
- Name of the stack to filter by
- id str
- The provider-assigned unique ID for this managed resource.
- stacks
Sequence[Get
Stacks Stack] - The list of stacks
- name str
- Name of the stack to filter by
- id String
- The provider-assigned unique ID for this managed resource.
- stacks List<Property Map>
- The list of stacks
- name String
- Name of the stack to filter by
Supporting Types
GetStacksStack
- Annotations Dictionary<string, string>
- The annotations associated with Cloud Foundry resources.
- Build
Rootfs stringImage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Default bool
- Whether the stack is configured to be the default stack for new applications.
- Description string
- The description of the stack
- Id string
- The GUID of the object.
- Labels Dictionary<string, string>
- The labels associated with Cloud Foundry resources.
- Name string
- The name of the stack
- Run
Rootfs stringImage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- Annotations map[string]string
- The annotations associated with Cloud Foundry resources.
- Build
Rootfs stringImage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Default bool
- Whether the stack is configured to be the default stack for new applications.
- Description string
- The description of the stack
- Id string
- The GUID of the object.
- Labels map[string]string
- The labels associated with Cloud Foundry resources.
- Name string
- The name of the stack
- Run
Rootfs stringImage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- annotations map(string)
- The annotations associated with Cloud Foundry resources.
- build_
rootfs_ stringimage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- created_
at string - The date and time when the resource was created in RFC3339 format.
- default bool
- Whether the stack is configured to be the default stack for new applications.
- description string
- The description of the stack
- id string
- The GUID of the object.
- labels map(string)
- The labels associated with Cloud Foundry resources.
- name string
- The name of the stack
- run_
rootfs_ stringimage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- updated_
at string - The date and time when the resource was updated in RFC3339 format.
- annotations Map<String,String>
- The annotations associated with Cloud Foundry resources.
- build
Rootfs StringImage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- created
At String - The date and time when the resource was created in RFC3339 format.
- default_ Boolean
- Whether the stack is configured to be the default stack for new applications.
- description String
- The description of the stack
- id String
- The GUID of the object.
- labels Map<String,String>
- The labels associated with Cloud Foundry resources.
- name String
- The name of the stack
- run
Rootfs StringImage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- annotations {[key: string]: string}
- The annotations associated with Cloud Foundry resources.
- build
Rootfs stringImage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- created
At string - The date and time when the resource was created in RFC3339 format.
- default boolean
- Whether the stack is configured to be the default stack for new applications.
- description string
- The description of the stack
- id string
- The GUID of the object.
- labels {[key: string]: string}
- The labels associated with Cloud Foundry resources.
- name string
- The name of the stack
- run
Rootfs stringImage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- updated
At string - The date and time when the resource was updated in RFC3339 format.
- annotations Mapping[str, str]
- The annotations associated with Cloud Foundry resources.
- build_
rootfs_ strimage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- created_
at str - The date and time when the resource was created in RFC3339 format.
- default bool
- Whether the stack is configured to be the default stack for new applications.
- description str
- The description of the stack
- id str
- The GUID of the object.
- labels Mapping[str, str]
- The labels associated with Cloud Foundry resources.
- name str
- The name of the stack
- run_
rootfs_ strimage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- updated_
at str - The date and time when the resource was updated in RFC3339 format.
- annotations Map<String>
- The annotations associated with Cloud Foundry resources.
- build
Rootfs StringImage - The name of the stack image associated with staging/building Apps. If a stack does not have unique images, this will be the same as the stack name.
- created
At String - The date and time when the resource was created in RFC3339 format.
- default Boolean
- Whether the stack is configured to be the default stack for new applications.
- description String
- The description of the stack
- id String
- The GUID of the object.
- labels Map<String>
- The labels associated with Cloud Foundry resources.
- name String
- The name of the stack
- run
Rootfs StringImage - The name of the stack image associated with running Apps + Tasks. If a stack does not have unique images, this will be the same as the stack name.
- updated
At String - The date and time when the resource was updated in RFC3339 format.
Package Details
- Repository
- cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundryTerraform Provider.
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry