Spaces method and path for this operation:
get /s/{space_id}/api/osquery/packs/{id}
Refer to Spaces for more information.
Get the details of a query pack using the pack ID.
GET
/api/osquery/packs/{id}
curl \
--request GET 'https://localhost:5601/api/osquery/packs/3c42c847-eb30-4452-80e0-728584042334' \
--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",
"policy_ids": [
"my_policy_id"
],
"queries": {
"ports": {
"interval": 60,
"query": "SELECT * FROM listening_ports;",
"removed": false,
"snapshot": true,
"timeout": 120
}
},
"saved_object_id": "1c266590-381f-428c-878f-c80c1334f856",
"shards": {},
"updated_at": "2025-02-26T13:37:30.452Z",
"updated_by": "elastic",
"version": 1
}
}