1. Packages
  2. Scaleway
  3. API Docs
  4. getLbFrontends
Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse

scaleway.getLbFrontends

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse

    Gets information about multiple Load Balancer Frontends.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const byLBID = scaleway.getLbFrontends({
        lbId: scaleway_lb.lb01.id,
    });
    const byLBIDAndName = scaleway.getLbFrontends({
        lbId: scaleway_lb.lb01.id,
        name: "tf-frontend-datasource",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_lbid = scaleway.get_lb_frontends(lb_id=scaleway_lb["lb01"]["id"])
    by_lbid_and_name = scaleway.get_lb_frontends(lb_id=scaleway_lb["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"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.GetLbFrontends(ctx, &scaleway.GetLbFrontendsArgs{
    			LbId: scaleway_lb.Lb01.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.GetLbFrontends(ctx, &scaleway.GetLbFrontendsArgs{
    			LbId: scaleway_lb.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(() => 
    {
        var byLBID = Scaleway.GetLbFrontends.Invoke(new()
        {
            LbId = scaleway_lb.Lb01.Id,
        });
    
        var byLBIDAndName = Scaleway.GetLbFrontends.Invoke(new()
        {
            LbId = scaleway_lb.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.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetLbFrontendsArgs;
    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 byLBID = ScalewayFunctions.getLbFrontends(GetLbFrontendsArgs.builder()
                .lbId(scaleway_lb.lb01().id())
                .build());
    
            final var byLBIDAndName = ScalewayFunctions.getLbFrontends(GetLbFrontendsArgs.builder()
                .lbId(scaleway_lb.lb01().id())
                .name("tf-frontend-datasource")
                .build());
    
        }
    }
    
    variables:
      byLBID:
        fn::invoke:
          Function: scaleway:getLbFrontends
          Arguments:
            lbId: ${scaleway_lb.lb01.id}
      byLBIDAndName:
        fn::invoke:
          Function: scaleway:getLbFrontends
          Arguments:
            lbId: ${scaleway_lb.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getLbFrontends:getLbFrontends
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    Name string
    The frontend name used as filter. Frontends with a name like it are listed.
    ProjectId string
    Zone string
    zone) The zone in which frontends exist.
    LbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    Name string
    The frontend name used as filter. Frontends with a name like it are listed.
    ProjectId string
    Zone string
    zone) The zone in which frontends exist.
    lbId String
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name String
    The frontend name used as filter. Frontends with a name like it are listed.
    projectId String
    zone String
    zone) The zone in which frontends exist.
    lbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name string
    The frontend name used as filter. Frontends with a name like it are listed.
    projectId string
    zone string
    zone) The zone in which frontends exist.
    lb_id str
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name str
    The frontend name used as filter. Frontends with a name like it are listed.
    project_id str
    zone str
    zone) The zone in which frontends exist.
    lbId String
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name String
    The frontend name used as filter. Frontends with a name like it are listed.
    projectId String
    zone String
    zone) The zone in which frontends exist.

    getLbFrontends Result

    The following output properties are available:

    Frontends List<Pulumiverse.Scaleway.Outputs.GetLbFrontendsFrontend>
    List of found frontends
    Id string
    The provider-assigned unique ID for this managed resource.
    LbId string
    OrganizationId string
    ProjectId string
    Zone string
    Name string
    Frontends []GetLbFrontendsFrontend
    List of found frontends
    Id string
    The provider-assigned unique ID for this managed resource.
    LbId string
    OrganizationId string
    ProjectId string
    Zone string
    Name string
    frontends List<GetLbFrontendsFrontend>
    List of found frontends
    id String
    The provider-assigned unique ID for this managed resource.
    lbId String
    organizationId String
    projectId String
    zone String
    name String
    frontends GetLbFrontendsFrontend[]
    List of found frontends
    id string
    The provider-assigned unique ID for this managed resource.
    lbId string
    organizationId string
    projectId string
    zone string
    name string
    frontends Sequence[GetLbFrontendsFrontend]
    List of found 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 found frontends
    id String
    The provider-assigned unique ID for this managed resource.
    lbId String
    organizationId String
    projectId String
    zone String
    name String

    Supporting Types

    GetLbFrontendsFrontend

    BackendId string

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    CertificateIds List<string>
    List of Certificate IDs that are used by the frontend.
    CreatedAt string
    The date at which the frontend was created (RFC 3339 format).
    EnableHttp3 bool
    If HTTP/3 protocol is activated.
    Id string

    The associated frontend ID.

    Important: LB frontends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    InboundPort int
    TCP port the frontend listen to.
    LbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    Name string
    The frontend name used as filter. Frontends with a name like it are listed.
    TimeoutClient string
    Maximum inactivity time on the client side.
    UpdateAt string
    The date at which the frontend was last updated (RFC 3339 format).
    BackendId string

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    CertificateIds []string
    List of Certificate IDs that are used by the frontend.
    CreatedAt string
    The date at which the frontend was created (RFC 3339 format).
    EnableHttp3 bool
    If HTTP/3 protocol is activated.
    Id string

    The associated frontend ID.

    Important: LB frontends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    InboundPort int
    TCP port the frontend listen to.
    LbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    Name string
    The frontend name used as filter. Frontends with a name like it are listed.
    TimeoutClient string
    Maximum inactivity time on the client side.
    UpdateAt string
    The date at which the frontend was last updated (RFC 3339 format).
    backendId String

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    certificateIds List<String>
    List of Certificate IDs that are used by the frontend.
    createdAt String
    The date at which the frontend was created (RFC 3339 format).
    enableHttp3 Boolean
    If HTTP/3 protocol is activated.
    id String

    The associated frontend ID.

    Important: LB frontends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    inboundPort Integer
    TCP port the frontend listen to.
    lbId String
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name String
    The frontend name used as filter. Frontends with a name like it are listed.
    timeoutClient String
    Maximum inactivity time on the client side.
    updateAt String
    The date at which the frontend was last updated (RFC 3339 format).
    backendId string

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    certificateIds string[]
    List of Certificate IDs that are used by the frontend.
    createdAt string
    The date at which the frontend was created (RFC 3339 format).
    enableHttp3 boolean
    If HTTP/3 protocol is activated.
    id string

    The associated frontend ID.

    Important: LB frontends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    inboundPort number
    TCP port the frontend listen to.
    lbId string
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name string
    The frontend name used as filter. Frontends with a name like it are listed.
    timeoutClient string
    Maximum inactivity time on the client side.
    updateAt string
    The date at which the frontend was last updated (RFC 3339 format).
    backend_id str

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' 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 at which the frontend was created (RFC 3339 format).
    enable_http3 bool
    If HTTP/3 protocol is activated.
    id str

    The associated frontend ID.

    Important: LB frontends' 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 listen to.
    lb_id str
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name str
    The frontend name used as filter. Frontends with a name like it are listed.
    timeout_client str
    Maximum inactivity time on the client side.
    update_at str
    The date at which the frontend was last updated (RFC 3339 format).
    backendId String

    The load-balancer backend ID this frontend is attached to.

    Important: LB backends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    certificateIds List<String>
    List of Certificate IDs that are used by the frontend.
    createdAt String
    The date at which the frontend was created (RFC 3339 format).
    enableHttp3 Boolean
    If HTTP/3 protocol is activated.
    id String

    The associated frontend ID.

    Important: LB frontends' IDs are zoned, which means they are of the form {zone}/{id}, e.g. fr-par-1/11111111-1111-1111-1111-111111111111

    inboundPort Number
    TCP port the frontend listen to.
    lbId String
    The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
    name String
    The frontend name used as filter. Frontends with a name like it are listed.
    timeoutClient String
    Maximum inactivity time on the client side.
    updateAt String
    The date at 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 scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse