1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getSpaceQuotas
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry

    Fetches space quotas present in a Cloud Foundry org

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const mySpaceQuotas = cloudfoundry.getSpaceQuotas({
        org: "784b4cd0-4771-4e4d-9052-a07e178bae56",
    });
    export const quotas = mySpaceQuotas;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    my_space_quotas = cloudfoundry.get_space_quotas(org="784b4cd0-4771-4e4d-9052-a07e178bae56")
    pulumi.export("quotas", my_space_quotas)
    
    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 {
    		mySpaceQuotas, err := cloudfoundry.GetSpaceQuotas(ctx, &cloudfoundry.GetSpaceQuotasArgs{
    			Org: "784b4cd0-4771-4e4d-9052-a07e178bae56",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("quotas", mySpaceQuotas)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var mySpaceQuotas = Cloudfoundry.GetSpaceQuotas.Invoke(new()
        {
            Org = "784b4cd0-4771-4e4d-9052-a07e178bae56",
        });
    
        return new Dictionary<string, object?>
        {
            ["quotas"] = mySpaceQuotas,
        };
    });
    
    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.GetSpaceQuotasArgs;
    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 mySpaceQuotas = CloudfoundryFunctions.getSpaceQuotas(GetSpaceQuotasArgs.builder()
                .org("784b4cd0-4771-4e4d-9052-a07e178bae56")
                .build());
    
            ctx.export("quotas", mySpaceQuotas);
        }
    }
    
    variables:
      mySpaceQuotas:
        fn::invoke:
          function: cloudfoundry:getSpaceQuotas
          arguments:
            org: 784b4cd0-4771-4e4d-9052-a07e178bae56
    outputs:
      quotas: ${mySpaceQuotas}
    
    Example coming soon!
    

    Using getSpaceQuotas

    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 getSpaceQuotas(args: GetSpaceQuotasArgs, opts?: InvokeOptions): Promise<GetSpaceQuotasResult>
    function getSpaceQuotasOutput(args: GetSpaceQuotasOutputArgs, opts?: InvokeOutputOptions): Output<GetSpaceQuotasResult>
    def get_space_quotas(name: Optional[str] = None,
                         org: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSpaceQuotasResult
    def get_space_quotas_output(name: pulumi.Input[Optional[str]] = None,
                         org: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetSpaceQuotasResult]
    func GetSpaceQuotas(ctx *Context, args *GetSpaceQuotasArgs, opts ...InvokeOption) (*GetSpaceQuotasResult, error)
    func GetSpaceQuotasOutput(ctx *Context, args *GetSpaceQuotasOutputArgs, opts ...InvokeOption) GetSpaceQuotasResultOutput

    > Note: This function is named GetSpaceQuotas in the Go SDK.

    public static class GetSpaceQuotas 
    {
        public static Task<GetSpaceQuotasResult> InvokeAsync(GetSpaceQuotasArgs args, InvokeOptions? opts = null)
        public static Output<GetSpaceQuotasResult> Invoke(GetSpaceQuotasInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSpaceQuotasResult> Invoke(GetSpaceQuotasInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSpaceQuotasResult> getSpaceQuotas(GetSpaceQuotasArgs args, InvokeOptions options)
    public static Output<GetSpaceQuotasResult> getSpaceQuotas(GetSpaceQuotasArgs args, InvokeOptions options)
    public static Output<GetSpaceQuotasResult> getSpaceQuotas(GetSpaceQuotasArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getSpaceQuotas:getSpaceQuotas
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_space_quotas" "name" {
        # arguments
    }

    The following arguments are supported:

    Org string
    The ID of the Org within which to find the space quotas
    Name string
    The name of the space quota to look up
    Org string
    The ID of the Org within which to find the space quotas
    Name string
    The name of the space quota to look up
    org string
    The ID of the Org within which to find the space quotas
    name string
    The name of the space quota to look up
    org String
    The ID of the Org within which to find the space quotas
    name String
    The name of the space quota to look up
    org string
    The ID of the Org within which to find the space quotas
    name string
    The name of the space quota to look up
    org str
    The ID of the Org within which to find the space quotas
    name str
    The name of the space quota to look up
    org String
    The ID of the Org within which to find the space quotas
    name String
    The name of the space quota to look up

    getSpaceQuotas Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Org string
    The ID of the Org within which to find the space quotas
    SpaceQuotas List<GetSpaceQuotasSpaceQuota>
    The list of space quotas
    Name string
    The name of the space quota to look up
    Id string
    The provider-assigned unique ID for this managed resource.
    Org string
    The ID of the Org within which to find the space quotas
    SpaceQuotas []GetSpaceQuotasSpaceQuota
    The list of space quotas
    Name string
    The name of the space quota to look up
    id string
    The provider-assigned unique ID for this managed resource.
    org string
    The ID of the Org within which to find the space quotas
    space_quotas list(object)
    The list of space quotas
    name string
    The name of the space quota to look up
    id String
    The provider-assigned unique ID for this managed resource.
    org String
    The ID of the Org within which to find the space quotas
    spaceQuotas List<GetSpaceQuotasSpaceQuota>
    The list of space quotas
    name String
    The name of the space quota to look up
    id string
    The provider-assigned unique ID for this managed resource.
    org string
    The ID of the Org within which to find the space quotas
    spaceQuotas GetSpaceQuotasSpaceQuota[]
    The list of space quotas
    name string
    The name of the space quota to look up
    id str
    The provider-assigned unique ID for this managed resource.
    org str
    The ID of the Org within which to find the space quotas
    space_quotas Sequence[GetSpaceQuotasSpaceQuota]
    The list of space quotas
    name str
    The name of the space quota to look up
    id String
    The provider-assigned unique ID for this managed resource.
    org String
    The ID of the Org within which to find the space quotas
    spaceQuotas List<Property Map>
    The list of space quotas
    name String
    The name of the space quota to look up

    Supporting Types

    GetSpaceQuotasSpaceQuota

    AllowPaidServicePlans bool
    Specifies whether instances of paid service plans can be created.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    InstanceMemory double
    Maximum memory for a single process or task
    Name string
    The name of the space quota
    Org string
    The ID of the Org within which the space quota is present
    Spaces List<string>
    Set of Space GUIDs to which this space quota is assigned.
    TotalAppInstances double
    Total instances of all the started processes allowed in a space
    TotalAppLogRateLimit double
    Total log rate limit allowed for all the started processes and running tasks in an organization
    TotalAppTasks double
    Maximum number of running tasks in a space
    TotalMemory double
    Total memory allowed for all the started processes and running tasks in a space
    TotalRoutePorts double
    Total number of ports that are reservable by routes in a space
    TotalRoutes double
    Total number of routes allowed in a space
    TotalServiceKeys double
    Total number of service keys allowed in a space
    TotalServices double
    Total number of service instances allowed in a space
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    AllowPaidServicePlans bool
    Specifies whether instances of paid service plans can be created.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    InstanceMemory float64
    Maximum memory for a single process or task
    Name string
    The name of the space quota
    Org string
    The ID of the Org within which the space quota is present
    Spaces []string
    Set of Space GUIDs to which this space quota is assigned.
    TotalAppInstances float64
    Total instances of all the started processes allowed in a space
    TotalAppLogRateLimit float64
    Total log rate limit allowed for all the started processes and running tasks in an organization
    TotalAppTasks float64
    Maximum number of running tasks in a space
    TotalMemory float64
    Total memory allowed for all the started processes and running tasks in a space
    TotalRoutePorts float64
    Total number of ports that are reservable by routes in a space
    TotalRoutes float64
    Total number of routes allowed in a space
    TotalServiceKeys float64
    Total number of service keys allowed in a space
    TotalServices float64
    Total number of service instances allowed in a space
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    allow_paid_service_plans bool
    Specifies whether instances of paid service plans can be created.
    created_at string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    instance_memory number
    Maximum memory for a single process or task
    name string
    The name of the space quota
    org string
    The ID of the Org within which the space quota is present
    spaces list(string)
    Set of Space GUIDs to which this space quota is assigned.
    total_app_instances number
    Total instances of all the started processes allowed in a space
    total_app_log_rate_limit number
    Total log rate limit allowed for all the started processes and running tasks in an organization
    total_app_tasks number
    Maximum number of running tasks in a space
    total_memory number
    Total memory allowed for all the started processes and running tasks in a space
    total_route_ports number
    Total number of ports that are reservable by routes in a space
    total_routes number
    Total number of routes allowed in a space
    total_service_keys number
    Total number of service keys allowed in a space
    total_services number
    Total number of service instances allowed in a space
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    allowPaidServicePlans Boolean
    Specifies whether instances of paid service plans can be created.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    instanceMemory Double
    Maximum memory for a single process or task
    name String
    The name of the space quota
    org String
    The ID of the Org within which the space quota is present
    spaces List<String>
    Set of Space GUIDs to which this space quota is assigned.
    totalAppInstances Double
    Total instances of all the started processes allowed in a space
    totalAppLogRateLimit Double
    Total log rate limit allowed for all the started processes and running tasks in an organization
    totalAppTasks Double
    Maximum number of running tasks in a space
    totalMemory Double
    Total memory allowed for all the started processes and running tasks in a space
    totalRoutePorts Double
    Total number of ports that are reservable by routes in a space
    totalRoutes Double
    Total number of routes allowed in a space
    totalServiceKeys Double
    Total number of service keys allowed in a space
    totalServices Double
    Total number of service instances allowed in a space
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    allowPaidServicePlans boolean
    Specifies whether instances of paid service plans can be created.
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    instanceMemory number
    Maximum memory for a single process or task
    name string
    The name of the space quota
    org string
    The ID of the Org within which the space quota is present
    spaces string[]
    Set of Space GUIDs to which this space quota is assigned.
    totalAppInstances number
    Total instances of all the started processes allowed in a space
    totalAppLogRateLimit number
    Total log rate limit allowed for all the started processes and running tasks in an organization
    totalAppTasks number
    Maximum number of running tasks in a space
    totalMemory number
    Total memory allowed for all the started processes and running tasks in a space
    totalRoutePorts number
    Total number of ports that are reservable by routes in a space
    totalRoutes number
    Total number of routes allowed in a space
    totalServiceKeys number
    Total number of service keys allowed in a space
    totalServices number
    Total number of service instances allowed in a space
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    allow_paid_service_plans bool
    Specifies whether instances of paid service plans can be created.
    created_at str
    The date and time when the resource was created in RFC3339 format.
    id str
    The GUID of the object.
    instance_memory float
    Maximum memory for a single process or task
    name str
    The name of the space quota
    org str
    The ID of the Org within which the space quota is present
    spaces Sequence[str]
    Set of Space GUIDs to which this space quota is assigned.
    total_app_instances float
    Total instances of all the started processes allowed in a space
    total_app_log_rate_limit float
    Total log rate limit allowed for all the started processes and running tasks in an organization
    total_app_tasks float
    Maximum number of running tasks in a space
    total_memory float
    Total memory allowed for all the started processes and running tasks in a space
    total_route_ports float
    Total number of ports that are reservable by routes in a space
    total_routes float
    Total number of routes allowed in a space
    total_service_keys float
    Total number of service keys allowed in a space
    total_services float
    Total number of service instances allowed in a space
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    allowPaidServicePlans Boolean
    Specifies whether instances of paid service plans can be created.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    instanceMemory Number
    Maximum memory for a single process or task
    name String
    The name of the space quota
    org String
    The ID of the Org within which the space quota is present
    spaces List<String>
    Set of Space GUIDs to which this space quota is assigned.
    totalAppInstances Number
    Total instances of all the started processes allowed in a space
    totalAppLogRateLimit Number
    Total log rate limit allowed for all the started processes and running tasks in an organization
    totalAppTasks Number
    Maximum number of running tasks in a space
    totalMemory Number
    Total memory allowed for all the started processes and running tasks in a space
    totalRoutePorts Number
    Total number of ports that are reservable by routes in a space
    totalRoutes Number
    Total number of routes allowed in a space
    totalServiceKeys Number
    Total number of service keys allowed in a space
    totalServices Number
    Total number of service instances allowed in a space
    updatedAt 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 cloudfoundry Terraform Provider.
    cloudfoundry
    Viewing docs for cloudfoundry 1.19.0
    published on Friday, Nov 13, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial