scaleway.getLbAcls
Explore with Pulumi AI
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.getLbAcls({
frontendId: frt01.id,
});
// Find acls by frontend ID and name
const byFrontIDAndName = scaleway.getLbAcls({
frontendId: frt01.id,
name: "tf-acls-datasource",
});
import pulumi
import pulumi_scaleway as scaleway
# Find acls that share the same frontend ID
by_front_id = scaleway.get_lb_acls(frontend_id=frt01["id"])
# Find acls by frontend ID and name
by_front_id_and_name = scaleway.get_lb_acls(frontend_id=frt01["id"],
name="tf-acls-datasource")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Find acls that share the same frontend ID
_, err := scaleway.GetLbAcls(ctx, &scaleway.GetLbAclsArgs{
FrontendId: frt01.Id,
}, nil)
if err != nil {
return err
}
// Find acls by frontend ID and name
_, err = scaleway.GetLbAcls(ctx, &scaleway.GetLbAclsArgs{
FrontendId: frt01.Id,
Name: pulumi.StringRef("tf-acls-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 acls that share the same frontend ID
var byFrontID = Scaleway.GetLbAcls.Invoke(new()
{
FrontendId = frt01.Id,
});
// Find acls by frontend ID and name
var byFrontIDAndName = Scaleway.GetLbAcls.Invoke(new()
{
FrontendId = frt01.Id,
Name = "tf-acls-datasource",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetLbAclsArgs;
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 = ScalewayFunctions.getLbAcls(GetLbAclsArgs.builder()
.frontendId(frt01.id())
.build());
// Find acls by frontend ID and name
final var byFrontIDAndName = ScalewayFunctions.getLbAcls(GetLbAclsArgs.builder()
.frontendId(frt01.id())
.name("tf-acls-datasource")
.build());
}
}
variables:
# Find acls that share the same frontend ID
byFrontID:
fn::invoke:
Function: scaleway:getLbAcls
Arguments:
frontendId: ${frt01.id}
# Find acls by frontend ID and name
byFrontIDAndName:
fn::invoke:
Function: scaleway:getLbAcls
Arguments:
frontendId: ${frt01.id}
name: tf-acls-datasource
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>
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]
func GetLbAcls(ctx *Context, args *GetLbAclsArgs, opts ...InvokeOption) (*GetLbAclsResult, error)
func GetLbAclsOutput(ctx *Context, args *GetLbAclsOutputArgs, opts ...InvokeOption) GetLbAclsResultOutput
> 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)
}
public static CompletableFuture<GetLbAclsResult> getLbAcls(GetLbAclsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getLbAcls:getLbAcls
arguments:
# arguments dictionary
The following arguments are supported:
- Frontend
Id 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.
- Project
Id string - Zone string
zone
) The zone in which the ACLs exist.
- Frontend
Id 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.
- Project
Id string - Zone string
zone
) The zone in which the ACLs exist.
- frontend
Id 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.
- project
Id String - zone String
zone
) The zone in which the ACLs exist.
- frontend
Id 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.
- project
Id string - zone string
zone
) The zone in which the ACLs exist.
- frontend_
id 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 str - zone str
zone
) The zone in which the ACLs exist.
- frontend
Id 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.
- project
Id String - zone String
zone
) The zone in which the ACLs exist.
getLbAcls Result
The following output properties are available:
- Acls
List<Pulumiverse.
Scaleway. Outputs. Get Lb Acls Acl> - List of retrieved ACLs
- Frontend
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - Zone string
- Name string
- Acls
[]Get
Lb Acls Acl - List of retrieved ACLs
- Frontend
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - Zone string
- Name string
- acls
List<Get
Lb Acls Acl> - List of retrieved ACLs
- frontend
Id String - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - project
Id String - zone String
- name String
- acls
Get
Lb Acls Acl[] - List of retrieved ACLs
- frontend
Id string - id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - project
Id string - zone string
- name string
- acls
Sequence[Get
Lb Acls Acl] - 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
- frontend
Id String - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - project
Id String - zone String
- name String
Supporting Types
GetLbAclsAcl
- Actions
List<Pulumiverse.
Scaleway. Inputs. Get Lb Acls Acl Action> - The action to be undertaken when an ACL filter matches.
- Created
At string - The date on which the ACL was created (RFC 3339 format).
- Description string
- The description of the ACL resource.
- Frontend
Id 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 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 int
- The priority of this ACL in the ordered list.
- Matches
List<Pulumiverse.
Scaleway. Inputs. Get Lb Acls Acl Match> - The ACL match rule.
- Name string
- The ACL name to filter for. ACLs with a matching name are listed.
- Update
At string - The date on which the ACL was last updated (RFC 3339 format).
- Actions
[]Get
Lb Acls Acl Action - The action to be undertaken when an ACL filter matches.
- Created
At string - The date on which the ACL was created (RFC 3339 format).
- Description string
- The description of the ACL resource.
- Frontend
Id 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 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 int
- The priority of this ACL in the ordered list.
- Matches
[]Get
Lb Acls Acl Match - The ACL match rule.
- Name string
- The ACL name to filter for. ACLs with a matching name are listed.
- Update
At string - The date on which the ACL was last updated (RFC 3339 format).
- actions
List<Get
Lb Acls Acl Action> - The action to be undertaken when an ACL filter matches.
- created
At String - The date on which the ACL was created (RFC 3339 format).
- description String
- The description of the ACL resource.
- frontend
Id 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 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 Integer
- The priority of this ACL in the ordered list.
- matches
List<Get
Lb Acls Acl Match> - The ACL match rule.
- name String
- The ACL name to filter for. ACLs with a matching name are listed.
- update
At String - The date on which the ACL was last updated (RFC 3339 format).
- actions
Get
Lb Acls Acl Action[] - The action to be undertaken when an ACL filter matches.
- created
At string - The date on which the ACL was created (RFC 3339 format).
- description string
- The description of the ACL resource.
- frontend
Id 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 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 number
- The priority of this ACL in the ordered list.
- matches
Get
Lb Acls Acl Match[] - The ACL match rule.
- name string
- The ACL name to filter for. ACLs with a matching name are listed.
- update
At string - The date on which the ACL was last updated (RFC 3339 format).
- actions
Sequence[Get
Lb Acls Acl Action] - The action to be undertaken when an ACL filter matches.
- created_
at str - The date on which the ACL was created (RFC 3339 format).
- description str
- The description of the ACL resource.
- frontend_
id 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 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 int
- The priority of this ACL in the ordered list.
- matches
Sequence[Get
Lb Acls Acl Match] - The ACL match rule.
- name str
- The ACL name to filter for. ACLs with a matching name are listed.
- update_
at str - The date on which the ACL was last updated (RFC 3339 format).
- actions List<Property Map>
- The action to be undertaken when an ACL filter matches.
- created
At String - The date on which the ACL was created (RFC 3339 format).
- description String
- The description of the ACL resource.
- frontend
Id 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 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 Number
- The priority of this ACL in the ordered list.
- matches List<Property Map>
- The ACL match rule.
- name String
- The ACL name to filter for. ACLs with a matching name are listed.
- update
At String - The date on which the ACL was last updated (RFC 3339 format).
GetLbAclsAclAction
- Redirects
List<Pulumiverse.
Scaleway. Inputs. Get Lb Acls Acl Action Redirect> - Redirect parameters when using an ACL with
redirect
action. - Type string
- The redirect type.
- Redirects
[]Get
Lb Acls Acl Action Redirect - Redirect parameters when using an ACL with
redirect
action. - Type string
- The redirect type.
- redirects
List<Get
Lb Acls Acl Action Redirect> - Redirect parameters when using an ACL with
redirect
action. - type String
- The redirect type.
- redirects
Get
Lb Acls Acl Action Redirect[] - Redirect parameters when using an ACL with
redirect
action. - type string
- The redirect type.
- redirects
Sequence[Get
Lb Acls Acl Action Redirect] - Redirect parameters when using an ACL with
redirect
action. - type str
- The redirect type.
- redirects List<Property Map>
- Redirect parameters when using an ACL with
redirect
action. - type String
- The redirect type.
GetLbAclsAclActionRedirect
GetLbAclsAclMatch
- Http
Filter string - The HTTP filter to match.
- Http
Filter stringOption - A list of possible values for the HTTP filter based on the HTTP header.
- Http
Filter List<string>Values - The possible values to match for a given HTTP filter.
- Invert bool
- The condition will be of type "unless" if invert is set to
true
- Ip
Subnets List<string> - A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
- Http
Filter string - The HTTP filter to match.
- Http
Filter stringOption - A list of possible values for the HTTP filter based on the HTTP header.
- Http
Filter []stringValues - The possible values to match for a given HTTP filter.
- Invert bool
- The condition will be of type "unless" if invert is set to
true
- Ip
Subnets []string - A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
- http
Filter String - The HTTP filter to match.
- http
Filter StringOption - A list of possible values for the HTTP filter based on the HTTP header.
- http
Filter List<String>Values - The possible values to match for a given HTTP filter.
- invert Boolean
- The condition will be of type "unless" if invert is set to
true
- ip
Subnets List<String> - A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
- http
Filter string - The HTTP filter to match.
- http
Filter stringOption - A list of possible values for the HTTP filter based on the HTTP header.
- http
Filter string[]Values - The possible values to match for a given HTTP filter.
- invert boolean
- The condition will be of type "unless" if invert is set to
true
- ip
Subnets string[] - A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
- http_
filter str - The HTTP filter to match.
- http_
filter_ stroption - A list of possible values for the HTTP filter based on the HTTP header.
- http_
filter_ Sequence[str]values - The possible values to match for a given HTTP filter.
- invert bool
- The condition will be of type "unless" if invert is set to
true
- ip_
subnets Sequence[str] - A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
- http
Filter String - The HTTP filter to match.
- http
Filter StringOption - A list of possible values for the HTTP filter based on the HTTP header.
- http
Filter List<String>Values - The possible values to match for a given HTTP filter.
- invert Boolean
- The condition will be of type "unless" if invert is set to
true
- ip
Subnets 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.