Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getLbRoutes
Explore with Pulumi AI
Gets information about multiple Load Balancer Routes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const byFrontendID = scaleway.getLbRoutes({
frontendId: scaleway_lb_frontend.frt01.id,
});
const myKey = scaleway.getLbRoutes({
frontendId: "11111111-1111-1111-1111-111111111111",
zone: "fr-par-2",
});
import pulumi
import pulumi_scaleway as scaleway
by_frontend_id = scaleway.get_lb_routes(frontend_id=scaleway_lb_frontend["frt01"]["id"])
my_key = scaleway.get_lb_routes(frontend_id="11111111-1111-1111-1111-111111111111",
zone="fr-par-2")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.GetLbRoutes(ctx, &scaleway.GetLbRoutesArgs{
FrontendId: pulumi.StringRef(scaleway_lb_frontend.Frt01.Id),
}, nil)
if err != nil {
return err
}
_, err = scaleway.GetLbRoutes(ctx, &scaleway.GetLbRoutesArgs{
FrontendId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
Zone: pulumi.StringRef("fr-par-2"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var byFrontendID = Scaleway.GetLbRoutes.Invoke(new()
{
FrontendId = scaleway_lb_frontend.Frt01.Id,
});
var myKey = Scaleway.GetLbRoutes.Invoke(new()
{
FrontendId = "11111111-1111-1111-1111-111111111111",
Zone = "fr-par-2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetLbRoutesArgs;
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 byFrontendID = ScalewayFunctions.getLbRoutes(GetLbRoutesArgs.builder()
.frontendId(scaleway_lb_frontend.frt01().id())
.build());
final var myKey = ScalewayFunctions.getLbRoutes(GetLbRoutesArgs.builder()
.frontendId("11111111-1111-1111-1111-111111111111")
.zone("fr-par-2")
.build());
}
}
variables:
byFrontendID:
fn::invoke:
Function: scaleway:getLbRoutes
Arguments:
frontendId: ${scaleway_lb_frontend.frt01.id}
myKey:
fn::invoke:
Function: scaleway:getLbRoutes
Arguments:
frontendId: 11111111-1111-1111-1111-111111111111
zone: fr-par-2
Using getLbRoutes
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 getLbRoutes(args: GetLbRoutesArgs, opts?: InvokeOptions): Promise<GetLbRoutesResult>
function getLbRoutesOutput(args: GetLbRoutesOutputArgs, opts?: InvokeOptions): Output<GetLbRoutesResult>
def get_lb_routes(frontend_id: Optional[str] = None,
project_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbRoutesResult
def get_lb_routes_output(frontend_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbRoutesResult]
func GetLbRoutes(ctx *Context, args *GetLbRoutesArgs, opts ...InvokeOption) (*GetLbRoutesResult, error)
func GetLbRoutesOutput(ctx *Context, args *GetLbRoutesOutputArgs, opts ...InvokeOption) GetLbRoutesResultOutput
> Note: This function is named GetLbRoutes
in the Go SDK.
public static class GetLbRoutes
{
public static Task<GetLbRoutesResult> InvokeAsync(GetLbRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetLbRoutesResult> Invoke(GetLbRoutesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLbRoutesResult> getLbRoutes(GetLbRoutesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getLbRoutes:getLbRoutes
arguments:
# arguments dictionary
The following arguments are supported:
- Frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- Project
Id string - Zone string
zone
) The zone in which routes exist.
- Frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- Project
Id string - Zone string
zone
) The zone in which routes exist.
- frontend
Id String - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- project
Id String - zone String
zone
) The zone in which routes exist.
- frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- project
Id string - zone string
zone
) The zone in which routes exist.
- frontend_
id str - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- project_
id str - zone str
zone
) The zone in which routes exist.
- frontend
Id String - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- project
Id String - zone String
zone
) The zone in which routes exist.
getLbRoutes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - Routes
List<Pulumiverse.
Scaleway. Outputs. Get Lb Routes Route> - List of found routes
- Zone string
- Frontend
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - Routes
[]Get
Lb Routes Route - List of found routes
- Zone string
- Frontend
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - project
Id String - routes
List<Get
Lb Routes Route> - List of found routes
- zone String
- frontend
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - project
Id string - routes
Get
Lb Routes Route[] - List of found routes
- zone string
- frontend
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - project_
id str - routes
Sequence[Get
Lb Routes Route] - List of found routes
- zone str
- frontend_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - project
Id String - routes List<Property Map>
- List of found routes
- zone String
- frontend
Id String
Supporting Types
GetLbRoutesRoute
- Backend
Id string - The backend ID destination of redirection
- Created
At string - The date at which the route was created (RFC 3339 format).
- Frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- Id string
- The associated route ID.
- Match
Host stringHeader - Specifies the host of the server to which the request is being sent.
- Match
Sni string - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- Update
At string - The date at which the route was last updated (RFC 3339 format).
- Backend
Id string - The backend ID destination of redirection
- Created
At string - The date at which the route was created (RFC 3339 format).
- Frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- Id string
- The associated route ID.
- Match
Host stringHeader - Specifies the host of the server to which the request is being sent.
- Match
Sni string - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- Update
At string - The date at which the route was last updated (RFC 3339 format).
- backend
Id String - The backend ID destination of redirection
- created
At String - The date at which the route was created (RFC 3339 format).
- frontend
Id String - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- id String
- The associated route ID.
- match
Host StringHeader - Specifies the host of the server to which the request is being sent.
- match
Sni String - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- update
At String - The date at which the route was last updated (RFC 3339 format).
- backend
Id string - The backend ID destination of redirection
- created
At string - The date at which the route was created (RFC 3339 format).
- frontend
Id string - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- id string
- The associated route ID.
- match
Host stringHeader - Specifies the host of the server to which the request is being sent.
- match
Sni string - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- update
At string - The date at which the route was last updated (RFC 3339 format).
- backend_
id str - The backend ID destination of redirection
- created_
at str - The date at which the route was created (RFC 3339 format).
- frontend_
id str - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- id str
- The associated route ID.
- match_
host_ strheader - Specifies the host of the server to which the request is being sent.
- match_
sni str - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- update_
at str - The date at which the route was last updated (RFC 3339 format).
- backend
Id String - The backend ID destination of redirection
- created
At String - The date at which the route was created (RFC 3339 format).
- frontend
Id String - The frontend ID origin of redirection used as a filter. routes with a frontend ID like it are listed.
- id String
- The associated route ID.
- match
Host StringHeader - Specifies the host of the server to which the request is being sent.
- match
Sni String - Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
- update
At String - The date at which the route was last updated (RFC 3339 format).
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.