Reads an event
Deprecated
client.cloudforceOne.threatEvents.get(stringeventId, ThreatEventGetParams { account_id } params, RequestOptionsoptions?): ThreatEventGetResponse { attacker, attackerCountry, category, 24 more }
GET/accounts/{account_id}/cloudforce-one/events/{event_id}
This Method is deprecated. Please use /events/dataset/:dataset_id/events/:event_id instead.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Reads an event
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const threatEvent = await client.cloudforceOne.threatEvents.get('event_id', {
account_id: 'account_id',
});
console.log(threatEvent.uuid);{
"attacker": "Flying Yeti",
"attackerCountry": "CN",
"category": "Domain Resolution",
"datasetId": "dataset-example-id",
"date": "2022-04-01T00:00:00Z",
"event": "An attacker registered the domain domain.com",
"hasChildren": true,
"indicator": "domain.com",
"indicatorType": "domain",
"indicatorTypeId": 5,
"killChain": 0,
"mitreAttack": [
" "
],
"mitreCapec": [
" "
],
"numReferenced": 0,
"numReferences": 0,
"rawId": "453gw34w3",
"referenced": [
" "
],
"referencedIds": [
0
],
"references": [
" "
],
"referencesIds": [
0
],
"tags": [
"malware"
],
"targetCountry": "US",
"targetIndustry": "Agriculture",
"tlp": "amber",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"insight": "insight",
"releasabilityId": "releasabilityId"
}Returns Examples
{
"attacker": "Flying Yeti",
"attackerCountry": "CN",
"category": "Domain Resolution",
"datasetId": "dataset-example-id",
"date": "2022-04-01T00:00:00Z",
"event": "An attacker registered the domain domain.com",
"hasChildren": true,
"indicator": "domain.com",
"indicatorType": "domain",
"indicatorTypeId": 5,
"killChain": 0,
"mitreAttack": [
" "
],
"mitreCapec": [
" "
],
"numReferenced": 0,
"numReferences": 0,
"rawId": "453gw34w3",
"referenced": [
" "
],
"referencedIds": [
0
],
"references": [
" "
],
"referencesIds": [
0
],
"tags": [
"malware"
],
"targetCountry": "US",
"targetIndustry": "Agriculture",
"tlp": "amber",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"insight": "insight",
"releasabilityId": "releasabilityId"
}