1. Packages
  2. Cloudfoundry Provider
  3. API Docs
  4. getSpaceQuota
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",
});
Copy
import pulumi
import pulumi_cloudfoundry as cloudfoundry

space_quota = cloudfoundry.get_space_quota(name="myquota")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  spaceQuota:
    fn::invoke:
      function: cloudfoundry:getSpaceQuota
      arguments:
        name: myquota
Copy

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>
Copy
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]
Copy
func LookupSpaceQuota(ctx *Context, args *LookupSpaceQuotaArgs, opts ...InvokeOption) (*LookupSpaceQuotaResult, error)
func LookupSpaceQuotaOutput(ctx *Context, args *LookupSpaceQuotaOutputArgs, opts ...InvokeOption) LookupSpaceQuotaResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSpaceQuotaResult> getSpaceQuota(GetSpaceQuotaArgs args, InvokeOptions options)
public static Output<GetSpaceQuotaResult> getSpaceQuota(GetSpaceQuotaArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudfoundry:index/getSpaceQuota:getSpaceQuota
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the space quota to look up
Id string
The GUID of the space quota
Org string
The organization within which the quota is defined
Name This property is required. string
The name of the space quota to look up
Id string
The GUID of the space quota
Org string
The organization within which the quota is defined
name This property is required. String
The name of the space quota to look up
id String
The GUID of the space quota
org String
The organization within which the quota is defined
name This property is required. string
The name of the space quota to look up
id string
The GUID of the space quota
org string
The organization within which the quota is defined
name This property is required. str
The name of the space quota to look up
id str
The GUID of the space quota
org str
The organization within which the quota is defined
name This property is required. String
The name of the space quota to look up
id String
The GUID of the space quota
org String
The organization within which the quota is defined

getSpaceQuota Result

The following output properties are available:

Id string
The GUID of the space quota
Name string
Org string
Id string
The GUID of the space quota
Name string
Org string
id String
The GUID of the space quota
name String
org String
id string
The GUID of the space quota
name string
org string
id str
The GUID of the space quota
name str
org str
id String
The GUID of the space quota
name String
org String

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