Cloudflare List Item

Write a single entry into a Cloudflare List, matching the parent list's kind.

What Gets Created

  • A cloudflare_list_item (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.

Stack Outputs

OutputDescription
item_idThe list item's identifier
list_idThe list written to
  • CloudflareList
  • CloudflareRuleset

Next article

Cloudflare Load Balancer

Cloudflare Load Balancer Deploys a zone-scoped Cloudflare Load Balancer that attaches a DNS hostname to one or more account-scoped pools and steers traffic across them with health-aware failover, geo-routing, weighted distribution, and session affinity. What Gets Created A cloudflareloadbalancer bound to the hostname and zone, referencing the given defaultPools (and fallbackPool), with the configured steering, session affinity, geo-pool maps, adaptive routing, and location strategy. Pools and...
Read next article