get Acls
This data source provides the acls in the region.
Example Usage
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()));
}
}
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).
Return
A collection of values returned by getAcls.
Parameters
A collection of arguments for invoking getAcls.
Return
A collection of values returned by getAcls.
See also
Parameters
A list of acls IDs to filter results.
A regex string to filter results by acl name.
File name where to save data source results (after running pulumi preview
).
The Id of resource group which acl belongs.
A mapping of tags to assign to the resource.
Return
A collection of values returned by getAcls.
See also
Parameters
Builder for com.pulumi.alicloud.slb.kotlin.inputs.GetAclsPlainArgs.