1. Packages
  2. Scaleway
  3. API Docs
  4. getLbAcls
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getLbAcls

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Gets information about multiple Load Balancer ACLs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const byFrontID = scaleway.getLbAcls({
        frontendId: scaleway_lb_frontend.frt01.id,
    });
    const byFrontIDAndName = scaleway.getLbAcls({
        frontendId: scaleway_lb_frontend.frt01.id,
        name: "tf-acls-datasource",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_front_id = scaleway.get_lb_acls(frontend_id=scaleway_lb_frontend["frt01"]["id"])
    by_front_id_and_name = scaleway.get_lb_acls(frontend_id=scaleway_lb_frontend["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 {
    		_, err := scaleway.GetLbAcls(ctx, &scaleway.GetLbAclsArgs{
    			FrontendId: scaleway_lb_frontend.Frt01.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.GetLbAcls(ctx, &scaleway.GetLbAclsArgs{
    			FrontendId: scaleway_lb_frontend.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(() => 
    {
        var byFrontID = Scaleway.GetLbAcls.Invoke(new()
        {
            FrontendId = scaleway_lb_frontend.Frt01.Id,
        });
    
        var byFrontIDAndName = Scaleway.GetLbAcls.Invoke(new()
        {
            FrontendId = scaleway_lb_frontend.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) {
            final var byFrontID = ScalewayFunctions.getLbAcls(GetLbAclsArgs.builder()
                .frontendId(scaleway_lb_frontend.frt01().id())
                .build());
    
            final var byFrontIDAndName = ScalewayFunctions.getLbAcls(GetLbAclsArgs.builder()
                .frontendId(scaleway_lb_frontend.frt01().id())
                .name("tf-acls-datasource")
                .build());
    
        }
    }
    
    variables:
      byFrontID:
        fn::invoke:
          Function: scaleway:getLbAcls
          Arguments:
            frontendId: ${scaleway_lb_frontend.frt01.id}
      byFrontIDAndName:
        fn::invoke:
          Function: scaleway:getLbAcls
          Arguments:
            frontendId: ${scaleway_lb_frontend.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:

    FrontendId string

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    ProjectId string
    Zone string
    zone) The zone in which ACLs exist.
    FrontendId string

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    ProjectId string
    Zone string
    zone) The zone in which ACLs exist.
    frontendId String

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    projectId String
    zone String
    zone) The zone in which ACLs exist.
    frontendId string

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    projectId string
    zone string
    zone) The zone in which ACLs exist.
    frontend_id str

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    project_id str
    zone str
    zone) The zone in which ACLs exist.
    frontendId String

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

    Important: LB Frontends' 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 used as filter. ACLs with a name like it are listed.
    projectId String
    zone String
    zone) The zone in which ACLs exist.

    getLbAcls Result

    The following output properties are available:

    Acls List<Pulumiverse.Scaleway.Outputs.GetLbAclsAcl>
    List of found 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 found 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 found 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 found 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 found 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 found 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 List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclAction>
    The action that has been undertaken when an ACL filter had matched.
    CreatedAt string
    The date at which the ACL was created (RFC 3339 format).
    Description string
    The description of the ACL resource.
    FrontendId string

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

    Important: LB Frontends' 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 order between the ACLs.
    Matches List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclMatch>
    The ACL match rule.
    Name string
    The ACL name used as filter. ACLs with a name like it are listed.
    UpdateAt string
    The date at which the ACL was last updated (RFC 3339 format).
    Actions []GetLbAclsAclAction
    The action that has been undertaken when an ACL filter had matched.
    CreatedAt string
    The date at which the ACL was created (RFC 3339 format).
    Description string
    The description of the ACL resource.
    FrontendId string

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

    Important: LB Frontends' 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 order between the ACLs.
    Matches []GetLbAclsAclMatch
    The ACL match rule.
    Name string
    The ACL name used as filter. ACLs with a name like it are listed.
    UpdateAt string
    The date at which the ACL was last updated (RFC 3339 format).
    actions List<GetLbAclsAclAction>
    The action that has been undertaken when an ACL filter had matched.
    createdAt String
    The date at which the ACL was created (RFC 3339 format).
    description String
    The description of the ACL resource.
    frontendId String

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

    Important: LB Frontends' 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 order between the ACLs.
    matches List<GetLbAclsAclMatch>
    The ACL match rule.
    name String
    The ACL name used as filter. ACLs with a name like it are listed.
    updateAt String
    The date at which the ACL was last updated (RFC 3339 format).
    actions GetLbAclsAclAction[]
    The action that has been undertaken when an ACL filter had matched.
    createdAt string
    The date at which the ACL was created (RFC 3339 format).
    description string
    The description of the ACL resource.
    frontendId string

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

    Important: LB Frontends' 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 order between the ACLs.
    matches GetLbAclsAclMatch[]
    The ACL match rule.
    name string
    The ACL name used as filter. ACLs with a name like it are listed.
    updateAt string
    The date at which the ACL was last updated (RFC 3339 format).
    actions Sequence[GetLbAclsAclAction]
    The action that has been undertaken when an ACL filter had matched.
    created_at str
    The date at 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 frontend ID like it are listed.

    Important: LB Frontends' 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 order between the ACLs.
    matches Sequence[GetLbAclsAclMatch]
    The ACL match rule.
    name str
    The ACL name used as filter. ACLs with a name like it are listed.
    update_at str
    The date at which the ACL was last updated (RFC 3339 format).
    actions List<Property Map>
    The action that has been undertaken when an ACL filter had matched.
    createdAt String
    The date at which the ACL was created (RFC 3339 format).
    description String
    The description of the ACL resource.
    frontendId String

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

    Important: LB Frontends' 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 order between the ACLs.
    matches List<Property Map>
    The ACL match rule.
    name String
    The ACL name used as filter. ACLs with a name like it are listed.
    updateAt String
    The date at which the ACL was last updated (RFC 3339 format).

    GetLbAclsAclAction

    Redirects List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclActionRedirect>
    Redirect parameters when using an ACL with redirect action.
    Type string
    The redirect type.
    Redirects []GetLbAclsAclActionRedirect
    Redirect parameters when using an ACL with redirect action.
    Type string
    The redirect type.
    redirects List<GetLbAclsAclActionRedirect>
    Redirect parameters when using an ACL with redirect action.
    type String
    The redirect type.
    redirects GetLbAclsAclActionRedirect[]
    Redirect parameters when using an ACL with redirect action.
    type string
    The redirect type.
    redirects Sequence[GetLbAclsAclActionRedirect]
    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

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

    GetLbAclsAclMatch

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

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse