1. Packages
  2. Cloudfoundry Provider
  3. API Docs
  4. getOrgQuota
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

cloudfoundry.getOrgQuota

Explore with Pulumi AI

cloudfoundry logo
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

    Gets information on a Cloud Foundry org quota.

    Example Usage

    The following example looks up a quota named ‘myquota’ identified by its name.

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const orgQuota = cloudfoundry.getOrgQuota({
        name: "myquota",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    org_quota = cloudfoundry.get_org_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.LookupOrgQuota(ctx, &cloudfoundry.LookupOrgQuotaArgs{
    			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 orgQuota = Cloudfoundry.GetOrgQuota.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.GetOrgQuotaArgs;
    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 orgQuota = CloudfoundryFunctions.getOrgQuota(GetOrgQuotaArgs.builder()
                .name("myquota")
                .build());
    
        }
    }
    
    variables:
      orgQuota:
        fn::invoke:
          function: cloudfoundry:getOrgQuota
          arguments:
            name: myquota
    

    Using getOrgQuota

    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 getOrgQuota(args: GetOrgQuotaArgs, opts?: InvokeOptions): Promise<GetOrgQuotaResult>
    function getOrgQuotaOutput(args: GetOrgQuotaOutputArgs, opts?: InvokeOptions): Output<GetOrgQuotaResult>
    def get_org_quota(id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOrgQuotaResult
    def get_org_quota_output(id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOrgQuotaResult]
    func LookupOrgQuota(ctx *Context, args *LookupOrgQuotaArgs, opts ...InvokeOption) (*LookupOrgQuotaResult, error)
    func LookupOrgQuotaOutput(ctx *Context, args *LookupOrgQuotaOutputArgs, opts ...InvokeOption) LookupOrgQuotaResultOutput

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

    public static class GetOrgQuota 
    {
        public static Task<GetOrgQuotaResult> InvokeAsync(GetOrgQuotaArgs args, InvokeOptions? opts = null)
        public static Output<GetOrgQuotaResult> Invoke(GetOrgQuotaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrgQuotaResult> getOrgQuota(GetOrgQuotaArgs args, InvokeOptions options)
    public static Output<GetOrgQuotaResult> getOrgQuota(GetOrgQuotaArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getOrgQuota:getOrgQuota
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the quota to look up
    Id string
    The GUID of the quota
    Name string
    The name of the quota to look up
    Id string
    The GUID of the quota
    name String
    The name of the quota to look up
    id String
    The GUID of the quota
    name string
    The name of the quota to look up
    id string
    The GUID of the quota
    name str
    The name of the quota to look up
    id str
    The GUID of the quota
    name String
    The name of the quota to look up
    id String
    The GUID of the quota

    getOrgQuota Result

    The following output properties are available:

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

    Package Details

    Repository
    cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry logo
    cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community