Skip to main content

events

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

Overview

Nameevents
TypeResource
Idcloudflare.cloudforce_one.events

Fields

The following fields are returned by SELECT queries:

Returns the 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, dataset_id, event_idRetrieves a specific event by its UUID.
post_event_updateinsertaccount_id, event_id, datasetId
create_graphqlexecaccount_idExecute GraphQL aggregations over threat events. Supports multi-dimensional group-bys, optional date range filtering, and multi-dataset aggregation.
delete_relateexecaccount_id, event_id
delete_deleteexecaccount_id, dataset_ideventIds
create_graphql_v2execaccount_idExecute GraphQL aggregations over threat events. Supports multi-dimensional group-bys, optional date range filtering, and multi-dataset aggregation.

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.
dataset_idstringThe dataset ID.
event_idstringThe event ID.
eventIdsarrayArray of Event IDs to delete.

SELECT examples

Retrieves a specific event by its UUID.

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.events
WHERE account_id = '{{ account_id }}' -- required
AND dataset_id = '{{ dataset_id }}' -- required
AND event_id = '{{ event_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO cloudflare.cloudforce_one.events (
attacker,
attackerCountry,
category,
createdAt,
datasetId,
date,
event,
indicator,
indicatorType,
insight,
raw,
targetCountry,
targetIndustry,
tlp,
account_id,
event_id
)
SELECT
'{{ attacker }}',
'{{ attackerCountry }}',
'{{ category }}',
'{{ createdAt }}',
'{{ datasetId }}' /* required */,
'{{ date }}',
'{{ event }}',
'{{ indicator }}',
'{{ indicatorType }}',
'{{ insight }}',
'{{ raw }}',
'{{ targetCountry }}',
'{{ targetIndustry }}',
'{{ tlp }}',
'{{ account_id }}',
'{{ event_id }}'
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
;

Lifecycle Methods

Execute GraphQL aggregations over threat events. Supports multi-dimensional group-bys, optional date range filtering, and multi-dataset aggregation.

EXEC cloudflare.cloudforce_one.events.create_graphql
@account_id='{{ account_id }}' --required
;