You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td>The number of filters that reference this list.</td>
96
+
<td>Read only.</td>
97
+
</tr>
98
+
<tr>
99
+
<td>
100
+
<code>created_on</code><br />
101
+
<Typetext="String" />
102
+
</td>
103
+
<td>The <ahref='https://datatracker.ietf.org/doc/html/rfc3339'>RFC 3339</a> timestamp the list was created.</td>
104
+
<td>Read only.</td>
105
+
</tr>
106
+
<tr>
107
+
<td>
108
+
<code>modified_on</code><br />
109
+
<Typetext="String" />
110
+
</td>
111
+
<td>The <ahref='https://datatracker.ietf.org/doc/html/rfc3339'>RFC 3339</a> timestamp when the list was last modified.</td>
112
+
<td>Read only.</td>
113
+
</tr>
114
+
</tbody>
115
+
</table>
33
116
34
117
## List item object structure and properties
35
118
@@ -41,11 +124,11 @@ A fully populated JSON object for an IP address list item has the following stru
41
124
42
125
```json
43
126
{
44
-
"id": "7c5dae5552338874e5053f2534d2767a",
45
-
"ip": "10.0.0.1/32",
46
-
"comment": "CF DNS server",
47
-
"created_on": "2021-10-01T05:20:00.12345Z",
48
-
"modified_on": "2021-10-01T05:20:00.12345Z"
127
+
"id": "7c5dae5552338874e5053f2534d2767a",
128
+
"ip": "10.0.0.1/32",
129
+
"comment": "CF DNS server",
130
+
"created_on": "2021-10-01T05:20:00.12345Z",
131
+
"modified_on": "2021-10-01T05:20:00.12345Z"
49
132
}
50
133
```
51
134
@@ -55,12 +138,12 @@ A fully populated JSON object for a hostname list item has the following structu
55
138
56
139
```json
57
140
{
58
-
"id": "7c5dae5552338874e5053f2534d2767a",
59
-
"hostname": {
60
-
"url_hostname": "*.example.com"
61
-
},
62
-
"created_on": "2021-10-11T12:39:02Z",
63
-
"modified_on": "2021-10-11T12:39:02Z"
141
+
"id": "7c5dae5552338874e5053f2534d2767a",
142
+
"hostname": {
143
+
"url_hostname": "*.example.com"
144
+
},
145
+
"created_on": "2021-10-11T12:39:02Z",
146
+
"modified_on": "2021-10-11T12:39:02Z"
64
147
}
65
148
```
66
149
@@ -70,11 +153,11 @@ A fully populated JSON object for an ASN list item has the following structure:
70
153
71
154
```json
72
155
{
73
-
"id": "7c5dae5552338874e5053f2534d2767a",
74
-
"asn": 13335,
75
-
"comment": "My provider's ASN",
76
-
"created_on": "2021-10-11T12:39:02Z",
77
-
"modified_on": "2021-10-11T12:39:02Z"
156
+
"id": "7c5dae5552338874e5053f2534d2767a",
157
+
"asn": 13335,
158
+
"comment": "My provider's ASN",
159
+
"created_on": "2021-10-11T12:39:02Z",
160
+
"modified_on": "2021-10-11T12:39:02Z"
78
161
}
79
162
```
80
163
@@ -84,25 +167,114 @@ A fully populated JSON object for a Bulk Redirect List item has the following st
84
167
85
168
```json
86
169
{
87
-
"id": "7c5dae5552338874e5053f2534d2767a",
88
-
"redirect": {
89
-
"source_url": "https://example.com/blog",
90
-
"target_url": "https://example.com/blog/latest",
91
-
"status_code": 301,
92
-
"include_subdomains": false,
93
-
"subpath_matching": false,
94
-
"preserve_query_string": false,
95
-
"preserve_path_suffix": true
96
-
},
97
-
"created_on": "2021-10-11T12:39:02Z",
98
-
"modified_on": "2021-10-11T12:39:02Z"
170
+
"id": "7c5dae5552338874e5053f2534d2767a",
171
+
"redirect": {
172
+
"source_url": "https://example.com/blog",
173
+
"target_url": "https://example.com/blog/latest",
174
+
"status_code": 301,
175
+
"include_subdomains": false,
176
+
"subpath_matching": false,
177
+
"preserve_query_string": false,
178
+
"preserve_path_suffix": true
179
+
},
180
+
"created_on": "2021-10-11T12:39:02Z",
181
+
"modified_on": "2021-10-11T12:39:02Z"
99
182
}
100
183
```
101
184
102
185
### Properties reference
103
186
104
187
The JSON object properties for a list item are defined as follows:
105
188
106
-
189
+
{/* prettier-ignore */}
190
+
<table>
191
+
<thead>
192
+
<tr>
193
+
<th>Property</th>
194
+
<th>Description</th>
195
+
<th>Constraints</th>
196
+
</tr>
197
+
</thead>
198
+
<tbodystyle="vertical-align:top">
199
+
<tr>
200
+
<td>
201
+
<code>id</code><br />
202
+
<Typetext="String" />
203
+
</td>
204
+
<td>A UUIDv4 identifier generated by Cloudflare.</td>
205
+
<td>
206
+
<p>Unique, read only.</p>
207
+
<p>Length: 32 characters.</p>
208
+
</td>
209
+
</tr>
210
+
<tr>
211
+
<td>
212
+
<code>ip</code><br />
213
+
<Typetext="String" />
214
+
</td>
215
+
<td>An IP address or CIDR range.</td>
216
+
<td>
217
+
<p>Applies only to custom lists with IP addresses (IP lists).</p>
218
+
<p>
219
+
Any of these formats can exist in the same custom list with IP addresses:
220
+
<ul>
221
+
<li>IPv4 address</li>
222
+
<li>IPv6 (up to <code>/64</code>) address</li>
223
+
<li>IPv4 ranges as <code>/32</code> through <code>/2</code> CIDRs</li>
224
+
<li>IPv6 ranges as <code>/64</code> through <code>/4</code> CIDRs</li>
225
+
</ul>
226
+
</p>
227
+
</td>
228
+
</tr>
229
+
<tr>
230
+
<td>
231
+
<code>comment</code><br />
232
+
<Typetext="String" />
233
+
</td>
234
+
<td>An informative summary of the item.</td>
235
+
<td><p>Maximum length: 500 characters.</p></td>
236
+
</tr>
237
+
<tr>
238
+
<td>
239
+
<code>redirect</code><br />
240
+
<Typetext="Object" />
241
+
</td>
242
+
<td>An object that contains the definition of a URL redirect. Refer to <ahref="/rules/url-forwarding/bulk-redirects/reference/parameters/">URL redirect parameters</a> for details.</td>
243
+
<td><p>Applies only to Bulk Redirect Lists.</p></td>
244
+
</tr>
245
+
<tr>
246
+
<td>
247
+
<code>hostname</code><br />
248
+
<Typetext="Object" />
249
+
</td>
250
+
<td>An object containing a <code>url_hostname</code> property with a hostname value. Refer to <ahref="/waf/tools/lists/custom-lists/#lists-with-hostnames">Lists with hostnames</a> for details on the supported hostname values.</td>
251
+
<td><p>Applies only to custom lists with hostnames.</p></td>
252
+
</tr>
253
+
<tr>
254
+
<td>
255
+
<code>asn</code><br />
256
+
<Typetext="Integer" />
257
+
</td>
258
+
<td>An ASN value.</td>
259
+
<td>Applies only to custom lists with ASNs.</td>
260
+
</tr>
261
+
<tr>
262
+
<td>
263
+
<code>created_on</code><br />
264
+
<Typetext="String" />
265
+
</td>
266
+
<td>The <ahref='https://datatracker.ietf.org/doc/html/rfc3339'>RFC 3339</a> timestamp when the list was created.</td>
267
+
<td>Read only.</td>
268
+
</tr>
269
+
<tr>
270
+
<td>
271
+
<code>modified_on</code><br />
272
+
<Typetext="String" />
273
+
</td>
274
+
<td>The <ahref='https://datatracker.ietf.org/doc/html/rfc3339'>RFC 3339</a> timestamp when the item was last modified.</td>
275
+
<td>Read only.</td>
276
+
</tr>
277
+
</tbody>
278
+
</table>
107
279
108
280
For a detailed specification, refer to the [Lists API](/api/resources/rules/subresources/lists/methods/list/) documentation.
0 commit comments