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-statuses string[] required

A set of host statuses to filter the results by (for example, healthy, updating).

Repeatable: pass --host-statuses multiple times to supply more than one value

--page number
The page number to return.
--page-size number
The number of endpoints to return per page.
--kuery string
A KQL string to filter the endpoint metadata results.
--sort-field enum

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-direction enum

The sort order, either asc or desc.

Values: asc, desc

--input-file string
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