scaleway.getLbAcls
Explore with Pulumi AI
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:
- Frontend
Id 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.
- Project
Id string - Zone string
zone
) The zone in which ACLs exist.
- Frontend
Id 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.
- Project
Id string - Zone string
zone
) The zone in which ACLs exist.
- frontend
Id 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.
- project
Id String - zone String
zone
) The zone in which ACLs exist.
- frontend
Id 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.
- project
Id 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.
- frontend
Id 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.
- project
Id String - zone String
zone
) The zone in which ACLs exist.
getLbAcls Result
The following output properties are available:
- Acls
List<Pulumiverse.
Scaleway. Outputs. Get Lb Acls Acl> - List of found 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 found 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 found 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 found 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 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
- 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 that has been undertaken when an ACL filter had matched.
- Created
At string - The date at 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 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. Get Lb Acls Acl Match> - The ACL match rule.
- Name string
- The ACL name used as filter. ACLs with a name like it are listed.
- Update
At string - The date at which the ACL was last updated (RFC 3339 format).
- Actions
[]Get
Lb Acls Acl Action - The action that has been undertaken when an ACL filter had matched.
- Created
At string - The date at 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 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
[]Get
Lb Acls Acl Match - The ACL match rule.
- Name string
- The ACL name used as filter. ACLs with a name like it are listed.
- Update
At string - The date at which the ACL was last updated (RFC 3339 format).
- actions
List<Get
Lb Acls Acl Action> - The action that has been undertaken when an ACL filter had matched.
- created
At String - The date at 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 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<Get
Lb Acls Acl Match> - The ACL match rule.
- name String
- The ACL name used as filter. ACLs with a name like it are listed.
- update
At String - The date at which the ACL was last updated (RFC 3339 format).
- actions
Get
Lb Acls Acl Action[] - The action that has been undertaken when an ACL filter had matched.
- created
At string - The date at 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 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
Get
Lb Acls Acl Match[] - The ACL match rule.
- name string
- The ACL name used as filter. ACLs with a name like it are listed.
- update
At string - The date at which the ACL was last updated (RFC 3339 format).
- actions
Sequence[Get
Lb Acls Acl Action] - 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[Get
Lb Acls Acl Match] - 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.
- created
At String - The date at 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 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.
- update
At String - The date at 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 matched HTTP filter.
- 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 matched 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 matched IPs or CIDR v4/v6 addresses of the client of the session.
- Http
Filter string - The matched HTTP filter.
- Http
Filter stringOption - A list of possible values for the HTTP filter based on the HTTP header.
- Http
Filter []stringValues - 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 []string - A list of matched IPs or CIDR v4/v6 addresses of the client of the session.
- http
Filter String - The matched HTTP filter.
- 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 matched 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 matched IPs or CIDR v4/v6 addresses of the client of the session.
- http
Filter string - The matched HTTP filter.
- http
Filter stringOption - A list of possible values for the HTTP filter based on the HTTP header.
- http
Filter string[]Values - The possible values matched 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 matched IPs or CIDR v4/v6 addresses of the client of the session.
- http_
filter str - The matched HTTP filter.
- 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 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.
- http
Filter String - The matched HTTP filter.
- 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 matched 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 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.