Get packs
Spaces method and path for this operation:
<div><span class="operation-verb get">get</span> <span class="operation-path">/s/{space_id}/api/osquery/packs</span></div>Refer to Spaces for more information.
Get a list of all query packs.
Query parameters
The page number to return. The default is 1.
The page number to return.
The number of results to return per page. The default is 20.
The number of results to return per page.
The field that is used to sort the results.
The field to sort results by.
Specifies the sort order.
The sort order.
Response
Indicates a successful call.
Example response
{
"data": [
{
"created_at": "2023-10-31T00:00:00Z",
"created_by": "elastic",
"created_by_profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"description": "My pack description",
"enabled": true,
"name": "My Pack",
"policy_ids": [],
"queries": [
{
"ecs_mapping": [
{
"key": "host.uptime",
"value": {
"field": "total_seconds"
}
}
],
"id": "uptime",
"interval": 3600,
"query": "select * from uptime;"
}
],
"read_only": false,
"saved_object_id": "42ba9c50-0cc5-11ed-aa1d-2b27890bc90d",
"updated_at": "2023-10-31T00:00:00Z",
"updated_by": "elastic",
"updated_by_profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0"
}
],
"page": 1,
"per_page": 10,
"total": 1
}Changes
Changed in 1 of the 176 revisions of this API.5
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
Of the 176 revisions, 20 have no diff computed.