1. Packages
  2. Scaleway
  3. API Docs
  4. getLbAcls
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.getLbAcls

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    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:

    FrontendId 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 string
    Zone string
    zone) The zone in which the ACLs exist.
    FrontendId 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 string
    Zone string
    zone) The zone in which the ACLs exist.
    frontendId 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 String
    zone String
    zone) The zone in which the ACLs exist.
    frontendId 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 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.
    frontendId 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 String
    zone 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 List<Pulumiverse.Scaleway.Inputs.GetLbAclsAclAction>
    The action to be undertaken when an ACL filter matches.
    CreatedAt string
    The date on 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 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.GetLbAclsAclMatch>
    The ACL match rule.
    Name string
    The ACL name to filter for. ACLs with a matching name are listed.
    UpdateAt string
    The date on which the ACL was last updated (RFC 3339 format).
    Actions []GetLbAclsAclAction
    The action to be undertaken when an ACL filter matches.
    CreatedAt string
    The date on 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 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 []GetLbAclsAclMatch
    The ACL match rule.
    Name string
    The ACL name to filter for. ACLs with a matching name are listed.
    UpdateAt string
    The date on which the ACL was last updated (RFC 3339 format).
    actions List<GetLbAclsAclAction>
    The action to be undertaken when an ACL filter matches.
    createdAt String
    The date on 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 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<GetLbAclsAclMatch>
    The ACL match rule.
    name String
    The ACL name to filter for. ACLs with a matching name are listed.
    updateAt String
    The date on which the ACL was last updated (RFC 3339 format).
    actions GetLbAclsAclAction[]
    The action to be undertaken when an ACL filter matches.
    createdAt string
    The date on 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 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 GetLbAclsAclMatch[]
    The ACL match rule.
    name string
    The ACL name to filter for. ACLs with a matching name are listed.
    updateAt string
    The date on which the ACL was last updated (RFC 3339 format).
    actions Sequence[GetLbAclsAclAction]
    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[GetLbAclsAclMatch]
    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.
    createdAt String
    The date on 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 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.
    updateAt String
    The date on 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 to use.
    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 to use.
    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 to use.
    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 to use.
    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 to use.
    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 to use.
    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 HTTP filter to match.
    HttpFilterOption string
    A list of possible values for the HTTP filter based on the HTTP header.
    HttpFilterValues List<string>
    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
    IpSubnets List<string>
    A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
    HttpFilter string
    The HTTP filter to match.
    HttpFilterOption string
    A list of possible values for the HTTP filter based on the HTTP header.
    HttpFilterValues []string
    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
    IpSubnets []string
    A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
    httpFilter String
    The HTTP filter to match.
    httpFilterOption String
    A list of possible values for the HTTP filter based on the HTTP header.
    httpFilterValues List<String>
    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
    ipSubnets List<String>
    A list of IPs, or CIDR v4/v6 addresses of the session client, to match.
    httpFilter string
    The HTTP filter to match.
    httpFilterOption string
    A list of possible values for the HTTP filter based on the HTTP header.
    httpFilterValues string[]
    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
    ipSubnets 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_option str
    A list of possible values for the HTTP filter based on the HTTP header.
    http_filter_values Sequence[str]
    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.
    httpFilter String
    The HTTP filter to match.
    httpFilterOption String
    A list of possible values for the HTTP filter based on the HTTP header.
    httpFilterValues List<String>
    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
    ipSubnets 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 logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse