Skip to main content

indicator_feeds

Creates, updates, deletes, gets or lists an indicator_feeds resource.

Overview

Nameindicator_feeds
TypeResource
Idcloudflare.intel.indicator_feeds

Fields

The following fields are returned by SELECT queries:

Get indicator feed metadata

NameDatatypeDescription
idintegerThe unique identifier for the indicator feed
namestringThe name of the indicator feed
provider_idstringThe unique identifier for the provider
provider_namestringThe provider of the indicator feed
created_onstring (date-time)The date and time when the data entry was created
descriptionstringThe description of the example test
is_attributablebooleanWhether the indicator feed can be attributed to a provider
is_downloadablebooleanWhether the indicator feed can be downloaded
is_publicbooleanWhether the indicator feed is exposed to customers
latest_upload_statusstringStatus of the latest snapshot uploaded (Mirroring, Unifying, Loading, Provisioning, Complete, Error)
modified_onstring (date-time)The date and time when the data entry was last modified

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, feed_idRetrieves details for a specific custom threat indicator feed.
createinsertaccount_idCreates a new custom threat indicator feed for sharing threat intelligence data.
updatereplaceaccount_id, feed_idRevises details for a specific custom threat indicator feed.
snapshotexecaccount_id, feed_idRevises the raw data entries in a custom threat indicator feed.

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
account_idstringThe Cloudflare account ID.
feed_idstringThe Intel indicator feed ID.

SELECT examples

Retrieves details for a specific custom threat indicator feed.

SELECT
id,
name,
provider_id,
provider_name,
created_on,
description,
is_attributable,
is_downloadable,
is_public,
latest_upload_status,
modified_on
FROM cloudflare.intel.indicator_feeds
WHERE account_id = '{{ account_id }}' -- required
AND feed_id = '{{ feed_id }}' -- required
;

INSERT examples

Creates a new custom threat indicator feed for sharing threat intelligence data.

INSERT INTO cloudflare.intel.indicator_feeds (
description,
name,
account_id
)
SELECT
'{{ description }}',
'{{ name }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Revises details for a specific custom threat indicator feed.

REPLACE cloudflare.intel.indicator_feeds
SET
description = '{{ description }}',
is_attributable = {{ is_attributable }},
is_downloadable = {{ is_downloadable }},
is_public = {{ is_public }},
name = '{{ name }}'
WHERE
account_id = '{{ account_id }}' --required
AND feed_id = '{{ feed_id }}' --required
RETURNING
errors,
messages,
result,
success;

Lifecycle Methods

Revises the raw data entries in a custom threat indicator feed.

EXEC cloudflare.intel.indicator_feeds.snapshot
@account_id='{{ account_id }}' --required,
@feed_id='{{ feed_id }}' --required
@@json=
'{
"source": "{{ source }}"
}'
;