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

scaleway.getLbAcls

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse
Deprecated: scaleway.index/getlbacls.getLbAcls has been deprecated in favor of scaleway.loadbalancers/getacls.getAcls

Gets information about multiple Load Balancer ACLs.

For more information, see the main documentation or API reference.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Find acls that share the same frontend ID
const byFrontID = scaleway.loadbalancers.getAcls({
    frontendId: frt01.id,
});
// Find acls by frontend ID and name
const byFrontIDAndName = scaleway.loadbalancers.getAcls({
    frontendId: frt01.id,
    name: "tf-acls-datasource",
});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Find acls that share the same frontend ID
by_front_id = scaleway.loadbalancers.get_acls(frontend_id=frt01["id"])
# Find acls by frontend ID and name
by_front_id_and_name = scaleway.loadbalancers.get_acls(frontend_id=frt01["id"],
    name="tf-acls-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 acls that share the same frontend ID
		_, err := loadbalancers.GetAcls(ctx, &loadbalancers.GetAclsArgs{
			FrontendId: frt01.Id,
		}, nil)
		if err != nil {
			return err
		}
		// Find acls by frontend ID and name
		_, err = loadbalancers.GetAcls(ctx, &loadbalancers.GetAclsArgs{
			FrontendId: frt01.Id,
			Name:       pulumi.StringRef("tf-acls-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 acls that share the same frontend ID
    var byFrontID = Scaleway.Loadbalancers.GetAcls.Invoke(new()
    {
        FrontendId = frt01.Id,
    });

    // Find acls by frontend ID and name
    var byFrontIDAndName = Scaleway.Loadbalancers.GetAcls.Invoke(new()
    {
        FrontendId = frt01.Id,
        Name = "tf-acls-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.GetAclsArgs;
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 acls that share the same frontend ID
        final var byFrontID = LoadbalancersFunctions.getAcls(GetAclsArgs.builder()
            .frontendId(frt01.id())
            .build());

        // Find acls by frontend ID and name
        final var byFrontIDAndName = LoadbalancersFunctions.getAcls(GetAclsArgs.builder()
            .frontendId(frt01.id())
            .name("tf-acls-datasource")
            .build());

    }
}
Copy
variables:
  # Find acls that share the same frontend ID
  byFrontID:
    fn::invoke:
      function: scaleway:loadbalancers:getAcls
      arguments:
        frontendId: ${frt01.id}
  # Find acls by frontend ID and name
  byFrontIDAndName:
    fn::invoke:
      function: scaleway:loadbalancers:getAcls
      arguments:
        frontendId: ${frt01.id}
        name: tf-acls-datasource
Copy

Using getLbAcls

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 getLbAcls(args: GetLbAclsArgs, opts?: InvokeOptions): Promise<GetLbAclsResult>
function getLbAclsOutput(args: GetLbAclsOutputArgs, opts?: InvokeOptions): Output<GetLbAclsResult>
Copy
def get_lb_acls(frontend_id: Optional[str] = None,
                name: Optional[str] = None,
                project_id: Optional[str] = None,
                zone: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetLbAclsResult
def get_lb_acls_output(frontend_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[GetLbAclsResult]
Copy
func GetLbAcls(ctx *Context, args *GetLbAclsArgs, opts ...InvokeOption) (*GetLbAclsResult, error)
func GetLbAclsOutput(ctx *Context, args *GetLbAclsOutputArgs, opts ...InvokeOption) GetLbAclsResultOutput
Copy

> Note: This function is named GetLbAcls in the Go SDK.

public static class GetLbAcls 
{
    public static Task<GetLbAclsResult> InvokeAsync(GetLbAclsArgs args, InvokeOptions? opts = null)
    public static Output<GetLbAclsResult> Invoke(GetLbAclsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLbAclsResult> getLbAcls(GetLbAclsArgs args, InvokeOptions options)
public static Output<GetLbAclsResult> getLbAcls(GetLbAclsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:index/getLbAcls:getLbAcls
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FrontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

Name string
The ACL name to filter for. ACLs 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 the ACLs exist.
FrontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

Name string
The ACL name to filter for. ACLs 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 the ACLs exist.
frontendId This property is required. String

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

name String
The ACL name to filter for. ACLs 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 the ACLs exist.
frontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

name string
The ACL name to filter for. ACLs 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 the ACLs exist.
frontend_id This property is required. str

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

name str
The ACL name to filter for. ACLs 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 the ACLs exist.
frontendId This property is required. String

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

name String
The ACL name to filter for. ACLs 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 the ACLs exist.

getLbAcls Result

The following output properties are available:

Acls List<Pulumiverse.Scaleway.Outputs.GetLbAclsAcl>
List of retrieved ACLs
FrontendId string
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
Zone string
Name string
Acls []GetLbAclsAcl
List of retrieved ACLs
FrontendId string
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
Zone string
Name string
acls List<GetLbAclsAcl>
List of retrieved ACLs
frontendId String
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
zone String
name String
acls GetLbAclsAcl[]
List of retrieved ACLs
frontendId string
id string
The provider-assigned unique ID for this managed resource.
organizationId string
projectId string
zone string
name string
acls Sequence[GetLbAclsAcl]
List of retrieved ACLs
frontend_id str
id str
The provider-assigned unique ID for this managed resource.
organization_id str
project_id str
zone str
name str
acls List<Property Map>
List of retrieved ACLs
frontendId String
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
zone String
name String

Supporting Types

GetLbAclsAcl

Actions This property is required. List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclAction>
The action to be undertaken when an ACL filter matches.
CreatedAt This property is required. string
The date on which the ACL was created (RFC 3339 format).
Description This property is required. string
The description of the ACL resource.
FrontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

Id This property is required. string

The associated ACL ID.

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

Index This property is required. int
The priority of this ACL in the ordered list.
Matches This property is required. List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclMatch>
The ACL match rule.
Name This property is required. string
The ACL name to filter for. ACLs with a matching name are listed.
UpdateAt This property is required. string
The date on which the ACL was last updated (RFC 3339 format).
Actions This property is required. []GetLbAclsAclAction
The action to be undertaken when an ACL filter matches.
CreatedAt This property is required. string
The date on which the ACL was created (RFC 3339 format).
Description This property is required. string
The description of the ACL resource.
FrontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

Id This property is required. string

The associated ACL ID.

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

Index This property is required. int
The priority of this ACL in the ordered list.
Matches This property is required. []GetLbAclsAclMatch
The ACL match rule.
Name This property is required. string
The ACL name to filter for. ACLs with a matching name are listed.
UpdateAt This property is required. string
The date on which the ACL was last updated (RFC 3339 format).
actions This property is required. List<GetLbAclsAclAction>
The action to be undertaken when an ACL filter matches.
createdAt This property is required. String
The date on which the ACL was created (RFC 3339 format).
description This property is required. String
The description of the ACL resource.
frontendId This property is required. String

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

id This property is required. String

The associated ACL ID.

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

index This property is required. Integer
The priority of this ACL in the ordered list.
matches This property is required. List<GetLbAclsAclMatch>
The ACL match rule.
name This property is required. String
The ACL name to filter for. ACLs with a matching name are listed.
updateAt This property is required. String
The date on which the ACL was last updated (RFC 3339 format).
actions This property is required. GetLbAclsAclAction[]
The action to be undertaken when an ACL filter matches.
createdAt This property is required. string
The date on which the ACL was created (RFC 3339 format).
description This property is required. string
The description of the ACL resource.
frontendId This property is required. string

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

id This property is required. string

The associated ACL ID.

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

index This property is required. number
The priority of this ACL in the ordered list.
matches This property is required. GetLbAclsAclMatch[]
The ACL match rule.
name This property is required. string
The ACL name to filter for. ACLs with a matching name are listed.
updateAt This property is required. string
The date on which the ACL was last updated (RFC 3339 format).
actions This property is required. Sequence[GetLbAclsAclAction]
The action to be undertaken when an ACL filter matches.
created_at This property is required. str
The date on which the ACL was created (RFC 3339 format).
description This property is required. str
The description of the ACL resource.
frontend_id This property is required. str

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

id This property is required. str

The associated ACL ID.

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

index This property is required. int
The priority of this ACL in the ordered list.
matches This property is required. Sequence[GetLbAclsAclMatch]
The ACL match rule.
name This property is required. str
The ACL name to filter for. ACLs with a matching name are listed.
update_at This property is required. str
The date on which the ACL was last updated (RFC 3339 format).
actions This property is required. List<Property Map>
The action to be undertaken when an ACL filter matches.
createdAt This property is required. String
The date on which the ACL was created (RFC 3339 format).
description This property is required. String
The description of the ACL resource.
frontendId This property is required. String

The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed.

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

id This property is required. String

The associated ACL ID.

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

index This property is required. Number
The priority of this ACL in the ordered list.
matches This property is required. List<Property Map>
The ACL match rule.
name This property is required. String
The ACL name to filter for. ACLs with a matching name are listed.
updateAt This property is required. String
The date on which the ACL was last updated (RFC 3339 format).

GetLbAclsAclAction

Redirects This property is required. List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclActionRedirect>
Redirect parameters when using an ACL with redirect action.
Type This property is required. string
The redirect type.
Redirects This property is required. []GetLbAclsAclActionRedirect
Redirect parameters when using an ACL with redirect action.
Type This property is required. string
The redirect type.
redirects This property is required. List<GetLbAclsAclActionRedirect>
Redirect parameters when using an ACL with redirect action.
type This property is required. String
The redirect type.
redirects This property is required. GetLbAclsAclActionRedirect[]
Redirect parameters when using an ACL with redirect action.
type This property is required. string
The redirect type.
redirects This property is required. Sequence[GetLbAclsAclActionRedirect]
Redirect parameters when using an ACL with redirect action.
type This property is required. str
The redirect type.
redirects This property is required. List<Property Map>
Redirect parameters when using an ACL with redirect action.
type This property is required. String
The redirect type.

GetLbAclsAclActionRedirect

Code This property is required. int
The HTTP redirect code to use.
Target This property is required. string
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
Type This property is required. string
The redirect type.
Code This property is required. int
The HTTP redirect code to use.
Target This property is required. string
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
Type This property is required. string
The redirect type.
code This property is required. Integer
The HTTP redirect code to use.
target This property is required. String
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
type This property is required. String
The redirect type.
code This property is required. number
The HTTP redirect code to use.
target This property is required. string
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
type This property is required. string
The redirect type.
code This property is required. int
The HTTP redirect code to use.
target This property is required. str
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
type This property is required. str
The redirect type.
code This property is required. Number
The HTTP redirect code to use.
target This property is required. String
The URL used in case of a location redirect, or the scheme name that replaces the request's original scheme.
type This property is required. String
The redirect type.

GetLbAclsAclMatch

HttpFilter This property is required. string
The HTTP filter to match.
HttpFilterOption This property is required. string
A list of possible values for the HTTP filter based on the HTTP header.
HttpFilterValues This property is required. List<string>
The possible values to match for a given HTTP filter.
Invert This property is required. bool
The condition will be of type "unless" if invert is set to true
IpSubnets This property is required. List<string>
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
HttpFilter This property is required. string
The HTTP filter to match.
HttpFilterOption This property is required. string
A list of possible values for the HTTP filter based on the HTTP header.
HttpFilterValues This property is required. []string
The possible values to match for a given HTTP filter.
Invert This property is required. bool
The condition will be of type "unless" if invert is set to true
IpSubnets This property is required. []string
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
httpFilter This property is required. String
The HTTP filter to match.
httpFilterOption This property is required. String
A list of possible values for the HTTP filter based on the HTTP header.
httpFilterValues This property is required. List<String>
The possible values to match for a given HTTP filter.
invert This property is required. Boolean
The condition will be of type "unless" if invert is set to true
ipSubnets This property is required. List<String>
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
httpFilter This property is required. string
The HTTP filter to match.
httpFilterOption This property is required. string
A list of possible values for the HTTP filter based on the HTTP header.
httpFilterValues This property is required. string[]
The possible values to match for a given HTTP filter.
invert This property is required. boolean
The condition will be of type "unless" if invert is set to true
ipSubnets This property is required. string[]
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
http_filter This property is required. str
The HTTP filter to match.
http_filter_option This property is required. str
A list of possible values for the HTTP filter based on the HTTP header.
http_filter_values This property is required. Sequence[str]
The possible values to match for a given HTTP filter.
invert This property is required. bool
The condition will be of type "unless" if invert is set to true
ip_subnets This property is required. Sequence[str]
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
httpFilter This property is required. String
The HTTP filter to match.
httpFilterOption This property is required. String
A list of possible values for the HTTP filter based on the HTTP header.
httpFilterValues This property is required. List<String>
The possible values to match for a given HTTP filter.
invert This property is required. Boolean
The condition will be of type "unless" if invert is set to true
ipSubnets This property is required. List<String>
A list of IPs, or CIDR v4/v6 addresses of the session client, to match.

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