IpList

class IpList : KotlinCustomResource

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

Properties

Link copied to clipboard
val accountId: Output<String>

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

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val items: Output<List<IpListItem>>?
Link copied to clipboard
val kind: Output<String>

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

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>