Reads raw data for an event by UUID
client.CloudforceOne.ThreatEvents.Datasets.Raw(ctx, datasetID, eventID, query) (*ThreatEventDatasetRawResponse, error)
GET/accounts/{account_id}/cloudforce-one/events/raw/{dataset_id}/{event_id}
Retrieves the raw data associated with an event. Searches across all shards in the dataset.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Reads raw data for an event by UUID
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/cloudflare-go"
"github.com/stainless-sdks/cloudflare-go/cloudforce_one"
"github.com/stainless-sdks/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
response, err := client.CloudforceOne.ThreatEvents.Datasets.Raw(
context.TODO(),
"dataset_id",
"event_id",
cloudforce_one.ThreatEventDatasetRawParams{
AccountID: cloudflare.F("account_id"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.ID)
}
{
"id": 1,
"accountId": 1234,
"created": "1970-01-01T00:00:00.000Z",
"data": "{\"foo\": \"bar\"}",
"source": "https://example.com",
"tlp": "amber"
}Returns Examples
{
"id": 1,
"accountId": 1234,
"created": "1970-01-01T00:00:00.000Z",
"data": "{\"foo\": \"bar\"}",
"source": "https://example.com",
"tlp": "amber"
}