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 dictionary
The following arguments are supported:
- Lb
Id This property is required. 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.
- Project
Id Changes to this property will trigger replacement.
- Zone
Changes to this property will trigger replacement.
zone
) The zone in which the frontends exist.
- Lb
Id This property is required. 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.
- Project
Id Changes to this property will trigger replacement.
- Zone
Changes to this property will trigger replacement.
zone
) The zone in which the frontends exist.
- lb
Id This property is required. 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.
- project
Id Changes to this property will trigger replacement.
- zone
Changes to this property will trigger replacement.
zone
) The zone in which the frontends exist.
- lb
Id This property is required. 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.
- project
Id Changes to this property will trigger replacement.
- zone
Changes to this property will trigger replacement.
zone
) The zone in which the frontends exist.
- lb_
id This property is required. 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 Changes to this property will trigger replacement.
- zone
Changes to this property will trigger replacement.
zone
) The zone in which the frontends exist.
- lb
Id This property is required. 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.
- project
Id Changes to this property will trigger replacement.
- zone
Changes to this property will trigger replacement.
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 This property is required. 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 This property is required. List<string> - List of certificate IDs that are used by the frontend.
- Created
At This property is required. string - The date on which the frontend was created (RFC 3339 format).
- Enable
Http3 This property is required. bool - Whether HTTP/3 protocol is activated.
- Id
This property is required. 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 This property is required. int - TCP port the frontend listens to.
- Lb
Id This property is required. string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- Name
This property is required. string - The frontend name to filter for. Frontends with a matching name are listed.
- Timeout
Client This property is required. string - Maximum inactivity time on the client side.
- Update
At This property is required. string - The date aont which the frontend was last updated (RFC 3339 format).
- Backend
Id This property is required. 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 This property is required. []string - List of certificate IDs that are used by the frontend.
- Created
At This property is required. string - The date on which the frontend was created (RFC 3339 format).
- Enable
Http3 This property is required. bool - Whether HTTP/3 protocol is activated.
- Id
This property is required. 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 This property is required. int - TCP port the frontend listens to.
- Lb
Id This property is required. string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- Name
This property is required. string - The frontend name to filter for. Frontends with a matching name are listed.
- Timeout
Client This property is required. string - Maximum inactivity time on the client side.
- Update
At This property is required. string - The date aont which the frontend was last updated (RFC 3339 format).
- backend
Id This property is required. 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 This property is required. List<String> - List of certificate IDs that are used by the frontend.
- created
At This property is required. String - The date on which the frontend was created (RFC 3339 format).
- enable
Http3 This property is required. Boolean - Whether HTTP/3 protocol is activated.
- id
This property is required. 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 This property is required. Integer - TCP port the frontend listens to.
- lb
Id This property is required. String - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- name
This property is required. String - The frontend name to filter for. Frontends with a matching name are listed.
- timeout
Client This property is required. String - Maximum inactivity time on the client side.
- update
At This property is required. String - The date aont which the frontend was last updated (RFC 3339 format).
- backend
Id This property is required. 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 This property is required. string[] - List of certificate IDs that are used by the frontend.
- created
At This property is required. string - The date on which the frontend was created (RFC 3339 format).
- enable
Http3 This property is required. boolean - Whether HTTP/3 protocol is activated.
- id
This property is required. 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 This property is required. number - TCP port the frontend listens to.
- lb
Id This property is required. string - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- name
This property is required. string - The frontend name to filter for. Frontends with a matching name are listed.
- timeout
Client This property is required. string - Maximum inactivity time on the client side.
- update
At This property is required. string - The date aont which the frontend was last updated (RFC 3339 format).
- backend_
id This property is required. 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 This property is required. Sequence[str] - List of certificate IDs that are used by the frontend.
- created_
at This property is required. str - The date on which the frontend was created (RFC 3339 format).
- enable_
http3 This property is required. bool - Whether HTTP/3 protocol is activated.
- id
This property is required. 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 This property is required. int - TCP port the frontend listens to.
- lb_
id This property is required. str - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- name
This property is required. str - The frontend name to filter for. Frontends with a matching name are listed.
- timeout_
client This property is required. str - Maximum inactivity time on the client side.
- update_
at This property is required. str - The date aont which the frontend was last updated (RFC 3339 format).
- backend
Id This property is required. 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 This property is required. List<String> - List of certificate IDs that are used by the frontend.
- created
At This property is required. String - The date on which the frontend was created (RFC 3339 format).
- enable
Http3 This property is required. Boolean - Whether HTTP/3 protocol is activated.
- id
This property is required. 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 This property is required. Number - TCP port the frontend listens to.
- lb
Id This property is required. String - The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed.
- name
This property is required. String - The frontend name to filter for. Frontends with a matching name are listed.
- timeout
Client This property is required. String - Maximum inactivity time on the client side.
- update
At This property is required. 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
scaleway
Terraform Provider.