Skip to main content

threat_events

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

Overview

Namethreat_events
TypeResource
Idcloudflare.cloudforce_one.threat_events

Fields

The following fields are returned by SELECT queries:

Returns an event.

NameDatatypeDescription
attackerstring
attackerCountrystring
categorystring
datasetIdstring
datestring
eventstring
hasChildrenboolean
indicatorstring
indicatorTypestring
indicatorTypeIdnumber
insightstring
killChainnumber
mitreAttackarray
mitreCapecarray
numReferencednumber
numReferencesnumber
rawIdstring
referencedarray
referencedIdsarray
referencesarray
referencesIdsarray
releasabilityIdstring
tagsarray
targetCountrystring
targetIndustrystring
tlpstring
uuidstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, event_idThis Method is deprecated. Please use /events/dataset/:dataset_id/events/:event_id instead.
listselectaccount_idcursor, search, page, pageSize, orderBy, order, datasetId, forceRefresh, formatUse datasetId=all or datasetId=* to query all event datasets for the account (limited to 10). When datasetId is unspecified, events are listed from the default Cloudforce One Threat Events dataset. To list existing datasets, use the List Datasets endpoint.
bulk_createinsertaccount_id, data, datasetIdThe datasetId parameter must be defined. To list existing datasets (and their IDs) in your account, use the List Datasets endpoint.
editupdateaccount_id, event_id, datasetId

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.
event_idstringThe event ID.
cursorstring
datasetIdarray
forceRefreshboolean
formatstring
orderstring
orderBystring
pagenumber
pageSizenumber

SELECT examples

This Method is deprecated. Please use /events/dataset/:dataset_id/events/:event_id instead.

SELECT
attacker,
attackerCountry,
category,
datasetId,
date,
event,
hasChildren,
indicator,
indicatorType,
indicatorTypeId,
insight,
killChain,
mitreAttack,
mitreCapec,
numReferenced,
numReferences,
rawId,
referenced,
referencedIds,
references,
referencesIds,
releasabilityId,
tags,
targetCountry,
targetIndustry,
tlp,
uuid
FROM cloudflare.cloudforce_one.threat_events
WHERE account_id = '{{ account_id }}' -- required
AND event_id = '{{ event_id }}' -- required
;

INSERT examples

The datasetId parameter must be defined. To list existing datasets (and their IDs) in your account, use the List Datasets endpoint.

INSERT INTO cloudflare.cloudforce_one.threat_events (
data,
datasetId,
includeCreatedEvents,
account_id
)
SELECT
'{{ data }}' /* required */,
'{{ datasetId }}' /* required */,
{{ includeCreatedEvents }},
'{{ account_id }}'
RETURNING
createBulkEventsRequestId,
createdEvents,
createdEventsCount,
createdTagsCount,
errorCount,
errors,
queuedIndicatorsCount
;

UPDATE examples

No description available.

UPDATE cloudflare.cloudforce_one.threat_events
SET
attacker = '{{ attacker }}',
attackerCountry = '{{ attackerCountry }}',
category = '{{ category }}',
createdAt = '{{ createdAt }}',
datasetId = '{{ datasetId }}',
date = '{{ date }}',
event = '{{ event }}',
indicator = '{{ indicator }}',
indicatorType = '{{ indicatorType }}',
insight = '{{ insight }}',
raw = '{{ raw }}',
targetCountry = '{{ targetCountry }}',
targetIndustry = '{{ targetIndustry }}',
tlp = '{{ tlp }}'
WHERE
account_id = '{{ account_id }}' --required
AND event_id = '{{ event_id }}' --required
AND datasetId = '{{ datasetId }}' --required
RETURNING
attacker,
attackerCountry,
category,
datasetId,
date,
event,
hasChildren,
indicator,
indicatorType,
indicatorTypeId,
insight,
killChain,
mitreAttack,
mitreCapec,
numReferenced,
numReferences,
rawId,
referenced,
referencedIds,
references,
referencesIds,
releasabilityId,
tags,
targetCountry,
targetIndustry,
tlp,
uuid;