1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getRoutes
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 a Cloud Foundry route.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const routes = cloudfoundry.getRoutes({
        org: "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    routes = cloudfoundry.get_routes(org="02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
    
    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.GetRoutes(ctx, &cloudfoundry.GetRoutesArgs{
    			Org: pulumi.StringRef("02c0cc92-6ecc-44b1-b7b2-096ca19ee143"),
    		}, 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 routes = Cloudfoundry.GetRoutes.Invoke(new()
        {
            Org = "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        });
    
    });
    
    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.GetRoutesArgs;
    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 routes = CloudfoundryFunctions.getRoutes(GetRoutesArgs.builder()
                .org("02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
                .build());
    
        }
    }
    
    variables:
      routes:
        fn::invoke:
          function: cloudfoundry:getRoutes
          arguments:
            org: 02c0cc92-6ecc-44b1-b7b2-096ca19ee143
    
    Example coming soon!
    

    Using getRoutes

    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 getRoutes(args: GetRoutesArgs, opts?: InvokeOptions): Promise<GetRoutesResult>
    function getRoutesOutput(args: GetRoutesOutputArgs, opts?: InvokeOutputOptions): Output<GetRoutesResult>
    def get_routes(domain: Optional[str] = None,
                   host: Optional[str] = None,
                   org: Optional[str] = None,
                   path: Optional[str] = None,
                   port: Optional[float] = None,
                   space: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRoutesResult
    def get_routes_output(domain: pulumi.Input[Optional[str]] = None,
                   host: pulumi.Input[Optional[str]] = None,
                   org: pulumi.Input[Optional[str]] = None,
                   path: pulumi.Input[Optional[str]] = None,
                   port: pulumi.Input[Optional[float]] = None,
                   space: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetRoutesResult]
    func GetRoutes(ctx *Context, args *GetRoutesArgs, opts ...InvokeOption) (*GetRoutesResult, error)
    func GetRoutesOutput(ctx *Context, args *GetRoutesOutputArgs, opts ...InvokeOption) GetRoutesResultOutput

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

    public static class GetRoutes 
    {
        public static Task<GetRoutesResult> InvokeAsync(GetRoutesArgs args, InvokeOptions? opts = null)
        public static Output<GetRoutesResult> Invoke(GetRoutesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRoutesResult> Invoke(GetRoutesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRoutesResult> getRoutes(GetRoutesArgs args, InvokeOptions options)
    public static Output<GetRoutesResult> getRoutes(GetRoutesArgs args, InvokeOptions options)
    public static Output<GetRoutesResult> getRoutes(GetRoutesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getRoutes:getRoutes
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_routes" "name" {
        # arguments
    }

    The following arguments are supported:

    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Org string
    The org guid associated to the route to lookup.
    Path string
    The path associated to the route to lookup.
    Port double
    The port associated to the route to lookup.
    Space string
    The space guid associated to the route.
    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Org string
    The org guid associated to the route to lookup.
    Path string
    The path associated to the route to lookup.
    Port float64
    The port associated to the route to lookup.
    Space string
    The space guid associated to the route.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    org string
    The org guid associated to the route to lookup.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    space string
    The space guid associated to the route.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    org String
    The org guid associated to the route to lookup.
    path String
    The path associated to the route to lookup.
    port Double
    The port associated to the route to lookup.
    space String
    The space guid associated to the route.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    org string
    The org guid associated to the route to lookup.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    space string
    The space guid associated to the route.
    domain str
    The domain guid associated to the route.
    host str
    The hostname associated to the route to lookup.
    org str
    The org guid associated to the route to lookup.
    path str
    The path associated to the route to lookup.
    port float
    The port associated to the route to lookup.
    space str
    The space guid associated to the route.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    org String
    The org guid associated to the route to lookup.
    path String
    The path associated to the route to lookup.
    port Number
    The port associated to the route to lookup.
    space String
    The space guid associated to the route.

    getRoutes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Routes List<GetRoutesRoute>
    The list of routes.
    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Org string
    The org guid associated to the route to lookup.
    Path string
    The path associated to the route to lookup.
    Port double
    The port associated to the route to lookup.
    Space string
    The space guid associated to the route.
    Id string
    The provider-assigned unique ID for this managed resource.
    Routes []GetRoutesRoute
    The list of routes.
    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Org string
    The org guid associated to the route to lookup.
    Path string
    The path associated to the route to lookup.
    Port float64
    The port associated to the route to lookup.
    Space string
    The space guid associated to the route.
    id string
    The provider-assigned unique ID for this managed resource.
    routes list(object)
    The list of routes.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    org string
    The org guid associated to the route to lookup.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    space string
    The space guid associated to the route.
    id String
    The provider-assigned unique ID for this managed resource.
    routes List<GetRoutesRoute>
    The list of routes.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    org String
    The org guid associated to the route to lookup.
    path String
    The path associated to the route to lookup.
    port Double
    The port associated to the route to lookup.
    space String
    The space guid associated to the route.
    id string
    The provider-assigned unique ID for this managed resource.
    routes GetRoutesRoute[]
    The list of routes.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    org string
    The org guid associated to the route to lookup.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    space string
    The space guid associated to the route.
    id str
    The provider-assigned unique ID for this managed resource.
    routes Sequence[GetRoutesRoute]
    The list of routes.
    domain str
    The domain guid associated to the route.
    host str
    The hostname associated to the route to lookup.
    org str
    The org guid associated to the route to lookup.
    path str
    The path associated to the route to lookup.
    port float
    The port associated to the route to lookup.
    space str
    The space guid associated to the route.
    id String
    The provider-assigned unique ID for this managed resource.
    routes List<Property Map>
    The list of routes.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    org String
    The org guid associated to the route to lookup.
    path String
    The path associated to the route to lookup.
    port Number
    The port associated to the route to lookup.
    space String
    The space guid associated to the route.

    Supporting Types

    GetRoutesRoute

    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Destinations List<GetRoutesRouteDestination>
    A destination represents the relationship between a route and a resource that can serve traffic.
    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Id string
    The GUID of the object.
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources.
    Path string
    The path associated to the route to lookup.
    Port double
    The port associated to the route to lookup.
    Protocol string
    The protocol supported by the route, based on the route's domain configuration.
    Space string
    The space guid associated to the route.
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Url string
    The URL for the route.
    Annotations map[string]string
    The annotations associated with Cloud Foundry resources.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Destinations []GetRoutesRouteDestination
    A destination represents the relationship between a route and a resource that can serve traffic.
    Domain string
    The domain guid associated to the route.
    Host string
    The hostname associated to the route to lookup.
    Id string
    The GUID of the object.
    Labels map[string]string
    The labels associated with Cloud Foundry resources.
    Path string
    The path associated to the route to lookup.
    Port float64
    The port associated to the route to lookup.
    Protocol string
    The protocol supported by the route, based on the route's domain configuration.
    Space string
    The space guid associated to the route.
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Url string
    The URL for the route.
    annotations map(string)
    The annotations associated with Cloud Foundry resources.
    created_at string
    The date and time when the resource was created in RFC3339 format.
    destinations list(object)
    A destination represents the relationship between a route and a resource that can serve traffic.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    id string
    The GUID of the object.
    labels map(string)
    The labels associated with Cloud Foundry resources.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    protocol string
    The protocol supported by the route, based on the route's domain configuration.
    space string
    The space guid associated to the route.
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    url string
    The URL for the route.
    annotations Map<String,String>
    The annotations associated with Cloud Foundry resources.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    destinations List<GetRoutesRouteDestination>
    A destination represents the relationship between a route and a resource that can serve traffic.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    id String
    The GUID of the object.
    labels Map<String,String>
    The labels associated with Cloud Foundry resources.
    path String
    The path associated to the route to lookup.
    port Double
    The port associated to the route to lookup.
    protocol String
    The protocol supported by the route, based on the route's domain configuration.
    space String
    The space guid associated to the route.
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    url String
    The URL for the route.
    annotations {[key: string]: string}
    The annotations associated with Cloud Foundry resources.
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    destinations GetRoutesRouteDestination[]
    A destination represents the relationship between a route and a resource that can serve traffic.
    domain string
    The domain guid associated to the route.
    host string
    The hostname associated to the route to lookup.
    id string
    The GUID of the object.
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources.
    path string
    The path associated to the route to lookup.
    port number
    The port associated to the route to lookup.
    protocol string
    The protocol supported by the route, based on the route's domain configuration.
    space string
    The space guid associated to the route.
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    url string
    The URL for the route.
    annotations Mapping[str, str]
    The annotations associated with Cloud Foundry resources.
    created_at str
    The date and time when the resource was created in RFC3339 format.
    destinations Sequence[GetRoutesRouteDestination]
    A destination represents the relationship between a route and a resource that can serve traffic.
    domain str
    The domain guid associated to the route.
    host str
    The hostname associated to the route to lookup.
    id str
    The GUID of the object.
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources.
    path str
    The path associated to the route to lookup.
    port float
    The port associated to the route to lookup.
    protocol str
    The protocol supported by the route, based on the route's domain configuration.
    space str
    The space guid associated to the route.
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    url str
    The URL for the route.
    annotations Map<String>
    The annotations associated with Cloud Foundry resources.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    destinations List<Property Map>
    A destination represents the relationship between a route and a resource that can serve traffic.
    domain String
    The domain guid associated to the route.
    host String
    The hostname associated to the route to lookup.
    id String
    The GUID of the object.
    labels Map<String>
    The labels associated with Cloud Foundry resources.
    path String
    The path associated to the route to lookup.
    port Number
    The port associated to the route to lookup.
    protocol String
    The protocol supported by the route, based on the route's domain configuration.
    space String
    The space guid associated to the route.
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    url String
    The URL for the route.

    GetRoutesRouteDestination

    AppId string
    The GUID of the app to route traffic to.
    AppProcessType string
    Type of the process belonging to the app to route traffic to.
    Id string
    The GUID of the object.
    Port double
    Port on the destination process to route traffic to.
    Protocol string
    Protocol to use for this destination.
    Weight double
    Percentage of traffic which will be routed to this destination.
    AppId string
    The GUID of the app to route traffic to.
    AppProcessType string
    Type of the process belonging to the app to route traffic to.
    Id string
    The GUID of the object.
    Port float64
    Port on the destination process to route traffic to.
    Protocol string
    Protocol to use for this destination.
    Weight float64
    Percentage of traffic which will be routed to this destination.
    app_id string
    The GUID of the app to route traffic to.
    app_process_type string
    Type of the process belonging to the app to route traffic to.
    id string
    The GUID of the object.
    port number
    Port on the destination process to route traffic to.
    protocol string
    Protocol to use for this destination.
    weight number
    Percentage of traffic which will be routed to this destination.
    appId String
    The GUID of the app to route traffic to.
    appProcessType String
    Type of the process belonging to the app to route traffic to.
    id String
    The GUID of the object.
    port Double
    Port on the destination process to route traffic to.
    protocol String
    Protocol to use for this destination.
    weight Double
    Percentage of traffic which will be routed to this destination.
    appId string
    The GUID of the app to route traffic to.
    appProcessType string
    Type of the process belonging to the app to route traffic to.
    id string
    The GUID of the object.
    port number
    Port on the destination process to route traffic to.
    protocol string
    Protocol to use for this destination.
    weight number
    Percentage of traffic which will be routed to this destination.
    app_id str
    The GUID of the app to route traffic to.
    app_process_type str
    Type of the process belonging to the app to route traffic to.
    id str
    The GUID of the object.
    port float
    Port on the destination process to route traffic to.
    protocol str
    Protocol to use for this destination.
    weight float
    Percentage of traffic which will be routed to this destination.
    appId String
    The GUID of the app to route traffic to.
    appProcessType String
    Type of the process belonging to the app to route traffic to.
    id String
    The GUID of the object.
    port Number
    Port on the destination process to route traffic to.
    protocol String
    Protocol to use for this destination.
    weight Number
    Percentage of traffic which will be routed to this destination.

    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