---
title: Web3
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/terraform)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Web3

#### Web3Hostnames

#### resource cloudflare\_web3\_hostname

##### required Expand Collapse

zone\_id: String

Specify the identifier of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

name: String

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

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

target: String

Specify the target gateway of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20target>)

##### optional Expand Collapse

description?: String

Specify an optional description of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20description>)

dnslink?: String

Specify the DNSLink value used if the target is ipfs.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20dnslink>)

##### computed Expand Collapse

id: String

Specify the identifier of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created\_on: Time

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

modified\_on: Time

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_on>)

status: String

Specifies the status of the hostname’s activation.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

### cloudflare\_web3\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20identifier>)

zone\_id: String

Specify the identifier of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Specify the identifier of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created\_on: Time

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

description: String

Specify an optional description of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20description>)

dnslink: String

Specify the DNSLink value used if the target is ipfs.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dnslink>)

modified\_on: Time

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified_on>)

name: String

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

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

status: String

Specifies the status of the hostname’s activation.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

target: String

Specify the target gateway of the hostname.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target>)

### cloudflare\_web3\_hostname

Terraform

HTTPTypeScriptPythonGoTerraform

```
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.

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Specify the identifier of the hostname.

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created\_on: Time

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

description: String

Specify an optional description of the hostname.

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20description">Link to this property</a>

dnslink: String

Specify the DNSLink value used if the target is ipfs.

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20dnslink">Link to this property</a>

modified\_on: Time

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_on">Link to this property</a>

name: String

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

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

status: String

Specifies the status of the hostname’s activation.

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20status">Link to this property</a>

target: String

Specify the target gateway of the hostname.

<a href="#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20target">Link to this property</a>

</details>

[Link to this property](<#(resource)%20web3.hostnames%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_web3\_hostnames

Terraform

HTTPTypeScriptPythonGoTerraform

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