Spaces method and path for this operation:
get /s/{space_id}/api/attack_discovery/schedules/_find
Refer to Spaces for more information.
Find Attack Discovery schedules that match the search criteria. Supports pagination and sorting by various fields.
Query parameters
-
Page number to return (used for pagination). Defaults to 1.
-
Number of Attack Discovery schedules to return per page (used for pagination). Defaults to 10.
-
Field used to sort results. Common fields include 'name', 'created_at', 'updated_at', and 'enabled'.
Minimum length is
1. -
Sort order direction. Use 'asc' for ascending or 'desc' for descending. Defaults to 'asc'.
Values are
ascordesc.
GET
/api/attack_discovery/schedules/_find
curl \
--request GET 'http://localhost:5601/api/attack_discovery/schedules/_find' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
Response examples (200)
{
"data": [
{
"actions": [],
"created_at": "2023-10-31T10:00:00.000Z",
"created_by": "elastic",
"enabled": true,
"id": "12345678-1234-1234-1234-123456789012",
"name": "Daily Security Analysis",
"params": {
"alerts_index_pattern": ".alerts-security.alerts-default",
"api_config": {
"actionTypeId": "bedrock",
"connectorId": "my-bedrock-connector",
"name": "Claude 3.5 Sonnet"
},
"end": "now",
"size": 100,
"start": "now-24h"
},
"schedule": {
"interval": "24h"
},
"updated_at": "2023-10-31T10:00:00.000Z",
"updated_by": "elastic"
}
],
"page": 1,
"per_page": 10,
"total": 1
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid request payload.",
"status_code": 400
}