GetAcls

This data source provides the acls in the region.

Entry Block

The entry mapping supports the following:

  • entry - An IP addresses or CIDR blocks.
  • comment - the comment of the entry.

Listener Block

The Listener mapping supports the following:

  • load_balancer_id - the id of load balancer instance, the listener belongs to.
  • frontend_port - the listener port.
  • protocol - the listener protocol (such as tcp/udp/http/https, etc).
  • acl_type - the type of acl (such as white/black).

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var sampleDs = Output.Create(AliCloud.Slb.GetAcls.InvokeAsync());
        this.FirstSlbAclId = sampleDs.Apply(sampleDs => sampleDs.Acls[0].Id);
    }

    [Output("firstSlbAclId")]
    public Output<string> FirstSlbAclId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

sample_ds = alicloud.slb.get_acls()
pulumi.export("firstSlbAclId", sample_ds.acls[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const sampleDs = pulumi.output(alicloud.slb.getAcls({ async: true }));

export const firstSlbAclId = sampleDs.acls[0].id;

Using GetAcls

function getAcls(args: GetAclsArgs, opts?: InvokeOptions): Promise<GetAclsResult>
function  get_acls(ids=None, name_regex=None, output_file=None, resource_group_id=None, tags=None, opts=None)
func GetAcls(ctx *Context, args *GetAclsArgs, opts ...InvokeOption) (*GetAclsResult, error)
public static class GetAcls {
    public static Task<GetAclsResult> InvokeAsync(GetAclsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of acls IDs to filter results.

NameRegex string

A regex string to filter results by acl name.

OutputFile string
ResourceGroupId string

The Id of resource group which acl belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

A list of acls IDs to filter results.

NameRegex string

A regex string to filter results by acl name.

OutputFile string
ResourceGroupId string

The Id of resource group which acl belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

A list of acls IDs to filter results.

nameRegex string

A regex string to filter results by acl name.

outputFile string
resourceGroupId string

The Id of resource group which acl belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

ids List[str]

A list of acls IDs to filter results.

name_regex str

A regex string to filter results by acl name.

output_file str
resource_group_id str

The Id of resource group which acl belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetAcls Result

The following output properties are available:

Acls List<Pulumi.AliCloud.Slb.Outputs.GetAclsAcl>

A list of SLB acls. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of SLB acls IDs.

Names List<string>

A list of SLB acls names.

NameRegex string
OutputFile string
ResourceGroupId string

Resource group ID.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Acls []GetAclsAcl

A list of SLB acls. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of SLB acls IDs.

Names []string

A list of SLB acls names.

NameRegex string
OutputFile string
ResourceGroupId string

Resource group ID.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

acls GetAclsAcl[]

A list of SLB acls. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of SLB acls IDs.

names string[]

A list of SLB acls names.

nameRegex string
outputFile string
resourceGroupId string

Resource group ID.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

acls List[GetAclsAcl]

A list of SLB acls. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of SLB acls IDs.

names List[str]

A list of SLB acls names.

name_regex str
output_file str
resource_group_id str

Resource group ID.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Supporting Types

GetAclsAcl

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

EntryLists List<Pulumi.AliCloud.Slb.Inputs.GetAclsAclEntryListArgs>

A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as Entry Block follows.

Id string

Acl ID.

IpVersion string
Name string

Acl name.

RelatedListeners List<Pulumi.AliCloud.Slb.Inputs.GetAclsAclRelatedListenerArgs>

A list of listener are attached by the acl. Each listener contains four sub-fields as Listener Block follows.

ResourceGroupId string

The Id of resource group which acl belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

EntryLists []GetAclsAclEntryList

A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as Entry Block follows.

Id string

Acl ID.

IpVersion string
Name string

Acl name.

RelatedListeners []GetAclsAclRelatedListener

A list of listener are attached by the acl. Each listener contains four sub-fields as Listener Block follows.

ResourceGroupId string

The Id of resource group which acl belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

entryLists GetAclsAclEntryList[]

A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as Entry Block follows.

id string

Acl ID.

ipVersion string
name string

Acl name.

relatedListeners GetAclsAclRelatedListener[]

A list of listener are attached by the acl. Each listener contains four sub-fields as Listener Block follows.

resourceGroupId string

The Id of resource group which acl belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

entry_lists List[GetAclsAclEntryList]

A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as Entry Block follows.

id str

Acl ID.

ip_version str
name str

Acl name.

relatedListeners List[GetAclsAclRelatedListener]

A list of listener are attached by the acl. Each listener contains four sub-fields as Listener Block follows.

resource_group_id str

The Id of resource group which acl belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetAclsAclEntryList

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Comment string
Entry string
Comment string
Entry string
comment string
entry string
comment str
entry str

GetAclsAclRelatedListener

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AclType string
FrontendPort int
LoadBalancerId string
Protocol string
AclType string
FrontendPort int
LoadBalancerId string
Protocol string
aclType string
frontendPort number
loadBalancerId string
protocol string
acl_type str
frontend_port float
load_balancer_id str
protocol str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.