Acl
An access control list contains multiple IP addresses or CIDR blocks. The access control list can help you to define multiple instance listening dimension, and to meet the multiple usage for single access control list. Server Load Balancer allows you to configure access control for listeners. You can configure different whitelists or blacklists for different listeners. You can configure access control when you create a listener or change access control configuration after a listener is created.
NOTE: One access control list can be attached to many Listeners in different load balancer as whitelists or blacklists. NOTE: The maximum number of access control lists per region is 50. NOTE: The maximum number of IP addresses added each time is 50. NOTE: The maximum number of entries per access control list is 300. NOTE: The maximum number of listeners that an access control list can be added to is 50. For information about slb and how to use it, see What is Server Load Balancer. For information about acl and how to use it, see Configure an access control list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const acl = new alicloud.slb.Acl("acl", {
name: "terraformslbaclconfig",
ipVersion: "ipv4",
});
import pulumi
import pulumi_alicloud as alicloud
acl = alicloud.slb.Acl("acl",
name="terraformslbaclconfig",
ip_version="ipv4")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var acl = new AliCloud.Slb.Acl("acl", new()
{
Name = "terraformslbaclconfig",
IpVersion = "ipv4",
});
});
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 {
_, err := slb.NewAcl(ctx, "acl", &slb.AclArgs{
Name: pulumi.String("terraformslbaclconfig"),
IpVersion: pulumi.String("ipv4"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.Acl;
import com.pulumi.alicloud.slb.AclArgs;
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) {
var acl = new Acl("acl", AclArgs.builder()
.name("terraformslbaclconfig")
.ipVersion("ipv4")
.build());
}
}
resources:
acl:
type: alicloud:slb:Acl
properties:
name: terraformslbaclconfig
ipVersion: ipv4
Entry Block
The entry mapping supports the following:
entry
- (Optional, Computed) The CIDR blocks.comment
- (Optional, Computed) The comment of the entry.
Import
Server Load balancer access control list can be imported using the id, e.g.
$ pulumi import alicloud:slb/acl:Acl example acl-abc123456
Properties
A list of entry (CIDR blocks) to be added. It contains two sub-fields as Entry Block
follows. NOTE: "Field 'entry_list' has been deprecated from provider version 1.162.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_acl_entry_attachment'.",
Resource group ID.