stack kb synthetics post-private-location cli command
Auth required
elastic stack kb synthetics post-private-location \
--agent-policy-id <agent-policy-id> \
--label <label> \
[options]
Create a private location
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--agent-policy-idstringrequired- The ID of the agent policy associated with the private location.
--labelstringrequired- A label for the private location.
--geostring- Geographic coordinates (WGS84) for the location.
--spacesstring[]-
An array of space IDs where the private location is available. If it is not provided, the private location is available in all spaces.
Repeatable: pass
--spacesmultiple times to supply more than one value -
An array of tags to categorize the private location.
Repeatable: pass
--tagsmultiple times to supply more than one value --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)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON