getWafGroups

Use this data source to look up WAF Rule Groups.

Example Usage

The example below matches all WAF Rule Groups that contain the word example and are currently on. The matched WAF Rule Groups are then returned as output.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetWafGroupsArgs;
import com.pulumi.cloudflare.inputs.GetWafGroupsFilterArgs;
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 test = CloudflareFunctions.getWafGroups(GetWafGroupsArgs.builder()
.filter(GetWafGroupsFilterArgs.builder()
.name(".*example.*")
.mode("on")
.build())
.build());
ctx.export("wafGroups", test.applyValue(getWafGroupsResult -> getWafGroupsResult.groups()));
}
}

Return

A collection of values returned by getWafGroups.

Parameters

argument

A collection of arguments for invoking getWafGroups.


suspend fun getWafGroups(filter: GetWafGroupsFilter? = null, packageId: String? = null, zoneId: String): GetWafGroupsResult

Return

A collection of values returned by getWafGroups.

Parameters

filter

One or more values used to look up WAF Rule Groups. If more than one value is given all values must match in order to be included, see below for full list.

packageId

The ID of the WAF Rule Package in which to search for the WAF Rule Groups.

zoneId

The ID of the DNS zone in which to search for the WAF Rule Groups.

See also


Return

A collection of values returned by getWafGroups.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetWafGroupsPlainArgs.

See also