scaleway.getLbFrontends
Explore with Pulumi AI
Gets information about multiple Load Balancer frontends.
For more information, see the main documentation or API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
// Find frontends that share the same LB ID
const byLBID = scaleway.loadbalancers.getFrontends({
    lbId: lb01.id,
});
// Find frontends by LB ID and name
const byLBIDAndName = scaleway.loadbalancers.getFrontends({
    lbId: lb01.id,
    name: "tf-frontend-datasource",
});
import pulumi
import pulumi_scaleway as scaleway
# Find frontends that share the same LB ID
by_lbid = scaleway.loadbalancers.get_frontends(lb_id=lb01["id"])
# Find frontends by LB ID and name
by_lbid_and_name = scaleway.loadbalancers.get_frontends(lb_id=lb01["id"],
    name="tf-frontend-datasource")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/loadbalancers"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Find frontends that share the same LB ID
		_, err := loadbalancers.GetFrontends(ctx, &loadbalancers.GetFrontendsArgs{
			LbId: lb01.Id,
		}, nil)
		if err != nil {
			return err
		}
		// Find frontends by LB ID and name
		_, err = loadbalancers.GetFrontends(ctx, &loadbalancers.GetFrontendsArgs{
			LbId: lb01.Id,
			Name: pulumi.StringRef("tf-frontend-datasource"),
		}, 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(() => 
{
    // Find frontends that share the same LB ID
    var byLBID = Scaleway.Loadbalancers.GetFrontends.Invoke(new()
    {
        LbId = lb01.Id,
    });
    // Find frontends by LB ID and name
    var byLBIDAndName = Scaleway.Loadbalancers.GetFrontends.Invoke(new()
    {
        LbId = lb01.Id,
        Name = "tf-frontend-datasource",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.loadbalancers.LoadbalancersFunctions;
import com.pulumi.scaleway.loadbalancers.inputs.GetFrontendsArgs;
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) {
        // Find frontends that share the same LB ID
        final var byLBID = LoadbalancersFunctions.getFrontends(GetFrontendsArgs.builder()
            .lbId(lb01.id())
            .build());
        // Find frontends by LB ID and name
        final var byLBIDAndName = LoadbalancersFunctions.getFrontends(GetFrontendsArgs.builder()
            .lbId(lb01.id())
            .name("tf-frontend-datasource")
            .build());
    }
}
variables:
  # Find frontends that share the same LB ID
  byLBID:
    fn::invoke:
      function: scaleway:loadbalancers:getFrontends
      arguments:
        lbId: ${lb01.id}
  # Find frontends by LB ID and name
  byLBIDAndName:
    fn::invoke:
      function: scaleway:loadbalancers:getFrontends
      arguments:
        lbId: ${lb01.id}
        name: tf-frontend-datasource
Using getLbFrontends
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 getLbFrontends(args: GetLbFrontendsArgs, opts?: InvokeOptions): Promise<GetLbFrontendsResult>
function getLbFrontendsOutput(args: GetLbFrontendsOutputArgs, opts?: InvokeOptions): Output<GetLbFrontendsResult>def get_lb_frontends(lb_id: Optional[str] = None,
                     name: Optional[str] = None,
                     project_id: Optional[str] = None,
                     zone: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLbFrontendsResult
def get_lb_frontends_output(lb_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     project_id: Optional[pulumi.Input[str]] = None,
                     zone: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLbFrontendsResult]func GetLbFrontends(ctx *Context, args *GetLbFrontendsArgs, opts ...InvokeOption) (*GetLbFrontendsResult, error)
func GetLbFrontendsOutput(ctx *Context, args *GetLbFrontendsOutputArgs, opts ...InvokeOption) GetLbFrontendsResultOutput> Note: This function is named GetLbFrontends in the Go SDK.
public static class GetLbFrontends 
{
    public static Task<GetLbFrontendsResult> InvokeAsync(GetLbFrontendsArgs args, InvokeOptions? opts = null)
    public static Output<GetLbFrontendsResult> Invoke(GetLbFrontendsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLbFrontendsResult> getLbFrontends(GetLbFrontendsArgs args, InvokeOptions options)
public static Output<GetLbFrontendsResult> getLbFrontends(GetLbFrontendsArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:index/getLbFrontends:getLbFrontends
  arguments:
    # arguments dictionaryThe following arguments are supported:
- lb_
id str - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - name str
 - The frontend name to filter for. Frontends with a matching name are listed.
 - project_
id str - zone str
 zone) The zone in which the frontends exist.
getLbFrontends Result
The following output properties are available:
- Frontends
List<Pulumiverse.
Scaleway. Outputs. Get Lb Frontends Frontend>  - List of retrieved frontends
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Lb
Id string - Organization
Id string - Project
Id string - Zone string
 - Name string
 
- Frontends
[]Get
Lb Frontends Frontend  - List of retrieved frontends
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Lb
Id string - Organization
Id string - Project
Id string - Zone string
 - Name string
 
- frontends
List<Get
Lb Frontends Frontend>  - List of retrieved frontends
 - id String
 - The provider-assigned unique ID for this managed resource.
 - lb
Id String - organization
Id String - project
Id String - zone String
 - name String
 
- frontends
Get
Lb Frontends Frontend[]  - List of retrieved frontends
 - id string
 - The provider-assigned unique ID for this managed resource.
 - lb
Id string - organization
Id string - project
Id string - zone string
 - name string
 
- frontends
Sequence[Get
Lb Frontends Frontend]  - List of retrieved frontends
 - id str
 - The provider-assigned unique ID for this managed resource.
 - lb_
id str - organization_
id str - project_
id str - zone str
 - name str
 
- frontends List<Property Map>
 - List of retrieved frontends
 - id String
 - The provider-assigned unique ID for this managed resource.
 - lb
Id String - organization
Id String - project
Id String - zone String
 - name String
 
Supporting Types
GetLbFrontendsFrontend   
- Backend
Id string The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- Certificate
Ids List<string> - List of certificate IDs that are used by the frontend.
 - Created
At string - The date on which the frontend was created (RFC 3339 format).
 - Enable
Http3 bool - Whether HTTP/3 protocol is activated.
 - Id string
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- Inbound
Port int - TCP port the frontend listens to.
 - Lb
Id string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - Name string
 - The frontend name to filter for. Frontends with a matching name are listed.
 - Timeout
Client string - Maximum inactivity time on the client side.
 - Update
At string - The date aont which the frontend was last updated (RFC 3339 format).
 
- Backend
Id string The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- Certificate
Ids []string - List of certificate IDs that are used by the frontend.
 - Created
At string - The date on which the frontend was created (RFC 3339 format).
 - Enable
Http3 bool - Whether HTTP/3 protocol is activated.
 - Id string
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- Inbound
Port int - TCP port the frontend listens to.
 - Lb
Id string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - Name string
 - The frontend name to filter for. Frontends with a matching name are listed.
 - Timeout
Client string - Maximum inactivity time on the client side.
 - Update
At string - The date aont which the frontend was last updated (RFC 3339 format).
 
- backend
Id String The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- certificate
Ids List<String> - List of certificate IDs that are used by the frontend.
 - created
At String - The date on which the frontend was created (RFC 3339 format).
 - enable
Http3 Boolean - Whether HTTP/3 protocol is activated.
 - id String
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- inbound
Port Integer - TCP port the frontend listens to.
 - lb
Id String - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - name String
 - The frontend name to filter for. Frontends with a matching name are listed.
 - timeout
Client String - Maximum inactivity time on the client side.
 - update
At String - The date aont which the frontend was last updated (RFC 3339 format).
 
- backend
Id string The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- certificate
Ids string[] - List of certificate IDs that are used by the frontend.
 - created
At string - The date on which the frontend was created (RFC 3339 format).
 - enable
Http3 boolean - Whether HTTP/3 protocol is activated.
 - id string
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- inbound
Port number - TCP port the frontend listens to.
 - lb
Id string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - name string
 - The frontend name to filter for. Frontends with a matching name are listed.
 - timeout
Client string - Maximum inactivity time on the client side.
 - update
At string - The date aont which the frontend was last updated (RFC 3339 format).
 
- backend_
id str The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- certificate_
ids Sequence[str] - List of certificate IDs that are used by the frontend.
 - created_
at str - The date on which the frontend was created (RFC 3339 format).
 - enable_
http3 bool - Whether HTTP/3 protocol is activated.
 - id str
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- inbound_
port int - TCP port the frontend listens to.
 - lb_
id str - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - name str
 - The frontend name to filter for. Frontends with a matching name are listed.
 - timeout_
client str - Maximum inactivity time on the client side.
 - update_
at str - The date aont which the frontend was last updated (RFC 3339 format).
 
- backend
Id String The Load Balancer backend ID this frontend is attached to.
Important: Load Balancer backend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- certificate
Ids List<String> - List of certificate IDs that are used by the frontend.
 - created
At String - The date on which the frontend was created (RFC 3339 format).
 - enable
Http3 Boolean - Whether HTTP/3 protocol is activated.
 - id String
 The ID of the associated frontend.
Important: LB frontend IDs are zoned, which means they are of the form
{zone}/{id}, e.g.fr-par-1/11111111-1111-1111-1111-111111111111- inbound
Port Number - TCP port the frontend listens to.
 - lb
Id String - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
 - name String
 - The frontend name to filter for. Frontends with a matching name are listed.
 - timeout
Client String - Maximum inactivity time on the client side.
 - update
At String - The date aont which the frontend 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 
scalewayTerraform Provider.