Cloudflare List

Provision an account-scoped Cloudflare List — a reusable, named collection referenced from rule expressions.

What Gets Created

  • A cloudflare_list (the container) of kind ip, redirect, hostname, or asn. Entries are added separately via CloudflareListItem.

Prerequisites

  • A Cloudflare account ID.

Configuration Reference

Required

  • accountId — Cloudflare account ID.
  • kindip, redirect, hostname, or asn (immutable).
  • name — name used in rule expressions (immutable).

Optional

  • description — human-readable summary.

Stack Outputs

OutputDescription
list_idThe list ID (referenced by list items)
nameThe list name
kindThe list kind
  • CloudflareListItem
  • CloudflareRuleset

Next article

Cloudflare List Item

Cloudflare List Item Write a single entry into a Cloudflare List, matching the parent list's kind. What Gets Created A cloudflarelistitem (one IP/CIDR, ASN, hostname, or redirect) inside an existing list. Prerequisites A Cloudflare account ID. An existing CloudflareList to write into. Configuration Reference Required accountId — Cloudflare account ID. listId — list ID, or a reference to a CloudflareList. exactly one of ip / asn / hostname / redirect. Optional comment — informative summary....
Read next article