Skip to main content

scan_review

Creates, updates, deletes, gets or lists a scan_review resource.

Overview

Namescan_review
TypeResource
Idcloudflare.dns.scan_review

Fields

The following fields are returned by SELECT queries:

List of discovered DNS records

NameDatatypeDescription
idstringIdentifier. (example: 023e105f4ecef8ad9ca31a8372d0c353)
namestringComplete DNS record name, including the zone name, in Punycode. (example: example.com)
commentstringComments or notes about the DNS record. This field has no effect on DNS responses. (example: Domain verification record)
comment_modified_onstring (date-time)When the record comment was last modified. Omitted if there is no comment. (example: 2024-01-01T05:20:00.12345Z, x-stainless-terraform-configurability: computed)
contentstring (ipv4)A valid IPv4 address. (example: 198.51.100.4)
created_onstring (date-time)When the record was created. (example: 2014-01-01T05:20:00.12345Z, x-stainless-terraform-configurability: computed)
dataobjectComponents of a CAA record.
metaobjectExtra Cloudflare-specific information about the record. (x-stainless-terraform-configurability: computed)
modified_onstring (date-time)When the record was last modified. (example: 2014-01-01T05:20:00.12345Z, x-stainless-terraform-configurability: computed)
prioritynumberRequired for MX and URI records; ignored for other record types (but may still be returned by the API). Records with lower priorities are preferred. This field is to be deprecated in favor of the priority field within the data map.
private_routingbooleanEnables private network routing to the origin.
proxiablebooleanWhether the record can be proxied by Cloudflare or not. (x-stainless-terraform-configurability: computed)
proxiedbooleanWhether the record is receiving the performance and security benefits of Cloudflare.
settingsobjectSettings for the DNS record.
tagsarrayCustom tags for the DNS record. This field has no effect on DNS responses. (x-stainless-collection-type: set)
tags_modified_onstring (date-time)When the record tags were last modified. Omitted if there are no tags. (example: 2025-01-01T05:20:00.12345Z, x-stainless-terraform-configurability: computed)
ttlnumberTime To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. (1)
typestringRecord type. (A) (example: A)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idRetrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via POST /scan/review. Additional records may be discovered by the scan later.
scan_reviewinsertzone_idAccept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples

Retrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via POST /scan/review. Additional records may be discovered by the scan later.

SELECT
id,
name,
comment,
comment_modified_on,
content,
created_on,
data,
meta,
modified_on,
priority,
private_routing,
proxiable,
proxied,
settings,
tags,
tags_modified_on,
ttl,
type
FROM cloudflare.dns.scan_review
WHERE zone_id = '{{ zone_id }}' -- required
;

INSERT examples

Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.

INSERT INTO cloudflare.dns.scan_review (
accepts,
rejects,
zone_id
)
SELECT
'{{ accepts }}',
'{{ rejects }}',
'{{ zone_id }}'
RETURNING
errors,
messages,
result,
success
;