Spaces method and path for this operation:
Refer to Spaces for more information.
Get a list of all endpoint host metadata.
Query parameters
-
The page number to return.
Minimum value is
1. Default value is1. -
The number of endpoints to return per page.
Minimum value is
1, maximum value is100. Default value is10. -
A KQL string to filter the endpoint metadata results.
-
A set of host statuses to filter the results by (for example,
healthy,updating).Not more than
20elements. Values arehealthy,offline,updating,inactive, orunenrolled. -
The field used to sort the results.
Values are
enrolled_at,metadata.host.hostname,host_status,metadata.Endpoint.policy.applied.name,metadata.Endpoint.policy.applied.status,metadata.host.os.name,metadata.host.ip,metadata.agent.version, orlast_checkin. -
The sort order, either
ascordesc.Values are
ascordesc.
curl \
--request GET 'https://localhost:5601/api/endpoint/metadata?hostStatuses=healthy&hostStatuses=updating' \
--header "Authorization: $API_KEY"
{
"data": [
{
"host_status": "healthy",
"last_checkin": "2023-07-04T15:47:57.432Z",
"metadata": {
"agent": {
"id": "285297c6-3bff-4b83-9a07-f3e749801123",
"type": "endpoint",
"version": "8.10.0"
},
"Endpoint": {
"policy": {
"applied": {
"id": "d5371dcd-93b7-4627-af88-4084f7d6aa3e",
"name": "test",
"status": "success"
}
},
"status": "enrolled"
},
"host": {
"hostname": "WinDev2104Eval",
"os": {
"name": "Windows",
"platform": "windows",
"version": "20H2"
}
}
}
}
],
"page": 0,
"pageSize": 10,
"sortDirection": "desc",
"sortField": "enrolled_at",
"total": 1
}