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.
- Name
Regex string A regex string to filter results by acl name.
- Output
File string - 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 - Resource
Group stringId The Id of resource group which acl belongs.
- map[string]interface{}
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 - resource
Group stringId The Id of resource group which acl belongs.
- {[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_ strid The Id of resource group which acl belongs.
- Dict[str, 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
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
List[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 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_ strid Resource group ID.
- 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.
- Entry
Lists List<Pulumi.Ali Cloud. Slb. Inputs. Get Acls Acl Entry List Args> 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 Args> 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 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 List[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.
-
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_ strid The Id of resource group which acl belongs.
- 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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.