1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getServiceRouteBindings
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 on Service Route Bindings the user has access to.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const rbs = cloudfoundry.getServiceRouteBindings({
        serviceInstance: "ab65cad9-73fa-4dd4-9c09-87f89b2e77ec",
    });
    export const bindings = rbs;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    rbs = cloudfoundry.get_service_route_bindings(service_instance="ab65cad9-73fa-4dd4-9c09-87f89b2e77ec")
    pulumi.export("bindings", rbs)
    
    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 {
    		rbs, err := cloudfoundry.GetServiceRouteBindings(ctx, &cloudfoundry.GetServiceRouteBindingsArgs{
    			ServiceInstance: pulumi.StringRef("ab65cad9-73fa-4dd4-9c09-87f89b2e77ec"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("bindings", rbs)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var rbs = Cloudfoundry.GetServiceRouteBindings.Invoke(new()
        {
            ServiceInstance = "ab65cad9-73fa-4dd4-9c09-87f89b2e77ec",
        });
    
        return new Dictionary<string, object?>
        {
            ["bindings"] = rbs,
        };
    });
    
    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.GetServiceRouteBindingsArgs;
    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 rbs = CloudfoundryFunctions.getServiceRouteBindings(GetServiceRouteBindingsArgs.builder()
                .serviceInstance("ab65cad9-73fa-4dd4-9c09-87f89b2e77ec")
                .build());
    
            ctx.export("bindings", rbs);
        }
    }
    
    variables:
      rbs:
        fn::invoke:
          function: cloudfoundry:getServiceRouteBindings
          arguments:
            serviceInstance: ab65cad9-73fa-4dd4-9c09-87f89b2e77ec
    outputs:
      bindings: ${rbs}
    
    Example coming soon!
    

    Using getServiceRouteBindings

    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 getServiceRouteBindings(args: GetServiceRouteBindingsArgs, opts?: InvokeOptions): Promise<GetServiceRouteBindingsResult>
    function getServiceRouteBindingsOutput(args: GetServiceRouteBindingsOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceRouteBindingsResult>
    def get_service_route_bindings(route: Optional[str] = None,
                                   service_instance: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetServiceRouteBindingsResult
    def get_service_route_bindings_output(route: pulumi.Input[Optional[str]] = None,
                                   service_instance: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceRouteBindingsResult]
    func GetServiceRouteBindings(ctx *Context, args *GetServiceRouteBindingsArgs, opts ...InvokeOption) (*GetServiceRouteBindingsResult, error)
    func GetServiceRouteBindingsOutput(ctx *Context, args *GetServiceRouteBindingsOutputArgs, opts ...InvokeOption) GetServiceRouteBindingsResultOutput

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

    public static class GetServiceRouteBindings 
    {
        public static Task<GetServiceRouteBindingsResult> InvokeAsync(GetServiceRouteBindingsArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceRouteBindingsResult> Invoke(GetServiceRouteBindingsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceRouteBindingsResult> Invoke(GetServiceRouteBindingsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceRouteBindingsResult> getServiceRouteBindings(GetServiceRouteBindingsArgs args, InvokeOptions options)
    public static Output<GetServiceRouteBindingsResult> getServiceRouteBindings(GetServiceRouteBindingsArgs args, InvokeOptions options)
    public static Output<GetServiceRouteBindingsResult> getServiceRouteBindings(GetServiceRouteBindingsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServiceRouteBindings:getServiceRouteBindings
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_route_bindings" "name" {
        # arguments
    }

    The following arguments are supported:

    Route string
    The GUID of the route to filter by
    ServiceInstance string
    The GUID of the service instance to filter by
    Route string
    The GUID of the route to filter by
    ServiceInstance string
    The GUID of the service instance to filter by
    route string
    The GUID of the route to filter by
    service_instance string
    The GUID of the service instance to filter by
    route String
    The GUID of the route to filter by
    serviceInstance String
    The GUID of the service instance to filter by
    route string
    The GUID of the route to filter by
    serviceInstance string
    The GUID of the service instance to filter by
    route str
    The GUID of the route to filter by
    service_instance str
    The GUID of the service instance to filter by
    route String
    The GUID of the route to filter by
    serviceInstance String
    The GUID of the service instance to filter by

    getServiceRouteBindings Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RouteBindings List<GetServiceRouteBindingsRouteBinding>
    The list of route bindings for the given service instance.
    Route string
    The GUID of the route to filter by
    ServiceInstance string
    The GUID of the service instance to filter by
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteBindings []GetServiceRouteBindingsRouteBinding
    The list of route bindings for the given service instance.
    Route string
    The GUID of the route to filter by
    ServiceInstance string
    The GUID of the service instance to filter by
    id string
    The provider-assigned unique ID for this managed resource.
    route_bindings list(object)
    The list of route bindings for the given service instance.
    route string
    The GUID of the route to filter by
    service_instance string
    The GUID of the service instance to filter by
    id String
    The provider-assigned unique ID for this managed resource.
    routeBindings List<GetServiceRouteBindingsRouteBinding>
    The list of route bindings for the given service instance.
    route String
    The GUID of the route to filter by
    serviceInstance String
    The GUID of the service instance to filter by
    id string
    The provider-assigned unique ID for this managed resource.
    routeBindings GetServiceRouteBindingsRouteBinding[]
    The list of route bindings for the given service instance.
    route string
    The GUID of the route to filter by
    serviceInstance string
    The GUID of the service instance to filter by
    id str
    The provider-assigned unique ID for this managed resource.
    route_bindings Sequence[GetServiceRouteBindingsRouteBinding]
    The list of route bindings for the given service instance.
    route str
    The GUID of the route to filter by
    service_instance str
    The GUID of the service instance to filter by
    id String
    The provider-assigned unique ID for this managed resource.
    routeBindings List<Property Map>
    The list of route bindings for the given service instance.
    route String
    The GUID of the route to filter by
    serviceInstance String
    The GUID of the service instance to filter by

    Supporting Types

    GetServiceRouteBindingsRouteBinding

    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    LastOperation GetServiceRouteBindingsRouteBindingLastOperation
    The details of the last operation performed on the resource
    Route string
    The GUID of the route to be bound
    RouteServiceUrl string
    The URL for the route service.
    ServiceInstance string
    The service instance that the route is bound to
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    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.
    LastOperation GetServiceRouteBindingsRouteBindingLastOperation
    The details of the last operation performed on the resource
    Route string
    The GUID of the route to be bound
    RouteServiceUrl string
    The URL for the route service.
    ServiceInstance string
    The service instance that the route is bound to
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    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.
    last_operation object
    The details of the last operation performed on the resource
    route string
    The GUID of the route to be bound
    route_service_url string
    The URL for the route service.
    service_instance string
    The service instance that the route is bound to
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    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.
    lastOperation GetServiceRouteBindingsRouteBindingLastOperation
    The details of the last operation performed on the resource
    route String
    The GUID of the route to be bound
    routeServiceUrl String
    The URL for the route service.
    serviceInstance String
    The service instance that the route is bound to
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    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.
    lastOperation GetServiceRouteBindingsRouteBindingLastOperation
    The details of the last operation performed on the resource
    route string
    The GUID of the route to be bound
    routeServiceUrl string
    The URL for the route service.
    serviceInstance string
    The service instance that the route is bound to
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    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.
    last_operation GetServiceRouteBindingsRouteBindingLastOperation
    The details of the last operation performed on the resource
    route str
    The GUID of the route to be bound
    route_service_url str
    The URL for the route service.
    service_instance str
    The service instance that the route is bound to
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    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.
    lastOperation Property Map
    The details of the last operation performed on the resource
    route String
    The GUID of the route to be bound
    routeServiceUrl String
    The URL for the route service.
    serviceInstance String
    The service instance that the route is bound to
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    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.

    GetServiceRouteBindingsRouteBindingLastOperation

    CreatedAt string
    The time at which the last operation was created
    Description string
    A description of the last operation
    State string
    The state of the last operation
    Type string
    The type of the last operation
    UpdatedAt string
    The time at which the last operation was updated
    CreatedAt string
    The time at which the last operation was created
    Description string
    A description of the last operation
    State string
    The state of the last operation
    Type string
    The type of the last operation
    UpdatedAt string
    The time at which the last operation was updated
    created_at string
    The time at which the last operation was created
    description string
    A description of the last operation
    state string
    The state of the last operation
    type string
    The type of the last operation
    updated_at string
    The time at which the last operation was updated
    createdAt String
    The time at which the last operation was created
    description String
    A description of the last operation
    state String
    The state of the last operation
    type String
    The type of the last operation
    updatedAt String
    The time at which the last operation was updated
    createdAt string
    The time at which the last operation was created
    description string
    A description of the last operation
    state string
    The state of the last operation
    type string
    The type of the last operation
    updatedAt string
    The time at which the last operation was updated
    created_at str
    The time at which the last operation was created
    description str
    A description of the last operation
    state str
    The state of the last operation
    type str
    The type of the last operation
    updated_at str
    The time at which the last operation was updated
    createdAt String
    The time at which the last operation was created
    description String
    A description of the last operation
    state String
    The state of the last operation
    type String
    The type of the last operation
    updatedAt String
    The time at which the last operation was updated

    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