stack kb synthetics get-synthetic-monitors cli command

Auth required Idempotent Scope: global
elastic stack kb synthetics get-synthetic-monitors [options]
		

Search monitors

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--query string
A free-text query string.
--filter string
Additional KQL filtering criteria.
--tags string[]

Tags to filter monitors. Accepts a string or an array of strings.

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

--monitor-types string[]

The monitor types to filter by, such as http. Accepts a string or an array of strings.

Repeatable: pass --monitor-types multiple times to supply more than one value

--locations string[]

The location IDs to filter by. Accepts a string or an array of strings.

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

--projects string[]

The projects to filter by. Accepts a string or an array of strings.

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

--schedules string[]

The schedules to filter by. Accepts a string or an array of strings.

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

--remote-names string[]

A string or an array of strings.

Repeatable: pass --remote-names multiple times to supply more than one value

--status string[]

The monitor statuses to filter by. Accepts a string or an array of strings.

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

--monitor-query-ids string[]

The monitor query IDs to filter by. Accepts a string or an array of strings.

Repeatable: pass --monitor-query-ids multiple times to supply more than one value

--config-ids string[]

The monitor config IDs to filter by. Accepts a string or an array of strings.

Repeatable: pass --config-ids multiple times to supply more than one value

--show-from-all-spaces enum

If true, return monitors from all spaces the user can access.

Values: true, false

--use-logical-and-for string[]

Apply logical AND for tags and/or locations. Accepts a string or an array.

Repeatable: pass --use-logical-and-for multiple times to supply more than one value

--date-range-start string
The start of the status window, as datemath (now-15m) or an ISO-8601 timestamp.
--date-range-end string
The end of the status window, as datemath (now) or an ISO-8601 timestamp.
--page number
The page number for paginated results.
--per-page number
The number of items to return per page.
--sort-field enum

The field to sort the results by.

Values: enabled, status, updated_at, created_at, urls, name, tags, project_id, type, schedule, journey_id

--sort-order enum

The sort order.

Values: desc, asc

--search-after string[]

A JSON array of sort values from the previous page, for cursor-based paging.

Repeatable: pass --search-after multiple times to supply more than one value

--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)
--no-validate
skip input validation and send the request as-is
--output-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json

output as JSON