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 buildpacks present.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
export = async () => {
const buildpack = await cloudfoundry.getBuildpacks({
name: "java_buildpack",
});
return {
buildpack: buildpack,
};
}
import pulumi
import pulumi_cloudfoundry as cloudfoundry
buildpack = cloudfoundry.get_buildpacks(name="java_buildpack")
pulumi.export("buildpack", buildpack)
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 {
buildpack, err := cloudfoundry.GetBuildpacks(ctx, &cloudfoundry.GetBuildpacksArgs{
Name: pulumi.StringRef("java_buildpack"),
}, nil)
if err != nil {
return err
}
ctx.Export("buildpack", buildpack)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var buildpack = Cloudfoundry.GetBuildpacks.Invoke(new()
{
Name = "java_buildpack",
});
return new Dictionary<string, object?>
{
["buildpack"] = buildpack,
};
});
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.GetBuildpacksArgs;
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 buildpack = CloudfoundryFunctions.getBuildpacks(GetBuildpacksArgs.builder()
.name("java_buildpack")
.build());
ctx.export("buildpack", buildpack);
}
}
variables:
buildpack:
fn::invoke:
function: cloudfoundry:getBuildpacks
arguments:
name: java_buildpack
outputs:
buildpack: ${buildpack}
Example coming soon!
Using getBuildpacks
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 getBuildpacks(args: GetBuildpacksArgs, opts?: InvokeOptions): Promise<GetBuildpacksResult>
function getBuildpacksOutput(args: GetBuildpacksOutputArgs, opts?: InvokeOutputOptions): Output<GetBuildpacksResult>def get_buildpacks(name: Optional[str] = None,
stack: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBuildpacksResult
def get_buildpacks_output(name: pulumi.Input[Optional[str]] = None,
stack: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetBuildpacksResult]func GetBuildpacks(ctx *Context, args *GetBuildpacksArgs, opts ...InvokeOption) (*GetBuildpacksResult, error)
func GetBuildpacksOutput(ctx *Context, args *GetBuildpacksOutputArgs, opts ...InvokeOption) GetBuildpacksResultOutput> Note: This function is named GetBuildpacks in the Go SDK.
public static class GetBuildpacks
{
public static Task<GetBuildpacksResult> InvokeAsync(GetBuildpacksArgs args, InvokeOptions? opts = null)
public static Output<GetBuildpacksResult> Invoke(GetBuildpacksInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetBuildpacksResult> Invoke(GetBuildpacksInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetBuildpacksResult> getBuildpacks(GetBuildpacksArgs args, InvokeOptions options)
public static Output<GetBuildpacksResult> getBuildpacks(GetBuildpacksArgs args, InvokeOptions options)
public static Output<GetBuildpacksResult> getBuildpacks(GetBuildpacksArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudfoundry:index/getBuildpacks:getBuildpacks
arguments:
# arguments dictionarydata "cloudfoundry_get_buildpacks" "name" {
# arguments
}The following arguments are supported:
getBuildpacks Result
The following output properties are available:
- Buildpacks
List<Get
Buildpacks Buildpack> - The list of buildpacks
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the buildpack to filter by
- Stack string
- The name of the stack to filter by
- Buildpacks
[]Get
Buildpacks Buildpack - The list of buildpacks
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the buildpack to filter by
- Stack string
- The name of the stack to filter by
- buildpacks list(object)
- The list of buildpacks
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the buildpack to filter by
- stack string
- The name of the stack to filter by
- buildpacks
List<Get
Buildpacks Buildpack> - The list of buildpacks
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the buildpack to filter by
- stack String
- The name of the stack to filter by
- buildpacks
Get
Buildpacks Buildpack[] - The list of buildpacks
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the buildpack to filter by
- stack string
- The name of the stack to filter by
- buildpacks
Sequence[Get
Buildpacks Buildpack] - The list of buildpacks
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the buildpack to filter by
- stack str
- The name of the stack to filter by
- buildpacks List<Property Map>
- The list of buildpacks
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the buildpack to filter by
- stack String
- The name of the stack to filter by
Supporting Types
GetBuildpacksBuildpack
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Enabled bool
- Whether or not the buildpack can be used for staging
- Filename string
- The filename of the buildpack
- Id string
- The GUID of the object.
- Locked bool
- Whether or not the buildpack is locked to prevent updating the bits
- Name string
- Name of the buildpack
- Position double
- The order in which the buildpacks are checked during buildpack auto-detection
- State string
- The state of the buildpack
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- Annotations Dictionary<string, string>
- The annotations associated with Cloud Foundry resources. Add as described here.
- Labels Dictionary<string, string>
- The labels associated with Cloud Foundry resources. Add as described here.
- Stack string
- The name of the stack that the buildpack will use
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Enabled bool
- Whether or not the buildpack can be used for staging
- Filename string
- The filename of the buildpack
- Id string
- The GUID of the object.
- Locked bool
- Whether or not the buildpack is locked to prevent updating the bits
- Name string
- Name of the buildpack
- Position float64
- The order in which the buildpacks are checked during buildpack auto-detection
- State string
- The state of the buildpack
- 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. Add as described here.
- Labels map[string]string
- The labels associated with Cloud Foundry resources. Add as described here.
- Stack string
- The name of the stack that the buildpack will use
- created_
at string - The date and time when the resource was created in RFC3339 format.
- enabled bool
- Whether or not the buildpack can be used for staging
- filename string
- The filename of the buildpack
- id string
- The GUID of the object.
- locked bool
- Whether or not the buildpack is locked to prevent updating the bits
- name string
- Name of the buildpack
- position number
- The order in which the buildpacks are checked during buildpack auto-detection
- state string
- The state of the buildpack
- 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. Add as described here.
- labels map(string)
- The labels associated with Cloud Foundry resources. Add as described here.
- stack string
- The name of the stack that the buildpack will use
- created
At String - The date and time when the resource was created in RFC3339 format.
- enabled Boolean
- Whether or not the buildpack can be used for staging
- filename String
- The filename of the buildpack
- id String
- The GUID of the object.
- locked Boolean
- Whether or not the buildpack is locked to prevent updating the bits
- name String
- Name of the buildpack
- position Double
- The order in which the buildpacks are checked during buildpack auto-detection
- state String
- The state of the buildpack
- 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. Add as described here.
- labels Map<String,String>
- The labels associated with Cloud Foundry resources. Add as described here.
- stack String
- The name of the stack that the buildpack will use
- created
At string - The date and time when the resource was created in RFC3339 format.
- enabled boolean
- Whether or not the buildpack can be used for staging
- filename string
- The filename of the buildpack
- id string
- The GUID of the object.
- locked boolean
- Whether or not the buildpack is locked to prevent updating the bits
- name string
- Name of the buildpack
- position number
- The order in which the buildpacks are checked during buildpack auto-detection
- state string
- The state of the buildpack
- 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. Add as described here.
- labels {[key: string]: string}
- The labels associated with Cloud Foundry resources. Add as described here.
- stack string
- The name of the stack that the buildpack will use
- created_
at str - The date and time when the resource was created in RFC3339 format.
- enabled bool
- Whether or not the buildpack can be used for staging
- filename str
- The filename of the buildpack
- id str
- The GUID of the object.
- locked bool
- Whether or not the buildpack is locked to prevent updating the bits
- name str
- Name of the buildpack
- position float
- The order in which the buildpacks are checked during buildpack auto-detection
- state str
- The state of the buildpack
- updated_
at str - The date and time when the resource was updated in RFC3339 format.
- annotations Mapping[str, str]
- The annotations associated with Cloud Foundry resources. Add as described here.
- labels Mapping[str, str]
- The labels associated with Cloud Foundry resources. Add as described here.
- stack str
- The name of the stack that the buildpack will use
- created
At String - The date and time when the resource was created in RFC3339 format.
- enabled Boolean
- Whether or not the buildpack can be used for staging
- filename String
- The filename of the buildpack
- id String
- The GUID of the object.
- locked Boolean
- Whether or not the buildpack is locked to prevent updating the bits
- name String
- Name of the buildpack
- position Number
- The order in which the buildpacks are checked during buildpack auto-detection
- state String
- The state of the buildpack
- 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. Add as described here.
- labels Map<String>
- The labels associated with Cloud Foundry resources. Add as described here.
- stack String
- The name of the stack that the buildpack will use
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