IpListArgs

data class IpListArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val items: Output<List<IpListItemArgs>>? = null, val kind: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<IpListArgs>

IP Lists are a set of IP addresses or CIDR ranges that are configured on the account level. Once created, IP Lists can be used in Firewall Rules across all zones within the same account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.IpList;
import com.pulumi.cloudflare.IpListArgs;
import com.pulumi.cloudflare.inputs.IpListItemArgs;
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 example = new IpList("example", IpListArgs.builder()
.accountId("d41d8cd98f00b204e9800998ecf8427e")
.description("list description")
.items(
IpListItemArgs.builder()
.comment("Office IP")
.value("192.0.2.1")
.build(),
IpListItemArgs.builder()
.comment("Datacenter range")
.value("203.0.113.0/24")
.build())
.kind("ip")
.name("example_list")
.build());
}
}

Import

An existing IP List can be imported using the account ID and list ID

$ pulumi import cloudflare:index/ipList:IpList example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, items: Output<List<IpListItemArgs>>? = null, kind: Output<String>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The ID of the account where the IP List is being created.

Link copied to clipboard
val description: Output<String>? = null

A note that can be used to annotate the List. Maximum Length: 500

Link copied to clipboard
val items: Output<List<IpListItemArgs>>? = null
Link copied to clipboard
val kind: Output<String>? = null

The kind of values in the List. Valid values: ip.

Link copied to clipboard
val name: Output<String>? = null

The name of the list (used in filter expressions). Valid pattern: ^[a-zA-Z0-9_]+$. Maximum Length: 50

Functions

Link copied to clipboard
open override fun toJava(): IpListArgs