1. Packages
  2. Scaleway
  3. API Docs
  4. loadbalancers
  5. getBackends
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.loadbalancers.getBackends

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetBackends(ctx *Context, args *GetBackendsArgs, opts ...InvokeOption) (*GetBackendsResult, error)
func GetBackendsOutput(ctx *Context, args *GetBackendsOutputArgs, opts ...InvokeOption) GetBackendsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetBackendsResult> getBackends(GetBackendsArgs args, InvokeOptions options)
public static Output<GetBackendsResult> getBackends(GetBackendsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:loadbalancers/getBackends:getBackends
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LbId 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.
ProjectId Changes to this property will trigger replacement. string
Zone Changes to this property will trigger replacement. string
zone) The zone in which backends exist.
LbId 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.
ProjectId Changes to this property will trigger replacement. string
Zone Changes to this property will trigger replacement. string
zone) The zone in which backends exist.
lbId 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.
projectId Changes to this property will trigger replacement. String
zone Changes to this property will trigger replacement. String
zone) The zone in which backends exist.
lbId 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.
projectId Changes to this property will trigger replacement. string
zone Changes to this property will trigger replacement. string
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. str
zone Changes to this property will trigger replacement. str
zone) The zone in which backends exist.
lbId 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.
projectId Changes to this property will trigger replacement. String
zone Changes to this property will trigger replacement. String
zone) The zone in which backends exist.

getBackends Result

The following output properties are available:

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

Supporting Types

GetBackendsBackend

CreatedAt This property is required. string
The date on which the backend was created (RFC 3339 format).
FailoverHost This property is required. string
Scaleway S3 bucket website to be served if all backend servers are down.
ForwardPort This property is required. int
User sessions will be forwarded to this backend server port.
ForwardPortAlgorithm This property is required. string
Load balancing algorithm.
ForwardProtocol This property is required. string
Backend protocol.
HealthCheckDelay This property is required. string
Interval between two health check requests.
HealthCheckHttp This property is required. List<Pulumiverse.Scaleway.Loadbalancers.Inputs.GetBackendsBackendHealthCheckHttp>
This block enables HTTP health checks.
HealthCheckHttps This property is required. List<Pulumiverse.Scaleway.Loadbalancers.Inputs.GetBackendsBackendHealthCheckHttp>
This block enables HTTPS health checks.
HealthCheckMaxRetries This property is required. int
Number of allowed failed health check requests before the backend server is marked as down.
HealthCheckPort This property is required. int
Port the health check requests will be sent to.
HealthCheckTcps This property is required. List<Pulumiverse.Scaleway.Loadbalancers.Inputs.GetBackendsBackendHealthCheckTcp>
This block enables TCP health checks.
HealthCheckTimeout This property is required. string
Timeout before a health check request is considered failed.
Id This property is required. string
The associated backend ID.
IgnoreSslServerVerify This property is required. bool
Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
LbId 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.
OnMarkedDownAction This property is required. string
Modify what occurs when a backend server is marked down.
ProxyProtocol This property is required. string
The type of PROXY protocol.
ServerIps This property is required. List<string>
List of backend server IP addresses.
SslBridging This property is required. bool
Enables SSL between Load Balancer and backend servers.
StickySessions This property is required. string
Enables cookie-based session persistence.
StickySessionsCookieName This property is required. string
Cookie name for sticky sessions.
TimeoutConnect This property is required. string
Maximum initial server connection establishment time.
TimeoutServer This property is required. string
Maximum server connection inactivity time.
TimeoutTunnel This property is required. string
Maximum tunnel inactivity time.
UpdateAt This property is required. string
The date on which the backend was last updated (RFC 3339 format).
CreatedAt This property is required. string
The date on which the backend was created (RFC 3339 format).
FailoverHost This property is required. string
Scaleway S3 bucket website to be served if all backend servers are down.
ForwardPort This property is required. int
User sessions will be forwarded to this backend server port.
ForwardPortAlgorithm This property is required. string
Load balancing algorithm.
ForwardProtocol This property is required. string
Backend protocol.
HealthCheckDelay This property is required. string
Interval between two health check requests.
HealthCheckHttp This property is required. []GetBackendsBackendHealthCheckHttp
This block enables HTTP health checks.
HealthCheckHttps This property is required. []GetBackendsBackendHealthCheckHttp
This block enables HTTPS health checks.
HealthCheckMaxRetries This property is required. int
Number of allowed failed health check requests before the backend server is marked as down.
HealthCheckPort This property is required. int
Port the health check requests will be sent to.
HealthCheckTcps This property is required. []GetBackendsBackendHealthCheckTcp
This block enables TCP health checks.
HealthCheckTimeout This property is required. string
Timeout before a health check request is considered failed.
Id This property is required. string
The associated backend ID.
IgnoreSslServerVerify This property is required. bool
Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
LbId 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.
OnMarkedDownAction This property is required. string
Modify what occurs when a backend server is marked down.
ProxyProtocol This property is required. string
The type of PROXY protocol.
ServerIps This property is required. []string
List of backend server IP addresses.
SslBridging This property is required. bool
Enables SSL between Load Balancer and backend servers.
StickySessions This property is required. string
Enables cookie-based session persistence.
StickySessionsCookieName This property is required. string
Cookie name for sticky sessions.
TimeoutConnect This property is required. string
Maximum initial server connection establishment time.
TimeoutServer This property is required. string
Maximum server connection inactivity time.
TimeoutTunnel This property is required. string
Maximum tunnel inactivity time.
UpdateAt This property is required. string
The date on which the backend was last updated (RFC 3339 format).
createdAt This property is required. String
The date on which the backend was created (RFC 3339 format).
failoverHost This property is required. String
Scaleway S3 bucket website to be served if all backend servers are down.
forwardPort This property is required. Integer
User sessions will be forwarded to this backend server port.
forwardPortAlgorithm This property is required. String
Load balancing algorithm.
forwardProtocol This property is required. String
Backend protocol.
healthCheckDelay This property is required. String
Interval between two health check requests.
healthCheckHttp This property is required. List<GetBackendsBackendHealthCheckHttp>
This block enables HTTP health checks.
healthCheckHttps This property is required. List<GetBackendsBackendHealthCheckHttp>
This block enables HTTPS health checks.
healthCheckMaxRetries This property is required. Integer
Number of allowed failed health check requests before the backend server is marked as down.
healthCheckPort This property is required. Integer
Port the health check requests will be sent to.
healthCheckTcps This property is required. List<GetBackendsBackendHealthCheckTcp>
This block enables TCP health checks.
healthCheckTimeout This property is required. String
Timeout before a health check request is considered failed.
id This property is required. String
The associated backend ID.
ignoreSslServerVerify This property is required. Boolean
Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
lbId 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.
onMarkedDownAction This property is required. String
Modify what occurs when a backend server is marked down.
proxyProtocol This property is required. String
The type of PROXY protocol.
serverIps This property is required. List<String>
List of backend server IP addresses.
sslBridging This property is required. Boolean
Enables SSL between Load Balancer and backend servers.
stickySessions This property is required. String
Enables cookie-based session persistence.
stickySessionsCookieName This property is required. String
Cookie name for sticky sessions.
timeoutConnect This property is required. String
Maximum initial server connection establishment time.
timeoutServer This property is required. String
Maximum server connection inactivity time.
timeoutTunnel This property is required. String
Maximum tunnel inactivity time.
updateAt This property is required. String
The date on which the backend was last updated (RFC 3339 format).
createdAt This property is required. string
The date on which the backend was created (RFC 3339 format).
failoverHost This property is required. string
Scaleway S3 bucket website to be served if all backend servers are down.
forwardPort This property is required. number
User sessions will be forwarded to this backend server port.
forwardPortAlgorithm This property is required. string
Load balancing algorithm.
forwardProtocol This property is required. string
Backend protocol.
healthCheckDelay This property is required. string
Interval between two health check requests.
healthCheckHttp This property is required. GetBackendsBackendHealthCheckHttp[]
This block enables HTTP health checks.
healthCheckHttps This property is required. GetBackendsBackendHealthCheckHttp[]
This block enables HTTPS health checks.
healthCheckMaxRetries This property is required. number
Number of allowed failed health check requests before the backend server is marked as down.
healthCheckPort This property is required. number
Port the health check requests will be sent to.
healthCheckTcps This property is required. GetBackendsBackendHealthCheckTcp[]
This block enables TCP health checks.
healthCheckTimeout This property is required. string
Timeout before a health check request is considered failed.
id This property is required. string
The associated backend ID.
ignoreSslServerVerify This property is required. boolean
Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
lbId 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.
onMarkedDownAction This property is required. string
Modify what occurs when a backend server is marked down.
proxyProtocol This property is required. string
The type of PROXY protocol.
serverIps This property is required. string[]
List of backend server IP addresses.
sslBridging This property is required. boolean
Enables SSL between Load Balancer and backend servers.
stickySessions This property is required. string
Enables cookie-based session persistence.
stickySessionsCookieName This property is required. string
Cookie name for sticky sessions.
timeoutConnect This property is required. string
Maximum initial server connection establishment time.
timeoutServer This property is required. string
Maximum server connection inactivity time.
timeoutTunnel This property is required. string
Maximum tunnel inactivity time.
updateAt 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[GetBackendsBackendHealthCheckHttp]
This block enables HTTP health checks.
health_check_https This property is required. Sequence[GetBackendsBackendHealthCheckHttp]
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[GetBackendsBackendHealthCheckTcp]
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.
sticky_sessions_cookie_name 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).
createdAt This property is required. String
The date on which the backend was created (RFC 3339 format).
failoverHost This property is required. String
Scaleway S3 bucket website to be served if all backend servers are down.
forwardPort This property is required. Number
User sessions will be forwarded to this backend server port.
forwardPortAlgorithm This property is required. String
Load balancing algorithm.
forwardProtocol This property is required. String
Backend protocol.
healthCheckDelay This property is required. String
Interval between two health check requests.
healthCheckHttp This property is required. List<Property Map>
This block enables HTTP health checks.
healthCheckHttps This property is required. List<Property Map>
This block enables HTTPS health checks.
healthCheckMaxRetries This property is required. Number
Number of allowed failed health check requests before the backend server is marked as down.
healthCheckPort This property is required. Number
Port the health check requests will be sent to.
healthCheckTcps This property is required. List<Property Map>
This block enables TCP health checks.
healthCheckTimeout This property is required. String
Timeout before a health check request is considered failed.
id This property is required. String
The associated backend ID.
ignoreSslServerVerify This property is required. Boolean
Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection.
lbId 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.
onMarkedDownAction This property is required. String
Modify what occurs when a backend server is marked down.
proxyProtocol This property is required. String
The type of PROXY protocol.
serverIps This property is required. List<String>
List of backend server IP addresses.
sslBridging This property is required. Boolean
Enables SSL between Load Balancer and backend servers.
stickySessions This property is required. String
Enables cookie-based session persistence.
stickySessionsCookieName This property is required. String
Cookie name for sticky sessions.
timeoutConnect This property is required. String
Maximum initial server connection establishment time.
timeoutServer This property is required. String
Maximum server connection inactivity time.
timeoutTunnel This property is required. String
Maximum tunnel inactivity time.
updateAt 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.
HostHeader 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.
HostHeader 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.
hostHeader 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.
hostHeader 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.
hostHeader 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.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse