Spaces method and path for this operation:
get /s/{space_id}/api/osquery/packs
Refer to Spaces for more information.
Get a list of all query packs.
GET
/api/osquery/packs
curl \
--request GET 'https://<KIBANA_URL>/api/osquery/packs' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"created_at": "2025-02-26T13:37:30.452Z",
"created_by": "elastic",
"description": "My pack",
"enabled": true,
"name": "my_pack",
"queries": [
{
"id": "ports",
"interval": 60,
"query": "SELECT * FROM listening_ports;",
"removed": false,
"snapshot": true,
"timeout": 120
}
],
"saved_object_id": "1c266590-381f-428c-878f-c80c1334f856",
"updated_at": "2025-02-26T13:37:30.452Z",
"updated_by": "elastic",
"version": 1
}
],
"page": 1,
"per_page": 20,
"total": 1
}