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

    Gets information on a Service Route Binding.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const rb = cloudfoundry.getServiceRouteBinding({
        id: "ab65cad9-73fa-4dd4-9c09-87f89b2e77ec",
    });
    export const binding = rb;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    rb = cloudfoundry.get_service_route_binding(id="ab65cad9-73fa-4dd4-9c09-87f89b2e77ec")
    pulumi.export("binding", rb)
    
    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 {
    		rb, err := cloudfoundry.LookupServiceRouteBinding(ctx, &cloudfoundry.LookupServiceRouteBindingArgs{
    			Id: "ab65cad9-73fa-4dd4-9c09-87f89b2e77ec",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("binding", rb)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var rb = Cloudfoundry.GetServiceRouteBinding.Invoke(new()
        {
            Id = "ab65cad9-73fa-4dd4-9c09-87f89b2e77ec",
        });
    
        return new Dictionary<string, object?>
        {
            ["binding"] = rb,
        };
    });
    
    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.GetServiceRouteBindingArgs;
    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 rb = CloudfoundryFunctions.getServiceRouteBinding(GetServiceRouteBindingArgs.builder()
                .id("ab65cad9-73fa-4dd4-9c09-87f89b2e77ec")
                .build());
    
            ctx.export("binding", rb);
        }
    }
    
    variables:
      rb:
        fn::invoke:
          function: cloudfoundry:getServiceRouteBinding
          arguments:
            id: ab65cad9-73fa-4dd4-9c09-87f89b2e77ec
    outputs:
      binding: ${rb}
    
    Example coming soon!
    

    Using getServiceRouteBinding

    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 getServiceRouteBinding(args: GetServiceRouteBindingArgs, opts?: InvokeOptions): Promise<GetServiceRouteBindingResult>
    function getServiceRouteBindingOutput(args: GetServiceRouteBindingOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceRouteBindingResult>
    def get_service_route_binding(annotations: Optional[Mapping[str, str]] = None,
                                  id: Optional[str] = None,
                                  labels: Optional[Mapping[str, str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetServiceRouteBindingResult
    def get_service_route_binding_output(annotations: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                                  id: pulumi.Input[Optional[str]] = None,
                                  labels: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceRouteBindingResult]
    func LookupServiceRouteBinding(ctx *Context, args *LookupServiceRouteBindingArgs, opts ...InvokeOption) (*LookupServiceRouteBindingResult, error)
    func LookupServiceRouteBindingOutput(ctx *Context, args *LookupServiceRouteBindingOutputArgs, opts ...InvokeOption) LookupServiceRouteBindingResultOutput

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

    public static class GetServiceRouteBinding 
    {
        public static Task<GetServiceRouteBindingResult> InvokeAsync(GetServiceRouteBindingArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceRouteBindingResult> Invoke(GetServiceRouteBindingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceRouteBindingResult> Invoke(GetServiceRouteBindingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceRouteBindingResult> getServiceRouteBinding(GetServiceRouteBindingArgs args, InvokeOptions options)
    public static Output<GetServiceRouteBindingResult> getServiceRouteBinding(GetServiceRouteBindingArgs args, InvokeOptions options)
    public static Output<GetServiceRouteBindingResult> getServiceRouteBinding(GetServiceRouteBindingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getServiceRouteBinding:getServiceRouteBinding
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_service_route_binding" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The GUID of the service route binding
    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.
    Id string
    The GUID of the service route binding
    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.
    id string
    The GUID of the service route binding
    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.
    id String
    The GUID of the service route binding
    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.
    id string
    The GUID of the service route binding
    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.
    id str
    The GUID of the service route binding
    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.
    id String
    The GUID of the service route binding
    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.

    getServiceRouteBinding 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 service route binding
    LastOperation GetServiceRouteBindingLastOperation
    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 service route binding
    LastOperation GetServiceRouteBindingLastOperation
    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 service route binding
    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 service route binding
    lastOperation GetServiceRouteBindingLastOperation
    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 service route binding
    lastOperation GetServiceRouteBindingLastOperation
    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 service route binding
    last_operation GetServiceRouteBindingLastOperation
    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 service route binding
    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.

    Supporting Types

    GetServiceRouteBindingLastOperation

    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.19.0
    published on Friday, Nov 13, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial