Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 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 dictionarydata "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<Get
Routes Route> - 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
[]Get
Routes Route - 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<Get
Routes Route> - 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
Get
Routes Route[] - 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[Get
Routes Route] - 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.
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Destinations
List<Get
Routes Route Destination> - 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.
- 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.
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Destinations
[]Get
Routes Route Destination - 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.
- 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)
- 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.
- created
At String - The date and time when the resource was created in RFC3339 format.
- destinations
List<Get
Routes Route Destination> - 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.
- updated
At 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.
- created
At string - The date and time when the resource was created in RFC3339 format.
- destinations
Get
Routes Route Destination[] - 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.
- updated
At 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[Get
Routes Route Destination] - 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.
- created
At 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.
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- url String
- The URL for the route.
GetRoutesRouteDestination
- App
Id string - The GUID of the app to route traffic to.
- App
Process stringType - 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.
- App
Id string - The GUID of the app to route traffic to.
- App
Process stringType - 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_ stringtype - 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 String - The GUID of the app to route traffic to.
- app
Process StringType - 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.
- app
Id string - The GUID of the app to route traffic to.
- app
Process stringType - 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_ strtype - 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.
- app
Id String - The GUID of the app to route traffic to.
- app
Process StringType - 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
cloudfoundryTerraform Provider.
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry