Skip to content
Start here

Web3

Web3Hostnames

resource cloudflare_web3_hostname

required Expand Collapse
zone_id: String

Specify the identifier of the hostname.

name: String

Specify the hostname that points to the target gateway via CNAME.

target: String

Specify the target gateway of the hostname.

optional Expand Collapse
description?: String

Specify an optional description of the hostname.

computed Expand Collapse
id: String

Specify the identifier of the hostname.

created_on: Time
modified_on: Time
status: String

Specifies the status of the hostname's activation.

cloudflare_web3_hostname

resource "cloudflare_web3_hostname" "example_web3_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "gateway.example.com"
  target = "ipfs"
  description = "This is my IPFS gateway."
  dnslink = "/ipns/onboarding.ipfs.cloudflare.com"
}

data cloudflare_web3_hostname

required Expand Collapse
identifier: String

Specify the identifier of the hostname.

zone_id: String

Specify the identifier of the hostname.

computed Expand Collapse
id: String

Specify the identifier of the hostname.

created_on: Time
description: String

Specify an optional description of the hostname.

modified_on: Time
name: String

Specify the hostname that points to the target gateway via CNAME.

status: String

Specifies the status of the hostname's activation.

target: String

Specify the target gateway of the hostname.

cloudflare_web3_hostname

data "cloudflare_web3_hostname" "example_web3_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  identifier = "023e105f4ecef8ad9ca31a8372d0c353"
}

data cloudflare_web3_hostnames

required Expand Collapse
zone_id: String

Specify the identifier of the hostname.

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Specify the identifier of the hostname.

created_on: Time
description: String

Specify an optional description of the hostname.

modified_on: Time
name: String

Specify the hostname that points to the target gateway via CNAME.

status: String

Specifies the status of the hostname's activation.

target: String

Specify the target gateway of the hostname.

cloudflare_web3_hostnames

data "cloudflare_web3_hostnames" "example_web3_hostnames" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}