GET /api/osquery/packs
curl \ --request GET 'https://<KIBANA_URL>/api/osquery/packs' \ --header "Authorization: $API_KEY"
Response examples (200)
{ "data": [ { "id": "42ba9c50-0cc5-11ed-aa1d-2b27890bc90d", "type": "osquery-pack", "attributes": { "name": "My Pack", "enabled": true, "queries": [ { "id": "uptime", "query": "select * from uptime;", "interval": "3600", "ecs_mapping": [ { "host.uptime": { "field": "total_seconds" } } ] } ], "created_at": "2023-10-31T00:00:00Z", "created_by": "elastic", "updated_at": "2023-10-31T00:00:00Z", "updated_by": "elastic", "description": "My pack description" }, "namespaces": [ "default" ] } ], "page": 1, "total": 1, "pageSize": 10, "policy_ids": [] }