1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getServiceBrokers
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry

    Gets information of Service brokers user has access to.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const brokers = cloudfoundry.getServiceBrokers({
        space: "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
    });
    export const seBrs = brokers;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    brokers = cloudfoundry.get_service_brokers(space="02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
    pulumi.export("seBrs", brokers)
    
    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 {
    		brokers, err := cloudfoundry.GetServiceBrokers(ctx, &cloudfoundry.GetServiceBrokersArgs{
    			Space: pulumi.StringRef("02c0cc92-6ecc-44b1-b7b2-096ca19ee143"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("seBrs", brokers)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var brokers = Cloudfoundry.GetServiceBrokers.Invoke(new()
        {
            Space = "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        });
    
        return new Dictionary<string, object?>
        {
            ["seBrs"] = brokers,
        };
    });
    
    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.GetServiceBrokersArgs;
    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 brokers = CloudfoundryFunctions.getServiceBrokers(GetServiceBrokersArgs.builder()
                .space("02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
                .build());
    
            ctx.export("seBrs", brokers);
        }
    }
    
    variables:
      brokers:
        fn::invoke:
          function: cloudfoundry:getServiceBrokers
          arguments:
            space: 02c0cc92-6ecc-44b1-b7b2-096ca19ee143
    outputs:
      seBrs: ${brokers}
    
    Example coming soon!
    

    Using getServiceBrokers

    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 getServiceBrokers(args: GetServiceBrokersArgs, opts?: InvokeOptions): Promise<GetServiceBrokersResult>
    function getServiceBrokersOutput(args: GetServiceBrokersOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceBrokersResult>
    def get_service_brokers(name: Optional[str] = None,
                            space: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServiceBrokersResult
    def get_service_brokers_output(name: pulumi.Input[Optional[str]] = None,
                            space: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceBrokersResult]
    func GetServiceBrokers(ctx *Context, args *GetServiceBrokersArgs, opts ...InvokeOption) (*GetServiceBrokersResult, error)
    func GetServiceBrokersOutput(ctx *Context, args *GetServiceBrokersOutputArgs, opts ...InvokeOption) GetServiceBrokersResultOutput

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

    public static class GetServiceBrokers 
    {
        public static Task<GetServiceBrokersResult> InvokeAsync(GetServiceBrokersArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceBrokersResult> Invoke(GetServiceBrokersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceBrokersResult> Invoke(GetServiceBrokersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceBrokersResult> getServiceBrokers(GetServiceBrokersArgs args, InvokeOptions options)
    public static Output<GetServiceBrokersResult> getServiceBrokers(GetServiceBrokersArgs args, InvokeOptions options)
    public static Output<GetServiceBrokersResult> getServiceBrokers(GetServiceBrokersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServiceBrokers:getServiceBrokers
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_brokers" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    Name of the service broker to filter by
    Space string
    GUID of the space to filter by
    Name string
    Name of the service broker to filter by
    Space string
    GUID of the space to filter by
    name string
    Name of the service broker to filter by
    space string
    GUID of the space to filter by
    name String
    Name of the service broker to filter by
    space String
    GUID of the space to filter by
    name string
    Name of the service broker to filter by
    space string
    GUID of the space to filter by
    name str
    Name of the service broker to filter by
    space str
    GUID of the space to filter by
    name String
    Name of the service broker to filter by
    space String
    GUID of the space to filter by

    getServiceBrokers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceBrokers List<GetServiceBrokersServiceBroker>
    List of service brokers
    Name string
    Name of the service broker to filter by
    Space string
    GUID of the space to filter by
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceBrokers []GetServiceBrokersServiceBroker
    List of service brokers
    Name string
    Name of the service broker to filter by
    Space string
    GUID of the space to filter by
    id string
    The provider-assigned unique ID for this managed resource.
    service_brokers list(object)
    List of service brokers
    name string
    Name of the service broker to filter by
    space string
    GUID of the space to filter by
    id String
    The provider-assigned unique ID for this managed resource.
    serviceBrokers List<GetServiceBrokersServiceBroker>
    List of service brokers
    name String
    Name of the service broker to filter by
    space String
    GUID of the space to filter by
    id string
    The provider-assigned unique ID for this managed resource.
    serviceBrokers GetServiceBrokersServiceBroker[]
    List of service brokers
    name string
    Name of the service broker to filter by
    space string
    GUID of the space to filter by
    id str
    The provider-assigned unique ID for this managed resource.
    service_brokers Sequence[GetServiceBrokersServiceBroker]
    List of service brokers
    name str
    Name of the service broker to filter by
    space str
    GUID of the space to filter by
    id String
    The provider-assigned unique ID for this managed resource.
    serviceBrokers List<Property Map>
    List of service brokers
    name String
    Name of the service broker to filter by
    space String
    GUID of the space to filter by

    Supporting Types

    GetServiceBrokersServiceBroker

    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    Name string
    Name of the service broker
    Space string
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Url string
    URL of the service broker
    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.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    Name string
    Name of the service broker
    Space string
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Url string
    URL of the service broker
    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.
    created_at string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    name string
    Name of the service broker
    space string
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    url string
    URL of the service broker
    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.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    name String
    Name of the service broker
    space String
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    url String
    URL of the service broker
    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.
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    name string
    Name of the service broker
    space string
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    url string
    URL of the service broker
    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.
    created_at str
    The date and time when the resource was created in RFC3339 format.
    id str
    The GUID of the object.
    name str
    Name of the service broker
    space str
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    url str
    URL of the service broker
    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.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    name String
    Name of the service broker
    space String
    The GUID of the space the service broker is restricted to; omitted for globally available service brokers
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    url String
    URL of the service broker
    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.

    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.18.0
    published on Monday, Nov 2, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial