Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse
scaleway.loadbalancers.getBackends
Explore with Pulumi AI
Gets information about multiple Load Balancer Backends.
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 backends that share the same LB ID
const byLBID = scaleway.loadbalancers.getBackends({
lbId: lb01.id,
});
// Find backends by LB ID and name
const byLBIDAndName = scaleway.loadbalancers.getBackends({
lbId: lb01.id,
name: "tf-backend-datasource",
});
import pulumi
import pulumi_scaleway as scaleway
# Find backends that share the same LB ID
by_lbid = scaleway.loadbalancers.get_backends(lb_id=lb01["id"])
# Find backends by LB ID and name
by_lbid_and_name = scaleway.loadbalancers.get_backends(lb_id=lb01["id"],
name="tf-backend-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 backends that share the same LB ID
_, err := loadbalancers.GetBackends(ctx, &loadbalancers.GetBackendsArgs{
LbId: lb01.Id,
}, nil)
if err != nil {
return err
}
// Find backends by LB ID and name
_, err = loadbalancers.GetBackends(ctx, &loadbalancers.GetBackendsArgs{
LbId: lb01.Id,
Name: pulumi.StringRef("tf-backend-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 backends that share the same LB ID
var byLBID = Scaleway.Loadbalancers.GetBackends.Invoke(new()
{
LbId = lb01.Id,
});
// Find backends by LB ID and name
var byLBIDAndName = Scaleway.Loadbalancers.GetBackends.Invoke(new()
{
LbId = lb01.Id,
Name = "tf-backend-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.GetBackendsArgs;
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 backends that share the same LB ID
final var byLBID = LoadbalancersFunctions.getBackends(GetBackendsArgs.builder()
.lbId(lb01.id())
.build());
// Find backends by LB ID and name
final var byLBIDAndName = LoadbalancersFunctions.getBackends(GetBackendsArgs.builder()
.lbId(lb01.id())
.name("tf-backend-datasource")
.build());
}
}
variables:
# Find backends that share the same LB ID
byLBID:
fn::invoke:
function: scaleway:loadbalancers:getBackends
arguments:
lbId: ${lb01.id}
# Find backends by LB ID and name
byLBIDAndName:
fn::invoke:
function: scaleway:loadbalancers:getBackends
arguments:
lbId: ${lb01.id}
name: tf-backend-datasource
Using getBackends
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 getBackends(args: GetBackendsArgs, opts?: InvokeOptions): Promise<GetBackendsResult>
function getBackendsOutput(args: GetBackendsOutputArgs, opts?: InvokeOptions): Output<GetBackendsResult>
def get_backends(lb_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackendsResult
def get_backends_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[GetBackendsResult]
func GetBackends(ctx *Context, args *GetBackendsArgs, opts ...InvokeOption) (*GetBackendsResult, error)
func GetBackendsOutput(ctx *Context, args *GetBackendsOutputArgs, opts ...InvokeOption) GetBackendsResultOutput
> Note: This function is named GetBackends
in the Go SDK.
public static class GetBackends
{
public static Task<GetBackendsResult> InvokeAsync(GetBackendsArgs args, InvokeOptions? opts = null)
public static Output<GetBackendsResult> Invoke(GetBackendsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackendsResult> getBackends(GetBackendsArgs args, InvokeOptions options)
public static Output<GetBackendsResult> getBackends(GetBackendsArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:loadbalancers/getBackends:getBackends
arguments:
# arguments dictionary
The following arguments are supported:
- Lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- Name string
- The backend name to filter for. Backends 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 backends exist.
- Lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- Name string
- The backend name to filter for. Backends 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 backends exist.
- lb
Id This property is required. String - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name String
- The backend name to filter for. Backends 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 backends exist.
- lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name string
- The backend name to filter for. Backends 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 backends exist.
- lb_
id This property is required. str - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name str
- The backend name to filter for. Backends 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 backends exist.
- lb
Id This property is required. String - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name String
- The backend name to filter for. Backends 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 backends exist.
getBackends Result
The following output properties are available:
- Backends
List<Pulumiverse.
Scaleway. Loadbalancers. Outputs. Get Backends Backend> - List of retrieved backends
- Id string
- The provider-assigned unique ID for this managed resource.
- Lb
Id string - Organization
Id string - Project
Id string - Zone string
- Name string
- Backends
[]Get
Backends Backend - List of retrieved backends
- Id string
- The provider-assigned unique ID for this managed resource.
- Lb
Id string - Organization
Id string - Project
Id string - Zone string
- Name string
- backends
List<Get
Backends Backend> - List of retrieved backends
- id String
- The provider-assigned unique ID for this managed resource.
- lb
Id String - organization
Id String - project
Id String - zone String
- name String
- backends
Get
Backends Backend[] - List of retrieved backends
- id string
- The provider-assigned unique ID for this managed resource.
- lb
Id string - organization
Id string - project
Id string - zone string
- name string
- backends
Sequence[Get
Backends Backend] - List of retrieved backends
- id str
- The provider-assigned unique ID for this managed resource.
- lb_
id str - organization_
id str - project_
id str - zone str
- name str
- backends List<Property Map>
- List of retrieved backends
- 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
GetBackendsBackend
- Created
At This property is required. string - The date on which the backend was created (RFC 3339 format).
- Failover
Host This property is required. string - Scaleway S3 bucket website to be served if all backend servers are down.
- Forward
Port This property is required. int - User sessions will be forwarded to this backend server port.
- Forward
Port Algorithm This property is required. string - Load balancing algorithm.
- Forward
Protocol This property is required. string - Backend protocol.
- Health
Check Delay This property is required. string - Interval between two health check requests.
- Health
Check Http This property is required. List<Pulumiverse.Scaleway. Loadbalancers. Inputs. Get Backends Backend Health Check Http> - This block enables HTTP health checks.
- Health
Check Https This property is required. List<Pulumiverse.Scaleway. Loadbalancers. Inputs. Get Backends Backend Health Check Http> - This block enables HTTPS health checks.
- Health
Check Max Retries This property is required. int - Number of allowed failed health check requests before the backend server is marked as down.
- Health
Check Port This property is required. int - Port the health check requests will be sent to.
- Health
Check Tcps This property is required. List<Pulumiverse.Scaleway. Loadbalancers. Inputs. Get Backends Backend Health Check Tcp> - This block enables TCP health checks.
- Health
Check Timeout This property is required. string - Timeout before a health check request is considered failed.
- Id
This property is required. string - The associated backend ID.
- Ignore
Ssl Server Verify This property is required. bool - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- Lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- Name
This property is required. string - The backend name to filter for. Backends with a matching name are listed.
- On
Marked Down Action This property is required. string - Modify what occurs when a backend server is marked down.
- Proxy
Protocol This property is required. string - The type of PROXY protocol.
- Server
Ips This property is required. List<string> - List of backend server IP addresses.
- Ssl
Bridging This property is required. bool - Enables SSL between Load Balancer and backend servers.
- Sticky
Sessions This property is required. string - Enables cookie-based session persistence.
This property is required. string- Cookie name for sticky sessions.
- Timeout
Connect This property is required. string - Maximum initial server connection establishment time.
- Timeout
Server This property is required. string - Maximum server connection inactivity time.
- Timeout
Tunnel This property is required. string - Maximum tunnel inactivity time.
- Update
At This property is required. string - The date on which the backend was last updated (RFC 3339 format).
- Created
At This property is required. string - The date on which the backend was created (RFC 3339 format).
- Failover
Host This property is required. string - Scaleway S3 bucket website to be served if all backend servers are down.
- Forward
Port This property is required. int - User sessions will be forwarded to this backend server port.
- Forward
Port Algorithm This property is required. string - Load balancing algorithm.
- Forward
Protocol This property is required. string - Backend protocol.
- Health
Check Delay This property is required. string - Interval between two health check requests.
- Health
Check Http This property is required. []GetBackends Backend Health Check Http - This block enables HTTP health checks.
- Health
Check Https This property is required. []GetBackends Backend Health Check Http - This block enables HTTPS health checks.
- Health
Check Max Retries This property is required. int - Number of allowed failed health check requests before the backend server is marked as down.
- Health
Check Port This property is required. int - Port the health check requests will be sent to.
- Health
Check Tcps This property is required. []GetBackends Backend Health Check Tcp - This block enables TCP health checks.
- Health
Check Timeout This property is required. string - Timeout before a health check request is considered failed.
- Id
This property is required. string - The associated backend ID.
- Ignore
Ssl Server Verify This property is required. bool - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- Lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- Name
This property is required. string - The backend name to filter for. Backends with a matching name are listed.
- On
Marked Down Action This property is required. string - Modify what occurs when a backend server is marked down.
- Proxy
Protocol This property is required. string - The type of PROXY protocol.
- Server
Ips This property is required. []string - List of backend server IP addresses.
- Ssl
Bridging This property is required. bool - Enables SSL between Load Balancer and backend servers.
- Sticky
Sessions This property is required. string - Enables cookie-based session persistence.
This property is required. string- Cookie name for sticky sessions.
- Timeout
Connect This property is required. string - Maximum initial server connection establishment time.
- Timeout
Server This property is required. string - Maximum server connection inactivity time.
- Timeout
Tunnel This property is required. string - Maximum tunnel inactivity time.
- Update
At This property is required. string - The date on which the backend was last updated (RFC 3339 format).
- created
At This property is required. String - The date on which the backend was created (RFC 3339 format).
- failover
Host This property is required. String - Scaleway S3 bucket website to be served if all backend servers are down.
- forward
Port This property is required. Integer - User sessions will be forwarded to this backend server port.
- forward
Port Algorithm This property is required. String - Load balancing algorithm.
- forward
Protocol This property is required. String - Backend protocol.
- health
Check Delay This property is required. String - Interval between two health check requests.
- health
Check Http This property is required. List<GetBackends Backend Health Check Http> - This block enables HTTP health checks.
- health
Check Https This property is required. List<GetBackends Backend Health Check Http> - This block enables HTTPS health checks.
- health
Check Max Retries This property is required. Integer - Number of allowed failed health check requests before the backend server is marked as down.
- health
Check Port This property is required. Integer - Port the health check requests will be sent to.
- health
Check Tcps This property is required. List<GetBackends Backend Health Check Tcp> - This block enables TCP health checks.
- health
Check Timeout This property is required. String - Timeout before a health check request is considered failed.
- id
This property is required. String - The associated backend ID.
- ignore
Ssl Server Verify This property is required. Boolean - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- lb
Id This property is required. String - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name
This property is required. String - The backend name to filter for. Backends with a matching name are listed.
- on
Marked Down Action This property is required. String - Modify what occurs when a backend server is marked down.
- proxy
Protocol This property is required. String - The type of PROXY protocol.
- server
Ips This property is required. List<String> - List of backend server IP addresses.
- ssl
Bridging This property is required. Boolean - Enables SSL between Load Balancer and backend servers.
- sticky
Sessions This property is required. String - Enables cookie-based session persistence.
This property is required. String- Cookie name for sticky sessions.
- timeout
Connect This property is required. String - Maximum initial server connection establishment time.
- timeout
Server This property is required. String - Maximum server connection inactivity time.
- timeout
Tunnel This property is required. String - Maximum tunnel inactivity time.
- update
At This property is required. String - The date on which the backend was last updated (RFC 3339 format).
- created
At This property is required. string - The date on which the backend was created (RFC 3339 format).
- failover
Host This property is required. string - Scaleway S3 bucket website to be served if all backend servers are down.
- forward
Port This property is required. number - User sessions will be forwarded to this backend server port.
- forward
Port Algorithm This property is required. string - Load balancing algorithm.
- forward
Protocol This property is required. string - Backend protocol.
- health
Check Delay This property is required. string - Interval between two health check requests.
- health
Check Http This property is required. GetBackends Backend Health Check Http[] - This block enables HTTP health checks.
- health
Check Https This property is required. GetBackends Backend Health Check Http[] - This block enables HTTPS health checks.
- health
Check Max Retries This property is required. number - Number of allowed failed health check requests before the backend server is marked as down.
- health
Check Port This property is required. number - Port the health check requests will be sent to.
- health
Check Tcps This property is required. GetBackends Backend Health Check Tcp[] - This block enables TCP health checks.
- health
Check Timeout This property is required. string - Timeout before a health check request is considered failed.
- id
This property is required. string - The associated backend ID.
- ignore
Ssl Server Verify This property is required. boolean - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- lb
Id This property is required. string - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name
This property is required. string - The backend name to filter for. Backends with a matching name are listed.
- on
Marked Down Action This property is required. string - Modify what occurs when a backend server is marked down.
- proxy
Protocol This property is required. string - The type of PROXY protocol.
- server
Ips This property is required. string[] - List of backend server IP addresses.
- ssl
Bridging This property is required. boolean - Enables SSL between Load Balancer and backend servers.
- sticky
Sessions This property is required. string - Enables cookie-based session persistence.
This property is required. string- Cookie name for sticky sessions.
- timeout
Connect This property is required. string - Maximum initial server connection establishment time.
- timeout
Server This property is required. string - Maximum server connection inactivity time.
- timeout
Tunnel This property is required. string - Maximum tunnel inactivity time.
- update
At This property is required. string - The date on which the backend was last updated (RFC 3339 format).
- created_
at This property is required. str - The date on which the backend was created (RFC 3339 format).
- failover_
host This property is required. str - Scaleway S3 bucket website to be served if all backend servers are down.
- forward_
port This property is required. int - User sessions will be forwarded to this backend server port.
- forward_
port_ algorithm This property is required. str - Load balancing algorithm.
- forward_
protocol This property is required. str - Backend protocol.
- health_
check_ delay This property is required. str - Interval between two health check requests.
- health_
check_ http This property is required. Sequence[GetBackends Backend Health Check Http] - This block enables HTTP health checks.
- health_
check_ https This property is required. Sequence[GetBackends Backend Health Check Http] - This block enables HTTPS health checks.
- health_
check_ max_ retries This property is required. int - Number of allowed failed health check requests before the backend server is marked as down.
- health_
check_ port This property is required. int - Port the health check requests will be sent to.
- health_
check_ tcps This property is required. Sequence[GetBackends Backend Health Check Tcp] - This block enables TCP health checks.
- health_
check_ timeout This property is required. str - Timeout before a health check request is considered failed.
- id
This property is required. str - The associated backend ID.
- ignore_
ssl_ server_ verify This property is required. bool - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- lb_
id This property is required. str - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name
This property is required. str - The backend name to filter for. Backends with a matching name are listed.
- on_
marked_ down_ action This property is required. str - Modify what occurs when a backend server is marked down.
- proxy_
protocol This property is required. str - The type of PROXY protocol.
- server_
ips This property is required. Sequence[str] - List of backend server IP addresses.
- ssl_
bridging This property is required. bool - Enables SSL between Load Balancer and backend servers.
- sticky_
sessions This property is required. str - Enables cookie-based session persistence.
This property is required. str- Cookie name for sticky sessions.
- timeout_
connect This property is required. str - Maximum initial server connection establishment time.
- timeout_
server This property is required. str - Maximum server connection inactivity time.
- timeout_
tunnel This property is required. str - Maximum tunnel inactivity time.
- update_
at This property is required. str - The date on which the backend was last updated (RFC 3339 format).
- created
At This property is required. String - The date on which the backend was created (RFC 3339 format).
- failover
Host This property is required. String - Scaleway S3 bucket website to be served if all backend servers are down.
- forward
Port This property is required. Number - User sessions will be forwarded to this backend server port.
- forward
Port Algorithm This property is required. String - Load balancing algorithm.
- forward
Protocol This property is required. String - Backend protocol.
- health
Check Delay This property is required. String - Interval between two health check requests.
- health
Check Http This property is required. List<Property Map> - This block enables HTTP health checks.
- health
Check Https This property is required. List<Property Map> - This block enables HTTPS health checks.
- health
Check Max Retries This property is required. Number - Number of allowed failed health check requests before the backend server is marked as down.
- health
Check Port This property is required. Number - Port the health check requests will be sent to.
- health
Check Tcps This property is required. List<Property Map> - This block enables TCP health checks.
- health
Check Timeout This property is required. String - Timeout before a health check request is considered failed.
- id
This property is required. String - The associated backend ID.
- ignore
Ssl Server Verify This property is required. Boolean - Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
- lb
Id This property is required. String - The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
- name
This property is required. String - The backend name to filter for. Backends with a matching name are listed.
- on
Marked Down Action This property is required. String - Modify what occurs when a backend server is marked down.
- proxy
Protocol This property is required. String - The type of PROXY protocol.
- server
Ips This property is required. List<String> - List of backend server IP addresses.
- ssl
Bridging This property is required. Boolean - Enables SSL between Load Balancer and backend servers.
- sticky
Sessions This property is required. String - Enables cookie-based session persistence.
This property is required. String- Cookie name for sticky sessions.
- timeout
Connect This property is required. String - Maximum initial server connection establishment time.
- timeout
Server This property is required. String - Maximum server connection inactivity time.
- timeout
Tunnel This property is required. String - Maximum tunnel inactivity time.
- update
At This property is required. String - The date on which the backend was last updated (RFC 3339 format).
GetBackendsBackendHealthCheckHttp
- Code
This property is required. int - The expected HTTP status code.
- Host
Header This property is required. string - The HTTP host header to use for health check requests.
- Method
This property is required. string - The HTTP method to use for health check requests.
- Sni
This property is required. string - The SNI to use for HC requests over SSL.
- Uri
This property is required. string - The path of health check requests.
- Code
This property is required. int - The expected HTTP status code.
- Host
Header This property is required. string - The HTTP host header to use for health check requests.
- Method
This property is required. string - The HTTP method to use for health check requests.
- Sni
This property is required. string - The SNI to use for HC requests over SSL.
- Uri
This property is required. string - The path of health check requests.
- code
This property is required. Integer - The expected HTTP status code.
- host
Header This property is required. String - The HTTP host header to use for health check requests.
- method
This property is required. String - The HTTP method to use for health check requests.
- sni
This property is required. String - The SNI to use for HC requests over SSL.
- uri
This property is required. String - The path of health check requests.
- code
This property is required. number - The expected HTTP status code.
- host
Header This property is required. string - The HTTP host header to use for health check requests.
- method
This property is required. string - The HTTP method to use for health check requests.
- sni
This property is required. string - The SNI to use for HC requests over SSL.
- uri
This property is required. string - The path of health check requests.
- code
This property is required. int - The expected HTTP status code.
- host_
header This property is required. str - The HTTP host header to use for health check requests.
- method
This property is required. str - The HTTP method to use for health check requests.
- sni
This property is required. str - The SNI to use for HC requests over SSL.
- uri
This property is required. str - The path of health check requests.
- code
This property is required. Number - The expected HTTP status code.
- host
Header This property is required. String - The HTTP host header to use for health check requests.
- method
This property is required. String - The HTTP method to use for health check requests.
- sni
This property is required. String - The SNI to use for HC requests over SSL.
- uri
This property is required. String - The path of health check requests.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.