cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
cloudfoundry.getSpaceQuota
Explore with Pulumi AI
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community
Gets information on a Cloud Foundry space quota.
Example Usage
The following example looks up a space quota named ‘myquota’
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const spaceQuota = cloudfoundry.getSpaceQuota({
name: "myquota",
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
space_quota = cloudfoundry.get_space_quota(name="myquota")
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.LookupSpaceQuota(ctx, &cloudfoundry.LookupSpaceQuotaArgs{
Name: "myquota",
}, 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 spaceQuota = Cloudfoundry.GetSpaceQuota.Invoke(new()
{
Name = "myquota",
});
});
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.GetSpaceQuotaArgs;
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 spaceQuota = CloudfoundryFunctions.getSpaceQuota(GetSpaceQuotaArgs.builder()
.name("myquota")
.build());
}
}
variables:
spaceQuota:
fn::invoke:
function: cloudfoundry:getSpaceQuota
arguments:
name: myquota
Using getSpaceQuota
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 getSpaceQuota(args: GetSpaceQuotaArgs, opts?: InvokeOptions): Promise<GetSpaceQuotaResult>
function getSpaceQuotaOutput(args: GetSpaceQuotaOutputArgs, opts?: InvokeOptions): Output<GetSpaceQuotaResult>
def get_space_quota(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSpaceQuotaResult
def get_space_quota_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSpaceQuotaResult]
func LookupSpaceQuota(ctx *Context, args *LookupSpaceQuotaArgs, opts ...InvokeOption) (*LookupSpaceQuotaResult, error)
func LookupSpaceQuotaOutput(ctx *Context, args *LookupSpaceQuotaOutputArgs, opts ...InvokeOption) LookupSpaceQuotaResultOutput
> Note: This function is named LookupSpaceQuota
in the Go SDK.
public static class GetSpaceQuota
{
public static Task<GetSpaceQuotaResult> InvokeAsync(GetSpaceQuotaArgs args, InvokeOptions? opts = null)
public static Output<GetSpaceQuotaResult> Invoke(GetSpaceQuotaInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSpaceQuotaResult> getSpaceQuota(GetSpaceQuotaArgs args, InvokeOptions options)
public static Output<GetSpaceQuotaResult> getSpaceQuota(GetSpaceQuotaArgs args, InvokeOptions options)
fn::invoke:
function: cloudfoundry:index/getSpaceQuota:getSpaceQuota
arguments:
# arguments dictionary
The following arguments are supported:
getSpaceQuota Result
The following output properties are available:
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