1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getServiceBroker
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 a Service broker.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const broker = cloudfoundry.getServiceBroker({
        name: "hi",
    });
    export const seBr = broker;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    broker = cloudfoundry.get_service_broker(name="hi")
    pulumi.export("seBr", broker)
    
    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 {
    		broker, err := cloudfoundry.LookupServiceBroker(ctx, &cloudfoundry.LookupServiceBrokerArgs{
    			Name: "hi",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("seBr", broker)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var broker = Cloudfoundry.GetServiceBroker.Invoke(new()
        {
            Name = "hi",
        });
    
        return new Dictionary<string, object?>
        {
            ["seBr"] = broker,
        };
    });
    
    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.GetServiceBrokerArgs;
    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 broker = CloudfoundryFunctions.getServiceBroker(GetServiceBrokerArgs.builder()
                .name("hi")
                .build());
    
            ctx.export("seBr", broker);
        }
    }
    
    variables:
      broker:
        fn::invoke:
          function: cloudfoundry:getServiceBroker
          arguments:
            name: hi
    outputs:
      seBr: ${broker}
    
    Example coming soon!
    

    Using getServiceBroker

    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 getServiceBroker(args: GetServiceBrokerArgs, opts?: InvokeOptions): Promise<GetServiceBrokerResult>
    function getServiceBrokerOutput(args: GetServiceBrokerOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceBrokerResult>
    def get_service_broker(annotations: Optional[Mapping[str, str]] = None,
                           labels: Optional[Mapping[str, str]] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetServiceBrokerResult
    def get_service_broker_output(annotations: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                           labels: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                           name: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceBrokerResult]
    func LookupServiceBroker(ctx *Context, args *LookupServiceBrokerArgs, opts ...InvokeOption) (*LookupServiceBrokerResult, error)
    func LookupServiceBrokerOutput(ctx *Context, args *LookupServiceBrokerOutputArgs, opts ...InvokeOption) LookupServiceBrokerResultOutput

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

    public static class GetServiceBroker 
    {
        public static Task<GetServiceBrokerResult> InvokeAsync(GetServiceBrokerArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceBrokerResult> Invoke(GetServiceBrokerInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceBrokerResult> Invoke(GetServiceBrokerInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceBrokerResult> getServiceBroker(GetServiceBrokerArgs args, InvokeOptions options)
    public static Output<GetServiceBrokerResult> getServiceBroker(GetServiceBrokerArgs args, InvokeOptions options)
    public static Output<GetServiceBrokerResult> getServiceBroker(GetServiceBrokerArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServiceBroker:getServiceBroker
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_broker" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    Name 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.
    Name string
    Name 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.
    name string
    Name 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.
    name String
    Name 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.
    name string
    Name 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.
    name str
    Name 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.
    name String
    Name 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.

    getServiceBroker Result

    The following output properties are available:

    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