getAcls

suspend fun getAcls(argument: GetAclsPlainArgs): GetAclsResult

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

argument

A collection of arguments for invoking getAcls.


suspend fun getAcls(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, resourceGroupId: String? = null, tags: Map<String, Any>? = null): GetAclsResult

Return

A collection of values returned by getAcls.

See also

Parameters

ids

A list of acls IDs to filter results.

nameRegex

A regex string to filter results by acl name.

outputFile

File name where to save data source results (after running pulumi preview).

resourceGroupId

The Id of resource group which acl belongs.

tags

A mapping of tags to assign to the resource.


suspend fun getAcls(argument: suspend GetAclsPlainArgsBuilder.() -> Unit): GetAclsResult

Return

A collection of values returned by getAcls.

See also

Parameters

argument

Builder for com.pulumi.alicloud.slb.kotlin.inputs.GetAclsPlainArgs.