@elastic/list-detection-rules
List all security detection rules
RUN SKILL list_detection_rules()With parameters:
RUN SKILL list_detection_rules WITH enabled = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| enabled | STRING | — | Filter: true or false |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL list_detection_rules()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}