Creates bulk DOS event with relationships and indicators
cloudforce_one.threat_events.bulk_create_relationships(ThreatEventBulkCreateRelationshipsParams**kwargs) -> ThreatEventBulkCreateRelationshipsResponse
POST/accounts/{account_id}/cloudforce-one/events/create/bulk/relationships
This method is deprecated. Please use event_create_bulk instead
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Creates bulk DOS event with relationships and indicators
import os
from datetime import datetime
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
response = client.cloudforce_one.threat_events.bulk_create_relationships(
account_id="account_id",
data=[{
"category": "Domain Resolution",
"date": datetime.fromisoformat("2022-04-01T00:00:00"),
"event": "An attacker registered the domain domain.com",
"raw": {
"data": {
"foo": "bar"
}
},
"tlp": "amber",
}],
dataset_id="durableObjectName",
)
print(response.created_events_count){
"createdEventsCount": 0,
"createdIndicatorsCount": 0,
"createdRelationshipsCount": 0,
"errorCount": 0,
"errors": [
{
"error": "error",
"eventIndex": 0
}
]
}Returns Examples
{
"createdEventsCount": 0,
"createdIndicatorsCount": 0,
"createdRelationshipsCount": 0,
"errorCount": 0,
"errors": [
{
"error": "error",
"eventIndex": 0
}
]
}