Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.slb.getAcls
Explore with Pulumi AI
This data source provides the acls in the region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const sampleDs = alicloud.slb.getAcls({});
export const firstSlbAclId = sampleDs.then(sampleDs => sampleDs.acls?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
sample_ds = alicloud.slb.get_acls()
pulumi.export("firstSlbAclId", sample_ds.acls[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		sampleDs, err := slb.GetAcls(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstSlbAclId", sampleDs.Acls[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var sampleDs = AliCloud.Slb.GetAcls.Invoke();
    return new Dictionary<string, object?>
    {
        ["firstSlbAclId"] = sampleDs.Apply(getAclsResult => getAclsResult.Acls[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetAclsArgs;
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 sampleDs = SlbFunctions.getAcls();
        ctx.export("firstSlbAclId", sampleDs.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
    }
}
variables:
  sampleDs:
    fn::invoke:
      Function: alicloud:slb:getAcls
      Arguments: {}
outputs:
  firstSlbAclId: ${sampleDs.acls[0].id}
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).
Using getAcls
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 getAcls(args: GetAclsArgs, opts?: InvokeOptions): Promise<GetAclsResult>
function getAclsOutput(args: GetAclsOutputArgs, opts?: InvokeOptions): Output<GetAclsResult>def get_acls(ids: Optional[Sequence[str]] = None,
             name_regex: Optional[str] = None,
             output_file: Optional[str] = None,
             resource_group_id: Optional[str] = None,
             tags: Optional[Mapping[str, Any]] = None,
             opts: Optional[InvokeOptions] = None) -> GetAclsResult
def get_acls_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             name_regex: Optional[pulumi.Input[str]] = None,
             output_file: Optional[pulumi.Input[str]] = None,
             resource_group_id: Optional[pulumi.Input[str]] = None,
             tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetAclsResult]func GetAcls(ctx *Context, args *GetAclsArgs, opts ...InvokeOption) (*GetAclsResult, error)
func GetAclsOutput(ctx *Context, args *GetAclsOutputArgs, opts ...InvokeOption) GetAclsResultOutput> Note: This function is named GetAcls in the Go SDK.
public static class GetAcls 
{
    public static Task<GetAclsResult> InvokeAsync(GetAclsArgs args, InvokeOptions? opts = null)
    public static Output<GetAclsResult> Invoke(GetAclsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAclsResult> getAcls(GetAclsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:slb/getAcls:getAcls
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
 - A list of acls IDs to filter results.
 - Name
Regex string - A regex string to filter results by acl name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Resource
Group stringId  - The Id of resource group which acl belongs.
 - Dictionary<string, object>
 - A mapping of tags to assign to the resource.
 
- Ids []string
 - A list of acls IDs to filter results.
 - Name
Regex string - A regex string to filter results by acl name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Resource
Group stringId  - The Id of resource group which acl belongs.
 - map[string]interface{}
 - A mapping of tags to assign to the resource.
 
- ids List<String>
 - A list of acls IDs to filter results.
 - name
Regex String - A regex string to filter results by acl name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - resource
Group StringId  - The Id of resource group which acl belongs.
 - Map<String,Object>
 - A mapping of tags to assign to the resource.
 
- ids string[]
 - A list of acls IDs to filter results.
 - name
Regex string - A regex string to filter results by acl name.
 - output
File string - File name where to save data source results (after running 
pulumi preview). - resource
Group stringId  - The Id of resource group which acl belongs.
 - {[key: string]: any}
 - A mapping of tags to assign to the resource.
 
- ids Sequence[str]
 - A list of acls IDs to filter results.
 - name_
regex str - A regex string to filter results by acl name.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). - resource_
group_ strid  - The Id of resource group which acl belongs.
 - Mapping[str, Any]
 - A mapping of tags to assign to the resource.
 
- ids List<String>
 - A list of acls IDs to filter results.
 - name
Regex String - A regex string to filter results by acl name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - resource
Group StringId  - The Id of resource group which acl belongs.
 - Map<Any>
 - A mapping of tags to assign to the resource.
 
getAcls Result
The following output properties are available:
- Acls
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Acls Acl>  - 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.
 - Name
Regex string - Output
File string - Resource
Group stringId  - Resource group ID.
 - Dictionary<string, object>
 - A mapping of tags to assign to the resource.
 
- Acls
[]Get
Acls Acl  - 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.
 - Name
Regex string - Output
File string - Resource
Group stringId  - Resource group ID.
 - map[string]interface{}
 - A mapping of tags to assign to the resource.
 
- acls
List<Get
Acls Acl>  - 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.
 - name
Regex String - output
File String - resource
Group StringId  - Resource group ID.
 - Map<String,Object>
 - A mapping of tags to assign to the resource.
 
- acls
Get
Acls Acl[]  - 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.
 - name
Regex string - output
File string - resource
Group stringId  - Resource group ID.
 - {[key: string]: any}
 - A mapping of tags to assign to the resource.
 
- acls
Sequence[Get
Acls Acl]  - A list of SLB acls. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - A list of SLB acls IDs.
 - names Sequence[str]
 - A list of SLB acls names.
 - name_
regex str - output_
file str - resource_
group_ strid  - Resource group ID.
 - Mapping[str, Any]
 - A mapping of tags to assign to the resource.
 
- acls List<Property Map>
 - 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.
 - name
Regex String - output
File String - resource
Group StringId  - Resource group ID.
 - Map<Any>
 - A mapping of tags to assign to the resource.
 
Supporting Types
GetAclsAcl  
- Entry
Lists List<Pulumi.Ali Cloud. Slb. Inputs. Get Acls Acl Entry List>  - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - Id string
 - Acl ID.
 - Ip
Version string - Name string
 - Acl name.
 - 
List<Pulumi.
Ali Cloud. Slb. Inputs. Get Acls Acl Related Listener>  - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - Resource
Group stringId  - The Id of resource group which acl belongs.
 - Dictionary<string, object>
 - A mapping of tags to assign to the resource.
 
- Entry
Lists []GetAcls Acl Entry List  - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - Id string
 - Acl ID.
 - Ip
Version string - Name string
 - Acl name.
 - 
[]Get
Acls Acl Related Listener  - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - Resource
Group stringId  - The Id of resource group which acl belongs.
 - map[string]interface{}
 - A mapping of tags to assign to the resource.
 
- entry
Lists List<GetAcls Acl Entry List>  - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - id String
 - Acl ID.
 - ip
Version String - name String
 - Acl name.
 - 
List<Get
Acls Acl Related Listener>  - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - resource
Group StringId  - The Id of resource group which acl belongs.
 - Map<String,Object>
 - A mapping of tags to assign to the resource.
 
- entry
Lists GetAcls Acl Entry List[]  - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - id string
 - Acl ID.
 - ip
Version string - name string
 - Acl name.
 - 
Get
Acls Acl Related Listener[]  - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - resource
Group stringId  - The Id of resource group which acl belongs.
 - {[key: string]: any}
 - A mapping of tags to assign to the resource.
 
- entry_
lists Sequence[GetAcls Acl Entry List]  - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - id str
 - Acl ID.
 - ip_
version str - name str
 - Acl name.
 - 
Sequence[Get
Acls Acl Related Listener]  - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - resource_
group_ strid  - The Id of resource group which acl belongs.
 - Mapping[str, Any]
 - A mapping of tags to assign to the resource.
 
- entry
Lists List<Property Map> - A list of entry (IP addresses or CIDR blocks). Each entry contains two sub-fields as 
Entry Blockfollows. - id String
 - Acl ID.
 - ip
Version String - name String
 - Acl name.
 - List<Property Map>
 - A list of listener are attached by the acl. Each listener contains four sub-fields as 
Listener Blockfollows. - resource
Group StringId  - The Id of resource group which acl belongs.
 - Map<Any>
 - A mapping of tags to assign to the resource.
 
GetAclsAclEntryList    
GetAclsAclRelatedListener    
- Acl
Type string - Frontend
Port int - Load
Balancer stringId  - Protocol string
 
- Acl
Type string - Frontend
Port int - Load
Balancer stringId  - Protocol string
 
- acl
Type String - frontend
Port Integer - load
Balancer StringId  - protocol String
 
- acl
Type string - frontend
Port number - load
Balancer stringId  - protocol string
 
- acl_
type str - frontend_
port int - load_
balancer_ strid  - protocol str
 
- acl
Type String - frontend
Port Number - load
Balancer StringId  - protocol String
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.