---
title: Reads an event
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Cloudforce One](https://developers.cloudflare.com/api/go/resources/cloudforce_one)

[Threat Events](https://developers.cloudflare.com/api/go/resources/cloudforce_one/subresources/threat_events)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Reads an event

Deprecated: Use datasets.events.get instead (GET /accounts/{account\_id}/cloudforce-one/events/dataset/{dataset\_id}/events/{event\_id}).

client.CloudforceOne.ThreatEvents.Get(ctx, eventID, query) (\*[ThreatEventGetResponse](<https://developers.cloudflare.com/api/go/resources/cloudforce_one#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)>), error)

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](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

##### Accepted Permissions (at least one required)

`Cloudforce One Write``Cloudforce One Read`

##### ParametersExpand Collapse

eventID string

Event UUID.

[Link to this property](<#(resource)%20cloudforce_one.threat_events%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20event_id%20%3E%20(schema)>)

<details>

<summary>

query ThreatEventGetParams

</summary>

AccountID param.Field\[string]

Account ID.

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.threat_events%20%3E%20(method)%20get%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ThreatEventGetResponse struct{…}

</summary>

Attacker string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20attacker">Link to this property</a>

AttackerCountry string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20attackerCountry">Link to this property</a>

AttackerCountryAlpha3 string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20attackerCountryAlpha3">Link to this property</a>

Category string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20category">Link to this property</a>

DatasetID string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20datasetId">Link to this property</a>

Date string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20date">Link to this property</a>

Event string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20event">Link to this property</a>

HasChildren bool

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20hasChildren">Link to this property</a>

Indicator string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20indicator">Link to this property</a>

IndicatorType string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20indicatorType">Link to this property</a>

IndicatorTypeID float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20indicatorTypeId">Link to this property</a>

KillChain float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20killChain">Link to this property</a>

MitreAttack \[]string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20mitreAttack">Link to this property</a>

MitreCapec \[]string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20mitreCapec">Link to this property</a>

NumReferenced float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20numReferenced">Link to this property</a>

NumReferences float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20numReferences">Link to this property</a>

RawID string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20rawId">Link to this property</a>

Referenced \[]string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20referenced">Link to this property</a>

ReferencedIDs \[]float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20referencedIds">Link to this property</a>

References \[]string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20references">Link to this property</a>

ReferencesIDs \[]float64

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20referencesIds">Link to this property</a>

Tags \[]string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20tags">Link to this property</a>

TargetCountry string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20targetCountry">Link to this property</a>

TargetCountryAlpha3 string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20targetCountryAlpha3">Link to this property</a>

TargetIndustry string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20targetIndustry">Link to this property</a>

TLP string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20tlp">Link to this property</a>

UUID string

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20uuid">Link to this property</a>

Insight stringOptional

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20insight">Link to this property</a>

ReleasabilityID stringOptional

<a href="#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)%20%3E%20(property)%20releasabilityId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.threat_events%20%3E%20(model)%20ThreatEventGetResponse%20%3E%20(schema)>)

### Reads an event

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/cloudforce_one"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  threatEvent, err := client.CloudforceOne.ThreatEvents.Get(
    context.TODO(),
    "event_id",
    cloudforce_one.ThreatEventGetParams{
      AccountID: cloudflare.F("account_id"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", threatEvent.UUID)
}
```

200 example

```
{
  "attacker": "Flying Yeti",
  "attackerCountry": "CN",
  "attackerCountryAlpha3": "CHN",
  "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",
  "targetCountryAlpha3": "USA",
  "targetIndustry": "Agriculture",
  "tlp": "amber",
  "uuid": "12345678-1234-1234-1234-1234567890ab",
  "insight": "insight",
  "releasabilityId": "releasabilityId"
}
```

##### Returns Examples

200 example

```
{
  "attacker": "Flying Yeti",
  "attackerCountry": "CN",
  "attackerCountryAlpha3": "CHN",
  "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",
  "targetCountryAlpha3": "USA",
  "targetIndustry": "Agriculture",
  "tlp": "amber",
  "uuid": "12345678-1234-1234-1234-1234567890ab",
  "insight": "insight",
  "releasabilityId": "releasabilityId"
}
```