stack kb security-endpoint-management-api get-endpoint-metadata-list cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-endpoint-management-api get-endpoint-metadata-list \
--host-statuses <host-statuses> \
[options]
Get a metadata list
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--host-statusesstring[]required-
A set of host statuses to filter the results by (for example,
healthy,updating).Repeatable: pass
--host-statusesmultiple times to supply more than one value --pagenumber- The page number to return.
--page-sizenumber- The number of endpoints to return per page.
--kuerystring- A KQL string to filter the endpoint metadata results.
--sort-fieldenum-
The field used to sort the results.
Values: 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, last_checkin
--sort-directionenum-
The sort order, either
ascordesc.Values: asc, desc
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON