scaleway.getLbFrontend
Explore with Pulumi AI
Get information about Scaleway Load-Balancer Frontends. For more information, see the documentation.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var ip01 = new Scaleway.LoadbalancerIp("ip01");
var lb01 = new Scaleway.Loadbalancer("lb01", new()
{
IpId = ip01.Id,
Type = "lb-s",
});
var bkd01 = new Scaleway.LoadbalancerBackend("bkd01", new()
{
LbId = lb01.Id,
ForwardProtocol = "tcp",
ForwardPort = 80,
ProxyProtocol = "none",
});
var frt01 = new Scaleway.LoadbalancerFrontend("frt01", new()
{
LbId = lb01.Id,
BackendId = bkd01.Id,
InboundPort = 80,
});
var byID = Scaleway.GetLbFrontend.Invoke(new()
{
FrontendId = frt01.Id,
});
var byName = Scaleway.GetLbFrontend.Invoke(new()
{
Name = frt01.Name,
LbId = lb01.Id,
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ip01, err := scaleway.NewLoadbalancerIp(ctx, "ip01", nil)
if err != nil {
return err
}
lb01, err := scaleway.NewLoadbalancer(ctx, "lb01", &scaleway.LoadbalancerArgs{
IpId: ip01.ID(),
Type: pulumi.String("lb-s"),
})
if err != nil {
return err
}
bkd01, err := scaleway.NewLoadbalancerBackend(ctx, "bkd01", &scaleway.LoadbalancerBackendArgs{
LbId: lb01.ID(),
ForwardProtocol: pulumi.String("tcp"),
ForwardPort: pulumi.Int(80),
ProxyProtocol: pulumi.String("none"),
})
if err != nil {
return err
}
frt01, err := scaleway.NewLoadbalancerFrontend(ctx, "frt01", &scaleway.LoadbalancerFrontendArgs{
LbId: lb01.ID(),
BackendId: bkd01.ID(),
InboundPort: pulumi.Int(80),
})
if err != nil {
return err
}
_ = scaleway.GetLbFrontendOutput(ctx, scaleway.GetLbFrontendOutputArgs{
FrontendId: frt01.ID(),
}, nil)
_ = scaleway.GetLbFrontendOutput(ctx, scaleway.GetLbFrontendOutputArgs{
Name: frt01.Name,
LbId: lb01.ID(),
}, nil)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.LoadbalancerIp;
import com.pulumi.scaleway.Loadbalancer;
import com.pulumi.scaleway.LoadbalancerArgs;
import com.pulumi.scaleway.LoadbalancerBackend;
import com.pulumi.scaleway.LoadbalancerBackendArgs;
import com.pulumi.scaleway.LoadbalancerFrontend;
import com.pulumi.scaleway.LoadbalancerFrontendArgs;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetLbFrontendArgs;
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) {
var ip01 = new LoadbalancerIp("ip01");
var lb01 = new Loadbalancer("lb01", LoadbalancerArgs.builder()
.ipId(ip01.id())
.type("lb-s")
.build());
var bkd01 = new LoadbalancerBackend("bkd01", LoadbalancerBackendArgs.builder()
.lbId(lb01.id())
.forwardProtocol("tcp")
.forwardPort(80)
.proxyProtocol("none")
.build());
var frt01 = new LoadbalancerFrontend("frt01", LoadbalancerFrontendArgs.builder()
.lbId(lb01.id())
.backendId(bkd01.id())
.inboundPort(80)
.build());
final var byID = ScalewayFunctions.getLbFrontend(GetLbFrontendArgs.builder()
.frontendId(frt01.id())
.build());
final var byName = ScalewayFunctions.getLbFrontend(GetLbFrontendArgs.builder()
.name(frt01.name())
.lbId(lb01.id())
.build());
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
import pulumi_scaleway as scaleway
ip01 = scaleway.LoadbalancerIp("ip01")
lb01 = scaleway.Loadbalancer("lb01",
ip_id=ip01.id,
type="lb-s")
bkd01 = scaleway.LoadbalancerBackend("bkd01",
lb_id=lb01.id,
forward_protocol="tcp",
forward_port=80,
proxy_protocol="none")
frt01 = scaleway.LoadbalancerFrontend("frt01",
lb_id=lb01.id,
backend_id=bkd01.id,
inbound_port=80)
by_id = scaleway.get_lb_frontend_output(frontend_id=frt01.id)
by_name = scaleway.get_lb_frontend_output(name=frt01.name,
lb_id=lb01.id)
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
import * as scaleway from "@pulumi/scaleway";
const ip01 = new scaleway.LoadbalancerIp("ip01", {});
const lb01 = new scaleway.Loadbalancer("lb01", {
ipId: ip01.id,
type: "lb-s",
});
const bkd01 = new scaleway.LoadbalancerBackend("bkd01", {
lbId: lb01.id,
forwardProtocol: "tcp",
forwardPort: 80,
proxyProtocol: "none",
});
const frt01 = new scaleway.LoadbalancerFrontend("frt01", {
lbId: lb01.id,
backendId: bkd01.id,
inboundPort: 80,
});
const byID = scaleway.getLbFrontendOutput({
frontendId: frt01.id,
});
const byName = scaleway.getLbFrontendOutput({
name: frt01.name,
lbId: lb01.id,
});
resources:
ip01:
type: scaleway:LoadbalancerIp
lb01:
type: scaleway:Loadbalancer
properties:
ipId: ${ip01.id}
type: lb-s
bkd01:
type: scaleway:LoadbalancerBackend
properties:
lbId: ${lb01.id}
forwardProtocol: tcp
forwardPort: 80
proxyProtocol: none
frt01:
type: scaleway:LoadbalancerFrontend
properties:
lbId: ${lb01.id}
backendId: ${bkd01.id}
inboundPort: 80
variables:
byID:
fn::invoke:
Function: scaleway:getLbFrontend
Arguments:
frontendId: ${frt01.id}
byName:
fn::invoke:
Function: scaleway:getLbFrontend
Arguments:
name: ${frt01.name}
lbId: ${lb01.id}
Using getLbFrontend
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 getLbFrontend(args: GetLbFrontendArgs, opts?: InvokeOptions): Promise<GetLbFrontendResult>
function getLbFrontendOutput(args: GetLbFrontendOutputArgs, opts?: InvokeOptions): Output<GetLbFrontendResult>
def get_lb_frontend(frontend_id: Optional[str] = None,
lb_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbFrontendResult
def get_lb_frontend_output(frontend_id: Optional[pulumi.Input[str]] = None,
lb_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbFrontendResult]
func GetLbFrontend(ctx *Context, args *GetLbFrontendArgs, opts ...InvokeOption) (*GetLbFrontendResult, error)
func GetLbFrontendOutput(ctx *Context, args *GetLbFrontendOutputArgs, opts ...InvokeOption) GetLbFrontendResultOutput
> Note: This function is named GetLbFrontend
in the Go SDK.
public static class GetLbFrontend
{
public static Task<GetLbFrontendResult> InvokeAsync(GetLbFrontendArgs args, InvokeOptions? opts = null)
public static Output<GetLbFrontendResult> Invoke(GetLbFrontendInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLbFrontendResult> getLbFrontend(GetLbFrontendArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getLbFrontend:getLbFrontend
arguments:
# arguments dictionary
The following arguments are supported:
- Frontend
Id string The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- Lb
Id string The load-balancer ID this frontend is attached to.
- Name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- Frontend
Id string The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- Lb
Id string The load-balancer ID this frontend is attached to.
- Name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- frontend
Id String The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- lb
Id String The load-balancer ID this frontend is attached to.
- name String
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- frontend
Id string The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- lb
Id string The load-balancer ID this frontend is attached to.
- name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- frontend_
id str The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- lb_
id str The load-balancer ID this frontend is attached to.
- name str
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- frontend
Id String The frontend id.
- Only one of
name
andfrontend_id
should be specified.
- Only one of
- lb
Id String The load-balancer ID this frontend is attached to.
- name String
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
getLbFrontend Result
The following output properties are available:
- Acls
List<Lbrlabs.
Pulumi Package. Scaleway. Outputs. Get Lb Frontend Acl> - Backend
Id string - Certificate
Id string - Certificate
Ids List<string> - Enable
Http3 bool - External
Acls bool - Id string
The provider-assigned unique ID for this managed resource.
- Inbound
Port int - Timeout
Client string - Frontend
Id string - Lb
Id string - Name string
- Acls
[]Get
Lb Frontend Acl - Backend
Id string - Certificate
Id string - Certificate
Ids []string - Enable
Http3 bool - External
Acls bool - Id string
The provider-assigned unique ID for this managed resource.
- Inbound
Port int - Timeout
Client string - Frontend
Id string - Lb
Id string - Name string
- acls
List<Get
Lb Frontend Acl> - backend
Id String - certificate
Id String - certificate
Ids List<String> - enable
Http3 Boolean - external
Acls Boolean - id String
The provider-assigned unique ID for this managed resource.
- inbound
Port Integer - timeout
Client String - frontend
Id String - lb
Id String - name String
- acls
Get
Lb Frontend Acl[] - backend
Id string - certificate
Id string - certificate
Ids string[] - enable
Http3 boolean - external
Acls boolean - id string
The provider-assigned unique ID for this managed resource.
- inbound
Port number - timeout
Client string - frontend
Id string - lb
Id string - name string
- acls
Sequence[Get
Lb Frontend Acl] - backend_
id str - certificate_
id str - certificate_
ids Sequence[str] - enable_
http3 bool - external_
acls bool - id str
The provider-assigned unique ID for this managed resource.
- inbound_
port int - timeout_
client str - frontend_
id str - lb_
id str - name str
- acls List<Property Map>
- backend
Id String - certificate
Id String - certificate
Ids List<String> - enable
Http3 Boolean - external
Acls Boolean - id String
The provider-assigned unique ID for this managed resource.
- inbound
Port Number - timeout
Client String - frontend
Id String - lb
Id String - name String
Supporting Types
GetLbFrontendAcl
- Actions
List<Lbrlabs.
Pulumi Package. Scaleway. Inputs. Get Lb Frontend Acl Action> - Created
At string - Description string
- Matches
List<Lbrlabs.
Pulumi Package. Scaleway. Inputs. Get Lb Frontend Acl Match> - Name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- Updated
At string
- Actions
[]Get
Lb Frontend Acl Action - Created
At string - Description string
- Matches
[]Get
Lb Frontend Acl Match - Name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- Updated
At string
- actions
List<Get
Lb Frontend Acl Action> - created
At String - description String
- matches
List<Get
Lb Frontend Acl Match> - name String
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- updated
At String
- actions
Get
Lb Frontend Acl Action[] - created
At string - description string
- matches
Get
Lb Frontend Acl Match[] - name string
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- updated
At string
- actions
Sequence[Get
Lb Frontend Acl Action] - created_
at str - description str
- matches
Sequence[Get
Lb Frontend Acl Match] - name str
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- updated_
at str
- actions List<Property Map>
- created
At String - description String
- matches List<Property Map>
- name String
The name of the frontend.
- When using the
name
you should specify thelb-id
- When using the
- updated
At String
GetLbFrontendAclAction
- redirects List<Property Map>
- type String
GetLbFrontendAclActionRedirect
GetLbFrontendAclMatch
- Http
Filter string - Http
Filter stringOption - Http
Filter List<string>Values - Invert bool
- Ip
Subnets List<string>
- Http
Filter string - Http
Filter stringOption - Http
Filter []stringValues - Invert bool
- Ip
Subnets []string
- http
Filter String - http
Filter StringOption - http
Filter List<String>Values - invert Boolean
- ip
Subnets List<String>
- http
Filter string - http
Filter stringOption - http
Filter string[]Values - invert boolean
- ip
Subnets string[]
- http_
filter str - http_
filter_ stroption - http_
filter_ Sequence[str]values - invert bool
- ip_
subnets Sequence[str]
- http
Filter String - http
Filter StringOption - http
Filter List<String>Values - invert Boolean
- ip
Subnets List<String>
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.