Create Attack discovery schedule
Technical Preview; added in 9.2.0
Spaces method and path for this operation:
post /s/{space_id}/api/attack_discovery/schedules
Refer to Spaces for more information.
Creates a new Attack discovery schedule that analyzes security alerts at specified intervals. The schedule defines when and how Attack discovery analysis should run, including which alerts to analyze, which AI connector to use, and what actions to take when discoveries are found. Technical preview
POST
/api/attack_discovery/schedules
curl \
--request POST 'http://localhost:5601/api/attack_discovery/schedules' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"name": "Daily Security Analysis",
"enabled": true,
"params": {
"alerts_index_pattern": ".alerts-security.alerts-default",
"api_config": {
"actionTypeId": "bedrock",
"connectorId": "my-bedrock-connector",
"name": "Claude 3.5 Sonnet"
},
"size": 100,
"start": "now-24h",
"end": "now"
},
"schedule": {
"interval": "24h"
},
"actions": [
{
"action_type_id": ".cases",
"id": "system-connector-.cases",
"params": {
"subAction": "run",
"subActionParams": {
"timeWindow": "7d",
"reopenClosedCases": false,
"groupingBy": [],
"templateId": null
}
},
"uuid": "12345678-1234-1234-1234-123456789012"
}
]
}'
Request example
{
"name": "Daily Security Analysis",
"params": {
"end": "now",
"size": 100,
"start": "now-24h",
"api_config": {
"name": "Claude 3.5 Sonnet",
"connectorId": "my-bedrock-connector",
"actionTypeId": "bedrock"
},
"alerts_index_pattern": ".alerts-security.alerts-default"
},
"actions": [],
"enabled": true,
"schedule": {
"interval": "24h"
}
}
Response examples (200)
{
"id": "12345678-1234-1234-1234-123456789012",
"name": "Daily Security Analysis",
"params": {
"end": "now",
"size": 100,
"start": "now-24h",
"api_config": {
"name": "Claude 3.5 Sonnet",
"connectorId": "my-bedrock-connector",
"actionTypeId": "bedrock"
},
"alerts_index_pattern": ".alerts-security.alerts-default"
},
"actions": [],
"enabled": true,
"schedule": {
"interval": "24h"
},
"created_at": "2023-10-31T10:00:00.000Z",
"created_by": "elastic",
"updated_at": "2023-10-31T10:00:00.000Z",
"updated_by": "elastic"
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid request parameters",
"status_code": 400
}