From a43d329fe01bfc6dea25885a244bf71290a70f45 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Fri, 4 Dec 2026 13:53:34 -0500 Subject: [PATCH 1/3] chore: update @elastic/schemas to 0.13.0 fix(kibana): rename SLO commands fix(es): add flags to nodes stats command fix(kibana): rename inference `chat-completion` flag fix(es): Added prometheus label-values and labels commands with full parameters --- NOTICE.txt | 2 +- codegen/functional/kb.ts | 4 +- codegen/functional/stack-since.json | 4 +- docs/cli/schema.json | 20364 +++++++++------- package-lock.json | 8 +- package.json | 2 +- src/es/request-builder.ts | 6 +- src/es/types.ts | 26 +- test/es/request-builder.test.ts | 55 +- test/es/types.test.ts | 24 + ...bulk_delete_op.yml => slo_bulk_delete.yml} | 8 +- ...atus_op.yml => slo_bulk_delete_status.yml} | 4 +- ..._snapshot_op.yml => slo_bulk_snapshot.yml} | 8 +- ...o_create_slo_op.yml => slo_create_slo.yml} | 6 +- ...data_op.yml => slo_delete_rollup_data.yml} | 8 +- ...o_delete_slo_op.yml => slo_delete_slo.yml} | 8 +- ...es_op.yml => slo_delete_slo_instances.yml} | 8 +- ...disable_slo_op.yml => slo_disable_slo.yml} | 8 +- ...o_enable_slo_op.yml => slo_enable_slo.yml} | 10 +- ...slo_find_slos_op.yml => slo_find_slos.yml} | 8 +- ...nitions_op.yml => slo_get_definitions.yml} | 8 +- .../{slo_get_slo_op.yml => slo_get_slo.yml} | 8 +- ...t_snapshot_op.yml => slo_get_snapshot.yml} | 8 +- ...slo_reset_slo_op.yml => slo_reset_slo.yml} | 8 +- ...o_update_slo_op.yml => slo_update_slo.yml} | 8 +- test/kb/request-builder.test.ts | 6 +- test/lib/manifest-drift.test.ts | 6 +- 27 files changed, 11410 insertions(+), 9213 deletions(-) rename test/functional/kb/definitions/{slo_bulk_delete_op.yml => slo_bulk_delete.yml} (91%) rename test/functional/kb/definitions/{slo_bulk_delete_status_op.yml => slo_bulk_delete_status.yml} (82%) rename test/functional/kb/definitions/{slo_bulk_snapshot_op.yml => slo_bulk_snapshot.yml} (91%) rename test/functional/kb/definitions/{slo_create_slo_op.yml => slo_create_slo.yml} (92%) rename test/functional/kb/definitions/{slo_delete_rollup_data_op.yml => slo_delete_rollup_data.yml} (91%) rename test/functional/kb/definitions/{slo_delete_slo_op.yml => slo_delete_slo.yml} (90%) rename test/functional/kb/definitions/{slo_delete_slo_instances_op.yml => slo_delete_slo_instances.yml} (90%) rename test/functional/kb/definitions/{slo_disable_slo_op.yml => slo_disable_slo.yml} (90%) rename test/functional/kb/definitions/{slo_enable_slo_op.yml => slo_enable_slo.yml} (89%) rename test/functional/kb/definitions/{slo_find_slos_op.yml => slo_find_slos.yml} (91%) rename test/functional/kb/definitions/{slo_get_definitions_op.yml => slo_get_definitions.yml} (89%) rename test/functional/kb/definitions/{slo_get_slo_op.yml => slo_get_slo.yml} (91%) rename test/functional/kb/definitions/{slo_get_snapshot_op.yml => slo_get_snapshot.yml} (91%) rename test/functional/kb/definitions/{slo_reset_slo_op.yml => slo_reset_slo.yml} (91%) rename test/functional/kb/definitions/{slo_update_slo_op.yml => slo_update_slo.yml} (91%) diff --git a/NOTICE.txt b/NOTICE.txt index ce510abf..23c89d18 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -619,7 +619,7 @@ License: UNLICENSED ------------------------------------------------------------------------ -@elastic/schemas@0.12.0 +@elastic/schemas@0.13.0 License: Apache-2.0 Repository: https://github.com/elastic/schemas-js Publisher: Elastic Client Library Maintainers diff --git a/codegen/functional/kb.ts b/codegen/functional/kb.ts index 847fd744..355b7d77 100644 --- a/codegen/functional/kb.ts +++ b/codegen/functional/kb.ts @@ -426,8 +426,8 @@ const skippedFilesStack = new Set([ "security_entity_analytics_api_schedule_risk_engine_now.yml", // 9.5.3 has no GET/POST /api/observability/slos/_snapshot routes (9.6). - "slo_bulk_snapshot_op.yml", - "slo_get_snapshot_op.yml", + "slo_bulk_snapshot.yml", + "slo_get_snapshot.yml", // Feature or route gated off in this stack config (404 / not available with // current configuration). diff --git a/codegen/functional/stack-since.json b/codegen/functional/stack-since.json index 01ec64c5..25e0236e 100644 --- a/codegen/functional/stack-since.json +++ b/codegen/functional/stack-since.json @@ -213,8 +213,8 @@ "security-osquery-api.osquery_get_scheduled_action_results": "9.4.0", "security-osquery-api.osquery_get_scheduled_query_results": "9.4.0", "security-osquery-api.osquery_get_unified_history": "9.4.0", - "slo.bulk_snapshot_op": "9.6.0", - "slo.get_snapshot_op": "9.6.0", + "slo.bulk_snapshot": "9.6.0", + "slo.get_snapshot": "9.6.0", "streams.delete_streams_name": "9.1.0", "streams.delete_streams_streamname_attachments_attachmenttype_attachmentid": "9.3.0", "streams.get_streams": "9.1.0", diff --git a/docs/cli/schema.json b/docs/cli/schema.json index 223af572..ca2ef9ac 100644 --- a/docs/cli/schema.json +++ b/docs/cli/schema.json @@ -15000,12 +15000,77 @@ ], "name": "stats", "parameters": [ + { + "role": "flag", + "name": "include-remotes", + "type": "boolean", + "required": false, + "summary": "Include remote cluster data into the response" + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "Period to wait for each node to respond.\nIf a node does not respond before its timeout expires, the response does not include its stats.\nHowever, timed out nodes are included in the response’s `_nodes.failed` property. Defaults to no timeout." + }, + { + "role": "flag", + "name": "node-id", + "type": "string", + "required": false, + "summary": "Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.", + "repeatable": true + }, + { + "role": "flag", + "name": "error-trace", + "type": "boolean", + "required": false, + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, + { + "role": "flag", + "name": "filter-path", + "type": "string", + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true + }, + { + "role": "flag", + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, + { + "role": "flag", + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], "summary": "Get cluster statistics.", @@ -30618,7 +30683,7 @@ }, { "role": "flag", - "name": "chat-completion-request", + "name": "chat-completion", "type": "string", "required": true }, @@ -30702,7 +30767,7 @@ }, { "role": "flag", - "name": "chat-completion-request", + "name": "chat-completion", "type": "string", "required": true }, @@ -46323,14 +46388,51 @@ "es", "prometheus" ], - "name": "status-buildinfo", + "name": "label-values", "parameters": [ + { + "role": "flag", + "name": "match[]", + "type": "array", + "required": false, + "summary": "Repeated series selectors, for example `up{job=\"prometheus\"}`. If you omit all of them, every series in the time range is considered.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "start", + "type": "string", + "required": false, + "summary": "The start of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to 24 hours before `end`." + }, + { + "role": "flag", + "name": "end", + "type": "string", + "required": false, + "summary": "The end of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to the current time." + }, + { + "role": "flag", + "name": "limit", + "type": "number", + "required": false, + "summary": "The maximum number of label values to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response with the `esql.query.result_truncation_max_size` setting." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the label." + }, { "role": "flag", "name": "index", "type": "string", "required": false, - "summary": "An index pattern, accepted for consistency with the other Prometheus endpoints.\nThe response doesn't depend on it." + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46383,42 +46485,58 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get Prometheus build information.", + "summary": "Get Prometheus label values.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch prometheus API commands" - }, - { - "segment": "query-rules", - "commands": [ + }, { "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "delete-rule", + "name": "labels", "parameters": [ { "role": "flag", - "name": "ruleset-id", + "name": "match[]", + "type": "array", + "required": false, + "summary": "Repeated series selectors, for example `up{job=\"prometheus\"}`. If you omit all of them, every series in the time range is considered.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "start", "type": "string", - "required": true, - "summary": "The unique identifier of the query ruleset containing the rule to delete" + "required": false, + "summary": "The start of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to 24 hours before `end`." }, { "role": "flag", - "name": "rule-id", + "name": "end", "type": "string", - "required": true, - "summary": "The unique identifier of the query rule within the specified ruleset to delete" + "required": false, + "summary": "The end of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to the current time." + }, + { + "role": "flag", + "name": "limit", + "type": "number", + "required": false, + "summary": "The maximum number of label names to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response with the `esql.query.result_truncation_max_size` setting." + }, + { + "role": "flag", + "name": "index", + "type": "string", + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46469,18 +46587,106 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get Prometheus label names.", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "prometheus" + ], + "name": "metadata", + "parameters": [ + { + "role": "flag", + "name": "metric", + "type": "string", + "required": false, + "summary": "Restricts the response to one metric name." }, { "role": "flag", - "name": "yes", + "name": "limit", + "type": "number", + "required": false, + "summary": "The maximum number of distinct metrics to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response with the `esql.query.result_truncation_max_size` setting." + }, + { + "role": "flag", + "name": "limit-per-metric", + "type": "number", + "required": false, + "summary": "The maximum number of metadata entries to return for each metric.\n`0` means no limit from the request.\nThe cluster can still truncate the response with the `esql.query.result_truncation_max_size` setting." + }, + { + "role": "flag", + "name": "index", + "type": "string", + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." + }, + { + "role": "flag", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "confirm destructive action without prompting" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, + { + "role": "flag", + "name": "filter-path", + "type": "string", + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true + }, + { + "role": "flag", + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, + { + "role": "flag", + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete a query rule.", + "summary": "Get Prometheus metric metadata.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -46490,16 +46696,44 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "delete-ruleset", + "name": "query", "parameters": [ { "role": "flag", - "name": "ruleset-id", + "name": "query", "type": "string", "required": true, - "summary": "The unique identifier of the query ruleset to delete" + "summary": "The PromQL expression to evaluate." + }, + { + "role": "flag", + "name": "time", + "type": "string", + "required": false, + "summary": "The evaluation instant, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to the current time." + }, + { + "role": "flag", + "name": "limit", + "type": "number", + "required": false, + "summary": "The maximum number of series to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response at `esql.query.timeseries_result_truncation_max_size`." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The evaluation timeout, as a number of seconds or a duration such as `30s`.\nIt must be positive: `0` is rejected with status code `400`.\nThe default and the maximum are the `xpack.prometheus.query.timeout` cluster setting.\nA request can only lower that cap.\nSet the cluster setting to `-1` to remove the default and the maximum; a positive `timeout` is then uncapped.\nWhen the timeout elapses, the response is `503` with `errorType` `timeout`." + }, + { + "role": "flag", + "name": "index", + "type": "string", + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46550,18 +46784,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a query ruleset.", + "summary": "Run a PromQL instant query.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -46571,23 +46798,44 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "get-rule", + "name": "query-exemplars", "parameters": [ { "role": "flag", - "name": "ruleset-id", + "name": "query", "type": "string", "required": true, - "summary": "The unique identifier of the query ruleset containing the rule to retrieve" + "summary": "The PromQL expression that selects the series." }, { "role": "flag", - "name": "rule-id", + "name": "start", "type": "string", "required": true, - "summary": "The unique identifier of the query rule within the specified ruleset to retrieve" + "summary": "The start of the range, as an RFC 3339 timestamp or Unix time in seconds." + }, + { + "role": "flag", + "name": "end", + "type": "string", + "required": true, + "summary": "The end of the range, as an RFC 3339 timestamp or Unix time in seconds." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The evaluation timeout, as a number of seconds or a duration such as `30s`.\nIt must be positive: `0` is rejected with status code `400`.\nThe default and the maximum are the `xpack.prometheus.query.timeout` cluster setting.\nA request can only lower that cap.\nSet the cluster setting to `-1` to remove the default and the maximum; a positive `timeout` is then uncapped.\nWhen the timeout elapses, the response is `503` with `errorType` `timeout`." + }, + { + "role": "flag", + "name": "index", + "type": "string", + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46640,7 +46888,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a query rule.", + "summary": "Query Prometheus exemplars.", "intent": { "destructive": false, "idempotent": true, @@ -46652,16 +46900,58 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "get-ruleset", + "name": "query-range", "parameters": [ { "role": "flag", - "name": "ruleset-id", + "name": "query", "type": "string", "required": true, - "summary": "The unique identifier of the query ruleset" + "summary": "The PromQL expression to evaluate." + }, + { + "role": "flag", + "name": "start", + "type": "string", + "required": true, + "summary": "The start of the range, as an RFC 3339 timestamp or Unix time in seconds." + }, + { + "role": "flag", + "name": "end", + "type": "string", + "required": true, + "summary": "The end of the range, as an RFC 3339 timestamp or Unix time in seconds." + }, + { + "role": "flag", + "name": "step", + "type": "string", + "required": true, + "summary": "The resolution between samples, as a number of seconds or a duration such as `30s` or `1h30m`.\nIf `(end - start) / step` is greater than 11,000, or the division overflows, the response is `400` with `errorType` `bad_data`." + }, + { + "role": "flag", + "name": "limit", + "type": "number", + "required": false, + "summary": "The maximum number of series to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response at `esql.query.timeseries_result_truncation_max_size`." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The evaluation timeout, as a number of seconds or a duration such as `30s`.\nIt must be positive: `0` is rejected with status code `400`.\nThe default and the maximum are the `xpack.prometheus.query.timeout` cluster setting.\nA request can only lower that cap.\nSet the cluster setting to `-1` to remove the default and the maximum; a positive `timeout` is then uncapped.\nWhen the timeout elapses, the response is `503` with `errorType` `timeout`." + }, + { + "role": "flag", + "name": "index", + "type": "string", + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46714,7 +47004,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a query ruleset.", + "summary": "Run a PromQL range query.", "intent": { "destructive": false, "idempotent": true, @@ -46726,23 +47016,30 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "list-rulesets", + "name": "remote-write", "parameters": [ { "role": "flag", - "name": "from", - "type": "number", + "name": "write-message", + "type": "string", + "required": true, + "summary": "A Prometheus remote write 1.0 `WriteRequest` protobuf message, usually snappy-compressed." + }, + { + "role": "flag", + "name": "dataset", + "type": "string", "required": false, - "summary": "The offset from the first result to fetch." + "summary": "The data stream dataset. The value is sanitized rather than rejected." }, { "role": "flag", - "name": "size", - "type": "number", + "name": "namespace", + "type": "string", "required": false, - "summary": "The maximum number of results to retrieve." + "summary": "The data stream namespace. The value is sanitized rather than rejected." }, { "role": "flag", @@ -46795,11 +47092,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get all query rulesets.", + "summary": "Ingest Prometheus remote write data.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -46807,56 +47101,46 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "put-rule", + "name": "series", "parameters": [ { "role": "flag", - "name": "type", - "type": "enum", + "name": "match[]", + "type": "array", "required": true, - "summary": "The type of rule.", - "enumValues": [ - "pinned", - "exclude" - ] + "summary": "Repeated series selectors, for example `up{job=\"prometheus\"}`. At least one is required.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "criteria", + "name": "start", "type": "string", - "required": true, - "summary": "The criteria that must be met for the rule to be applied.\nIf multiple criteria are specified for a rule, all criteria must be met for the rule to be applied.", - "repeatable": true, - "separator": "," + "required": false, + "summary": "The start of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to 24 hours before `end`." }, { "role": "flag", - "name": "actions", + "name": "end", "type": "string", - "required": true, - "summary": "The actions to take when the rule is matched.\nThe format of this action depends on the rule type." + "required": false, + "summary": "The end of the time range, as an RFC 3339 timestamp or Unix time in seconds.\nDefaults to the current time." }, { "role": "flag", - "name": "priority", + "name": "limit", "type": "number", - "required": false - }, - { - "role": "flag", - "name": "ruleset-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the query ruleset containing the rule to be created or updated." + "required": false, + "summary": "The maximum number of series to return.\n`0` means no limit from the request.\nThe cluster can still truncate the response with the `esql.query.result_truncation_max_size` setting." }, { "role": "flag", - "name": "rule-id", + "name": "index", "type": "string", - "required": true, - "summary": "The unique identifier of the query rule within the specified ruleset to be created or updated." + "required": false, + "summary": "An index expression that restricts which indices are considered, for example `metrics-generic.prometheus-*`.\nIf you omit it, the default expression `metrics-*` is used.\nOnly indices with `index.mode: time_series` are considered.\nAn alias is accepted and index privileges are checked against that alias name." }, { "role": "flag", @@ -46909,7 +47193,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a query rule.", + "summary": "Find Prometheus series.", "intent": { "destructive": false, "idempotent": true, @@ -46921,24 +47205,16 @@ "path": [ "stack", "es", - "query-rules" + "prometheus" ], - "name": "put-ruleset", + "name": "status-buildinfo", "parameters": [ { "role": "flag", - "name": "rules", - "type": "string", - "required": true, - "repeatable": true, - "separator": "," - }, - { - "role": "flag", - "name": "ruleset-id", + "name": "index", "type": "string", - "required": true, - "summary": "The unique identifier of the query ruleset to be created or updated." + "required": false, + "summary": "An index pattern, accepted for consistency with the other Prometheus endpoints.\nThe response doesn't depend on it." }, { "role": "flag", @@ -46991,35 +47267,42 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a query ruleset.", + "summary": "Get Prometheus build information.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch prometheus API commands" + }, + { + "segment": "query-rules", + "commands": [ { "path": [ "stack", "es", "query-rules" ], - "name": "test", + "name": "delete-rule", "parameters": [ { "role": "flag", - "name": "match-criteria", + "name": "ruleset-id", "type": "string", "required": true, - "summary": "The match criteria to apply to rules in the given query ruleset.\nMatch criteria should match the keys defined in the `criteria.metadata` field of the rule." + "summary": "The unique identifier of the query ruleset containing the rule to delete" }, { "role": "flag", - "name": "ruleset-id", + "name": "rule-id", "type": "string", "required": true, - "summary": "The unique identifier of the query ruleset to be created or updated" + "summary": "The unique identifier of the query rule within the specified ruleset to delete" }, { "role": "flag", @@ -47070,34 +47353,37 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Test a query ruleset.", + "summary": "Delete a query rule.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch query-rules API commands" - }, - { - "segment": "rollup", - "commands": [ + }, { "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "delete-job", + "name": "delete-ruleset", "parameters": [ { "role": "flag", - "name": "id", + "name": "ruleset-id", "type": "string", "required": true, - "summary": "Identifier for the job." + "summary": "The unique identifier of the query ruleset to delete" }, { "role": "flag", @@ -47157,7 +47443,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a rollup job.", + "summary": "Delete a query ruleset.", "intent": { "destructive": true, "idempotent": true, @@ -47169,16 +47455,23 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "get-jobs", + "name": "get-rule", "parameters": [ { "role": "flag", - "name": "id", + "name": "ruleset-id", "type": "string", - "required": false, - "summary": "Identifier for the rollup job.\nIf it is `_all` or omitted, the API returns all rollup jobs." + "required": true, + "summary": "The unique identifier of the query ruleset containing the rule to retrieve" + }, + { + "role": "flag", + "name": "rule-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the query rule within the specified ruleset to retrieve" }, { "role": "flag", @@ -47231,7 +47524,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get rollup job information.", + "summary": "Get a query rule.", "intent": { "destructive": false, "idempotent": true, @@ -47243,16 +47536,16 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "get-rollup-caps", + "name": "get-ruleset", "parameters": [ { "role": "flag", - "name": "id", + "name": "ruleset-id", "type": "string", - "required": false, - "summary": "Index, indices or index-pattern to return rollup capabilities for.\n`_all` may be used to fetch rollup capabilities from all jobs." + "required": true, + "summary": "The unique identifier of the query ruleset" }, { "role": "flag", @@ -47305,7 +47598,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the rollup job capabilities.", + "summary": "Get a query ruleset.", "intent": { "destructive": false, "idempotent": true, @@ -47317,17 +47610,23 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "get-rollup-index-caps", + "name": "list-rulesets", "parameters": [ { "role": "flag", - "name": "index", - "type": "string", - "required": true, - "summary": "Data stream or index to check for rollup capabilities.\nWildcard (`*`) expressions are supported.", - "repeatable": true + "name": "from", + "type": "number", + "required": false, + "summary": "The offset from the first result to fetch." + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "The maximum number of results to retrieve." }, { "role": "flag", @@ -47380,7 +47679,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the rollup index capabilities.", + "summary": "Get all query rulesets.", "intent": { "destructive": false, "idempotent": true, @@ -47392,72 +47691,56 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "put-job", + "name": "put-rule", "parameters": [ { "role": "flag", - "name": "cron", - "type": "string", + "name": "type", + "type": "enum", "required": true, - "summary": "A cron string which defines the intervals when the rollup job should be executed. When the interval\ntriggers, the indexer attempts to rollup the data in the index pattern. The cron pattern is unrelated\nto the time interval of the data being rolled up. For example, you may wish to create hourly rollups\nof your document but to only run the indexer on a daily basis at midnight, as defined by the cron. The\ncron pattern is defined just like a Watcher cron schedule." + "summary": "The type of rule.", + "enumValues": [ + "pinned", + "exclude" + ] }, { "role": "flag", - "name": "groups", + "name": "criteria", "type": "string", "required": true, - "summary": "Defines the grouping fields and aggregations that are defined for this rollup job. These fields will then be\navailable later for aggregating into buckets. These aggs and fields can be used in any combination. Think of\nthe groups configuration as defining a set of tools that can later be used in aggregations to partition the\ndata. Unlike raw data, we have to think ahead to which fields and aggregations might be used. Rollups provide\nenough flexibility that you simply need to determine which fields are needed, not in what order they are needed." + "summary": "The criteria that must be met for the rule to be applied.\nIf multiple criteria are specified for a rule, all criteria must be met for the rule to be applied.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "index-pattern", + "name": "actions", "type": "string", "required": true, - "summary": "The index or index pattern to roll up. Supports wildcard-style patterns (`logstash-*`). The job attempts to\nrollup the entire index or index-pattern." - }, - { - "role": "flag", - "name": "metrics", - "type": "array", - "required": false, - "summary": "Defines the metrics to collect for each grouping tuple. By default, only the doc_counts are collected for each\ngroup. To make rollup useful, you will often add metrics like averages, mins, maxes, etc. Metrics are defined\non a per-field basis and for each field you configure which metric should be collected.", - "repeatable": true + "summary": "The actions to take when the rule is matched.\nThe format of this action depends on the rule type." }, { "role": "flag", - "name": "page-size", + "name": "priority", "type": "number", - "required": true, - "summary": "The number of bucket results that are processed on each iteration of the rollup indexer. A larger value tends\nto execute faster, but requires more memory during processing. This value has no effect on how the data is\nrolled up; it is merely used for tweaking the speed or memory cost of the indexer." + "required": false }, { "role": "flag", - "name": "rollup-index", + "name": "ruleset-id", "type": "string", "required": true, - "summary": "The index that contains the rollup results. The index can be shared with other rollup jobs. The data is stored so that it doesn’t interfere with unrelated jobs." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "Time to wait for the request to complete." - }, - { - "role": "flag", - "name": "headers", - "type": "string", - "required": false + "summary": "The unique identifier of the query ruleset containing the rule to be created or updated." }, { "role": "flag", - "name": "id", + "name": "rule-id", "type": "string", "required": true, - "summary": "Identifier for the rollup job. This can be any alphanumeric string and uniquely identifies the\ndata that is associated with the rollup job. The ID is persistent; it is stored with the rolled\nup data. If you create a job, let it run for a while, then delete the job, the data that the job\nrolled up is still be associated with this job ID. You cannot create a new job with the same ID\nsince that could lead to problems with mismatched job configurations." + "summary": "The unique identifier of the query rule within the specified ruleset to be created or updated." }, { "role": "flag", @@ -47510,7 +47793,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a rollup job.", + "summary": "Create or update a query rule.", "intent": { "destructive": false, "idempotent": true, @@ -47522,59 +47805,24 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "rollup-search", + "name": "put-ruleset", "parameters": [ { "role": "flag", - "name": "rest-total-hits-as-int", - "type": "boolean", - "required": false, - "summary": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response" - }, - { - "role": "flag", - "name": "typed-keys", - "type": "boolean", - "required": false, - "summary": "Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - { - "role": "flag", - "name": "aggregations", - "type": "string", - "required": false, - "summary": "Specifies aggregations." - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "Specifies a DSL query that is subject to some limitations." - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "Must be zero if set, as rollups work on pre-aggregated data." - }, - { - "role": "flag", - "name": "index", + "name": "rules", "type": "string", "required": true, - "summary": "A comma-separated list of data streams and indices used to limit the request.\nThis parameter has the following rules:\n\n* At least one data stream, index, or wildcard expression must be specified. This target can include a rollup or non-rollup index. For data streams, the stream's backing indices can only serve as non-rollup indices. Omitting the parameter or using `_all` are not permitted.\n* Multiple non-rollup indices may be specified.\n* Only one rollup index may be specified. If more than one are supplied, an exception occurs.\n* Wildcard expressions (`*`) may be used. If they match more than one rollup index, an exception occurs. However, you can use an expression to match multiple non-rollup indices or data streams.", - "repeatable": true + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "aggs", + "name": "ruleset-id", "type": "string", - "required": false, - "summary": "Specifies aggregations." + "required": true, + "summary": "The unique identifier of the query ruleset to be created or updated." }, { "role": "flag", @@ -47627,7 +47875,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Search rolled-up data.", + "summary": "Create or update a query ruleset.", "intent": { "destructive": false, "idempotent": true, @@ -47639,101 +47887,23 @@ "path": [ "stack", "es", - "rollup" + "query-rules" ], - "name": "start-job", + "name": "test", "parameters": [ { "role": "flag", - "name": "id", + "name": "match-criteria", "type": "string", "required": true, - "summary": "Identifier for the rollup job." - }, - { - "role": "flag", - "name": "error-trace", - "type": "boolean", - "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." - }, - { - "role": "flag", - "name": "filter-path", - "type": "string", - "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true - }, - { - "role": "flag", - "name": "human", - "type": "boolean", - "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." - }, - { - "role": "flag", - "name": "pretty", - "type": "boolean", - "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Start rollup jobs.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "rollup" - ], - "name": "stop-job", - "parameters": [ - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "If `wait_for_completion` is `true`, the API blocks for (at maximum) the specified duration while waiting for the job to stop.\nIf more than `timeout` time has passed, the API throws a timeout exception.\nNOTE: Even if a timeout occurs, the stop request is still processing and eventually moves the job to STOPPED.\nThe timeout simply means the API call itself timed out while waiting for the status change." - }, - { - "role": "flag", - "name": "wait-for-completion", - "type": "boolean", - "required": false, - "summary": "If set to `true`, causes the API to block until the indexer state completely stops.\nIf set to `false`, the API returns immediately and the indexer is stopped asynchronously in the background." + "summary": "The match criteria to apply to rules in the given query ruleset.\nMatch criteria should match the keys defined in the `criteria.metadata` field of the rule." }, { "role": "flag", - "name": "id", + "name": "ruleset-id", "type": "string", "required": true, - "summary": "Identifier for the rollup job." + "summary": "The unique identifier of the query ruleset to be created or updated" }, { "role": "flag", @@ -47786,32 +47956,32 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Stop rollup jobs.", + "summary": "Test a query ruleset.", "intent": { "requiresAuth": true } } ], "namespaces": [], - "summary": "Elasticsearch rollup API commands" + "summary": "Elasticsearch query-rules API commands" }, { - "segment": "search-application", + "segment": "rollup", "commands": [ { "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "delete", + "name": "delete-job", "parameters": [ { "role": "flag", - "name": "name", + "name": "id", "type": "string", "required": true, - "summary": "The name of the search application to delete." + "summary": "Identifier for the job." }, { "role": "flag", @@ -47871,7 +48041,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a search application.", + "summary": "Delete a rollup job.", "intent": { "destructive": true, "idempotent": true, @@ -47883,16 +48053,16 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "delete-behavioral-analytics", + "name": "get-jobs", "parameters": [ { "role": "flag", - "name": "name", + "name": "id", "type": "string", - "required": true, - "summary": "The name of the analytics collection to be deleted" + "required": false, + "summary": "Identifier for the rollup job.\nIf it is `_all` or omitted, the API returns all rollup jobs." }, { "role": "flag", @@ -47943,18 +48113,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a behavioral analytics collection.", + "summary": "Get rollup job information.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -47964,16 +48127,16 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "get", + "name": "get-rollup-caps", "parameters": [ { "role": "flag", - "name": "name", + "name": "id", "type": "string", - "required": true, - "summary": "The name of the search application" + "required": false, + "summary": "Index, indices or index-pattern to return rollup capabilities for.\n`_all` may be used to fetch rollup capabilities from all jobs." }, { "role": "flag", @@ -48026,7 +48189,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get search application details.", + "summary": "Get the rollup job capabilities.", "intent": { "destructive": false, "idempotent": true, @@ -48038,18 +48201,17 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "get-behavioral-analytics", + "name": "get-rollup-index-caps", "parameters": [ { "role": "flag", - "name": "name", - "type": "array", - "required": false, - "summary": "A list of analytics collections to limit the returned information", - "repeatable": true, - "elementType": "string" + "name": "index", + "type": "string", + "required": true, + "summary": "Data stream or index to check for rollup capabilities.\nWildcard (`*`) expressions are supported.", + "repeatable": true }, { "role": "flag", @@ -48102,7 +48264,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get behavioral analytics collections.", + "summary": "Get the rollup index capabilities.", "intent": { "destructive": false, "idempotent": true, @@ -48114,129 +48276,72 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "list", + "name": "put-job", "parameters": [ { "role": "flag", - "name": "q", + "name": "cron", "type": "string", - "required": false, - "summary": "Query in the Lucene query string syntax." - }, - { - "role": "flag", - "name": "from", - "type": "number", - "required": false, - "summary": "Starting offset." - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "Specifies a max number of results to get." + "required": true, + "summary": "A cron string which defines the intervals when the rollup job should be executed. When the interval\ntriggers, the indexer attempts to rollup the data in the index pattern. The cron pattern is unrelated\nto the time interval of the data being rolled up. For example, you may wish to create hourly rollups\nof your document but to only run the indexer on a daily basis at midnight, as defined by the cron. The\ncron pattern is defined just like a Watcher cron schedule." }, { "role": "flag", - "name": "error-trace", - "type": "boolean", - "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "name": "groups", + "type": "string", + "required": true, + "summary": "Defines the grouping fields and aggregations that are defined for this rollup job. These fields will then be\navailable later for aggregating into buckets. These aggs and fields can be used in any combination. Think of\nthe groups configuration as defining a set of tools that can later be used in aggregations to partition the\ndata. Unlike raw data, we have to think ahead to which fields and aggregations might be used. Rollups provide\nenough flexibility that you simply need to determine which fields are needed, not in what order they are needed." }, { "role": "flag", - "name": "filter-path", + "name": "index-pattern", "type": "string", - "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "required": true, + "summary": "The index or index pattern to roll up. Supports wildcard-style patterns (`logstash-*`). The job attempts to\nrollup the entire index or index-pattern." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "metrics", + "type": "array", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "Defines the metrics to collect for each grouping tuple. By default, only the doc_counts are collected for each\ngroup. To make rollup useful, you will often add metrics like averages, mins, maxes, etc. Metrics are defined\non a per-field basis and for each field you configure which metric should be collected.", + "repeatable": true }, { "role": "flag", - "name": "pretty", - "type": "boolean", - "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "name": "page-size", + "type": "number", + "required": true, + "summary": "The number of bucket results that are processed on each iteration of the rollup indexer. A larger value tends\nto execute faster, but requires more memory during processing. This value has no effect on how the data is\nrolled up; it is merely used for tweaking the speed or memory cost of the indexer." }, { "role": "flag", - "name": "input-file", + "name": "rollup-index", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "required": true, + "summary": "The index that contains the rollup results. The index can be shared with other rollup jobs. The data is stored so that it doesn’t interfere with unrelated jobs." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get search applications.", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "search-application" - ], - "name": "post-behavioral-analytics-event", - "parameters": [ - { - "role": "flag", - "name": "debug", - "type": "boolean", + "name": "timeout", + "type": "string", "required": false, - "summary": "Whether the response type has to include more details" + "summary": "Time to wait for the request to complete." }, { "role": "flag", - "name": "payload", + "name": "headers", "type": "string", - "required": true + "required": false }, { "role": "flag", - "name": "collection-name", + "name": "id", "type": "string", "required": true, - "summary": "The name of the behavioral analytics collection." - }, - { - "role": "flag", - "name": "event-type", - "type": "enum", - "required": true, - "summary": "The analytics event type.", - "enumValues": [ - "page_view", - "search", - "search_click" - ] + "summary": "Identifier for the rollup job. This can be any alphanumeric string and uniquely identifies the\ndata that is associated with the rollup job. The ID is persistent; it is stored with the rolled\nup data. If you create a job, let it run for a while, then delete the job, the data that the job\nrolled up is still be associated with this job ID. You cannot create a new job with the same ID\nsince that could lead to problems with mismatched job configurations." }, { "role": "flag", @@ -48289,8 +48394,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a behavioral analytics collection event.", + "summary": "Create a rollup job.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -48298,29 +48406,59 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "put", + "name": "rollup-search", "parameters": [ { "role": "flag", - "name": "create", + "name": "rest-total-hits-as-int", "type": "boolean", "required": false, - "summary": "If `true`, this request cannot replace or update existing Search Applications." + "summary": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response" }, { "role": "flag", - "name": "search-application", + "name": "typed-keys", + "type": "boolean", + "required": false, + "summary": "Specify whether aggregation and suggester names should be prefixed by their respective types in the response" + }, + { + "role": "flag", + "name": "aggregations", "type": "string", - "required": true + "required": false, + "summary": "Specifies aggregations." }, { "role": "flag", - "name": "name", + "name": "query", + "type": "string", + "required": false, + "summary": "Specifies a DSL query that is subject to some limitations." + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "Must be zero if set, as rollups work on pre-aggregated data." + }, + { + "role": "flag", + "name": "index", "type": "string", "required": true, - "summary": "The name of the search application to be created or updated." + "summary": "A comma-separated list of data streams and indices used to limit the request.\nThis parameter has the following rules:\n\n* At least one data stream, index, or wildcard expression must be specified. This target can include a rollup or non-rollup index. For data streams, the stream's backing indices can only serve as non-rollup indices. Omitting the parameter or using `_all` are not permitted.\n* Multiple non-rollup indices may be specified.\n* Only one rollup index may be specified. If more than one are supplied, an exception occurs.\n* Wildcard expressions (`*`) may be used. If they match more than one rollup index, an exception occurs. However, you can use an expression to match multiple non-rollup indices or data streams.", + "repeatable": true + }, + { + "role": "flag", + "name": "aggs", + "type": "string", + "required": false, + "summary": "Specifies aggregations." }, { "role": "flag", @@ -48373,7 +48511,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a search application.", + "summary": "Search rolled-up data.", "intent": { "destructive": false, "idempotent": true, @@ -48385,16 +48523,16 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "put-behavioral-analytics", + "name": "start-job", "parameters": [ { "role": "flag", - "name": "name", + "name": "id", "type": "string", "required": true, - "summary": "The name of the analytics collection to be created or updated." + "summary": "Identifier for the rollup job." }, { "role": "flag", @@ -48447,11 +48585,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a behavioral analytics collection.", + "summary": "Start rollup jobs.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -48459,22 +48594,30 @@ "path": [ "stack", "es", - "search-application" + "rollup" ], - "name": "render-query", + "name": "stop-job", "parameters": [ { "role": "flag", - "name": "params", + "name": "timeout", "type": "string", - "required": false + "required": false, + "summary": "If `wait_for_completion` is `true`, the API blocks for (at maximum) the specified duration while waiting for the job to stop.\nIf more than `timeout` time has passed, the API throws a timeout exception.\nNOTE: Even if a timeout occurs, the stop request is still processing and eventually moves the job to STOPPED.\nThe timeout simply means the API call itself timed out while waiting for the status change." }, { "role": "flag", - "name": "name", + "name": "wait-for-completion", + "type": "boolean", + "required": false, + "summary": "If set to `true`, causes the API to block until the indexer state completely stops.\nIf set to `false`, the API returns immediately and the indexer is stopped asynchronously in the background." + }, + { + "role": "flag", + "name": "id", "type": "string", "required": true, - "summary": "The name of the search application to render teh query for." + "summary": "Identifier for the rollup job." }, { "role": "flag", @@ -48527,39 +48670,32 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Render a search application query.", + "summary": "Stop rollup jobs.", "intent": { "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch rollup API commands" + }, + { + "segment": "search-application", + "commands": [ { "path": [ "stack", "es", "search-application" ], - "name": "search", + "name": "delete", "parameters": [ - { - "role": "flag", - "name": "typed-keys", - "type": "boolean", - "required": false, - "summary": "Determines whether aggregation names are prefixed by their respective types in the response." - }, - { - "role": "flag", - "name": "params", - "type": "string", - "required": false, - "summary": "Query parameters specific to this request, which will override any defaults specified in the template." - }, { "role": "flag", "name": "name", "type": "string", "required": true, - "summary": "The name of the search application to be searched." + "summary": "The name of the search application to delete." }, { "role": "flag", @@ -48610,38 +48746,37 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Run a search application search.", + "summary": "Delete a search application.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch search-application API commands" - }, - { - "segment": "searchable-snapshots", - "commands": [ + }, { "path": [ "stack", "es", - "searchable-snapshots" + "search-application" ], - "name": "cache-stats", + "name": "delete-behavioral-analytics", "parameters": [ { "role": "flag", - "name": "node-id", + "name": "name", "type": "string", - "required": false, - "summary": "The names of the nodes in the cluster to target.", - "repeatable": true + "required": true, + "summary": "The name of the analytics collection to be deleted" }, { "role": "flag", @@ -48692,11 +48827,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get cache statistics.", + "summary": "Delete a behavioral analytics collection.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -48706,46 +48848,16 @@ "path": [ "stack", "es", - "searchable-snapshots" + "search-application" ], - "name": "clear-cache", + "name": "get", "parameters": [ { "role": "flag", - "name": "expand-wildcards", - "type": "enum", - "required": false, - "summary": "Whether to expand wildcard expression to concrete indices that are open, closed or both", - "repeatable": true, - "enumValues": [ - "all", - "open", - "closed", - "hidden", - "none" - ] - }, - { - "role": "flag", - "name": "allow-no-indices", - "type": "boolean", - "required": false, - "summary": "A setting that does two separate checks on the index expression.\nIf `false`, the request returns an error (1) if any wildcard expression\n(including `_all` and `*`) resolves to zero matching indices or (2) if the\ncomplete set of resolved indices, aliases or data streams is empty after all\nexpressions are evaluated. If `true`, index expressions that resolve to no\nindices are allowed and the request returns an empty result." - }, - { - "role": "flag", - "name": "ignore-unavailable", - "type": "boolean", - "required": false, - "summary": "If `false`, the request returns an error if it targets a concrete (non-wildcarded)\nindex, alias, or data stream that is missing, closed, or otherwise unavailable.\nIf `true`, unavailable concrete targets are silently ignored." - }, - { - "role": "flag", - "name": "index", + "name": "name", "type": "string", - "required": false, - "summary": "A comma-separated list of data streams, indices, and aliases to clear from the cache.\nIt supports wildcards (`*`).", - "repeatable": true + "required": true, + "summary": "The name of the search application" }, { "role": "flag", @@ -48798,8 +48910,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clear the searchable snapshots shared cache.", + "summary": "Get search application details.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -48807,78 +48922,106 @@ "path": [ "stack", "es", - "searchable-snapshots" + "search-application" ], - "name": "mount", + "name": "get-behavioral-analytics", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", + "name": "name", + "type": "array", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "A list of analytics collections to limit the returned information", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "wait-for-completion", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "If true, the request blocks until the operation is complete." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "storage", - "type": "enum", + "name": "filter-path", + "type": "string", "required": false, - "summary": "The mount option for the searchable snapshot index.\nFor further information on mount options, refer to: [Mount options](https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/searchable-snapshots#searchable-snapshot-mount-storage-options)", - "enumValues": [ - "full_copy", - "shared_cache" - ] + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "index", - "type": "string", - "required": true, - "summary": "The name of the index contained in the snapshot whose data is to be mounted.\nIf no `renamed_index` is specified, this name will also be used to create the new index." + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "renamed-index", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "The name of the index that will be created." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "index-settings", + "name": "input-file", "type": "string", "required": false, - "summary": "The settings that should be added to the index when it is mounted." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "ignore-index-settings", - "type": "array", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "The names of settings that should be removed from the index when it is mounted.", - "repeatable": true, - "elementType": "string" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "repository", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get behavioral analytics collections.", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "search-application" + ], + "name": "list", + "parameters": [ + { + "role": "flag", + "name": "q", "type": "string", - "required": true, - "summary": "The name of the repository containing the snapshot of the index to mount." + "required": false, + "summary": "Query in the Lucene query string syntax." }, { "role": "flag", - "name": "snapshot", - "type": "string", - "required": true, - "summary": "The name of the snapshot of the index to mount." + "name": "from", + "type": "number", + "required": false, + "summary": "Starting offset." + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "Specifies a max number of results to get." }, { "role": "flag", @@ -48931,8 +49074,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Mount a snapshot.", + "summary": "Get search applications.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -48940,29 +49086,41 @@ "path": [ "stack", "es", - "searchable-snapshots" + "search-application" ], - "name": "stats", + "name": "post-behavioral-analytics-event", "parameters": [ { "role": "flag", - "name": "level", - "type": "enum", + "name": "debug", + "type": "boolean", "required": false, - "summary": "Return stats aggregated at cluster, index or shard level", - "enumValues": [ - "cluster", - "indices", - "shards" - ] + "summary": "Whether the response type has to include more details" }, { "role": "flag", - "name": "index", + "name": "payload", "type": "string", - "required": false, - "summary": "A comma-separated list of data streams and indices to retrieve statistics for.", - "repeatable": true + "required": true + }, + { + "role": "flag", + "name": "collection-name", + "type": "string", + "required": true, + "summary": "The name of the behavioral analytics collection." + }, + { + "role": "flag", + "name": "event-type", + "type": "enum", + "required": true, + "summary": "The analytics event type.", + "enumValues": [ + "page_view", + "search", + "search_click" + ] }, { "role": "flag", @@ -49015,60 +49173,38 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get searchable snapshot statistics.", + "summary": "Create a behavioral analytics collection event.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch searchable-snapshots API commands" - }, - { - "segment": "security", - "commands": [ + }, { "path": [ "stack", "es", - "security" + "search-application" ], - "name": "activate-user-profile", + "name": "put", "parameters": [ { "role": "flag", - "name": "access-token", - "type": "string", + "name": "create", + "type": "boolean", "required": false, - "summary": "The user's Elasticsearch access token or JWT.\nBoth `access` and `id` JWT token types are supported and they depend on the underlying JWT realm configuration.\nIf you specify the `access_token` grant type, this parameter is required.\nIt is not valid with other grant types." - }, - { - "role": "flag", - "name": "grant-type", - "type": "enum", - "required": true, - "summary": "The type of grant.", - "enumValues": [ - "password", - "access_token" - ] + "summary": "If `true`, this request cannot replace or update existing Search Applications." }, { "role": "flag", - "name": "password", + "name": "search-application", "type": "string", - "required": false, - "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + "required": true }, { "role": "flag", - "name": "username", + "name": "name", "type": "string", - "required": false, - "summary": "The username that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + "required": true, + "summary": "The name of the search application to be created or updated." }, { "role": "flag", @@ -49121,8 +49257,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Activate a user profile.", + "summary": "Create or update a search application.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -49130,10 +49269,17 @@ "path": [ "stack", "es", - "security" + "search-application" ], - "name": "authenticate", + "name": "put-behavioral-analytics", "parameters": [ + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the analytics collection to be created or updated." + }, { "role": "flag", "name": "error-trace", @@ -49185,7 +49331,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Authenticate a user.", + "summary": "Create a behavioral analytics collection.", "intent": { "destructive": false, "idempotent": true, @@ -49197,30 +49343,22 @@ "path": [ "stack", "es", - "security" + "search-application" ], - "name": "bulk-delete-role", + "name": "render-query", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "name": "params", + "type": "string", + "required": false }, { "role": "flag", - "name": "names", - "type": "array", + "name": "name", + "type": "string", "required": true, - "summary": "An array of role names to delete", - "repeatable": true, - "elementType": "string" + "summary": "The name of the search application to render teh query for." }, { "role": "flag", @@ -49271,20 +49409,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Bulk delete roles.", + "summary": "Render a search application query.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -49292,28 +49420,30 @@ "path": [ "stack", "es", - "security" + "search-application" ], - "name": "bulk-put-role", + "name": "search", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", + "name": "typed-keys", + "type": "boolean", "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "summary": "Determines whether aggregation names are prefixed by their respective types in the response." }, { "role": "flag", - "name": "roles", + "name": "params", + "type": "string", + "required": false, + "summary": "Query parameters specific to this request, which will override any defaults specified in the template." + }, + { + "role": "flag", + "name": "name", "type": "string", "required": true, - "summary": "A dictionary of role name to RoleDescriptor objects to add or update" + "summary": "The name of the search application to be searched." }, { "role": "flag", @@ -49366,48 +49496,36 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk create or update roles.", + "summary": "Run a search application search.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch search-application API commands" + }, + { + "segment": "searchable-snapshots", + "commands": [ { "path": [ "stack", "es", - "security" + "searchable-snapshots" ], - "name": "bulk-update-api-keys", + "name": "cache-stats", "parameters": [ { "role": "flag", - "name": "expiration", - "type": "string", - "required": false, - "summary": "Expiration time for the API keys.\nBy default, API keys never expire.\nThis property can be omitted to leave the value unchanged." - }, - { - "role": "flag", - "name": "ids", - "type": "string", - "required": true, - "summary": "The API key identifiers.", - "repeatable": true, - "separator": "," - }, - { - "role": "flag", - "name": "metadata", - "type": "string", - "required": false, - "summary": "Arbitrary nested metadata to associate with the API keys.\nWithin the `metadata` object, top-level keys beginning with an underscore (`_`) are reserved for system usage.\nAny information specified with this parameter fully replaces metadata previously associated with the API key." - }, - { - "role": "flag", - "name": "role-descriptors", + "name": "node-id", "type": "string", "required": false, - "summary": "The role descriptors to assign to the API keys.\nAn API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user.\nYou can assign new privileges by specifying them in this parameter.\nTo remove assigned privileges, supply the `role_descriptors` parameter as an empty object `{}`.\nIf an API key has no assigned privileges, it inherits the owner user's full permissions.\nThe snapshot of the owner's permissions is always updated, whether you supply the `role_descriptors` parameter.\nThe structure of a role descriptor is the same as the request for the create API keys API." + "summary": "The names of the nodes in the cluster to target.", + "repeatable": true }, { "role": "flag", @@ -49460,8 +49578,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk update API keys.", + "summary": "Get cache statistics.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -49469,42 +49590,46 @@ "path": [ "stack", "es", - "security" + "searchable-snapshots" ], - "name": "change-password", + "name": "clear-cache", "parameters": [ { "role": "flag", - "name": "refresh", + "name": "expand-wildcards", "type": "enum", "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "summary": "Whether to expand wildcard expression to concrete indices that are open, closed or both", + "repeatable": true, "enumValues": [ - "true", - "false", - "wait_for" + "all", + "open", + "closed", + "hidden", + "none" ] }, { "role": "flag", - "name": "password", - "type": "string", + "name": "allow-no-indices", + "type": "boolean", "required": false, - "summary": "The new password value. Passwords must be at least 6 characters long." + "summary": "A setting that does two separate checks on the index expression.\nIf `false`, the request returns an error (1) if any wildcard expression\n(including `_all` and `*`) resolves to zero matching indices or (2) if the\ncomplete set of resolved indices, aliases or data streams is empty after all\nexpressions are evaluated. If `true`, index expressions that resolve to no\nindices are allowed and the request returns an empty result." }, { "role": "flag", - "name": "password-hash", - "type": "string", + "name": "ignore-unavailable", + "type": "boolean", "required": false, - "summary": "A hash of the new password value. This must be produced using the same\nhashing algorithm as has been configured for password storage. For more details,\nsee the explanation of the `xpack.security.authc.password_hashing.algorithm`\nsetting." + "summary": "If `false`, the request returns an error if it targets a concrete (non-wildcarded)\nindex, alias, or data stream that is missing, closed, or otherwise unavailable.\nIf `true`, unavailable concrete targets are silently ignored." }, { "role": "flag", - "name": "username", + "name": "index", "type": "string", "required": false, - "summary": "The user whose password you want to change. If you do not specify this\nparameter, the password is changed for the current user." + "summary": "A comma-separated list of data streams, indices, and aliases to clear from the cache.\nIt supports wildcards (`*`).", + "repeatable": true }, { "role": "flag", @@ -49557,11 +49682,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Change passwords.", + "summary": "Clear the searchable snapshots shared cache.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -49569,89 +49691,78 @@ "path": [ "stack", "es", - "security" + "searchable-snapshots" ], - "name": "clear-api-key-cache", + "name": "mount", "parameters": [ { "role": "flag", - "name": "ids", + "name": "master-timeout", "type": "string", - "required": true, - "summary": "Comma-separated list of API key IDs to evict from the API key cache.\nTo evict all API keys, use `*`.\nDoes not support other wildcard patterns.", - "repeatable": true + "required": false, + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "error-trace", + "name": "wait-for-completion", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If true, the request blocks until the operation is complete." }, { "role": "flag", - "name": "filter-path", - "type": "string", + "name": "storage", + "type": "enum", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "The mount option for the searchable snapshot index.\nFor further information on mount options, refer to: [Mount options](https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/searchable-snapshots#searchable-snapshot-mount-storage-options)", + "enumValues": [ + "full_copy", + "shared_cache" + ] }, { "role": "flag", - "name": "human", - "type": "boolean", - "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "name": "index", + "type": "string", + "required": true, + "summary": "The name of the index contained in the snapshot whose data is to be mounted.\nIf no `renamed_index` is specified, this name will also be used to create the new index." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "renamed-index", + "type": "string", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "The name of the index that will be created." }, { "role": "flag", - "name": "input-file", + "name": "index-settings", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The settings that should be added to the index when it is mounted." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "ignore-index-settings", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The names of settings that should be removed from the index when it is mounted.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Clear the API key cache.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "security" - ], - "name": "clear-cached-privileges", - "parameters": [ + "name": "repository", + "type": "string", + "required": true, + "summary": "The name of the repository containing the snapshot of the index to mount." + }, { "role": "flag", - "name": "application", + "name": "snapshot", "type": "string", "required": true, - "summary": "A comma-separated list of applications.\nTo clear all applications, use an asterism (`*`).\nIt does not support other wildcard patterns.", - "repeatable": true + "summary": "The name of the snapshot of the index to mount." }, { "role": "flag", @@ -49704,7 +49815,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clear the privileges cache.", + "summary": "Mount a snapshot.", "intent": { "requiresAuth": true } @@ -49713,25 +49824,28 @@ "path": [ "stack", "es", - "security" + "searchable-snapshots" ], - "name": "clear-cached-realms", + "name": "stats", "parameters": [ { "role": "flag", - "name": "usernames", - "type": "array", + "name": "level", + "type": "enum", "required": false, - "summary": "A comma-separated list of the users to clear from the cache.\nIf you do not specify this parameter, the API evicts all users from the user cache.", - "repeatable": true, - "elementType": "string" + "summary": "Return stats aggregated at cluster, index or shard level", + "enumValues": [ + "cluster", + "indices", + "shards" + ] }, { "role": "flag", - "name": "realms", + "name": "index", "type": "string", - "required": true, - "summary": "A comma-separated list of realms.\nTo clear all realms, use an asterisk (`*`).\nIt does not support other wildcard patterns.", + "required": false, + "summary": "A comma-separated list of data streams and indices to retrieve statistics for.", "repeatable": true }, { @@ -49785,26 +49899,60 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clear the user cache.", + "summary": "Get searchable snapshot statistics.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch searchable-snapshots API commands" + }, + { + "segment": "security", + "commands": [ { "path": [ "stack", "es", "security" ], - "name": "clear-cached-roles", + "name": "activate-user-profile", "parameters": [ { "role": "flag", - "name": "name", + "name": "access-token", "type": "string", + "required": false, + "summary": "The user's Elasticsearch access token or JWT.\nBoth `access` and `id` JWT token types are supported and they depend on the underlying JWT realm configuration.\nIf you specify the `access_token` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "grant-type", + "type": "enum", "required": true, - "summary": "A comma-separated list of roles to evict from the role cache.\nTo evict all roles, use an asterisk (`*`).\nIt does not support other wildcard patterns.", - "repeatable": true + "summary": "The type of grant.", + "enumValues": [ + "password", + "access_token" + ] + }, + { + "role": "flag", + "name": "password", + "type": "string", + "required": false, + "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "username", + "type": "string", + "required": false, + "summary": "The username that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." }, { "role": "flag", @@ -49857,7 +50005,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clear the roles cache.", + "summary": "Activate a user profile.", "intent": { "requiresAuth": true } @@ -49868,30 +50016,8 @@ "es", "security" ], - "name": "clear-cached-service-tokens", + "name": "authenticate", "parameters": [ - { - "role": "flag", - "name": "namespace", - "type": "string", - "required": true, - "summary": "The namespace, which is a top-level grouping of service accounts." - }, - { - "role": "flag", - "name": "service", - "type": "string", - "required": true, - "summary": "The name of the service, which must be unique within its namespace." - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "A comma-separated list of token names to evict from the service account token caches.\nUse a wildcard (`*`) to evict all tokens that belong to a service account.\nIt does not support other wildcard patterns.", - "repeatable": true - }, { "role": "flag", "name": "error-trace", @@ -49943,8 +50069,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clear service account token caches.", + "summary": "Authenticate a user.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -49954,7 +50083,7 @@ "es", "security" ], - "name": "clone-api-key", + "name": "bulk-delete-role", "parameters": [ { "role": "flag", @@ -49970,31 +50099,12 @@ }, { "role": "flag", - "name": "api-key", - "type": "string", + "name": "names", + "type": "array", "required": true, - "summary": "The credentials of the API key to clone.\nThis is the secret value returned when the key was originally created." - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": false, - "summary": "A name for the cloned API key.\nIf not provided, the name of the source key is used." - }, - { - "role": "flag", - "name": "expiration", - "type": "string", - "required": false, - "summary": "The expiration time for the cloned API key.\nBy default, API keys never expire.\nSet to `null` to explicitly create a key with no expiration." - }, - { - "role": "flag", - "name": "metadata", - "type": "string", - "required": false, - "summary": "Arbitrary metadata to associate with the cloned API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." + "summary": "An array of role names to delete", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -50045,10 +50155,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Clone an API key.", + "summary": "Bulk delete roles.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -50058,7 +50178,7 @@ "es", "security" ], - "name": "create-api-key", + "name": "bulk-put-role", "parameters": [ { "role": "flag", @@ -50074,31 +50194,10 @@ }, { "role": "flag", - "name": "expiration", - "type": "string", - "required": false, - "summary": "The expiration time for the API key.\nBy default, API keys never expire." - }, - { - "role": "flag", - "name": "name", + "name": "roles", "type": "string", "required": true, - "summary": "A name for the API key.\nIt is required, and it cannot be longer than 256 characters, begin or end with whitespace, or begin with an underscore." - }, - { - "role": "flag", - "name": "role-descriptors", - "type": "string", - "required": false, - "summary": "An array of role descriptors for this API key.\nWhen it is not specified or it is an empty array, the API key will have a point in time snapshot of permissions of the authenticated user.\nIf you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the authenticated user's permissions thereby limiting the access scope for API keys.\nThe structure of role descriptor is the same as the request for the create role API.\nFor more details, refer to the create or update roles API.\n\nNOTE: Due to the way in which this permission intersection is calculated, it is not possible to create an API key that is a child of another API key, unless the derived key is created without any privileges.\nIn this case, you must explicitly specify a role descriptor with no privileges.\nThe derived API key can be used for authentication; it will not have authority to call Elasticsearch APIs." - }, - { - "role": "flag", - "name": "metadata", - "type": "string", - "required": false, - "summary": "Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with `_` are reserved for system usage." + "summary": "A dictionary of role name to RoleDescriptor objects to add or update" }, { "role": "flag", @@ -50151,11 +50250,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create an API key.", + "summary": "Bulk create or update roles.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -50165,42 +50261,37 @@ "es", "security" ], - "name": "create-cross-cluster-api-key", + "name": "bulk-update-api-keys", "parameters": [ - { - "role": "flag", - "name": "access", - "type": "string", - "required": true, - "summary": "The access to be granted to this API key.\nThe access is composed of permissions for cross-cluster search and cross-cluster replication.\nAt least one of them must be specified.\n\nNOTE: No explicit privileges should be specified for either search or replication access.\nThe creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly." - }, { "role": "flag", "name": "expiration", "type": "string", "required": false, - "summary": "Expiration time for the API key.\nBy default, API keys never expire." + "summary": "Expiration time for the API keys.\nBy default, API keys never expire.\nThis property can be omitted to leave the value unchanged." }, { "role": "flag", - "name": "metadata", + "name": "ids", "type": "string", - "required": false, - "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." + "required": true, + "summary": "The API key identifiers.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "name", + "name": "metadata", "type": "string", - "required": true, - "summary": "Specifies the name for this API key." + "required": false, + "summary": "Arbitrary nested metadata to associate with the API keys.\nWithin the `metadata` object, top-level keys beginning with an underscore (`_`) are reserved for system usage.\nAny information specified with this parameter fully replaces metadata previously associated with the API key." }, { "role": "flag", - "name": "certificate-identity", + "name": "role-descriptors", "type": "string", "required": false, - "summary": "The certificate identity to associate with this API key.\nThis field is used to restrict the API key to connections authenticated by a specific TLS certificate.\nThe value should match the certificate's distinguished name (DN) pattern." + "summary": "The role descriptors to assign to the API keys.\nAn API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user.\nYou can assign new privileges by specifying them in this parameter.\nTo remove assigned privileges, supply the `role_descriptors` parameter as an empty object `{}`.\nIf an API key has no assigned privileges, it inherits the owner user's full permissions.\nThe snapshot of the owner's permissions is always updated, whether you supply the `role_descriptors` parameter.\nThe structure of a role descriptor is the same as the request for the create API keys API." }, { "role": "flag", @@ -50253,7 +50344,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a cross-cluster API key.", + "summary": "Bulk update API keys.", "intent": { "requiresAuth": true } @@ -50264,7 +50355,7 @@ "es", "security" ], - "name": "create-service-token", + "name": "change-password", "parameters": [ { "role": "flag", @@ -50280,24 +50371,24 @@ }, { "role": "flag", - "name": "namespace", + "name": "password", "type": "string", - "required": true, - "summary": "The name of the namespace, which is a top-level grouping of service accounts." + "required": false, + "summary": "The new password value. Passwords must be at least 6 characters long." }, { "role": "flag", - "name": "service", + "name": "password-hash", "type": "string", - "required": true, - "summary": "The name of the service." + "required": false, + "summary": "A hash of the new password value. This must be produced using the same\nhashing algorithm as has been configured for password storage. For more details,\nsee the explanation of the `xpack.security.authc.password_hashing.algorithm`\nsetting." }, { "role": "flag", - "name": "name", + "name": "username", "type": "string", "required": false, - "summary": "The name for the service account token.\nIf omitted, a random name will be generated.\n\nToken names must be at least one and no more than 256 characters.\nThey can contain alphanumeric characters (a-z, A-Z, 0-9), dashes (`-`), and underscores (`_`), but cannot begin with an underscore.\n\nNOTE: Token names must be unique in the context of the associated service account.\nThey must also be globally unique with their fully qualified names, which are comprised of the service account principal and token name, such as `//`." + "summary": "The user whose password you want to change. If you do not specify this\nparameter, the password is changed for the current user." }, { "role": "flag", @@ -50350,7 +50441,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a service account token.", + "summary": "Change passwords.", "intent": { "destructive": false, "idempotent": true, @@ -50364,16 +50455,15 @@ "es", "security" ], - "name": "delegate-pki", + "name": "clear-api-key-cache", "parameters": [ { "role": "flag", - "name": "x509-certificate-chain", - "type": "array", + "name": "ids", + "type": "string", "required": true, - "summary": "The X509Certificate chain, which is represented as an ordered string array.\nEach string in the array is a base64-encoded (Section 4 of RFC4648 - not base64url-encoded) of the certificate's DER encoding.\n\nThe first element is the target certificate that contains the subject distinguished name that is requesting access.\nThis may be followed by additional certificates; each subsequent certificate is used to certify the previous one.", - "repeatable": true, - "elementType": "string" + "summary": "Comma-separated list of API key IDs to evict from the API key cache.\nTo evict all API keys, use `*`.\nDoes not support other wildcard patterns.", + "repeatable": true }, { "role": "flag", @@ -50426,7 +50516,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delegate PKI authentication.", + "summary": "Clear the API key cache.", "intent": { "requiresAuth": true } @@ -50437,33 +50527,95 @@ "es", "security" ], - "name": "delete-privileges", + "name": "clear-cached-privileges", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", + "name": "application", + "type": "string", + "required": true, + "summary": "A comma-separated list of applications.\nTo clear all applications, use an asterism (`*`).\nIt does not support other wildcard patterns.", + "repeatable": true + }, + { + "role": "flag", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "application", + "name": "filter-path", "type": "string", - "required": true, - "summary": "The name of the application.\nApplication privileges are always associated with exactly one application." + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "name", + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, + { + "role": "flag", + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Clear the privileges cache.", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "security" + ], + "name": "clear-cached-realms", + "parameters": [ + { + "role": "flag", + "name": "usernames", + "type": "array", + "required": false, + "summary": "A comma-separated list of the users to clear from the cache.\nIf you do not specify this parameter, the API evicts all users from the user cache.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "realms", "type": "string", "required": true, - "summary": "The name of the privilege.", + "summary": "A comma-separated list of realms.\nTo clear all realms, use an asterisk (`*`).\nIt does not support other wildcard patterns.", "repeatable": true }, { @@ -50515,20 +50667,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete application privileges.", + "summary": "Clear the user cache.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -50538,26 +50680,15 @@ "es", "security" ], - "name": "delete-role", + "name": "clear-cached-roles", "parameters": [ - { - "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, { "role": "flag", "name": "name", "type": "string", "required": true, - "summary": "The name of the role." + "summary": "A comma-separated list of roles to evict from the role cache.\nTo evict all roles, use an asterisk (`*`).\nIt does not support other wildcard patterns.", + "repeatable": true }, { "role": "flag", @@ -50608,20 +50739,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete roles.", + "summary": "Clear the roles cache.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -50631,26 +50752,29 @@ "es", "security" ], - "name": "delete-role-mapping", + "name": "clear-cached-service-tokens", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "name": "namespace", + "type": "string", + "required": true, + "summary": "The namespace, which is a top-level grouping of service accounts." + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true, + "summary": "The name of the service, which must be unique within its namespace." }, { "role": "flag", "name": "name", "type": "string", "required": true, - "summary": "The distinct name that identifies the role mapping.\nThe name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way." + "summary": "A comma-separated list of token names to evict from the service account token caches.\nUse a wildcard (`*`) to evict all tokens that belong to a service account.\nIt does not support other wildcard patterns.", + "repeatable": true }, { "role": "flag", @@ -50701,20 +50825,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete role mappings.", + "summary": "Clear service account token caches.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -50724,7 +50838,7 @@ "es", "security" ], - "name": "delete-service-token", + "name": "clone-api-key", "parameters": [ { "role": "flag", @@ -50740,24 +50854,31 @@ }, { "role": "flag", - "name": "namespace", + "name": "api-key", "type": "string", "required": true, - "summary": "The namespace, which is a top-level grouping of service accounts." + "summary": "The credentials of the API key to clone.\nThis is the secret value returned when the key was originally created." }, { "role": "flag", - "name": "service", + "name": "name", "type": "string", - "required": true, - "summary": "The service name." + "required": false, + "summary": "A name for the cloned API key.\nIf not provided, the name of the source key is used." }, { "role": "flag", - "name": "name", + "name": "expiration", "type": "string", - "required": true, - "summary": "The name of the service account token." + "required": false, + "summary": "The expiration time for the cloned API key.\nBy default, API keys never expire.\nSet to `null` to explicitly create a key with no expiration." + }, + { + "role": "flag", + "name": "metadata", + "type": "string", + "required": false, + "summary": "Arbitrary metadata to associate with the cloned API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." }, { "role": "flag", @@ -50808,20 +50929,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete service account tokens.", + "summary": "Clone an API key.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -50831,7 +50942,7 @@ "es", "security" ], - "name": "delete-user", + "name": "create-api-key", "parameters": [ { "role": "flag", @@ -50847,10 +50958,31 @@ }, { "role": "flag", - "name": "username", + "name": "expiration", + "type": "string", + "required": false, + "summary": "The expiration time for the API key.\nBy default, API keys never expire." + }, + { + "role": "flag", + "name": "name", "type": "string", "required": true, - "summary": "An identifier for the user." + "summary": "A name for the API key.\nIt is required, and it cannot be longer than 256 characters, begin or end with whitespace, or begin with an underscore." + }, + { + "role": "flag", + "name": "role-descriptors", + "type": "string", + "required": false, + "summary": "An array of role descriptors for this API key.\nWhen it is not specified or it is an empty array, the API key will have a point in time snapshot of permissions of the authenticated user.\nIf you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the authenticated user's permissions thereby limiting the access scope for API keys.\nThe structure of role descriptor is the same as the request for the create role API.\nFor more details, refer to the create or update roles API.\n\nNOTE: Due to the way in which this permission intersection is calculated, it is not possible to create an API key that is a child of another API key, unless the derived key is created without any privileges.\nIn this case, you must explicitly specify a role descriptor with no privileges.\nThe derived API key can be used for authentication; it will not have authority to call Elasticsearch APIs." + }, + { + "role": "flag", + "name": "metadata", + "type": "string", + "required": false, + "summary": "Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with `_` are reserved for system usage." }, { "role": "flag", @@ -50901,18 +51033,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete users.", + "summary": "Create an API key.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -50924,40 +51049,42 @@ "es", "security" ], - "name": "delete-user-managed-service-account", + "name": "create-cross-cluster-api-key", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", + "name": "access", + "type": "string", + "required": true, + "summary": "The access to be granted to this API key.\nThe access is composed of permissions for cross-cluster search and cross-cluster replication.\nAt least one of them must be specified.\n\nNOTE: No explicit privileges should be specified for either search or replication access.\nThe creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly." + }, + { + "role": "flag", + "name": "expiration", + "type": "string", "required": false, - "summary": "If `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `true` then refresh the affected shards to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "summary": "Expiration time for the API key.\nBy default, API keys never expire." }, { "role": "flag", - "name": "force", - "type": "boolean", + "name": "metadata", + "type": "string", "required": false, - "summary": "If `false` (the default), deleting a service account that still has service tokens is rejected.\nIf `true`, the account is deleted and its tokens are left in place." + "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." }, { "role": "flag", - "name": "namespace", + "name": "name", "type": "string", "required": true, - "summary": "The namespace, which is a top-level grouping of service accounts.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters.\nIt cannot be `elastic`, which is reserved for built-in service accounts." + "summary": "Specifies the name for this API key." }, { "role": "flag", - "name": "service", + "name": "certificate-identity", "type": "string", - "required": true, - "summary": "The service name.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters." + "required": false, + "summary": "The certificate identity to associate with this API key.\nThis field is used to restrict the API key to connections authenticated by a specific TLS certificate.\nThe value should match the certificate's distinguished name (DN) pattern." }, { "role": "flag", @@ -51008,20 +51135,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete user-managed service accounts.", + "summary": "Create a cross-cluster API key.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -51031,7 +51148,7 @@ "es", "security" ], - "name": "disable-user", + "name": "create-service-token", "parameters": [ { "role": "flag", @@ -51047,10 +51164,24 @@ }, { "role": "flag", - "name": "username", + "name": "namespace", "type": "string", "required": true, - "summary": "An identifier for the user." + "summary": "The name of the namespace, which is a top-level grouping of service accounts." + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true, + "summary": "The name of the service." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The name for the service account token.\nIf omitted, a random name will be generated.\n\nToken names must be at least one and no more than 256 characters.\nThey can contain alphanumeric characters (a-z, A-Z, 0-9), dashes (`-`), and underscores (`_`), but cannot begin with an underscore.\n\nNOTE: Token names must be unique in the context of the associated service account.\nThey must also be globally unique with their fully qualified names, which are comprised of the service account principal and token name, such as `//`." }, { "role": "flag", @@ -51103,7 +51234,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable users.", + "summary": "Create a service account token.", "intent": { "destructive": false, "idempotent": true, @@ -51117,26 +51248,16 @@ "es", "security" ], - "name": "disable-user-profile", + "name": "delegate-pki", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', it does nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "uid", - "type": "string", + "name": "x509-certificate-chain", + "type": "array", "required": true, - "summary": "Unique identifier for the user profile." + "summary": "The X509Certificate chain, which is represented as an ordered string array.\nEach string in the array is a base64-encoded (Section 4 of RFC4648 - not base64url-encoded) of the certificate's DER encoding.\n\nThe first element is the target certificate that contains the subject distinguished name that is requesting access.\nThis may be followed by additional certificates; each subsequent certificate is used to certify the previous one.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -51189,11 +51310,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable a user profile.", + "summary": "Delegate PKI authentication.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -51203,7 +51321,7 @@ "es", "security" ], - "name": "enable-user", + "name": "delete-privileges", "parameters": [ { "role": "flag", @@ -51219,10 +51337,18 @@ }, { "role": "flag", - "name": "username", + "name": "application", "type": "string", "required": true, - "summary": "An identifier for the user." + "summary": "The name of the application.\nApplication privileges are always associated with exactly one application." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the privilege.", + "repeatable": true }, { "role": "flag", @@ -51273,11 +51399,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Enable users.", + "summary": "Delete application privileges.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51289,14 +51422,14 @@ "es", "security" ], - "name": "enable-user-profile", + "name": "delete-role", "parameters": [ { "role": "flag", "name": "refresh", "type": "enum", "required": false, - "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", "enumValues": [ "true", "false", @@ -51305,10 +51438,10 @@ }, { "role": "flag", - "name": "uid", + "name": "name", "type": "string", "required": true, - "summary": "A unique identifier for the user profile." + "summary": "The name of the role." }, { "role": "flag", @@ -51359,11 +51492,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Enable a user profile.", + "summary": "Delete roles.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51375,8 +51515,27 @@ "es", "security" ], - "name": "enroll-kibana", + "name": "delete-role-mapping", "parameters": [ + { + "role": "flag", + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The distinct name that identifies the role mapping.\nThe name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way." + }, { "role": "flag", "name": "error-trace", @@ -51426,11 +51585,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Enroll Kibana.", + "summary": "Delete role mappings.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51442,8 +51608,41 @@ "es", "security" ], - "name": "enroll-node", + "name": "delete-service-token", "parameters": [ + { + "role": "flag", + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "namespace", + "type": "string", + "required": true, + "summary": "The namespace, which is a top-level grouping of service accounts." + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true, + "summary": "The service name." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the service account token." + }, { "role": "flag", "name": "error-trace", @@ -51493,11 +51692,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Enroll a node.", + "summary": "Delete service account tokens.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51509,63 +51715,26 @@ "es", "security" ], - "name": "get-api-key", + "name": "delete-user", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": false, - "summary": "An API key id.\nThis parameter cannot be used with any of `name`, `realm_name` or `username`." - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": false, - "summary": "An API key name.\nThis parameter cannot be used with any of `id`, `realm_name` or `username`.\nIt supports prefix search with wildcard." - }, - { - "role": "flag", - "name": "owner", - "type": "boolean", - "required": false, - "summary": "A boolean flag that can be used to query API keys owned by the currently authenticated user.\nThe `realm_name` or `username` parameters cannot be specified when this parameter is set to `true` as they are assumed to be the currently authenticated ones." - }, - { - "role": "flag", - "name": "realm-name", - "type": "string", + "name": "refresh", + "type": "enum", "required": false, - "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`." + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", "name": "username", "type": "string", - "required": false, - "summary": "The username of a user.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`." - }, - { - "role": "flag", - "name": "with-limited-by", - "type": "boolean", - "required": false, - "summary": "Return the snapshot of the owner user's role descriptors\nassociated with the API key. An API key's actual\npermission is the intersection of its assigned role\ndescriptors and the owner user's role descriptors." - }, - { - "role": "flag", - "name": "active-only", - "type": "boolean", - "required": false, - "summary": "A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys." - }, - { - "role": "flag", - "name": "with-profile-uid", - "type": "boolean", - "required": false, - "summary": "Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists." + "required": true, + "summary": "An identifier for the user." }, { "role": "flag", @@ -51616,11 +51785,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get API key information.", + "summary": "Delete users.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51632,8 +51808,41 @@ "es", "security" ], - "name": "get-builtin-privileges", + "name": "delete-user-managed-service-account", "parameters": [ + { + "role": "flag", + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `true` then refresh the affected shards to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "force", + "type": "boolean", + "required": false, + "summary": "If `false` (the default), deleting a service account that still has service tokens is rejected.\nIf `true`, the account is deleted and its tokens are left in place." + }, + { + "role": "flag", + "name": "namespace", + "type": "string", + "required": true, + "summary": "The namespace, which is a top-level grouping of service accounts.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters.\nIt cannot be `elastic`, which is reserved for built-in service accounts." + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true, + "summary": "The service name.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters." + }, { "role": "flag", "name": "error-trace", @@ -51683,11 +51892,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get builtin privileges.", + "summary": "Delete user-managed service accounts.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -51699,22 +51915,26 @@ "es", "security" ], - "name": "get-privileges", + "name": "disable-user", "parameters": [ { "role": "flag", - "name": "application", - "type": "string", + "name": "refresh", + "type": "enum", "required": false, - "summary": "The name of the application.\nApplication privileges are always associated with exactly one application.\nIf you do not specify this parameter, the API returns information about all privileges for all applications." + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "name", + "name": "username", "type": "string", - "required": false, - "summary": "The name of the privilege.\nIf you do not specify this parameter, the API returns information about all privileges for the requested application.", - "repeatable": true + "required": true, + "summary": "An identifier for the user." }, { "role": "flag", @@ -51767,7 +51987,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get application privileges.", + "summary": "Disable users.", "intent": { "destructive": false, "idempotent": true, @@ -51781,22 +52001,26 @@ "es", "security" ], - "name": "get-role", + "name": "disable-user-profile", "parameters": [ { "role": "flag", - "name": "include-implicit", - "type": "boolean", + "name": "refresh", + "type": "enum", "required": false, - "summary": "If `true`, include privileges that are implicitly granted by registered `ImplicitPrivilegesProviders` alongside the explicitly configured privileges.\nEach implicit entry in the response is annotated with `implicitly_granted: true`." + "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', it does nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "name", + "name": "uid", "type": "string", - "required": false, - "summary": "The name of the role.\nYou can specify multiple roles as a comma-separated list.\nIf you do not specify this parameter, the API returns information about all roles.", - "repeatable": true + "required": true, + "summary": "Unique identifier for the user profile." }, { "role": "flag", @@ -51849,7 +52073,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get roles.", + "summary": "Disable a user profile.", "intent": { "destructive": false, "idempotent": true, @@ -51863,15 +52087,26 @@ "es", "security" ], - "name": "get-role-mapping", + "name": "enable-user", "parameters": [ { "role": "flag", - "name": "name", - "type": "string", + "name": "refresh", + "type": "enum", "required": false, - "summary": "The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings.", - "repeatable": true + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "username", + "type": "string", + "required": true, + "summary": "An identifier for the user." }, { "role": "flag", @@ -51924,7 +52159,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get role mappings.", + "summary": "Enable users.", "intent": { "destructive": false, "idempotent": true, @@ -51938,40 +52173,26 @@ "es", "security" ], - "name": "get-service-accounts", + "name": "enable-user-profile", "parameters": [ { "role": "flag", - "name": "type", + "name": "refresh", "type": "enum", "required": false, - "summary": "A comma-separated list of the kinds of service account to return.\nIf it is omitted, it defaults to `built_in` when no namespace is given and to `built_in,user_managed` otherwise.", - "repeatable": true, + "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", "enumValues": [ - "built_in", - "user_managed" + "true", + "false", + "wait_for" ] }, { "role": "flag", - "name": "with-profile-uid", - "type": "boolean", - "required": false, - "summary": "If `true`, each user-managed service account also includes the profile UIDs of the users who created and last replaced it, under the `created_by_profile_uid` and `updated_by_profile_uid` fields.\nA profile UID is included only for a user who has an activated user profile." - }, - { - "role": "flag", - "name": "namespace", - "type": "string", - "required": false, - "summary": "The name of the namespace.\nOmit this parameter to retrieve information about all service accounts.\nIf you omit this parameter, you must also omit the `service` parameter." - }, - { - "role": "flag", - "name": "service", + "name": "uid", "type": "string", - "required": false, - "summary": "The service name.\nOmit this parameter to retrieve information about all service accounts that belong to the specified `namespace`." + "required": true, + "summary": "A unique identifier for the user profile." }, { "role": "flag", @@ -52024,7 +52245,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get service accounts.", + "summary": "Enable a user profile.", "intent": { "destructive": false, "idempotent": true, @@ -52038,22 +52259,8 @@ "es", "security" ], - "name": "get-service-credentials", + "name": "enroll-kibana", "parameters": [ - { - "role": "flag", - "name": "namespace", - "type": "string", - "required": true, - "summary": "The name of the namespace." - }, - { - "role": "flag", - "name": "service", - "type": "string", - "required": true, - "summary": "The service name." - }, { "role": "flag", "name": "error-trace", @@ -52105,7 +52312,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get service account credentials.", + "summary": "Enroll Kibana.", "intent": { "destructive": false, "idempotent": true, @@ -52119,15 +52326,8 @@ "es", "security" ], - "name": "get-settings", + "name": "enroll-node", "parameters": [ - { - "role": "flag", - "name": "master-timeout", - "type": "string", - "required": false, - "summary": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, { "role": "flag", "name": "error-trace", @@ -52179,7 +52379,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get security index settings.", + "summary": "Enroll a node.", "intent": { "destructive": false, "idempotent": true, @@ -52193,8 +52393,64 @@ "es", "security" ], - "name": "get-stats", + "name": "get-api-key", "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": false, + "summary": "An API key id.\nThis parameter cannot be used with any of `name`, `realm_name` or `username`." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "An API key name.\nThis parameter cannot be used with any of `id`, `realm_name` or `username`.\nIt supports prefix search with wildcard." + }, + { + "role": "flag", + "name": "owner", + "type": "boolean", + "required": false, + "summary": "A boolean flag that can be used to query API keys owned by the currently authenticated user.\nThe `realm_name` or `username` parameters cannot be specified when this parameter is set to `true` as they are assumed to be the currently authenticated ones." + }, + { + "role": "flag", + "name": "realm-name", + "type": "string", + "required": false, + "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`." + }, + { + "role": "flag", + "name": "username", + "type": "string", + "required": false, + "summary": "The username of a user.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`." + }, + { + "role": "flag", + "name": "with-limited-by", + "type": "boolean", + "required": false, + "summary": "Return the snapshot of the owner user's role descriptors\nassociated with the API key. An API key's actual\npermission is the intersection of its assigned role\ndescriptors and the owner user's role descriptors." + }, + { + "role": "flag", + "name": "active-only", + "type": "boolean", + "required": false, + "summary": "A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys." + }, + { + "role": "flag", + "name": "with-profile-uid", + "type": "boolean", + "required": false, + "summary": "Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists." + }, { "role": "flag", "name": "error-trace", @@ -52246,7 +52502,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get security stats.", + "summary": "Get API key information.", "intent": { "destructive": false, "idempotent": true, @@ -52260,64 +52516,8 @@ "es", "security" ], - "name": "get-token", + "name": "get-builtin-privileges", "parameters": [ - { - "role": "flag", - "name": "grant-type", - "type": "enum", - "required": false, - "summary": "The type of grant.\nSupported grant types are: `password`, `_kerberos`, `client_credentials`, `refresh_token`, and `_user_managed_service_account`.", - "enumValues": [ - "password", - "client_credentials", - "_kerberos", - "refresh_token", - "_user_managed_service_account" - ] - }, - { - "role": "flag", - "name": "scope", - "type": "string", - "required": false, - "summary": "The scope of the token.\nCurrently tokens are only issued for a scope of FULL regardless of the value sent with the request." - }, - { - "role": "flag", - "name": "password", - "type": "string", - "required": false, - "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." - }, - { - "role": "flag", - "name": "kerberos-ticket", - "type": "string", - "required": false, - "summary": "The base64 encoded kerberos ticket.\nIf you specify the `_kerberos` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." - }, - { - "role": "flag", - "name": "refresh-token", - "type": "string", - "required": false, - "summary": "The string that was returned when you created the token, which enables you to extend its life.\nIf you specify the `refresh_token` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." - }, - { - "role": "flag", - "name": "service-account-token", - "type": "string", - "required": false, - "summary": "The service account token of a user-managed service account, as returned by the create service account token API.\nIf you specify the `_user_managed_service_account` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." - }, - { - "role": "flag", - "name": "username", - "type": "string", - "required": false, - "summary": "The username that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." - }, { "role": "flag", "name": "error-trace", @@ -52369,8 +52569,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a token.", + "summary": "Get builtin privileges.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -52380,21 +52583,21 @@ "es", "security" ], - "name": "get-user", + "name": "get-privileges", "parameters": [ { "role": "flag", - "name": "with-profile-uid", - "type": "boolean", + "name": "application", + "type": "string", "required": false, - "summary": "Determines whether to retrieve the user profile UID, if it exists, for the users." + "summary": "The name of the application.\nApplication privileges are always associated with exactly one application.\nIf you do not specify this parameter, the API returns information about all privileges for all applications." }, { "role": "flag", - "name": "username", + "name": "name", "type": "string", "required": false, - "summary": "An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users.", + "summary": "The name of the privilege.\nIf you do not specify this parameter, the API returns information about all privileges for the requested application.", "repeatable": true }, { @@ -52448,7 +52651,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get users.", + "summary": "Get application privileges.", "intent": { "destructive": false, "idempotent": true, @@ -52462,8 +52665,23 @@ "es", "security" ], - "name": "get-user-privileges", + "name": "get-role", "parameters": [ + { + "role": "flag", + "name": "include-implicit", + "type": "boolean", + "required": false, + "summary": "If `true`, include privileges that are implicitly granted by registered `ImplicitPrivilegesProviders` alongside the explicitly configured privileges.\nEach implicit entry in the response is annotated with `implicitly_granted: true`." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The name of the role.\nYou can specify multiple roles as a comma-separated list.\nIf you do not specify this parameter, the API returns information about all roles.", + "repeatable": true + }, { "role": "flag", "name": "error-trace", @@ -52515,7 +52733,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get user privileges.", + "summary": "Get roles.", "intent": { "destructive": false, "idempotent": true, @@ -52529,22 +52747,14 @@ "es", "security" ], - "name": "get-user-profile", + "name": "get-role-mapping", "parameters": [ { "role": "flag", - "name": "data", + "name": "name", "type": "string", "required": false, - "summary": "A comma-separated list of filters for the `data` field of the profile document.\nTo return all content use `data=*`.\nTo return a subset of content use `data=` to retrieve content nested under the specified ``.\nBy default returns no `data` content.", - "repeatable": true - }, - { - "role": "flag", - "name": "uid", - "type": "string", - "required": true, - "summary": "A unique identifier for the user profile.", + "summary": "The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings.", "repeatable": true }, { @@ -52598,7 +52808,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a user profile.", + "summary": "Get role mappings.", "intent": { "destructive": false, "idempotent": true, @@ -52612,80 +52822,40 @@ "es", "security" ], - "name": "grant-api-key", + "name": "get-service-accounts", "parameters": [ { "role": "flag", - "name": "refresh", + "name": "type", "type": "enum", "required": false, - "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "api-key", - "type": "string", - "required": true, - "summary": "The API key." - }, - { - "role": "flag", - "name": "grant-type", - "type": "enum", - "required": true, - "summary": "The type of grant. Supported grant types are: `access_token`, `password`, and `_user_managed_service_account`.", + "summary": "A comma-separated list of the kinds of service account to return.\nIf it is omitted, it defaults to `built_in` when no namespace is given and to `built_in,user_managed` otherwise.", + "repeatable": true, "enumValues": [ - "access_token", - "password", - "_user_managed_service_account" + "built_in", + "user_managed" ] }, { "role": "flag", - "name": "access-token", - "type": "string", - "required": false, - "summary": "The user's access token.\nIf you specify the `access_token` grant type, this parameter is required.\nIt is not valid with other grant types." - }, - { - "role": "flag", - "name": "client-authentication", - "type": "string", - "required": false, - "summary": "The client authentication for a JWT that requires it, which is what is normally sent in the `ES-Client-Authentication` request header.\nIt is valid only with the `access_token` grant type, when the access token is a JWT." - }, - { - "role": "flag", - "name": "service-account-token", - "type": "string", - "required": false, - "summary": "The service account token of a user-managed service account, as returned by the create service account token API.\nIf you specify the `_user_managed_service_account` grant type, this parameter is required.\nIt is not valid with other grant types." - }, - { - "role": "flag", - "name": "username", - "type": "string", + "name": "with-profile-uid", + "type": "boolean", "required": false, - "summary": "The user name that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + "summary": "If `true`, each user-managed service account also includes the profile UIDs of the users who created and last replaced it, under the `created_by_profile_uid` and `updated_by_profile_uid` fields.\nA profile UID is included only for a user who has an activated user profile." }, { "role": "flag", - "name": "password", + "name": "namespace", "type": "string", "required": false, - "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + "summary": "The name of the namespace.\nOmit this parameter to retrieve information about all service accounts.\nIf you omit this parameter, you must also omit the `service` parameter." }, { "role": "flag", - "name": "run-as", + "name": "service", "type": "string", "required": false, - "summary": "The name of the user to be impersonated.\nIt is not valid with the `_user_managed_service_account` grant type." + "summary": "The service name.\nOmit this parameter to retrieve information about all service accounts that belong to the specified `namespace`." }, { "role": "flag", @@ -52738,8 +52908,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Grant an API key.", + "summary": "Get service accounts.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -52749,36 +52922,21 @@ "es", "security" ], - "name": "has-privileges", + "name": "get-service-credentials", "parameters": [ { "role": "flag", - "name": "application", - "type": "array", - "required": false, - "repeatable": true - }, - { - "role": "flag", - "name": "cluster", - "type": "array", - "required": false, - "summary": "A list of the cluster privileges that you want to check.", - "repeatable": true - }, - { - "role": "flag", - "name": "index", - "type": "array", - "required": false, - "repeatable": true + "name": "namespace", + "type": "string", + "required": true, + "summary": "The name of the namespace." }, { "role": "flag", - "name": "user", + "name": "service", "type": "string", - "required": false, - "summary": "Username" + "required": true, + "summary": "The service name." }, { "role": "flag", @@ -52831,7 +52989,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Check user privileges.", + "summary": "Get service account credentials.", "intent": { "destructive": false, "idempotent": true, @@ -52845,23 +53003,14 @@ "es", "security" ], - "name": "has-privileges-user-profile", + "name": "get-settings", "parameters": [ { "role": "flag", - "name": "uids", - "type": "array", - "required": true, - "summary": "A list of profile IDs. The privileges are checked for associated users of the profiles.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "privileges", + "name": "master-timeout", "type": "string", - "required": true, - "summary": "An object containing all the privileges to be checked." + "required": false, + "summary": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", @@ -52914,7 +53063,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Check user profile privileges.", + "summary": "Get security index settings.", "intent": { "destructive": false, "idempotent": true, @@ -52928,51 +53077,8 @@ "es", "security" ], - "name": "invalidate-api-key", + "name": "get-stats", "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": false - }, - { - "role": "flag", - "name": "ids", - "type": "array", - "required": false, - "summary": "A list of API key ids.\nThis parameter cannot be used with any of `name`, `realm_name`, or `username`.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": false, - "summary": "An API key name.\nThis parameter cannot be used with any of `ids`, `realm_name` or `username`." - }, - { - "role": "flag", - "name": "owner", - "type": "boolean", - "required": false, - "summary": "Query API keys owned by the currently authenticated user.\nThe `realm_name` or `username` parameters cannot be specified when this parameter is set to `true` as they are assumed to be the currently authenticated ones.\n\nNOTE: At least one of `ids`, `name`, `username`, and `realm_name` must be specified if `owner` is `false`." - }, - { - "role": "flag", - "name": "realm-name", - "type": "string", - "required": false, - "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `ids` or `name`, or when `owner` flag is set to `true`." - }, - { - "role": "flag", - "name": "username", - "type": "string", - "required": false, - "summary": "The username of a user.\nThis parameter cannot be used with either `ids` or `name` or when `owner` flag is set to `true`." - }, { "role": "flag", "name": "error-trace", @@ -53022,18 +53128,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Invalidate API keys.", + "summary": "Get security stats.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -53045,35 +53144,63 @@ "es", "security" ], - "name": "invalidate-token", + "name": "get-token", "parameters": [ { "role": "flag", - "name": "token", + "name": "grant-type", + "type": "enum", + "required": false, + "summary": "The type of grant.\nSupported grant types are: `password`, `_kerberos`, `client_credentials`, `refresh_token`, and `_user_managed_service_account`.", + "enumValues": [ + "password", + "client_credentials", + "_kerberos", + "refresh_token", + "_user_managed_service_account" + ] + }, + { + "role": "flag", + "name": "scope", "type": "string", "required": false, - "summary": "An access token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used." + "summary": "The scope of the token.\nCurrently tokens are only issued for a scope of FULL regardless of the value sent with the request." + }, + { + "role": "flag", + "name": "password", + "type": "string", + "required": false, + "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." + }, + { + "role": "flag", + "name": "kerberos-ticket", + "type": "string", + "required": false, + "summary": "The base64 encoded kerberos ticket.\nIf you specify the `_kerberos` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." }, { "role": "flag", "name": "refresh-token", "type": "string", "required": false, - "summary": "A refresh token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used." + "summary": "The string that was returned when you created the token, which enables you to extend its life.\nIf you specify the `refresh_token` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." }, { "role": "flag", - "name": "realm-name", + "name": "service-account-token", "type": "string", "required": false, - "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `refresh_token` or `token`." + "summary": "The service account token of a user-managed service account, as returned by the create service account token API.\nIf you specify the `_user_managed_service_account` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." }, { "role": "flag", "name": "username", "type": "string", "required": false, - "summary": "The username of a user.\nThis parameter cannot be used with either `refresh_token` or `token`." + "summary": "The username that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nThis parameter is not valid with any other supported grant type." }, { "role": "flag", @@ -53124,20 +53251,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Invalidate a token.", + "summary": "Get a token.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -53147,35 +53264,22 @@ "es", "security" ], - "name": "oidc-authenticate", + "name": "get-user", "parameters": [ { "role": "flag", - "name": "nonce", - "type": "string", - "required": true, - "summary": "Associate a client session with an ID token and mitigate replay attacks.\nThis value needs to be the same as the one that was provided to the `/_security/oidc/prepare` API or the one that was generated by Elasticsearch and included in the response to that call." - }, - { - "role": "flag", - "name": "realm", - "type": "string", + "name": "with-profile-uid", + "type": "boolean", "required": false, - "summary": "The name of the OpenID Connect realm.\nThis property is useful in cases where multiple realms are defined." - }, - { - "role": "flag", - "name": "redirect-uri", - "type": "string", - "required": true, - "summary": "The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication.\nThis URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider." + "summary": "Determines whether to retrieve the user profile UID, if it exists, for the users." }, { "role": "flag", - "name": "state", + "name": "username", "type": "string", - "required": true, - "summary": "Maintain state between the authentication request and the response.\nThis value needs to be the same as the one that was provided to the `/_security/oidc/prepare` API or the one that was generated by Elasticsearch and included in the response to that call." + "required": false, + "summary": "An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users.", + "repeatable": true }, { "role": "flag", @@ -53228,8 +53332,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Authenticate OpenID Connect.", + "summary": "Get users.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -53239,22 +53346,8 @@ "es", "security" ], - "name": "oidc-logout", + "name": "get-user-privileges", "parameters": [ - { - "role": "flag", - "name": "token", - "type": "string", - "required": true, - "summary": "The access token to be invalidated." - }, - { - "role": "flag", - "name": "refresh-token", - "type": "string", - "required": false, - "summary": "The refresh token to be invalidated." - }, { "role": "flag", "name": "error-trace", @@ -53306,8 +53399,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Logout of OpenID Connect.", + "summary": "Get user privileges.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -53317,42 +53413,23 @@ "es", "security" ], - "name": "oidc-prepare-authentication", + "name": "get-user-profile", "parameters": [ { "role": "flag", - "name": "iss", - "type": "string", - "required": false, - "summary": "In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to.\nIt cannot be specified when *realm* is specified.\nOne of *realm* or *iss* is required." - }, - { - "role": "flag", - "name": "login-hint", - "type": "string", - "required": false, - "summary": "In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the *login_hint* parameter.\nThis parameter is not valid when *realm* is specified." - }, - { - "role": "flag", - "name": "nonce", - "type": "string", - "required": false, - "summary": "The value used to associate a client session with an ID token and to mitigate replay attacks.\nIf the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response." - }, - { - "role": "flag", - "name": "realm", + "name": "data", "type": "string", "required": false, - "summary": "The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request.\nIt cannot be specified when *iss* is specified.\nOne of *realm* or *iss* is required." + "summary": "A comma-separated list of filters for the `data` field of the profile document.\nTo return all content use `data=*`.\nTo return a subset of content use `data=` to retrieve content nested under the specified ``.\nBy default returns no `data` content.", + "repeatable": true }, { "role": "flag", - "name": "state", + "name": "uid", "type": "string", - "required": false, - "summary": "The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation.\nIf the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response." + "required": true, + "summary": "A unique identifier for the user profile.", + "repeatable": true }, { "role": "flag", @@ -53405,8 +53482,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Prepare OpenID connect authentication.", + "summary": "Get a user profile.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -53416,14 +53496,14 @@ "es", "security" ], - "name": "put-privileges", + "name": "grant-api-key", "parameters": [ { "role": "flag", "name": "refresh", "type": "enum", "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", "enumValues": [ "true", "false", @@ -53432,9 +53512,64 @@ }, { "role": "flag", - "name": "privileges", + "name": "api-key", "type": "string", - "required": true + "required": true, + "summary": "The API key." + }, + { + "role": "flag", + "name": "grant-type", + "type": "enum", + "required": true, + "summary": "The type of grant. Supported grant types are: `access_token`, `password`, and `_user_managed_service_account`.", + "enumValues": [ + "access_token", + "password", + "_user_managed_service_account" + ] + }, + { + "role": "flag", + "name": "access-token", + "type": "string", + "required": false, + "summary": "The user's access token.\nIf you specify the `access_token` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "client-authentication", + "type": "string", + "required": false, + "summary": "The client authentication for a JWT that requires it, which is what is normally sent in the `ES-Client-Authentication` request header.\nIt is valid only with the `access_token` grant type, when the access token is a JWT." + }, + { + "role": "flag", + "name": "service-account-token", + "type": "string", + "required": false, + "summary": "The service account token of a user-managed service account, as returned by the create service account token API.\nIf you specify the `_user_managed_service_account` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "username", + "type": "string", + "required": false, + "summary": "The user name that identifies the user.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "password", + "type": "string", + "required": false, + "summary": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types." + }, + { + "role": "flag", + "name": "run-as", + "type": "string", + "required": false, + "summary": "The name of the user to be impersonated.\nIt is not valid with the `_user_managed_service_account` grant type." }, { "role": "flag", @@ -53487,11 +53622,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update application privileges.", + "summary": "Grant an API key.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -53501,103 +53633,119 @@ "es", "security" ], - "name": "put-role", + "name": "has-privileges", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", + "name": "application", + "type": "array", "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] + "repeatable": true }, { "role": "flag", - "name": "applications", + "name": "cluster", "type": "array", "required": false, - "summary": "A list of application privilege entries.", + "summary": "A list of the cluster privileges that you want to check.", "repeatable": true }, { "role": "flag", - "name": "cluster", + "name": "index", "type": "array", "required": false, - "summary": "A list of cluster privileges. These privileges define the cluster-level actions for users with this role.", "repeatable": true }, { "role": "flag", - "name": "global", + "name": "user", "type": "string", "required": false, - "summary": "An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges." + "summary": "Username" }, { "role": "flag", - "name": "indices", - "type": "array", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "A list of indices permissions entries.", - "repeatable": true + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "remote-indices", - "type": "array", + "name": "filter-path", + "type": "string", "required": false, - "summary": "A list of remote indices permissions entries.\n\nNOTE: Remote indices are effective for remote clusters configured with the API key based model.\nThey have no effect for remote clusters configured with the certificate based model.", + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", "repeatable": true }, { "role": "flag", - "name": "remote-cluster", - "type": "array", + "name": "human", + "type": "boolean", "required": false, - "summary": "A list of remote cluster permissions entries.", - "repeatable": true + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "metadata", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Optional metadata. Within the metadata object, keys that begin with an underscore (`_`) are reserved for system use." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "run-as", - "type": "array", + "name": "input-file", + "type": "string", "required": false, - "summary": "A list of users that the owners of this role can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.", - "repeatable": true, - "elementType": "string" + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "description", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Optional description of the role descriptor" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "transient-metadata", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If `enabled` is `false`, the role is ignored, but is still listed in the response from the authenticate API." + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Check user privileges.", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "security" + ], + "name": "has-privileges-user-profile", + "parameters": [ + { + "role": "flag", + "name": "uids", + "type": "array", + "required": true, + "summary": "A list of profile IDs. The privileges are checked for associated users of the profiles.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "name", + "name": "privileges", "type": "string", "required": true, - "summary": "The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role." + "summary": "An object containing all the privileges to be checked." }, { "role": "flag", @@ -53650,7 +53798,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update roles.", + "summary": "Check user profile privileges.", "intent": { "destructive": false, "idempotent": true, @@ -53664,72 +53812,50 @@ "es", "security" ], - "name": "put-role-mapping", + "name": "invalidate-api-key", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "enabled", - "type": "boolean", - "required": false, - "summary": "Mappings that have `enabled` set to `false` are ignored when role mapping is performed." - }, - { - "role": "flag", - "name": "metadata", + "name": "id", "type": "string", - "required": false, - "summary": "Additional metadata that helps define which roles are assigned to each user.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." + "required": false }, { "role": "flag", - "name": "roles", + "name": "ids", "type": "array", "required": false, - "summary": "A list of role names that are granted to the users that match the role mapping rules.\nExactly one of `roles` or `role_templates` must be specified.", + "summary": "A list of API key ids.\nThis parameter cannot be used with any of `name`, `realm_name`, or `username`.", "repeatable": true, "elementType": "string" }, { "role": "flag", - "name": "role-templates", - "type": "array", + "name": "name", + "type": "string", "required": false, - "summary": "A list of Mustache templates that will be evaluated to determine the roles names that should granted to the users that match the role mapping rules.\nExactly one of `roles` or `role_templates` must be specified.", - "repeatable": true + "summary": "An API key name.\nThis parameter cannot be used with any of `ids`, `realm_name` or `username`." }, { "role": "flag", - "name": "rules", - "type": "string", + "name": "owner", + "type": "boolean", "required": false, - "summary": "The rules that determine which users should be matched by the mapping.\nA rule is a logical condition that is expressed by using a JSON DSL." + "summary": "Query API keys owned by the currently authenticated user.\nThe `realm_name` or `username` parameters cannot be specified when this parameter is set to `true` as they are assumed to be the currently authenticated ones.\n\nNOTE: At least one of `ids`, `name`, `username`, and `realm_name` must be specified if `owner` is `false`." }, { "role": "flag", - "name": "run-as", - "type": "array", + "name": "realm-name", + "type": "string", "required": false, - "repeatable": true, - "elementType": "string" + "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `ids` or `name`, or when `owner` flag is set to `true`." }, { "role": "flag", - "name": "name", + "name": "username", "type": "string", - "required": true, - "summary": "The distinct name that identifies the role mapping.\nThe name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way." + "required": false, + "summary": "The username of a user.\nThis parameter cannot be used with either `ids` or `name` or when `owner` flag is set to `true`." }, { "role": "flag", @@ -53780,11 +53906,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Create or update role mappings.", + "summary": "Invalidate API keys.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -53796,77 +53929,35 @@ "es", "security" ], - "name": "put-user", + "name": "invalidate-token", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "Valid values are `true`, `false`, and `wait_for`.\nThese values have the same meaning as in the index API, but the default value for this API is true.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "username", - "type": "string", - "required": true, - "summary": "An identifier for the user.\n\nNOTE: Usernames must be at least 1 and no more than 507 characters.\nThey can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block.\nLeading or trailing whitespace is not allowed." - }, - { - "role": "flag", - "name": "email", - "type": "string", - "required": false, - "summary": "The email of the user." - }, - { - "role": "flag", - "name": "full-name", + "name": "token", "type": "string", "required": false, - "summary": "The full name of the user." + "summary": "An access token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used." }, { "role": "flag", - "name": "metadata", + "name": "refresh-token", "type": "string", "required": false, - "summary": "Arbitrary metadata that you want to associate with the user." + "summary": "A refresh token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used." }, { "role": "flag", - "name": "password", + "name": "realm-name", "type": "string", "required": false, - "summary": "The user's password.\nPasswords must be at least 6 characters long.\nWhen adding a user, one of `password` or `password_hash` is required.\nWhen updating an existing user, the password is optional, so that other fields on the user (such as their roles) may be updated without modifying the user's password" + "summary": "The name of an authentication realm.\nThis parameter cannot be used with either `refresh_token` or `token`." }, { "role": "flag", - "name": "password-hash", + "name": "username", "type": "string", "required": false, - "summary": "A hash of the user's password.\nThis must be produced using the same hashing algorithm as has been configured for password storage.\nFor more details, see the explanation of the `xpack.security.authc.password_hashing.algorithm` setting in the user cache and password hash algorithm documentation.\nUsing this parameter allows the client to pre-hash the password for performance and/or confidentiality reasons.\nThe `password` parameter and the `password_hash` parameter cannot be used in the same request." - }, - { - "role": "flag", - "name": "roles", - "type": "array", - "required": false, - "summary": "A set of roles the user has.\nThe roles determine the user's access permissions.\nTo create a user without any roles, specify an empty list (`[]`).", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "enabled", - "type": "boolean", - "required": false, - "summary": "Specifies whether the user is enabled." + "summary": "The username of a user.\nThis parameter cannot be used with either `refresh_token` or `token`." }, { "role": "flag", @@ -53917,11 +54008,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Create or update users.", + "summary": "Invalidate a token.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -53933,56 +54031,35 @@ "es", "security" ], - "name": "put-user-managed-service-account", + "name": "oidc-authenticate", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `true` then refresh the affected shards to make this operation visible to search, if `false` then do nothing with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "roles", - "type": "array", + "name": "nonce", + "type": "string", "required": true, - "summary": "The names of the roles to grant to the service account, up to a maximum of 1000.\nThe roles are resolved when the account authenticates, so they do not have to exist yet.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "enabled", - "type": "boolean", - "required": false, - "summary": "Whether the account can authenticate.\nTokens can still be created for a disabled account; they just cannot be used until the account is enabled." + "summary": "Associate a client session with an ID token and mitigate replay attacks.\nThis value needs to be the same as the one that was provided to the `/_security/oidc/prepare` API or the one that was generated by Elasticsearch and included in the response to that call." }, { "role": "flag", - "name": "description", + "name": "realm", "type": "string", "required": false, - "summary": "A free-text description of the account, as sent on the last PUT of the account.\nIt has no meaning to Elasticsearch. Absent when the account has no description." + "summary": "The name of the OpenID Connect realm.\nThis property is useful in cases where multiple realms are defined." }, { "role": "flag", - "name": "namespace", + "name": "redirect-uri", "type": "string", "required": true, - "summary": "The namespace, which is a top-level grouping of service accounts.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters.\nIt cannot be `elastic`, which is reserved for built-in service accounts." + "summary": "The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication.\nThis URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider." }, { "role": "flag", - "name": "service", + "name": "state", "type": "string", "required": true, - "summary": "The service name.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters." + "summary": "Maintain state between the authentication request and the response.\nThis value needs to be the same as the one that was provided to the `/_security/oidc/prepare` API or the one that was generated by Elasticsearch and included in the response to that call." }, { "role": "flag", @@ -54035,11 +54112,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create user-managed service accounts.", + "summary": "Authenticate OpenID Connect.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -54049,81 +54123,21 @@ "es", "security" ], - "name": "query-api-keys", + "name": "oidc-logout", "parameters": [ { "role": "flag", - "name": "with-limited-by", - "type": "boolean", - "required": false, - "summary": "Return the snapshot of the owner user's role descriptors associated with the API key.\nAn API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it).\nAn API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has `manage_api_key` or higher privileges." - }, - { - "role": "flag", - "name": "with-profile-uid", - "type": "boolean", - "required": false, - "summary": "Determines whether to also retrieve the profile UID for the API key owner principal.\nIf it exists, the profile UID is returned under the `profile_uid` response field for each API key." - }, - { - "role": "flag", - "name": "typed-keys", - "type": "boolean", - "required": false, - "summary": "Determines whether aggregation names are prefixed by their respective types in the response." - }, - { - "role": "flag", - "name": "aggregations", - "type": "string", - "required": false, - "summary": "Any aggregations to run over the corpus of returned API keys.\nAggregations and queries work together. Aggregations are computed only on the API keys that match the query.\nThis supports only a subset of aggregation types, namely: `terms`, `range`, `date_range`, `missing`,\n`cardinality`, `value_count`, `composite`, `filter`, and `filters`.\nAdditionally, aggregations only run over the same subset of fields that query works with." - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "A query to filter which API keys to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following public information associated with an API key: `id`, `type`, `name`,\n`creation`, `expiration`, `invalidated`, `invalidation`, `username`, `realm`, and `metadata`.\n\nNOTE: The queryable string values associated with API keys are internally mapped as keywords.\nConsequently, if no `analyzer` parameter is specified for a `match` query, then the provided match query string is interpreted as a single keyword value.\nSuch a match query is hence equivalent to a `term` query." - }, - { - "role": "flag", - "name": "from", - "type": "number", - "required": false, - "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." - }, - { - "role": "flag", - "name": "sort", + "name": "token", "type": "string", - "required": false, - "summary": "The sort definition.\nOther than `id`, all public fields of an API key are eligible for sorting.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", - "repeatable": true, - "separator": "," - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "The number of hits to return.\nIt must not be negative.\nThe `size` parameter can be set to `0`, in which case no API key matches are returned, only the aggregation results.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." - }, - { - "role": "flag", - "name": "search-after", - "type": "array", - "required": false, - "summary": "The search after definition.", - "repeatable": true, - "elementType": "number" + "required": true, + "summary": "The access token to be invalidated." }, { "role": "flag", - "name": "aggs", + "name": "refresh-token", "type": "string", "required": false, - "summary": "Any aggregations to run over the corpus of returned API keys.\nAggregations and queries work together. Aggregations are computed only on the API keys that match the query.\nThis supports only a subset of aggregation types, namely: `terms`, `range`, `date_range`, `missing`,\n`cardinality`, `value_count`, `composite`, `filter`, and `filters`.\nAdditionally, aggregations only run over the same subset of fields that query works with." + "summary": "The refresh token to be invalidated." }, { "role": "flag", @@ -54176,11 +54190,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find API keys with a query.", + "summary": "Logout of OpenID Connect.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -54190,46 +54201,42 @@ "es", "security" ], - "name": "query-role", + "name": "oidc-prepare-authentication", "parameters": [ { "role": "flag", - "name": "query", + "name": "iss", "type": "string", "required": false, - "summary": "A query to filter which roles to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following information associated with roles: `name`, `description`, `metadata`,\n`applications.application`, `applications.privileges`, and `applications.resources`." + "summary": "In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to.\nIt cannot be specified when *realm* is specified.\nOne of *realm* or *iss* is required." }, { "role": "flag", - "name": "from", - "type": "number", + "name": "login-hint", + "type": "string", "required": false, - "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." + "summary": "In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the *login_hint* parameter.\nThis parameter is not valid when *realm* is specified." }, { "role": "flag", - "name": "sort", + "name": "nonce", "type": "string", "required": false, - "summary": "The sort definition.\nYou can sort on `name`, `description`, `metadata`, `applications.application`, `applications.privileges`,\nand `applications.resources`.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", - "repeatable": true, - "separator": "," + "summary": "The value used to associate a client session with an ID token and to mitigate replay attacks.\nIf the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response." }, { "role": "flag", - "name": "size", - "type": "number", + "name": "realm", + "type": "string", "required": false, - "summary": "The number of hits to return.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." + "summary": "The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request.\nIt cannot be specified when *iss* is specified.\nOne of *realm* or *iss* is required." }, { "role": "flag", - "name": "search-after", - "type": "array", + "name": "state", + "type": "string", "required": false, - "summary": "The search after definition.", - "repeatable": true, - "elementType": "number" + "summary": "The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation.\nIf the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response." }, { "role": "flag", @@ -54282,11 +54289,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find roles with a query.", + "summary": "Prepare OpenID connect authentication.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -54296,53 +54300,25 @@ "es", "security" ], - "name": "query-user", + "name": "put-privileges", "parameters": [ { "role": "flag", - "name": "with-profile-uid", - "type": "boolean", - "required": false, - "summary": "Determines whether to retrieve the user profile UID, if it exists, for the users." - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "A query to filter which users to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following information associated with user: `username`, `roles`, `enabled`, `full_name`, and `email`." - }, - { - "role": "flag", - "name": "from", - "type": "number", + "name": "refresh", + "type": "enum", "required": false, - "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "sort", + "name": "privileges", "type": "string", - "required": false, - "summary": "The sort definition.\nFields eligible for sorting are: `username`, `roles`, `enabled`.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", - "repeatable": true, - "separator": "," - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "The number of hits to return.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." - }, - { - "role": "flag", - "name": "search-after", - "type": "array", - "required": false, - "summary": "The search after definition", - "repeatable": true, - "elementType": "number" + "required": true }, { "role": "flag", @@ -54395,7 +54371,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find users with a query.", + "summary": "Create or update application privileges.", "intent": { "destructive": false, "idempotent": true, @@ -54409,30 +54385,103 @@ "es", "security" ], - "name": "saml-authenticate", + "name": "put-role", "parameters": [ { "role": "flag", - "name": "content", + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "applications", + "type": "array", + "required": false, + "summary": "A list of application privilege entries.", + "repeatable": true + }, + { + "role": "flag", + "name": "cluster", + "type": "array", + "required": false, + "summary": "A list of cluster privileges. These privileges define the cluster-level actions for users with this role.", + "repeatable": true + }, + { + "role": "flag", + "name": "global", "type": "string", - "required": true, - "summary": "The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document." + "required": false, + "summary": "An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges." }, { "role": "flag", - "name": "ids", + "name": "indices", + "type": "array", + "required": false, + "summary": "A list of indices permissions entries.", + "repeatable": true + }, + { + "role": "flag", + "name": "remote-indices", + "type": "array", + "required": false, + "summary": "A list of remote indices permissions entries.\n\nNOTE: Remote indices are effective for remote clusters configured with the API key based model.\nThey have no effect for remote clusters configured with the certificate based model.", + "repeatable": true + }, + { + "role": "flag", + "name": "remote-cluster", + "type": "array", + "required": false, + "summary": "A list of remote cluster permissions entries.", + "repeatable": true + }, + { + "role": "flag", + "name": "metadata", "type": "string", - "required": true, - "summary": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", + "required": false, + "summary": "Optional metadata. Within the metadata object, keys that begin with an underscore (`_`) are reserved for system use." + }, + { + "role": "flag", + "name": "run-as", + "type": "array", + "required": false, + "summary": "A list of users that the owners of this role can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.", "repeatable": true, - "separator": "," + "elementType": "string" }, { "role": "flag", - "name": "realm", + "name": "description", "type": "string", "required": false, - "summary": "The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined." + "summary": "Optional description of the role descriptor" + }, + { + "role": "flag", + "name": "transient-metadata", + "type": "string", + "required": false, + "summary": "Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If `enabled` is `false`, the role is ignored, but is still listed in the response from the authenticate API." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role." }, { "role": "flag", @@ -54485,8 +54534,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Authenticate SAML.", + "summary": "Create or update roles.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -54496,37 +54548,72 @@ "es", "security" ], - "name": "saml-complete-logout", + "name": "put-role-mapping", "parameters": [ { "role": "flag", - "name": "realm", - "type": "string", - "required": true, - "summary": "The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response." + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "ids", + "name": "enabled", + "type": "boolean", + "required": false, + "summary": "Mappings that have `enabled` set to `false` are ignored when role mapping is performed." + }, + { + "role": "flag", + "name": "metadata", "type": "string", - "required": true, - "summary": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", + "required": false, + "summary": "Additional metadata that helps define which roles are assigned to each user.\nWithin the metadata object, keys beginning with `_` are reserved for system usage." + }, + { + "role": "flag", + "name": "roles", + "type": "array", + "required": false, + "summary": "A list of role names that are granted to the users that match the role mapping rules.\nExactly one of `roles` or `role_templates` must be specified.", "repeatable": true, - "separator": "," + "elementType": "string" }, { "role": "flag", - "name": "query-string", - "type": "string", + "name": "role-templates", + "type": "array", "required": false, - "summary": "If the SAML IdP sends the logout response with the HTTP-Redirect binding, this field must be set to the query string of the redirect URI." + "summary": "A list of Mustache templates that will be evaluated to determine the roles names that should granted to the users that match the role mapping rules.\nExactly one of `roles` or `role_templates` must be specified.", + "repeatable": true }, { "role": "flag", - "name": "content", + "name": "rules", "type": "string", "required": false, - "summary": "If the SAML IdP sends the logout response with the HTTP-Post binding, this field must be set to the value of the SAMLResponse form parameter from the logout response." + "summary": "The rules that determine which users should be matched by the mapping.\nA rule is a logical condition that is expressed by using a JSON DSL." + }, + { + "role": "flag", + "name": "run-as", + "type": "array", + "required": false, + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The distinct name that identifies the role mapping.\nThe name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way." }, { "role": "flag", @@ -54579,8 +54666,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Logout of SAML completely.", + "summary": "Create or update role mappings.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -54590,28 +54680,77 @@ "es", "security" ], - "name": "saml-invalidate", + "name": "put-user", "parameters": [ { "role": "flag", - "name": "acs", - "type": "string", + "name": "refresh", + "type": "enum", "required": false, - "summary": "The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the `realm` parameter." + "summary": "Valid values are `true`, `false`, and `wait_for`.\nThese values have the same meaning as in the index API, but the default value for this API is true.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "query-string", + "name": "username", "type": "string", "required": true, - "summary": "The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout.\nThis query should include a single parameter named `SAMLRequest` that contains a SAML logout request that is deflated and Base64 encoded.\nIf the SAML IdP has signed the logout request, the URL should include two extra parameters named `SigAlg` and `Signature` that contain the algorithm used for the signature and the signature value itself.\nIn order for Elasticsearch to be able to verify the IdP's signature, the value of the `query_string` field must be an exact match to the string provided by the browser.\nThe client application must not attempt to parse or process the string in any way." + "summary": "An identifier for the user.\n\nNOTE: Usernames must be at least 1 and no more than 507 characters.\nThey can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block.\nLeading or trailing whitespace is not allowed." }, { "role": "flag", - "name": "realm", + "name": "email", "type": "string", "required": false, - "summary": "The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the `acs` parameter." + "summary": "The email of the user." + }, + { + "role": "flag", + "name": "full-name", + "type": "string", + "required": false, + "summary": "The full name of the user." + }, + { + "role": "flag", + "name": "metadata", + "type": "string", + "required": false, + "summary": "Arbitrary metadata that you want to associate with the user." + }, + { + "role": "flag", + "name": "password", + "type": "string", + "required": false, + "summary": "The user's password.\nPasswords must be at least 6 characters long.\nWhen adding a user, one of `password` or `password_hash` is required.\nWhen updating an existing user, the password is optional, so that other fields on the user (such as their roles) may be updated without modifying the user's password" + }, + { + "role": "flag", + "name": "password-hash", + "type": "string", + "required": false, + "summary": "A hash of the user's password.\nThis must be produced using the same hashing algorithm as has been configured for password storage.\nFor more details, see the explanation of the `xpack.security.authc.password_hashing.algorithm` setting in the user cache and password hash algorithm documentation.\nUsing this parameter allows the client to pre-hash the password for performance and/or confidentiality reasons.\nThe `password` parameter and the `password_hash` parameter cannot be used in the same request." + }, + { + "role": "flag", + "name": "roles", + "type": "array", + "required": false, + "summary": "A set of roles the user has.\nThe roles determine the user's access permissions.\nTo create a user without any roles, specify an empty list (`[]`).", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "enabled", + "type": "boolean", + "required": false, + "summary": "Specifies whether the user is enabled." }, { "role": "flag", @@ -54664,8 +54803,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Invalidate SAML.", + "summary": "Create or update users.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -54675,21 +54817,56 @@ "es", "security" ], - "name": "saml-logout", + "name": "put-user-managed-service-account", "parameters": [ { "role": "flag", - "name": "token", - "type": "string", + "name": "refresh", + "type": "enum", + "required": false, + "summary": "If `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `true` then refresh the affected shards to make this operation visible to search, if `false` then do nothing with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] + }, + { + "role": "flag", + "name": "roles", + "type": "array", "required": true, - "summary": "The access token that was returned as a response to calling the SAML authenticate API.\nAlternatively, the most recent token that was received after refreshing the original one by using a `refresh_token`." + "summary": "The names of the roles to grant to the service account, up to a maximum of 1000.\nThe roles are resolved when the account authenticates, so they do not have to exist yet.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "refresh-token", + "name": "enabled", + "type": "boolean", + "required": false, + "summary": "Whether the account can authenticate.\nTokens can still be created for a disabled account; they just cannot be used until the account is enabled." + }, + { + "role": "flag", + "name": "description", "type": "string", "required": false, - "summary": "The refresh token that was returned as a response to calling the SAML authenticate API.\nAlternatively, the most recent refresh token that was received after refreshing the original access token." + "summary": "A free-text description of the account, as sent on the last PUT of the account.\nIt has no meaning to Elasticsearch. Absent when the account has no description." + }, + { + "role": "flag", + "name": "namespace", + "type": "string", + "required": true, + "summary": "The namespace, which is a top-level grouping of service accounts.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters.\nIt cannot be `elastic`, which is reserved for built-in service accounts." + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true, + "summary": "The service name.\nIt must start with a letter or digit and can contain only letters, digits, hyphens, and underscores, up to a maximum of 128 characters." }, { "role": "flag", @@ -54742,8 +54919,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Logout of SAML.", + "summary": "Create user-managed service accounts.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -54753,99 +54933,81 @@ "es", "security" ], - "name": "saml-prepare-authentication", + "name": "query-api-keys", "parameters": [ { "role": "flag", - "name": "acs", - "type": "string", - "required": false, - "summary": "The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch.\nThe realm is used to generate the authentication request. You must specify either this parameter or the `realm` parameter." - }, - { - "role": "flag", - "name": "realm", - "type": "string", + "name": "with-limited-by", + "type": "boolean", "required": false, - "summary": "The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request.\nYou must specify either this parameter or the `acs` parameter." + "summary": "Return the snapshot of the owner user's role descriptors associated with the API key.\nAn API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it).\nAn API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has `manage_api_key` or higher privileges." }, { "role": "flag", - "name": "relay-state", - "type": "string", + "name": "with-profile-uid", + "type": "boolean", "required": false, - "summary": "A string that will be included in the redirect URL that this API returns as the `RelayState` query parameter.\nIf the Authentication Request is signed, this value is used as part of the signature computation." + "summary": "Determines whether to also retrieve the profile UID for the API key owner principal.\nIf it exists, the profile UID is returned under the `profile_uid` response field for each API key." }, { "role": "flag", - "name": "error-trace", + "name": "typed-keys", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "Determines whether aggregation names are prefixed by their respective types in the response." }, { "role": "flag", - "name": "filter-path", + "name": "aggregations", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "Any aggregations to run over the corpus of returned API keys.\nAggregations and queries work together. Aggregations are computed only on the API keys that match the query.\nThis supports only a subset of aggregation types, namely: `terms`, `range`, `date_range`, `missing`,\n`cardinality`, `value_count`, `composite`, `filter`, and `filters`.\nAdditionally, aggregations only run over the same subset of fields that query works with." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "query", + "type": "string", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "A query to filter which API keys to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following public information associated with an API key: `id`, `type`, `name`,\n`creation`, `expiration`, `invalidated`, `invalidation`, `username`, `realm`, and `metadata`.\n\nNOTE: The queryable string values associated with API keys are internally mapped as keywords.\nConsequently, if no `analyzer` parameter is specified for a `match` query, then the provided match query string is interpreted as a single keyword value.\nSuch a match query is hence equivalent to a `term` query." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "from", + "type": "number", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." }, { "role": "flag", - "name": "input-file", + "name": "sort", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The sort definition.\nOther than `id`, all public fields of an API key are eligible for sorting.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", + "repeatable": true, + "separator": "," }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "size", + "type": "number", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The number of hits to return.\nIt must not be negative.\nThe `size` parameter can be set to `0`, in which case no API key matches are returned, only the aggregation results.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "search-after", + "type": "array", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Prepare SAML authentication.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "security" - ], - "name": "saml-service-provider-metadata", - "parameters": [ + "summary": "The search after definition.", + "repeatable": true, + "elementType": "number" + }, { "role": "flag", - "name": "realm-name", + "name": "aggs", "type": "string", - "required": true, - "summary": "The name of the SAML realm in Elasticsearch." + "required": false, + "summary": "Any aggregations to run over the corpus of returned API keys.\nAggregations and queries work together. Aggregations are computed only on the API keys that match the query.\nThis supports only a subset of aggregation types, namely: `terms`, `range`, `date_range`, `missing`,\n`cardinality`, `value_count`, `composite`, `filter`, and `filters`.\nAdditionally, aggregations only run over the same subset of fields that query works with." }, { "role": "flag", @@ -54898,7 +55060,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create SAML service provider metadata.", + "summary": "Find API keys with a query.", "intent": { "destructive": false, "idempotent": true, @@ -54912,37 +55074,46 @@ "es", "security" ], - "name": "suggest-user-profiles", + "name": "query-role", "parameters": [ { "role": "flag", - "name": "data", + "name": "query", "type": "string", "required": false, - "summary": "A comma-separated list of filters for the `data` field of the profile document.\nTo return all content use `data=*`.\nTo return a subset of content, use `data=` to retrieve content nested under the specified ``.\nBy default, the API returns no `data` content.\nIt is an error to specify `data` as both the query parameter and the request body field.", - "repeatable": true, - "separator": "," + "summary": "A query to filter which roles to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following information associated with roles: `name`, `description`, `metadata`,\n`applications.application`, `applications.privileges`, and `applications.resources`." }, { "role": "flag", - "name": "name", + "name": "from", + "type": "number", + "required": false, + "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." + }, + { + "role": "flag", + "name": "sort", "type": "string", "required": false, - "summary": "A query string used to match name-related fields in user profile documents.\nName-related fields are the user's `username`, `full_name`, and `email`." + "summary": "The sort definition.\nYou can sort on `name`, `description`, `metadata`, `applications.application`, `applications.privileges`,\nand `applications.resources`.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", + "repeatable": true, + "separator": "," }, { "role": "flag", "name": "size", "type": "number", "required": false, - "summary": "The number of profiles to return." + "summary": "The number of hits to return.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." }, { "role": "flag", - "name": "hint", - "type": "string", + "name": "search-after", + "type": "array", "required": false, - "summary": "Extra search criteria to improve relevance of the suggestion result.\nProfiles matching the spcified hint are ranked higher in the response.\nProfiles not matching the hint aren't excluded from the response as long as the profile matches the `name` field query." + "summary": "The search after definition.", + "repeatable": true, + "elementType": "number" }, { "role": "flag", @@ -54995,7 +55166,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Suggest a user profile.", + "summary": "Find roles with a query.", "intent": { "destructive": false, "idempotent": true, @@ -55009,35 +55180,53 @@ "es", "security" ], - "name": "update-api-key", + "name": "query-user", "parameters": [ { "role": "flag", - "name": "role-descriptors", - "type": "string", + "name": "with-profile-uid", + "type": "boolean", "required": false, - "summary": "The role descriptors to assign to this API key.\nThe API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user.\nYou can assign new privileges by specifying them in this parameter.\nTo remove assigned privileges, you can supply an empty `role_descriptors` parameter, that is to say, an empty object `{}`.\nIf an API key has no assigned privileges, it inherits the owner user's full permissions.\nThe snapshot of the owner's permissions is always updated, whether you supply the `role_descriptors` parameter or not.\nThe structure of a role descriptor is the same as the request for the create API keys API." + "summary": "Determines whether to retrieve the user profile UID, if it exists, for the users." }, { "role": "flag", - "name": "metadata", + "name": "query", "type": "string", "required": false, - "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports a nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage.\nWhen specified, this value fully replaces the metadata previously associated with the API key." + "summary": "A query to filter which users to return.\nIf the query parameter is missing, it is equivalent to a `match_all` query.\nThe query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `match`,\n`ids`, `prefix`, `wildcard`, `exists`, `range`, and `simple_query_string`.\nYou can query the following information associated with user: `username`, `roles`, `enabled`, `full_name`, and `email`." }, { "role": "flag", - "name": "expiration", - "type": "string", + "name": "from", + "type": "number", "required": false, - "summary": "The expiration time for the API key.\nBy default, API keys never expire.\nThis property can be omitted to leave the expiration unchanged." + "summary": "The starting document offset.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." }, { "role": "flag", - "name": "id", + "name": "sort", "type": "string", - "required": true, - "summary": "The ID of the API key to update." + "required": false, + "summary": "The sort definition.\nFields eligible for sorting are: `username`, `roles`, `enabled`.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", + "repeatable": true, + "separator": "," + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "The number of hits to return.\nIt must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter." + }, + { + "role": "flag", + "name": "search-after", + "type": "array", + "required": false, + "summary": "The search after definition", + "repeatable": true, + "elementType": "number" }, { "role": "flag", @@ -55090,7 +55279,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update an API key.", + "summary": "Find users with a query.", "intent": { "destructive": false, "idempotent": true, @@ -55104,42 +55293,30 @@ "es", "security" ], - "name": "update-cross-cluster-api-key", + "name": "saml-authenticate", "parameters": [ { "role": "flag", - "name": "access", + "name": "content", "type": "string", "required": true, - "summary": "The access to be granted to this API key.\nThe access is composed of permissions for cross cluster search and cross cluster replication.\nAt least one of them must be specified.\nWhen specified, the new access assignment fully replaces the previously assigned access." - }, - { - "role": "flag", - "name": "expiration", - "type": "string", - "required": false, - "summary": "The expiration time for the API key.\nBy default, API keys never expire. This property can be omitted to leave the value unchanged." + "summary": "The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document." }, { "role": "flag", - "name": "metadata", + "name": "ids", "type": "string", - "required": false, - "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage.\nWhen specified, this information fully replaces metadata previously associated with the API key." + "required": true, + "summary": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "certificate-identity", + "name": "realm", "type": "string", "required": false, - "summary": "The certificate identity to associate with this API key.\nThis field is used to restrict the API key to connections authenticated by a specific TLS certificate.\nThe value should match the certificate's distinguished name (DN) pattern.\nWhen specified, this fully replaces any previously assigned certificate identity.\nTo clear an existing certificate identity, explicitly set this field to `null`.\nWhen omitted, the existing certificate identity remains unchanged." - }, - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The ID of the cross-cluster API key to update." + "summary": "The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined." }, { "role": "flag", @@ -55192,11 +55369,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a cross-cluster API key.", + "summary": "Authenticate SAML.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -55206,42 +55380,37 @@ "es", "security" ], - "name": "update-settings", + "name": "saml-complete-logout", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "timeout", + "name": "realm", "type": "string", - "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "required": true, + "summary": "The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response." }, { "role": "flag", - "name": "security", + "name": "ids", "type": "string", - "required": false, - "summary": "Settings for the index used for most security configuration, including native realm users and roles configured with the API." + "required": true, + "summary": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "security-profile", + "name": "query-string", "type": "string", "required": false, - "summary": "Settings for the index used to store profile information." + "summary": "If the SAML IdP sends the logout response with the HTTP-Redirect binding, this field must be set to the query string of the redirect URI." }, { "role": "flag", - "name": "security-tokens", + "name": "content", "type": "string", "required": false, - "summary": "Settings for the index used to store tokens." + "summary": "If the SAML IdP sends the logout response with the HTTP-Post binding, this field must be set to the value of the SAMLResponse form parameter from the logout response." }, { "role": "flag", @@ -55294,11 +55463,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update security index settings.", + "summary": "Logout of SAML completely.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -55308,54 +55474,28 @@ "es", "security" ], - "name": "update-user-profile-data", + "name": "saml-invalidate", "parameters": [ { "role": "flag", - "name": "if-seq-no", - "type": "number", - "required": false, - "summary": "Only perform the operation if the document has this sequence number." - }, - { - "role": "flag", - "name": "if-primary-term", - "type": "number", - "required": false, - "summary": "Only perform the operation if the document has this primary term." - }, - { - "role": "flag", - "name": "refresh", - "type": "enum", - "required": false, - "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", - "enumValues": [ - "true", - "false", - "wait_for" - ] - }, - { - "role": "flag", - "name": "labels", + "name": "acs", "type": "string", "required": false, - "summary": "Searchable data that you want to associate with the user profile.\nThis field supports a nested data structure.\nWithin the labels object, top-level keys cannot begin with an underscore (`_`) or contain a period (`.`)." + "summary": "The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the `realm` parameter." }, { "role": "flag", - "name": "data", + "name": "query-string", "type": "string", - "required": false, - "summary": "Non-searchable data that you want to associate with the user profile.\nThis field supports a nested data structure.\nWithin the `data` object, top-level keys cannot begin with an underscore (`_`) or contain a period (`.`).\nThe data object is not searchable, but can be retrieved with the get user profile API." + "required": true, + "summary": "The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout.\nThis query should include a single parameter named `SAMLRequest` that contains a SAML logout request that is deflated and Base64 encoded.\nIf the SAML IdP has signed the logout request, the URL should include two extra parameters named `SigAlg` and `Signature` that contain the algorithm used for the signature and the signature value itself.\nIn order for Elasticsearch to be able to verify the IdP's signature, the value of the `query_string` field must be an exact match to the string provided by the browser.\nThe client application must not attempt to parse or process the string in any way." }, { "role": "flag", - "name": "uid", + "name": "realm", "type": "string", - "required": true, - "summary": "A unique identifier for the user profile." + "required": false, + "summary": "The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the `acs` parameter." }, { "role": "flag", @@ -55408,88 +55548,32 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update user profile data.", + "summary": "Invalidate SAML.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch security API commands" - }, - { - "segment": "simulate", - "commands": [ + }, { "path": [ "stack", "es", - "simulate" + "security" ], - "name": "ingest", + "name": "saml-logout", "parameters": [ { "role": "flag", - "name": "pipeline", + "name": "token", "type": "string", - "required": false, - "summary": "The pipeline to use as the default pipeline.\nThis value can be used to override the default pipeline of the index." - }, - { - "role": "flag", - "name": "merge-type", - "type": "enum", - "required": false, - "summary": "The mapping merge type if mapping overrides are being provided in mapping_addition.\nThe allowed values are one of index or template.\nThe index option merges mappings the way they would be merged into an existing index.\nThe template option merges mappings the way they would be merged into a template.", - "enumValues": [ - "index", - "template" - ] - }, - { - "role": "flag", - "name": "docs", - "type": "array", "required": true, - "summary": "Sample documents to test in the pipeline.", - "repeatable": true - }, - { - "role": "flag", - "name": "component-template-substitutions", - "type": "string", - "required": false, - "summary": "A map of component template names to substitute component template definition objects." - }, - { - "role": "flag", - "name": "index-template-substitutions", - "type": "string", - "required": false, - "summary": "A map of index template names to substitute index template definition objects." - }, - { - "role": "flag", - "name": "mapping-addition", - "type": "string", - "required": false - }, - { - "role": "flag", - "name": "pipeline-substitutions", - "type": "string", - "required": false, - "summary": "Pipelines to test.\nIf you don’t specify the `pipeline` request path parameter, this parameter is required.\nIf you specify both this and the request path parameter, the API only uses the request path parameter." + "summary": "The access token that was returned as a response to calling the SAML authenticate API.\nAlternatively, the most recent token that was received after refreshing the original one by using a `refresh_token`." }, { "role": "flag", - "name": "index", + "name": "refresh-token", "type": "string", "required": false, - "summary": "The index to simulate ingesting into.\nThis value can be overridden by specifying an index on each document.\nIf you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument." + "summary": "The refresh token that was returned as a response to calling the SAML authenticate API.\nAlternatively, the most recent refresh token that was received after refreshing the original access token." }, { "role": "flag", @@ -55542,49 +55626,39 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Simulate data ingestion.", + "summary": "Logout of SAML.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch simulate API commands" - }, - { - "segment": "slm", - "commands": [ + }, { "path": [ "stack", "es", - "slm" + "security" ], - "name": "delete-lifecycle", + "name": "saml-prepare-authentication", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "acs", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch.\nThe realm is used to generate the authentication request. You must specify either this parameter or the `realm` parameter." }, { "role": "flag", - "name": "timeout", + "name": "realm", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request.\nYou must specify either this parameter or the `acs` parameter." }, { "role": "flag", - "name": "policy-id", + "name": "relay-state", "type": "string", - "required": true, - "summary": "The id of the snapshot lifecycle policy to remove" + "required": false, + "summary": "A string that will be included in the redirect URL that this API returns as the `RelayState` query parameter.\nIf the Authentication Request is signed, this value is used as part of the signature computation." }, { "role": "flag", @@ -55635,20 +55709,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a policy.", + "summary": "Prepare SAML authentication.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -55656,30 +55720,16 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "execute-lifecycle", + "name": "saml-service-provider-metadata", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "policy-id", + "name": "realm-name", "type": "string", "required": true, - "summary": "The id of the snapshot lifecycle policy to be executed" + "summary": "The name of the SAML realm in Elasticsearch." }, { "role": "flag", @@ -55732,7 +55782,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Run a policy.", + "summary": "Create SAML service provider metadata.", "intent": { "destructive": false, "idempotent": true, @@ -55744,23 +55794,39 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "execute-retention", + "name": "suggest-user-profiles", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "data", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "A comma-separated list of filters for the `data` field of the profile document.\nTo return all content use `data=*`.\nTo return a subset of content, use `data=` to retrieve content nested under the specified ``.\nBy default, the API returns no `data` content.\nIt is an error to specify `data` as both the query parameter and the request body field.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "timeout", + "name": "name", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "A query string used to match name-related fields in user profile documents.\nName-related fields are the user's `username`, `full_name`, and `email`." + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "The number of profiles to return." + }, + { + "role": "flag", + "name": "hint", + "type": "string", + "required": false, + "summary": "Extra search criteria to improve relevance of the suggestion result.\nProfiles matching the spcified hint are ranked higher in the response.\nProfiles not matching the hint aren't excluded from the response as long as the profile matches the `name` field query." }, { "role": "flag", @@ -55813,8 +55879,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Run a retention policy.", + "summary": "Suggest a user profile.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -55822,31 +55891,37 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "get-lifecycle", + "name": "update-api-key", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "role-descriptors", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The role descriptors to assign to this API key.\nThe API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user.\nYou can assign new privileges by specifying them in this parameter.\nTo remove assigned privileges, you can supply an empty `role_descriptors` parameter, that is to say, an empty object `{}`.\nIf an API key has no assigned privileges, it inherits the owner user's full permissions.\nThe snapshot of the owner's permissions is always updated, whether you supply the `role_descriptors` parameter or not.\nThe structure of a role descriptor is the same as the request for the create API keys API." }, { "role": "flag", - "name": "timeout", + "name": "metadata", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports a nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage.\nWhen specified, this value fully replaces the metadata previously associated with the API key." }, { "role": "flag", - "name": "policy-id", + "name": "expiration", "type": "string", "required": false, - "summary": "A comma-separated list of snapshot lifecycle policy identifiers.", - "repeatable": true + "summary": "The expiration time for the API key.\nBy default, API keys never expire.\nThis property can be omitted to leave the expiration unchanged." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The ID of the API key to update." }, { "role": "flag", @@ -55899,7 +55974,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get policy information.", + "summary": "Update an API key.", "intent": { "destructive": false, "idempotent": true, @@ -55911,23 +55986,44 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "get-stats", + "name": "update-cross-cluster-api-key", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "access", + "type": "string", + "required": true, + "summary": "The access to be granted to this API key.\nThe access is composed of permissions for cross cluster search and cross cluster replication.\nAt least one of them must be specified.\nWhen specified, the new access assignment fully replaces the previously assigned access." + }, + { + "role": "flag", + "name": "expiration", "type": "string", "required": false, - "summary": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error." + "summary": "The expiration time for the API key.\nBy default, API keys never expire. This property can be omitted to leave the value unchanged." }, { "role": "flag", - "name": "timeout", + "name": "metadata", "type": "string", "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." + "summary": "Arbitrary metadata that you want to associate with the API key.\nIt supports nested data structure.\nWithin the metadata object, keys beginning with `_` are reserved for system usage.\nWhen specified, this information fully replaces metadata previously associated with the API key." + }, + { + "role": "flag", + "name": "certificate-identity", + "type": "string", + "required": false, + "summary": "The certificate identity to associate with this API key.\nThis field is used to restrict the API key to connections authenticated by a specific TLS certificate.\nThe value should match the certificate's distinguished name (DN) pattern.\nWhen specified, this fully replaces any previously assigned certificate identity.\nTo clear an existing certificate identity, explicitly set this field to `null`.\nWhen omitted, the existing certificate identity remains unchanged." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The ID of the cross-cluster API key to update." }, { "role": "flag", @@ -55980,7 +56076,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get snapshot lifecycle management statistics.", + "summary": "Update a cross-cluster API key.", "intent": { "destructive": false, "idempotent": true, @@ -55992,23 +56088,44 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "get-status", + "name": "update-settings", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + }, + { + "role": "flag", + "name": "security", + "type": "string", + "required": false, + "summary": "Settings for the index used for most security configuration, including native realm users and roles configured with the API." + }, + { + "role": "flag", + "name": "security-profile", + "type": "string", + "required": false, + "summary": "Settings for the index used to store profile information." + }, + { + "role": "flag", + "name": "security-tokens", + "type": "string", + "required": false, + "summary": "Settings for the index used to store tokens." }, { "role": "flag", @@ -56061,7 +56178,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the snapshot lifecycle management status.", + "summary": "Update security index settings.", "intent": { "destructive": false, "idempotent": true, @@ -56073,65 +56190,56 @@ "path": [ "stack", "es", - "slm" + "security" ], - "name": "put-lifecycle", + "name": "update-user-profile-data", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "config", - "type": "string", + "name": "if-seq-no", + "type": "number", "required": false, - "summary": "Configuration for each snapshot created by the policy." + "summary": "Only perform the operation if the document has this sequence number." }, { "role": "flag", - "name": "name", - "type": "string", + "name": "if-primary-term", + "type": "number", "required": false, - "summary": "Name automatically assigned to each snapshot created by the policy. Date math is supported. To prevent conflicting snapshot names, a UUID is automatically appended to each snapshot name." + "summary": "Only perform the operation if the document has this primary term." }, { "role": "flag", - "name": "repository", - "type": "string", + "name": "refresh", + "type": "enum", "required": false, - "summary": "Repository used to store snapshots created by this policy. This repository must exist prior to the policy’s creation. You can create a repository using the snapshot repository API." + "summary": "If 'true', Elasticsearch refreshes the affected shards to make this operation\nvisible to search.\nIf 'wait_for', it waits for a refresh to make this operation visible to search.\nIf 'false', nothing is done with refreshes.", + "enumValues": [ + "true", + "false", + "wait_for" + ] }, { "role": "flag", - "name": "retention", + "name": "labels", "type": "string", "required": false, - "summary": "Retention rules used to retain and delete snapshots created by the policy." + "summary": "Searchable data that you want to associate with the user profile.\nThis field supports a nested data structure.\nWithin the labels object, top-level keys cannot begin with an underscore (`_`) or contain a period (`.`)." }, { "role": "flag", - "name": "schedule", + "name": "data", "type": "string", "required": false, - "summary": "Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately." + "summary": "Non-searchable data that you want to associate with the user profile.\nThis field supports a nested data structure.\nWithin the `data` object, top-level keys cannot begin with an underscore (`_`) or contain a period (`.`).\nThe data object is not searchable, but can be retrieved with the get user profile API." }, { "role": "flag", - "name": "policy-id", + "name": "uid", "type": "string", "required": true, - "summary": "The identifier for the snapshot lifecycle policy you want to create or update." + "summary": "A unique identifier for the user profile." }, { "role": "flag", @@ -56184,113 +56292,88 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a policy.", + "summary": "Update user profile data.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch security API commands" + }, + { + "segment": "simulate", + "commands": [ { "path": [ "stack", "es", - "slm" + "simulate" ], - "name": "start", + "name": "ingest", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "timeout", + "name": "pipeline", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The pipeline to use as the default pipeline.\nThis value can be used to override the default pipeline of the index." }, { "role": "flag", - "name": "error-trace", - "type": "boolean", + "name": "merge-type", + "type": "enum", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "The mapping merge type if mapping overrides are being provided in mapping_addition.\nThe allowed values are one of index or template.\nThe index option merges mappings the way they would be merged into an existing index.\nThe template option merges mappings the way they would be merged into a template.", + "enumValues": [ + "index", + "template" + ] }, { "role": "flag", - "name": "filter-path", - "type": "string", - "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "name": "docs", + "type": "array", + "required": true, + "summary": "Sample documents to test in the pipeline.", "repeatable": true }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "component-template-substitutions", + "type": "string", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "A map of component template names to substitute component template definition objects." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "index-template-substitutions", + "type": "string", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "A map of index template names to substitute index template definition objects." }, { "role": "flag", - "name": "input-file", + "name": "mapping-addition", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "required": false }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Start snapshot lifecycle management.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "slm" - ], - "name": "stop", - "parameters": [ - { - "role": "flag", - "name": "master-timeout", + "name": "pipeline-substitutions", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "Pipelines to test.\nIf you don’t specify the `pipeline` request path parameter, this parameter is required.\nIf you specify both this and the request path parameter, the API only uses the request path parameter." }, { "role": "flag", - "name": "timeout", + "name": "index", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The index to simulate ingesting into.\nThis value can be overridden by specifying an index on each document.\nIf you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument." }, { "role": "flag", @@ -56343,46 +56426,49 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Stop snapshot lifecycle management.", + "summary": "Simulate data ingestion.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } } ], "namespaces": [], - "summary": "Elasticsearch slm API commands" + "summary": "Elasticsearch simulate API commands" }, { - "segment": "snapshot", + "segment": "slm", "commands": [ { "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "cleanup-repository", + "name": "delete-lifecycle", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`" + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "repository", + "name": "policy-id", "type": "string", "required": true, - "summary": "The name of the snapshot repository to clean up." + "summary": "The id of the snapshot lifecycle policy to remove" }, { "role": "flag", @@ -56433,10 +56519,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Clean up the snapshot repository.", + "summary": "Delete a policy.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -56444,44 +56540,30 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "clone", + "name": "execute-lifecycle", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "indices", - "type": "string", - "required": true, - "summary": "A comma-separated list of indices to include in the snapshot.\nMulti-target syntax is supported." - }, - { - "role": "flag", - "name": "repository", - "type": "string", - "required": true, - "summary": "The name of the snapshot repository that both source and target snapshot belong to." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "snapshot", + "name": "timeout", "type": "string", - "required": true, - "summary": "The source snapshot name." + "required": false, + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "target-snapshot", + "name": "policy-id", "type": "string", "required": true, - "summary": "The target snapshot name." + "summary": "The id of the snapshot lifecycle policy to be executed" }, { "role": "flag", @@ -56534,7 +56616,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Clone a snapshot.", + "summary": "Run a policy.", "intent": { "destructive": false, "idempotent": true, @@ -56546,9 +56628,9 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "create", + "name": "execute-retention", "parameters": [ { "role": "flag", @@ -56559,86 +56641,10 @@ }, { "role": "flag", - "name": "wait-for-completion", - "type": "boolean", - "required": false, - "summary": "If `true`, the request returns a response when the snapshot is complete.\nIf `false`, the request returns a response when the snapshot initializes." - }, - { - "role": "flag", - "name": "expand-wildcards", - "type": "enum", - "required": false, - "summary": "Determines how wildcard patterns in the `indices` parameter match data streams and indices.\nIt supports comma-separated values such as `open,hidden`.", - "repeatable": true, - "separator": ",", - "enumValues": [ - "all", - "open", - "closed", - "hidden", - "none" - ] - }, - { - "role": "flag", - "name": "feature-states", - "type": "array", - "required": false, - "summary": "The feature states to include in the snapshot.\nEach feature state includes one or more system indices containing related data.\nYou can view a list of eligible features using the get features API.\n\nIf `include_global_state` is `true`, all current feature states are included by default.\nIf `include_global_state` is `false`, no feature states are included by default.\n\nNote that specifying an empty array will result in the default behavior.\nTo exclude all feature states, regardless of the `include_global_state` value, specify an array with only the value `none` (`[\"none\"]`).", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "ignore-unavailable", - "type": "boolean", - "required": false, - "summary": "If `true`, the request ignores data streams and indices in `indices` that are missing or closed.\nIf `false`, the request returns an error for any data stream or index that is missing or closed." - }, - { - "role": "flag", - "name": "include-global-state", - "type": "boolean", - "required": false, - "summary": "If `true`, the current cluster state is included in the snapshot.\nThe cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies.\nIt also includes data stored in system indices, such as Watches and task records (configurable via `feature_states`)." - }, - { - "role": "flag", - "name": "indices", - "type": "string", - "required": false, - "summary": "A comma-separated list of data streams and indices to include in the snapshot.\nIt supports a multi-target syntax.\nThe default is an empty array (`[]`), which includes all regular data streams and regular indices.\nTo exclude all data streams and indices, use `-*`.\n\nYou can't use this parameter to include or exclude system indices or system data streams from a snapshot.\nUse `feature_states` instead.", - "repeatable": true, - "separator": "," - }, - { - "role": "flag", - "name": "metadata", + "name": "timeout", "type": "string", "required": false, - "summary": "Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.\nIt can have any contents but it must be less than 1024 bytes.\nThis information is not automatically generated by Elasticsearch." - }, - { - "role": "flag", - "name": "partial", - "type": "boolean", - "required": false, - "summary": "If `true`, allows the snapshot to proceed even if some of the target shards are unavailable.\nIn this case, the resulting snapshot will not contain snapshots of the unavailable target shards, and will report its state as `PARTIAL`.\nAdditionally, if `true`, allows index metadata operations such as deletions while the snapshot is in progress.\nThis is almost always preferable to failing the snapshot completely when a single shard is unavailable, and blocking index metadata operations.\n\nIf `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available, and index metadata operations such as deletions will be forbidden until the snapshot completes." - }, - { - "role": "flag", - "name": "repository", - "type": "string", - "required": true, - "summary": "The name of the repository for the snapshot." - }, - { - "role": "flag", - "name": "snapshot", - "type": "string", - "required": true, - "summary": "The name of the snapshot.\nIt supportes date math.\nIt must be unique in the repository." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", @@ -56691,11 +56697,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a snapshot.", + "summary": "Run a retention policy.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -56703,37 +56706,31 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "create-repository", + "name": "get-lifecycle", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "verify", - "type": "boolean", - "required": false, - "summary": "If `true`, the request verifies the repository is functional on all master and data nodes in the cluster.\nIf `false`, this verification is skipped.\nYou can also perform this verification with the verify snapshot repository API." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "repository", + "name": "policy-id", "type": "string", - "required": true, - "summary": "The name of the snapshot repository to register or update." + "required": false, + "summary": "A comma-separated list of snapshot lifecycle policy identifiers.", + "repeatable": true }, { "role": "flag", @@ -56786,7 +56783,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a snapshot repository.", + "summary": "Get policy information.", "intent": { "destructive": false, "idempotent": true, @@ -56798,38 +56795,23 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "delete", + "name": "get-stats", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "wait-for-completion", - "type": "boolean", - "required": false, - "summary": "If `false`, the request returns a response as soon as the deletes are scheduled.\nIf `true`, the request returns a response when the matching snapshots are all deleted, and the post-deletion cleanup work associated with the request has completed.\nIf you make several requests to the delete-snapshots API targetting overlapping collections of snapshots then some of those requests may perform different parts of the associated post-deletion cleanup work, returning their responses at different times.\nFor example, if you make two requests to delete the same snapshot then sometimes all of the post-deletion cleanup work will be associated with the first request, delaying its response, while the second request has no associated post-deletion cleanup work and receives its response as soon as the snapshot has been deleted." - }, - { - "role": "flag", - "name": "repository", - "type": "string", - "required": true, - "summary": "The name of the repository to delete a snapshot from." + "summary": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "snapshot", + "name": "timeout", "type": "string", - "required": true, - "summary": "A comma-separated list of snapshot names to delete.\nIt also accepts wildcards (`*`).", - "repeatable": true + "required": false, + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", @@ -56880,18 +56862,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete snapshots.", + "summary": "Get snapshot lifecycle management statistics.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -56901,31 +56876,23 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "delete-repository", + "name": "get-status", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." - }, - { - "role": "flag", - "name": "repository", - "type": "string", - "required": true, - "summary": "The ame of the snapshot repositories to unregister.\nWildcard (`*`) patterns are supported.", - "repeatable": true + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", @@ -56976,18 +56943,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete snapshot repositories.", + "summary": "Get the snapshot lifecycle management status.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -56997,143 +56957,65 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "get", + "name": "put-lifecycle", "parameters": [ { "role": "flag", - "name": "after", + "name": "master-timeout", "type": "string", "required": false, - "summary": "An offset identifier to start pagination from as returned by the next field in the response body." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "from-sort-value", + "name": "timeout", "type": "string", "required": false, - "summary": "The value of the current sort column at which to start retrieval.\nIt can be a string `snapshot-` or a repository name when sorting by snapshot or repository name.\nIt can be a millisecond time value or a number when sorting by `index-` or shard count." - }, - { - "role": "flag", - "name": "ignore-unavailable", - "type": "boolean", - "required": false, - "summary": "If `false`, the request returns an error for any snapshots that are unavailable." - }, - { - "role": "flag", - "name": "index-details", - "type": "boolean", - "required": false, - "summary": "If `true`, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.\nThe default is `false`, meaning that this information is omitted." - }, - { - "role": "flag", - "name": "index-names", - "type": "boolean", - "required": false, - "summary": "If `true`, the response includes the name of each index in each snapshot." - }, - { - "role": "flag", - "name": "include-repository", - "type": "boolean", - "required": false, - "summary": "If `true`, the response includes the repository name in each snapshot." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "master-timeout", + "name": "config", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "order", - "type": "enum", - "required": false, - "summary": "The sort order.\nValid values are `asc` for ascending and `desc` for descending order.\nThe default behavior is ascending order.", - "enumValues": [ - "asc", - "desc" - ] - }, - { - "role": "flag", - "name": "offset", - "type": "number", - "required": false, - "summary": "Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0." - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "The maximum number of snapshots to return.\nThe default is -1, which means to return all that match the request without limit." + "summary": "Configuration for each snapshot created by the policy." }, { "role": "flag", - "name": "slm-policy-filter", + "name": "name", "type": "string", "required": false, - "summary": "Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.\n\nYou can use wildcards (`*`) and combinations of wildcards followed by exclude patterns starting with `-`.\nFor example, the pattern `*,-policy-a-\\*` will return all snapshots except for those that were created by an SLM policy with a name starting with `policy-a-`.\nNote that the wildcard pattern `*` matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy.\nTo include snapshots that were not created by an SLM policy, you can use the special pattern `_none` that will match all snapshots without an SLM policy." - }, - { - "role": "flag", - "name": "sort", - "type": "enum", - "required": false, - "summary": "The sort order for the result.\nThe default behavior is sorting by snapshot start time stamp.", - "enumValues": [ - "start_time", - "duration", - "name", - "index_count", - "repository", - "shard_count", - "failed_shard_count" - ] + "summary": "Name automatically assigned to each snapshot created by the policy. Date math is supported. To prevent conflicting snapshot names, a UUID is automatically appended to each snapshot name." }, { "role": "flag", - "name": "state", - "type": "enum", + "name": "repository", + "type": "string", "required": false, - "summary": "Only return snapshots with a state found in the given comma-separated list of snapshot states.\nThe default is all snapshot states.", - "repeatable": true, - "enumValues": [ - "IN_PROGRESS", - "SUCCESS", - "FAILED", - "PARTIAL", - "INCOMPATIBLE" - ] + "summary": "Repository used to store snapshots created by this policy. This repository must exist prior to the policy’s creation. You can create a repository using the snapshot repository API." }, { "role": "flag", - "name": "verbose", - "type": "boolean", + "name": "retention", + "type": "string", "required": false, - "summary": "If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.\n\nNOTE: The parameters `size`, `order`, `after`, `from_sort_value`, `offset`, `slm_policy_filter`, and `sort` are not supported when you set `verbose=false` and the sort order for requests with `verbose=false` is undefined." + "summary": "Retention rules used to retain and delete snapshots created by the policy." }, { "role": "flag", - "name": "repository", + "name": "schedule", "type": "string", - "required": true, - "summary": "A comma-separated list of snapshot repository names used to limit the request.\nWildcard (`*`) expressions are supported." + "required": false, + "summary": "Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately." }, { "role": "flag", - "name": "snapshot", + "name": "policy-id", "type": "string", "required": true, - "summary": "A comma-separated list of snapshot names to retrieve\nWildcards (`*`) are supported.\n\n* To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`.\n* To get information about any snapshots that are currently running, use `_current`.", - "repeatable": true + "summary": "The identifier for the snapshot lifecycle policy you want to create or update." }, { "role": "flag", @@ -57186,7 +57068,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get snapshot information.", + "summary": "Create or update a policy.", "intent": { "destructive": false, "idempotent": true, @@ -57198,31 +57080,23 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "get-repository", + "name": "start", "parameters": [ - { - "role": "flag", - "name": "local", - "type": "boolean", - "required": false, - "summary": "If `true`, the request gets information from the local node only.\nIf `false`, the request gets information from the master node." - }, { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "repository", + "name": "timeout", "type": "string", "required": false, - "summary": "A comma-separated list of snapshot repository names used to limit the request.\nWildcard (`*`) expressions are supported including combining wildcards with exclude patterns starting with `-`.\n\nTo get information about all snapshot repositories registered in the cluster, omit this parameter or use `*` or `_all`.", - "repeatable": true + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", @@ -57275,11 +57149,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get snapshot repository information.", + "summary": "Start snapshot lifecycle management.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -57287,107 +57158,115 @@ "path": [ "stack", "es", - "snapshot" + "slm" ], - "name": "repository-analyze", + "name": "stop", "parameters": [ { "role": "flag", - "name": "blob-count", - "type": "number", - "required": false, - "summary": "The total number of blobs to write to the repository during the test.\nFor realistic experiments, set this parameter to at least `2000`." - }, - { - "role": "flag", - "name": "check-overwrite-protection", - "type": "boolean", + "name": "master-timeout", + "type": "string", "required": false, - "summary": "Whether to run the overwrite protection check.\nFor realistic experiments, leave this parameter unset." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "concurrency", - "type": "number", + "name": "timeout", + "type": "string", "required": false, - "summary": "The number of operations to run concurrently during the test.\nFor realistic experiments, leave this parameter unset." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "detailed", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "Indicates whether to return detailed results, including timing information for every operation performed during the analysis.\nIf false, it returns only a summary of the analysis." - }, - { - "role": "flag", - "name": "early-read-node-count", - "type": "number", - "required": false, - "summary": "The number of nodes on which to perform an early read operation while writing each blob.\nEarly read operations are only rarely performed.\nFor realistic experiments, leave this parameter unset." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "max-blob-size", + "name": "filter-path", "type": "string", "required": false, - "summary": "The maximum size of a blob to be written during the test.\nFor realistic experiments, set this parameter to at least `2gb`." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "max-total-data-size", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "An upper limit on the total size of all the blobs written during the test.\nFor realistic experiments, set this parameter to at least `1tb`." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "rare-action-probability", - "type": "number", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.\nFor realistic experiments, leave this parameter unset." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "rarely-abort-writes", - "type": "boolean", + "name": "input-file", + "type": "string", "required": false, - "summary": "Indicates whether to rarely cancel writes before they complete.\nFor realistic experiments, leave this parameter unset." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "read-node-count", - "type": "number", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "The number of nodes on which to read a blob after writing.\nFor realistic experiments, leave this parameter unset." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "register-operation-count", - "type": "number", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "The minimum number of linearizable register operations to perform in total.\nFor realistic experiments, set this parameter to at least `100`." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Stop snapshot lifecycle management.", + "intent": { + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Elasticsearch slm API commands" + }, + { + "segment": "snapshot", + "commands": [ + { + "path": [ + "stack", + "es", + "snapshot" + ], + "name": "cleanup-repository", + "parameters": [ { "role": "flag", - "name": "seed", - "type": "number", + "name": "master-timeout", + "type": "string", "required": false, - "summary": "The seed for the pseudo-random number generator used to generate the list of operations performed during the test.\nTo repeat the same set of operations in multiple experiments, use the same seed in each experiment.\nNote that the operations are performed concurrently so might not always happen in the same order on each run.\nFor realistic experiments, leave this parameter unset." + "summary": "The period to wait for a connection to the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`" }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "The period of time to wait for the test to complete.\nIf no response is received before the timeout expires, the test is cancelled and returns an error.\nFor realistic experiments, set this parameter sufficiently long to allow the test to complete." + "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", "name": "repository", "type": "string", "required": true, - "summary": "The name of the repository." + "summary": "The name of the snapshot repository to clean up." }, { "role": "flag", @@ -57440,7 +57319,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Analyze a snapshot repository.", + "summary": "Clean up the snapshot repository.", "intent": { "requiresAuth": true } @@ -57451,71 +57330,42 @@ "es", "snapshot" ], - "name": "repository-verify-integrity", + "name": "clone", "parameters": [ { "role": "flag", - "name": "blob-thread-pool-concurrency", - "type": "number", + "name": "master-timeout", + "type": "string", "required": false, - "summary": "If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once." + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "index-snapshot-verification-concurrency", - "type": "number", - "required": false, - "summary": "The maximum number of index snapshots to verify concurrently within each index verification." + "name": "indices", + "type": "string", + "required": true, + "summary": "A comma-separated list of indices to include in the snapshot.\nMulti-target syntax is supported." }, { "role": "flag", - "name": "index-verification-concurrency", - "type": "number", - "required": false, - "summary": "The number of indices to verify concurrently.\nThe default behavior is to use the entire `snapshot_meta` thread pool." + "name": "repository", + "type": "string", + "required": true, + "summary": "The name of the snapshot repository that both source and target snapshot belong to." }, { "role": "flag", - "name": "max-bytes-per-sec", + "name": "snapshot", "type": "string", - "required": false, - "summary": "If `verify_blob_contents` is `true`, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second." + "required": true, + "summary": "The source snapshot name." }, { "role": "flag", - "name": "max-failed-shard-snapshots", - "type": "number", - "required": false, - "summary": "The number of shard snapshot failures to track during integrity verification, in order to avoid excessive resource usage.\nIf your repository contains more than this number of shard snapshot failures, the verification will fail." - }, - { - "role": "flag", - "name": "meta-thread-pool-concurrency", - "type": "number", - "required": false, - "summary": "The maximum number of snapshot metadata operations to run concurrently.\nThe default behavior is to use at most half of the `snapshot_meta` thread pool at once." - }, - { - "role": "flag", - "name": "snapshot-verification-concurrency", - "type": "number", - "required": false, - "summary": "The number of snapshots to verify concurrently.\nThe default behavior is to use at most half of the `snapshot_meta` thread pool at once." - }, - { - "role": "flag", - "name": "verify-blob-contents", - "type": "boolean", - "required": false, - "summary": "Indicates whether to verify the checksum of every data blob in the repository.\nIf this feature is enabled, Elasticsearch will read the entire repository contents, which may be extremely slow and expensive." - }, - { - "role": "flag", - "name": "repository", - "type": "string", - "required": true, - "summary": "The name of the snapshot repository.", - "repeatable": true + "name": "target-snapshot", + "type": "string", + "required": true, + "summary": "The target snapshot name." }, { "role": "flag", @@ -57568,8 +57418,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Verify the repository integrity.", + "summary": "Clone a snapshot.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -57579,37 +57432,44 @@ "es", "snapshot" ], - "name": "restore", + "name": "create", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", "name": "wait-for-completion", "type": "boolean", "required": false, - "summary": "If `true`, the request returns a response when the restore operation completes.\nThe operation is complete when it finishes all attempts to recover primary shards for restored indices.\nThis applies even if one or more of the recovery attempts fail.\n\nIf `false`, the request returns a response when the restore operation initializes." + "summary": "If `true`, the request returns a response when the snapshot is complete.\nIf `false`, the request returns a response when the snapshot initializes." }, { "role": "flag", - "name": "feature-states", - "type": "array", + "name": "expand-wildcards", + "type": "enum", "required": false, - "summary": "The feature states to restore.\nIf `include_global_state` is `true`, the request restores all feature states in the snapshot by default.\nIf `include_global_state` is `false`, the request restores no feature states by default.\nNote that specifying an empty array will result in the default behavior.\nTo restore no feature states, regardless of the `include_global_state` value, specify an array containing only the value `none` (`[\"none\"]`).", + "summary": "Determines how wildcard patterns in the `indices` parameter match data streams and indices.\nIt supports comma-separated values such as `open,hidden`.", "repeatable": true, - "elementType": "string" + "separator": ",", + "enumValues": [ + "all", + "open", + "closed", + "hidden", + "none" + ] }, { "role": "flag", - "name": "ignore-index-settings", + "name": "feature-states", "type": "array", "required": false, - "summary": "The index settings to not restore from the snapshot.\nYou can't use this option to ignore `index.number_of_shards`.\n\nFor data streams, this option applies only to restored backing indices.\nNew backing indices are configured using the data stream's matching index template.", + "summary": "The feature states to include in the snapshot.\nEach feature state includes one or more system indices containing related data.\nYou can view a list of eligible features using the get features API.\n\nIf `include_global_state` is `true`, all current feature states are included by default.\nIf `include_global_state` is `false`, no feature states are included by default.\n\nNote that specifying an empty array will result in the default behavior.\nTo exclude all feature states, regardless of the `include_global_state` value, specify an array with only the value `none` (`[\"none\"]`).", "repeatable": true, "elementType": "string" }, @@ -57618,79 +57478,51 @@ "name": "ignore-unavailable", "type": "boolean", "required": false, - "summary": "If `true`, the request ignores any index or data stream in indices that's missing from the snapshot.\nIf `false`, the request returns an error for any missing index or data stream." - }, - { - "role": "flag", - "name": "include-aliases", - "type": "boolean", - "required": false, - "summary": "If `true`, the request restores aliases for any restored data streams and indices.\nIf `false`, the request doesn’t restore aliases." + "summary": "If `true`, the request ignores data streams and indices in `indices` that are missing or closed.\nIf `false`, the request returns an error for any data stream or index that is missing or closed." }, { "role": "flag", "name": "include-global-state", "type": "boolean", "required": false, - "summary": "If `true`, restore the cluster state. The cluster state includes:\n\n* Persistent cluster settings\n* Index templates\n* Legacy index templates\n* Ingest pipelines\n* Index lifecycle management (ILM) policies\n* Stored scripts\n* For snapshots taken after 7.12.0, feature states\n\nIf `include_global_state` is `true`, the restore operation merges the legacy index templates in your cluster with the templates contained in the snapshot, replacing any existing ones whose name matches one in the snapshot.\nIt completely removes all persistent settings, non-legacy index templates, ingest pipelines, and ILM lifecycle policies that exist in your cluster and replaces them with the corresponding items from the snapshot.\n\nUse the `feature_states` parameter to configure how feature states are restored.\n\nIf `include_global_state` is `true` and a snapshot was created without a global state then the restore request will fail." - }, - { - "role": "flag", - "name": "index-settings", - "type": "string", - "required": false, - "summary": "Index settings to add or change in restored indices, including backing indices.\nYou can't use this option to change `index.number_of_shards`.\n\nFor data streams, this option applies only to restored backing indices.\nNew backing indices are configured using the data stream's matching index template." + "summary": "If `true`, the current cluster state is included in the snapshot.\nThe cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies.\nIt also includes data stored in system indices, such as Watches and task records (configurable via `feature_states`)." }, { "role": "flag", "name": "indices", "type": "string", "required": false, - "summary": "A comma-separated list of indices and data streams to restore.\nIt supports a multi-target syntax.\nThe default behavior is all regular indices and regular data streams in the snapshot.\n\nYou can't use this parameter to restore system indices or system data streams.\nUse `feature_states` instead.", + "summary": "A comma-separated list of data streams and indices to include in the snapshot.\nIt supports a multi-target syntax.\nThe default is an empty array (`[]`), which includes all regular data streams and regular indices.\nTo exclude all data streams and indices, use `-*`.\n\nYou can't use this parameter to include or exclude system indices or system data streams from a snapshot.\nUse `feature_states` instead.", "repeatable": true, "separator": "," }, { "role": "flag", - "name": "partial", - "type": "boolean", - "required": false, - "summary": "If `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.\n\nIf true, it allows restoring a partial snapshot of indices with unavailable shards.\nOnly shards that were successfully included in the snapshot will be restored.\nAll missing shards will be recreated as empty." - }, - { - "role": "flag", - "name": "rename-pattern", - "type": "string", - "required": false, - "summary": "A rename pattern to apply to restored data streams and indices.\nData streams and indices matching the rename pattern will be renamed according to `rename_replacement`.\n\nThe rename pattern is applied as defined by the regular expression that supports referencing the original text, according to the `appendReplacement` logic." - }, - { - "role": "flag", - "name": "rename-replacement", + "name": "metadata", "type": "string", "required": false, - "summary": "The rename replacement string that is used with the `rename_pattern`." + "summary": "Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.\nIt can have any contents but it must be less than 1024 bytes.\nThis information is not automatically generated by Elasticsearch." }, { "role": "flag", - "name": "restore-over-existing", + "name": "partial", "type": "boolean", "required": false, - "summary": "If `true`, the request can restore over destination indices and data streams that already exist, without closing or deleting them first.\nAn open destination index is closed and restored over in a single step.\nA destination data stream is deleted, together with its backing and failure store indices, and recreated from the snapshot.\n\nIt can't be combined with `rename_pattern`, `rename_replacement`, `include_global_state`, or `partial`." + "summary": "If `true`, allows the snapshot to proceed even if some of the target shards are unavailable.\nIn this case, the resulting snapshot will not contain snapshots of the unavailable target shards, and will report its state as `PARTIAL`.\nAdditionally, if `true`, allows index metadata operations such as deletions while the snapshot is in progress.\nThis is almost always preferable to failing the snapshot completely when a single shard is unavailable, and blocking index metadata operations.\n\nIf `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available, and index metadata operations such as deletions will be forbidden until the snapshot completes." }, { "role": "flag", "name": "repository", "type": "string", "required": true, - "summary": "The name of the repository to restore a snapshot from." + "summary": "The name of the repository for the snapshot." }, { "role": "flag", "name": "snapshot", "type": "string", "required": true, - "summary": "The name of the snapshot to restore." + "summary": "The name of the snapshot.\nIt supportes date math.\nIt must be unique in the repository." }, { "role": "flag", @@ -57743,8 +57575,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Restore a snapshot.", + "summary": "Create a snapshot.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -57754,36 +57589,35 @@ "es", "snapshot" ], - "name": "status", + "name": "create-repository", "parameters": [ { "role": "flag", - "name": "ignore-unavailable", - "type": "boolean", + "name": "master-timeout", + "type": "string", "required": false, - "summary": "If `false`, the request returns an error for any snapshots that are unavailable.\nIf `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned." + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "master-timeout", + "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "repository", - "type": "string", + "name": "verify", + "type": "boolean", "required": false, - "summary": "The snapshot repository name used to limit the request.\nIt supports wildcards (`*`) if `` isn't specified." + "summary": "If `true`, the request verifies the repository is functional on all master and data nodes in the cluster.\nIf `false`, this verification is skipped.\nYou can also perform this verification with the verify snapshot repository API." }, { "role": "flag", - "name": "snapshot", + "name": "repository", "type": "string", - "required": false, - "summary": "A comma-separated list of snapshots to retrieve status for.\nThe default is currently running snapshots.\nWildcards (`*`) are not supported.", - "repeatable": true + "required": true, + "summary": "The name of the snapshot repository to register or update." }, { "role": "flag", @@ -57836,7 +57670,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the snapshot status.", + "summary": "Create or update a snapshot repository.", "intent": { "destructive": false, "idempotent": true, @@ -57850,7 +57684,7 @@ "es", "snapshot" ], - "name": "verify-repository", + "name": "delete", "parameters": [ { "role": "flag", @@ -57861,17 +57695,25 @@ }, { "role": "flag", - "name": "timeout", - "type": "string", + "name": "wait-for-completion", + "type": "boolean", "required": false, - "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "If `false`, the request returns a response as soon as the deletes are scheduled.\nIf `true`, the request returns a response when the matching snapshots are all deleted, and the post-deletion cleanup work associated with the request has completed.\nIf you make several requests to the delete-snapshots API targetting overlapping collections of snapshots then some of those requests may perform different parts of the associated post-deletion cleanup work, returning their responses at different times.\nFor example, if you make two requests to delete the same snapshot then sometimes all of the post-deletion cleanup work will be associated with the first request, delaying its response, while the second request has no associated post-deletion cleanup work and receives its response as soon as the snapshot has been deleted." }, { "role": "flag", "name": "repository", "type": "string", "required": true, - "summary": "The name of the snapshot repository to verify." + "summary": "The name of the repository to delete a snapshot from." + }, + { + "role": "flag", + "name": "snapshot", + "type": "string", + "required": true, + "summary": "A comma-separated list of snapshot names to delete.\nIt also accepts wildcards (`*`).", + "repeatable": true }, { "role": "flag", @@ -57922,34 +57764,52 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Verify a snapshot repository.", + "summary": "Delete snapshots.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch snapshot API commands" - }, - { - "segment": "sql", - "commands": [ + }, { "path": [ "stack", "es", - "sql" + "snapshot" ], - "name": "clear-cursor", + "name": "delete-repository", "parameters": [ { "role": "flag", - "name": "cursor", + "name": "master-timeout", + "type": "string", + "required": false, + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "repository", "type": "string", "required": true, - "summary": "Cursor to clear." + "summary": "The ame of the snapshot repositories to unregister.\nWildcard (`*`) patterns are supported.", + "repeatable": true }, { "role": "flag", @@ -58000,10 +57860,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Clear an SQL search cursor.", + "summary": "Delete snapshot repositories.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -58011,125 +57881,143 @@ "path": [ "stack", "es", - "sql" + "snapshot" ], - "name": "delete-async", + "name": "get", "parameters": [ { "role": "flag", - "name": "id", + "name": "after", "type": "string", - "required": true, - "summary": "The identifier for the search." + "required": false, + "summary": "An offset identifier to start pagination from as returned by the next field in the response body." }, { "role": "flag", - "name": "error-trace", + "name": "from-sort-value", + "type": "string", + "required": false, + "summary": "The value of the current sort column at which to start retrieval.\nIt can be a string `snapshot-` or a repository name when sorting by snapshot or repository name.\nIt can be a millisecond time value or a number when sorting by `index-` or shard count." + }, + { + "role": "flag", + "name": "ignore-unavailable", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If `false`, the request returns an error for any snapshots that are unavailable." }, { "role": "flag", - "name": "filter-path", - "type": "string", + "name": "index-details", + "type": "boolean", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "If `true`, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.\nThe default is `false`, meaning that this information is omitted." }, { "role": "flag", - "name": "human", + "name": "index-names", "type": "boolean", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "If `true`, the response includes the name of each index in each snapshot." }, { "role": "flag", - "name": "pretty", + "name": "include-repository", "type": "boolean", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "If `true`, the response includes the repository name in each snapshot." }, { "role": "flag", - "name": "input-file", + "name": "master-timeout", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "order", + "type": "enum", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The sort order.\nValid values are `asc` for ascending and `desc` for descending order.\nThe default behavior is ascending order.", + "enumValues": [ + "asc", + "desc" + ] }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "offset", + "type": "number", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0." }, { "role": "flag", - "name": "yes", - "type": "boolean", + "name": "size", + "type": "number", "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete an async SQL search.", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "sql" - ], - "name": "get-async", - "parameters": [ + "summary": "The maximum number of snapshots to return.\nThe default is -1, which means to return all that match the request without limit." + }, { "role": "flag", - "name": "delimiter", + "name": "slm-policy-filter", "type": "string", "required": false, - "summary": "The separator for CSV results.\nThe API supports this parameter only for CSV responses." + "summary": "Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.\n\nYou can use wildcards (`*`) and combinations of wildcards followed by exclude patterns starting with `-`.\nFor example, the pattern `*,-policy-a-\\*` will return all snapshots except for those that were created by an SLM policy with a name starting with `policy-a-`.\nNote that the wildcard pattern `*` matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy.\nTo include snapshots that were not created by an SLM policy, you can use the special pattern `_none` that will match all snapshots without an SLM policy." }, { "role": "flag", - "name": "format", - "type": "string", + "name": "sort", + "type": "enum", "required": false, - "summary": "The format for the response.\nYou must specify a format using this parameter or the `Accept` HTTP header.\nIf you specify both, the API uses this parameter." + "summary": "The sort order for the result.\nThe default behavior is sorting by snapshot start time stamp.", + "enumValues": [ + "start_time", + "duration", + "name", + "index_count", + "repository", + "shard_count", + "failed_shard_count" + ] }, { "role": "flag", - "name": "keep-alive", - "type": "string", + "name": "state", + "type": "enum", "required": false, - "summary": "The retention period for the search and its results.\nIt defaults to the `keep_alive` period for the original SQL search." + "summary": "Only return snapshots with a state found in the given comma-separated list of snapshot states.\nThe default is all snapshot states.", + "repeatable": true, + "enumValues": [ + "IN_PROGRESS", + "SUCCESS", + "FAILED", + "PARTIAL", + "INCOMPATIBLE" + ] }, { "role": "flag", - "name": "wait-for-completion-timeout", - "type": "string", + "name": "verbose", + "type": "boolean", "required": false, - "summary": "The period to wait for complete results.\nIt defaults to no timeout, meaning the request waits for complete search results." + "summary": "If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.\n\nNOTE: The parameters `size`, `order`, `after`, `from_sort_value`, `offset`, `slm_policy_filter`, and `sort` are not supported when you set `verbose=false` and the sort order for requests with `verbose=false` is undefined." }, { "role": "flag", - "name": "id", + "name": "repository", "type": "string", "required": true, - "summary": "The identifier for the search." + "summary": "A comma-separated list of snapshot repository names used to limit the request.\nWildcard (`*`) expressions are supported." + }, + { + "role": "flag", + "name": "snapshot", + "type": "string", + "required": true, + "summary": "A comma-separated list of snapshot names to retrieve\nWildcards (`*`) are supported.\n\n* To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`.\n* To get information about any snapshots that are currently running, use `_current`.", + "repeatable": true }, { "role": "flag", @@ -58182,7 +58070,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get async SQL search results.", + "summary": "Get snapshot information.", "intent": { "destructive": false, "idempotent": true, @@ -58194,16 +58082,31 @@ "path": [ "stack", "es", - "sql" + "snapshot" ], - "name": "get-async-status", + "name": "get-repository", "parameters": [ { "role": "flag", - "name": "id", + "name": "local", + "type": "boolean", + "required": false, + "summary": "If `true`, the request gets information from the local node only.\nIf `false`, the request gets information from the master node." + }, + { + "role": "flag", + "name": "master-timeout", "type": "string", - "required": true, - "summary": "The identifier for the search." + "required": false, + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "repository", + "type": "string", + "required": false, + "summary": "A comma-separated list of snapshot repository names used to limit the request.\nWildcard (`*`) expressions are supported including combining wildcards with exclude patterns starting with `-`.\n\nTo get information about all snapshot repositories registered in the cluster, omit this parameter or use `*` or `_all`.", + "repeatable": true }, { "role": "flag", @@ -58256,7 +58159,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the async SQL search status.", + "summary": "Get snapshot repository information.", "intent": { "destructive": false, "idempotent": true, @@ -58268,145 +58171,107 @@ "path": [ "stack", "es", - "sql" + "snapshot" ], - "name": "query", + "name": "repository-analyze", "parameters": [ { "role": "flag", - "name": "format", - "type": "enum", + "name": "blob-count", + "type": "number", "required": false, - "summary": "The format for the response.\nYou can also specify a format using the `Accept` HTTP header.\nIf you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence.", - "enumValues": [ - "csv", - "json", - "tsv", - "txt", - "yaml", - "cbor", - "smile" - ] + "summary": "The total number of blobs to write to the repository during the test.\nFor realistic experiments, set this parameter to at least `2000`." }, { "role": "flag", - "name": "allow-partial-search-results", + "name": "check-overwrite-protection", "type": "boolean", "required": false, - "summary": "If `true`, the response has partial results when there are shard request timeouts or shard failures.\nIf `false`, the API returns an error with no partial results." + "summary": "Whether to run the overwrite protection check.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "catalog", - "type": "string", + "name": "concurrency", + "type": "number", "required": false, - "summary": "The default catalog (cluster) for queries.\nIf unspecified, the queries execute on the data in the local cluster only." + "summary": "The number of operations to run concurrently during the test.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "columnar", + "name": "detailed", "type": "boolean", "required": false, - "summary": "If `true`, the results are in a columnar fashion: one row represents all the values of a certain column from the current page of results.\nThe API supports this parameter only for CBOR, JSON, SMILE, and YAML responses." - }, - { - "role": "flag", - "name": "cursor", - "type": "string", - "required": false, - "summary": "The cursor used to retrieve a set of paginated results.\nIf you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.\nIt ignores other request body parameters." + "summary": "Indicates whether to return detailed results, including timing information for every operation performed during the analysis.\nIf false, it returns only a summary of the analysis." }, { "role": "flag", - "name": "fetch-size", + "name": "early-read-node-count", "type": "number", "required": false, - "summary": "The maximum number of rows (or entries) to return in one response." - }, - { - "role": "flag", - "name": "field-multi-value-leniency", - "type": "boolean", - "required": false, - "summary": "If `false`, the API returns an exception when encountering multiple values for a field.\nIf `true`, the API is lenient and returns the first value from the array with no guarantee of consistent results." + "summary": "The number of nodes on which to perform an early read operation while writing each blob.\nEarly read operations are only rarely performed.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "filter", + "name": "max-blob-size", "type": "string", "required": false, - "summary": "The Elasticsearch query DSL for additional filtering." - }, - { - "role": "flag", - "name": "index-using-frozen", - "type": "boolean", - "required": false, - "summary": "If `true`, the search can run on frozen indices." + "summary": "The maximum size of a blob to be written during the test.\nFor realistic experiments, set this parameter to at least `2gb`." }, { "role": "flag", - "name": "keep-alive", + "name": "max-total-data-size", "type": "string", "required": false, - "summary": "The retention period for an async or saved synchronous search." - }, - { - "role": "flag", - "name": "keep-on-completion", - "type": "boolean", - "required": false, - "summary": "If `true`, Elasticsearch stores synchronous searches if you also specify the `wait_for_completion_timeout` parameter.\nIf `false`, Elasticsearch only stores async searches that don't finish before the `wait_for_completion_timeout`." + "summary": "An upper limit on the total size of all the blobs written during the test.\nFor realistic experiments, set this parameter to at least `1tb`." }, { "role": "flag", - "name": "page-timeout", - "type": "string", + "name": "rare-action-probability", + "type": "number", "required": false, - "summary": "The minimum retention period for the scroll cursor.\nAfter this time period, a pagination request might fail because the scroll cursor is no longer available.\nSubsequent scroll requests prolong the lifetime of the scroll cursor by the duration of `page_timeout` in the scroll request." + "summary": "The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "params", - "type": "array", + "name": "rarely-abort-writes", + "type": "boolean", "required": false, - "summary": "The values for parameters in the query.", - "repeatable": true + "summary": "Indicates whether to rarely cancel writes before they complete.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "query", - "type": "string", + "name": "read-node-count", + "type": "number", "required": false, - "summary": "The SQL query to run." + "summary": "The number of nodes on which to read a blob after writing.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "request-timeout", - "type": "string", + "name": "register-operation-count", + "type": "number", "required": false, - "summary": "The timeout before the request fails." + "summary": "The minimum number of linearizable register operations to perform in total.\nFor realistic experiments, set this parameter to at least `100`." }, { "role": "flag", - "name": "runtime-mappings", - "type": "string", + "name": "seed", + "type": "number", "required": false, - "summary": "One or more runtime fields for the search request.\nThese fields take precedence over mapped fields with the same name." + "summary": "The seed for the pseudo-random number generator used to generate the list of operations performed during the test.\nTo repeat the same set of operations in multiple experiments, use the same seed in each experiment.\nNote that the operations are performed concurrently so might not always happen in the same order on each run.\nFor realistic experiments, leave this parameter unset." }, { "role": "flag", - "name": "time-zone", + "name": "timeout", "type": "string", "required": false, - "summary": "The ISO-8601 time zone ID for the search." + "summary": "The period of time to wait for the test to complete.\nIf no response is received before the timeout expires, the test is cancelled and returns an error.\nFor realistic experiments, set this parameter sufficiently long to allow the test to complete." }, { "role": "flag", - "name": "wait-for-completion-timeout", + "name": "repository", "type": "string", - "required": false, - "summary": "The period to wait for complete results.\nIt defaults to no timeout, meaning the request waits for complete search results.\nIf the search doesn't finish within this period, the search becomes async.\n\nTo save a synchronous search, you must specify this parameter and the `keep_on_completion` parameter." + "required": true, + "summary": "The name of the repository." }, { "role": "flag", @@ -58459,7 +58324,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get SQL search results.", + "summary": "Analyze a snapshot repository.", "intent": { "requiresAuth": true } @@ -58468,37 +58333,73 @@ "path": [ "stack", "es", - "sql" + "snapshot" ], - "name": "translate", + "name": "repository-verify-integrity", "parameters": [ { "role": "flag", - "name": "fetch-size", + "name": "blob-thread-pool-concurrency", "type": "number", "required": false, - "summary": "The maximum number of rows (or entries) to return in one response." + "summary": "If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once." }, { "role": "flag", - "name": "filter", - "type": "string", + "name": "index-snapshot-verification-concurrency", + "type": "number", "required": false, - "summary": "The Elasticsearch query DSL for additional filtering." + "summary": "The maximum number of index snapshots to verify concurrently within each index verification." }, { "role": "flag", - "name": "query", - "type": "string", - "required": true, - "summary": "The SQL query to run." + "name": "index-verification-concurrency", + "type": "number", + "required": false, + "summary": "The number of indices to verify concurrently.\nThe default behavior is to use the entire `snapshot_meta` thread pool." }, { "role": "flag", - "name": "time-zone", + "name": "max-bytes-per-sec", "type": "string", "required": false, - "summary": "The ISO-8601 time zone ID for the search." + "summary": "If `verify_blob_contents` is `true`, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second." + }, + { + "role": "flag", + "name": "max-failed-shard-snapshots", + "type": "number", + "required": false, + "summary": "The number of shard snapshot failures to track during integrity verification, in order to avoid excessive resource usage.\nIf your repository contains more than this number of shard snapshot failures, the verification will fail." + }, + { + "role": "flag", + "name": "meta-thread-pool-concurrency", + "type": "number", + "required": false, + "summary": "The maximum number of snapshot metadata operations to run concurrently.\nThe default behavior is to use at most half of the `snapshot_meta` thread pool at once." + }, + { + "role": "flag", + "name": "snapshot-verification-concurrency", + "type": "number", + "required": false, + "summary": "The number of snapshots to verify concurrently.\nThe default behavior is to use at most half of the `snapshot_meta` thread pool at once." + }, + { + "role": "flag", + "name": "verify-blob-contents", + "type": "boolean", + "required": false, + "summary": "Indicates whether to verify the checksum of every data blob in the repository.\nIf this feature is enabled, Elasticsearch will read the entire repository contents, which may be extremely slow and expensive." + }, + { + "role": "flag", + "name": "repository", + "type": "string", + "required": true, + "summary": "The name of the snapshot repository.", + "repeatable": true }, { "role": "flag", @@ -58551,125 +58452,129 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Translate SQL into Elasticsearch queries.", + "summary": "Verify the repository integrity.", "intent": { "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch sql API commands" - }, - { - "segment": "ssl", - "commands": [ + }, { "path": [ "stack", "es", - "ssl" + "snapshot" ], - "name": "certificates", + "name": "restore", "parameters": [ { "role": "flag", - "name": "error-trace", + "name": "master-timeout", + "type": "string", + "required": false, + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "wait-for-completion", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If `true`, the request returns a response when the restore operation completes.\nThe operation is complete when it finishes all attempts to recover primary shards for restored indices.\nThis applies even if one or more of the recovery attempts fail.\n\nIf `false`, the request returns a response when the restore operation initializes." }, { "role": "flag", - "name": "filter-path", - "type": "string", + "name": "feature-states", + "type": "array", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "The feature states to restore.\nIf `include_global_state` is `true`, the request restores all feature states in the snapshot by default.\nIf `include_global_state` is `false`, the request restores no feature states by default.\nNote that specifying an empty array will result in the default behavior.\nTo restore no feature states, regardless of the `include_global_state` value, specify an array containing only the value `none` (`[\"none\"]`).", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "human", + "name": "ignore-index-settings", + "type": "array", + "required": false, + "summary": "The index settings to not restore from the snapshot.\nYou can't use this option to ignore `index.number_of_shards`.\n\nFor data streams, this option applies only to restored backing indices.\nNew backing indices are configured using the data stream's matching index template.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "ignore-unavailable", "type": "boolean", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "If `true`, the request ignores any index or data stream in indices that's missing from the snapshot.\nIf `false`, the request returns an error for any missing index or data stream." }, { "role": "flag", - "name": "pretty", + "name": "include-aliases", "type": "boolean", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "If `true`, the request restores aliases for any restored data streams and indices.\nIf `false`, the request doesn’t restore aliases." }, { "role": "flag", - "name": "input-file", + "name": "include-global-state", + "type": "boolean", + "required": false, + "summary": "If `true`, restore the cluster state. The cluster state includes:\n\n* Persistent cluster settings\n* Index templates\n* Legacy index templates\n* Ingest pipelines\n* Index lifecycle management (ILM) policies\n* Stored scripts\n* For snapshots taken after 7.12.0, feature states\n\nIf `include_global_state` is `true`, the restore operation merges the legacy index templates in your cluster with the templates contained in the snapshot, replacing any existing ones whose name matches one in the snapshot.\nIt completely removes all persistent settings, non-legacy index templates, ingest pipelines, and ILM lifecycle policies that exist in your cluster and replaces them with the corresponding items from the snapshot.\n\nUse the `feature_states` parameter to configure how feature states are restored.\n\nIf `include_global_state` is `true` and a snapshot was created without a global state then the restore request will fail." + }, + { + "role": "flag", + "name": "index-settings", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Index settings to add or change in restored indices, including backing indices.\nYou can't use this option to change `index.number_of_shards`.\n\nFor data streams, this option applies only to restored backing indices.\nNew backing indices are configured using the data stream's matching index template." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "indices", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "A comma-separated list of indices and data streams to restore.\nIt supports a multi-target syntax.\nThe default behavior is all regular indices and regular data streams in the snapshot.\n\nYou can't use this parameter to restore system indices or system data streams.\nUse `feature_states` instead.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "no-validate", + "name": "partial", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get SSL certificates.", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Elasticsearch ssl API commands" - }, - { - "segment": "streams", - "commands": [ - { - "path": [ - "stack", - "es", - "streams" - ], - "name": "logs-disable", - "parameters": [ + "summary": "If `false`, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.\n\nIf true, it allows restoring a partial snapshot of indices with unavailable shards.\nOnly shards that were successfully included in the snapshot will be restored.\nAll missing shards will be recreated as empty." + }, { "role": "flag", - "name": "master-timeout", + "name": "rename-pattern", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "A rename pattern to apply to restored data streams and indices.\nData streams and indices matching the rename pattern will be renamed according to `rename_replacement`.\n\nThe rename pattern is applied as defined by the regular expression that supports referencing the original text, according to the `appendReplacement` logic." }, { "role": "flag", - "name": "timeout", + "name": "rename-replacement", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The rename replacement string that is used with the `rename_pattern`." }, { "role": "flag", - "name": "name", - "type": "enum", + "name": "restore-over-existing", + "type": "boolean", + "required": false, + "summary": "If `true`, the request can restore over destination indices and data streams that already exist, without closing or deleting them first.\nAn open destination index is closed and restored over in a single step.\nA destination data stream is deleted, together with its backing and failure store indices, and recreated from the snapshot.\n\nIt can't be combined with `rename_pattern`, `rename_replacement`, `include_global_state`, or `partial`." + }, + { + "role": "flag", + "name": "repository", + "type": "string", "required": true, - "summary": "The stream type to disable.", - "enumValues": [ - "logs", - "logs.otel", - "logs.ecs" - ] + "summary": "The name of the repository to restore a snapshot from." + }, + { + "role": "flag", + "name": "snapshot", + "type": "string", + "required": true, + "summary": "The name of the snapshot to restore." }, { "role": "flag", @@ -58722,7 +58627,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable a named stream.", + "summary": "Restore a snapshot.", "intent": { "requiresAuth": true } @@ -58731,35 +58636,38 @@ "path": [ "stack", "es", - "streams" + "snapshot" ], - "name": "logs-enable", + "name": "status", "parameters": [ + { + "role": "flag", + "name": "ignore-unavailable", + "type": "boolean", + "required": false, + "summary": "If `false`, the request returns an error for any snapshots that are unavailable.\nIf `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned." + }, { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "timeout", + "name": "repository", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The snapshot repository name used to limit the request.\nIt supports wildcards (`*`) if `` isn't specified." }, { "role": "flag", - "name": "name", - "type": "enum", - "required": true, - "summary": "The stream type to enable.", - "enumValues": [ - "logs", - "logs.otel", - "logs.ecs" - ] + "name": "snapshot", + "type": "string", + "required": false, + "summary": "A comma-separated list of snapshots to retrieve status for.\nThe default is currently running snapshots.\nWildcards (`*`) are not supported.", + "repeatable": true }, { "role": "flag", @@ -58812,8 +58720,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable a named stream.", + "summary": "Get the snapshot status.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -58821,16 +58732,30 @@ "path": [ "stack", "es", - "streams" + "snapshot" ], - "name": "status", + "name": "verify-repository", "parameters": [ { "role": "flag", "name": "master-timeout", "type": "string", "required": false, - "summary": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error." + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.\nIf no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.\nTo indicate that the request should never timeout, set it to `-1`." + }, + { + "role": "flag", + "name": "repository", + "type": "string", + "required": true, + "summary": "The name of the snapshot repository to verify." }, { "role": "flag", @@ -58883,35 +58808,32 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the status of streams.", + "summary": "Verify a snapshot repository.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } } ], "namespaces": [], - "summary": "Elasticsearch streams API commands" + "summary": "Elasticsearch snapshot API commands" }, { - "segment": "synonyms", + "segment": "sql", "commands": [ { "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "delete-synonym", + "name": "clear-cursor", "parameters": [ { "role": "flag", - "name": "id", + "name": "cursor", "type": "string", "required": true, - "summary": "The synonyms set identifier to delete." + "summary": "Cursor to clear." }, { "role": "flag", @@ -58962,20 +58884,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a synonym set.", + "summary": "Clear an SQL search cursor.", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -58983,30 +58895,16 @@ "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "delete-synonym-rule", + "name": "delete-async", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "boolean", - "required": false, - "summary": "If `true`, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the deleted synonym rule" - }, - { - "role": "flag", - "name": "set-id", - "type": "string", - "required": true, - "summary": "The ID of the synonym set to update." - }, - { - "role": "flag", - "name": "rule-id", + "name": "id", "type": "string", "required": true, - "summary": "The ID of the synonym rule to delete." + "summary": "The identifier for the search." }, { "role": "flag", @@ -59066,7 +58964,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a synonym rule.", + "summary": "Delete an async SQL search.", "intent": { "destructive": true, "idempotent": true, @@ -59078,37 +58976,44 @@ "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "get-synonym", + "name": "get-async", "parameters": [ { "role": "flag", - "name": "from", - "type": "number", + "name": "delimiter", + "type": "string", "required": false, - "summary": "The starting offset for synonym rules to retrieve." + "summary": "The separator for CSV results.\nThe API supports this parameter only for CSV responses." }, { "role": "flag", - "name": "size", - "type": "number", + "name": "format", + "type": "string", "required": false, - "summary": "The max number of synonym rules to retrieve." + "summary": "The format for the response.\nYou must specify a format using this parameter or the `Accept` HTTP header.\nIf you specify both, the API uses this parameter." }, { "role": "flag", - "name": "search-after", + "name": "keep-alive", "type": "string", "required": false, - "summary": "The synonym rule ID to use as a cursor for pagination.\nThe next page of results will start after this rule ID.\nThis parameter cannot be used with `from`." + "summary": "The retention period for the search and its results.\nIt defaults to the `keep_alive` period for the original SQL search." + }, + { + "role": "flag", + "name": "wait-for-completion-timeout", + "type": "string", + "required": false, + "summary": "The period to wait for complete results.\nIt defaults to no timeout, meaning the request waits for complete search results." }, { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The synonyms set identifier to retrieve." + "summary": "The identifier for the search." }, { "role": "flag", @@ -59161,7 +59066,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a synonym set.", + "summary": "Get async SQL search results.", "intent": { "destructive": false, "idempotent": true, @@ -59173,23 +59078,16 @@ "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "get-synonym-rule", + "name": "get-async-status", "parameters": [ { "role": "flag", - "name": "set-id", - "type": "string", - "required": true, - "summary": "The ID of the synonym set to retrieve the synonym rule from." - }, - { - "role": "flag", - "name": "rule-id", + "name": "id", "type": "string", "required": true, - "summary": "The ID of the synonym rule to retrieve." + "summary": "The identifier for the search." }, { "role": "flag", @@ -59242,7 +59140,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a synonym rule.", + "summary": "Get the async SQL search status.", "intent": { "destructive": false, "idempotent": true, @@ -59254,120 +59152,145 @@ "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "get-synonyms-sets", + "name": "query", "parameters": [ { "role": "flag", - "name": "from", - "type": "number", + "name": "format", + "type": "enum", "required": false, - "summary": "The starting offset for synonyms sets to retrieve." + "summary": "The format for the response.\nYou can also specify a format using the `Accept` HTTP header.\nIf you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence.", + "enumValues": [ + "csv", + "json", + "tsv", + "txt", + "yaml", + "cbor", + "smile" + ] }, { "role": "flag", - "name": "size", - "type": "number", + "name": "allow-partial-search-results", + "type": "boolean", "required": false, - "summary": "The maximum number of synonyms sets to retrieve." + "summary": "If `true`, the response has partial results when there are shard request timeouts or shard failures.\nIf `false`, the API returns an error with no partial results." }, { "role": "flag", - "name": "error-trace", + "name": "catalog", + "type": "string", + "required": false, + "summary": "The default catalog (cluster) for queries.\nIf unspecified, the queries execute on the data in the local cluster only." + }, + { + "role": "flag", + "name": "columnar", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If `true`, the results are in a columnar fashion: one row represents all the values of a certain column from the current page of results.\nThe API supports this parameter only for CBOR, JSON, SMILE, and YAML responses." }, { "role": "flag", - "name": "filter-path", + "name": "cursor", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "The cursor used to retrieve a set of paginated results.\nIf you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.\nIt ignores other request body parameters." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "fetch-size", + "type": "number", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "The maximum number of rows (or entries) to return in one response." }, { "role": "flag", - "name": "pretty", + "name": "field-multi-value-leniency", "type": "boolean", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "If `false`, the API returns an exception when encountering multiple values for a field.\nIf `true`, the API is lenient and returns the first value from the array with no guarantee of consistent results." }, { "role": "flag", - "name": "input-file", + "name": "filter", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The Elasticsearch query DSL for additional filtering." }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "index-using-frozen", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "If `true`, the search can run on frozen indices." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "keep-alive", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get all synonym sets.", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "synonyms" - ], - "name": "put-synonym", - "parameters": [ + "summary": "The retention period for an async or saved synchronous search." + }, { "role": "flag", - "name": "refresh", + "name": "keep-on-completion", "type": "boolean", "required": false, - "summary": "If `true`, the request will refresh the analyzers with the new synonyms set and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the new synonym set" + "summary": "If `true`, Elasticsearch stores synchronous searches if you also specify the `wait_for_completion_timeout` parameter.\nIf `false`, Elasticsearch only stores async searches that don't finish before the `wait_for_completion_timeout`." }, { "role": "flag", - "name": "append", - "type": "boolean", + "name": "page-timeout", + "type": "string", "required": false, - "summary": "If `true`, the provided synonym rules are appended to the existing set, with matching IDs overwriting existing rules.\nIf `false`, the entire synonyms set is replaced with the new synonym rules definitions." + "summary": "The minimum retention period for the scroll cursor.\nAfter this time period, a pagination request might fail because the scroll cursor is no longer available.\nSubsequent scroll requests prolong the lifetime of the scroll cursor by the duration of `page_timeout` in the scroll request." }, { "role": "flag", - "name": "synonyms-set", + "name": "params", + "type": "array", + "required": false, + "summary": "The values for parameters in the query.", + "repeatable": true + }, + { + "role": "flag", + "name": "query", "type": "string", - "required": true, - "summary": "The synonym rules definitions for the synonyms set.", - "repeatable": true, - "separator": "," + "required": false, + "summary": "The SQL query to run." }, { "role": "flag", - "name": "id", + "name": "request-timeout", "type": "string", - "required": true, - "summary": "The ID of the synonyms set to be created or updated." + "required": false, + "summary": "The timeout before the request fails." + }, + { + "role": "flag", + "name": "runtime-mappings", + "type": "string", + "required": false, + "summary": "One or more runtime fields for the search request.\nThese fields take precedence over mapped fields with the same name." + }, + { + "role": "flag", + "name": "time-zone", + "type": "string", + "required": false, + "summary": "The ISO-8601 time zone ID for the search." + }, + { + "role": "flag", + "name": "wait-for-completion-timeout", + "type": "string", + "required": false, + "summary": "The period to wait for complete results.\nIt defaults to no timeout, meaning the request waits for complete search results.\nIf the search doesn't finish within this period, the search becomes async.\n\nTo save a synchronous search, you must specify this parameter and the `keep_on_completion` parameter." }, { "role": "flag", @@ -59420,11 +59343,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a synonym set.", + "summary": "Get SQL search results.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -59432,37 +59352,37 @@ "path": [ "stack", "es", - "synonyms" + "sql" ], - "name": "put-synonym-rule", + "name": "translate", "parameters": [ { "role": "flag", - "name": "refresh", - "type": "boolean", + "name": "fetch-size", + "type": "number", "required": false, - "summary": "If `true`, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the new synonym rule" + "summary": "The maximum number of rows (or entries) to return in one response." }, { "role": "flag", - "name": "synonyms", + "name": "filter", "type": "string", - "required": true, - "summary": "The synonym rule information definition, which must be in Solr format." + "required": false, + "summary": "The Elasticsearch query DSL for additional filtering." }, { "role": "flag", - "name": "set-id", + "name": "query", "type": "string", "required": true, - "summary": "The ID of the synonym set." + "summary": "The SQL query to run." }, { "role": "flag", - "name": "rule-id", + "name": "time-zone", "type": "string", - "required": true, - "summary": "The ID of the synonym rule to be updated or created." + "required": false, + "summary": "The ISO-8601 time zone ID for the search." }, { "role": "flag", @@ -59515,67 +59435,26 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a synonym rule.", + "summary": "Translate SQL into Elasticsearch queries.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } } ], "namespaces": [], - "summary": "Elasticsearch synonyms API commands" + "summary": "Elasticsearch sql API commands" }, { - "segment": "tasks", + "segment": "ssl", "commands": [ { "path": [ "stack", "es", - "tasks" + "ssl" ], - "name": "cancel", + "name": "certificates", "parameters": [ - { - "role": "flag", - "name": "actions", - "type": "string", - "required": false, - "summary": "A comma-separated list or wildcard expression of actions that is used to limit the request.", - "repeatable": true - }, - { - "role": "flag", - "name": "nodes", - "type": "array", - "required": false, - "summary": "A comma-separated list of node IDs or names that is used to limit the request.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "parent-task-id", - "type": "string", - "required": false, - "summary": "A parent task ID that is used to limit the tasks." - }, - { - "role": "flag", - "name": "wait-for-completion", - "type": "boolean", - "required": false, - "summary": "If true, the request blocks until all found tasks are complete." - }, - { - "role": "flag", - "name": "task-id", - "type": "string", - "required": false, - "summary": "The task identifier." - }, { "role": "flag", "name": "error-trace", @@ -59627,39 +59506,54 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Cancel a task.", + "summary": "Get SSL certificates.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch ssl API commands" + }, + { + "segment": "streams", + "commands": [ { "path": [ "stack", "es", - "tasks" + "streams" ], - "name": "get", + "name": "logs-disable", "parameters": [ { "role": "flag", - "name": "timeout", + "name": "master-timeout", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "wait-for-completion", - "type": "boolean", + "name": "timeout", + "type": "string", "required": false, - "summary": "If `true`, the request blocks until the task has completed." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "task-id", - "type": "string", + "name": "name", + "type": "enum", "required": true, - "summary": "The task identifier." + "summary": "The stream type to disable.", + "enumValues": [ + "logs", + "logs.otel", + "logs.ecs" + ] }, { "role": "flag", @@ -59712,11 +59606,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get task information.", + "summary": "Disable a named stream.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -59724,65 +59615,106 @@ "path": [ "stack", "es", - "tasks" + "streams" ], - "name": "list", + "name": "logs-enable", "parameters": [ { "role": "flag", - "name": "actions", + "name": "master-timeout", "type": "string", "required": false, - "summary": "A comma-separated list or wildcard expression of actions used to limit the request.\nFor example, you can use `cluser:*` to retrieve all cluster-related tasks.", - "repeatable": true + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "detailed", - "type": "boolean", + "name": "timeout", + "type": "string", "required": false, - "summary": "If `true`, the response includes detailed information about the running tasks.\nThis information is useful to distinguish tasks from each other but is more costly to run." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "group-by", + "name": "name", "type": "enum", - "required": false, - "summary": "A key that is used to group tasks in the response.\nThe task lists can be grouped either by nodes or by parent tasks.", + "required": true, + "summary": "The stream type to enable.", "enumValues": [ - "nodes", - "parents", - "none" + "logs", + "logs.otel", + "logs.ecs" ] }, { "role": "flag", - "name": "nodes", + "name": "error-trace", + "type": "boolean", + "required": false, + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, + { + "role": "flag", + "name": "filter-path", "type": "string", "required": false, - "summary": "A comma-separated list of node IDs or names that is used to limit the returned information.", + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", "repeatable": true }, { "role": "flag", - "name": "parent-task-id", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "A parent task identifier that is used to limit returned information.\nTo return all tasks, omit this parameter or use a value of `-1`.\nIf the parent task is not found, the API does not return a 404 response code." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "timeout", + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + }, + { + "role": "flag", + "name": "input-file", "type": "string", "required": false, - "summary": "The period to wait for each node to respond.\nIf a node does not respond before its timeout expires, the response does not include its information.\nHowever, timed out nodes are included in the `node_failures` property." + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "wait-for-completion", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "If `true`, the request blocks until the operation is complete." + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Enable a named stream.", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "streams" + ], + "name": "status", + "parameters": [ + { + "role": "flag", + "name": "master-timeout", + "type": "string", + "required": false, + "summary": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", @@ -59835,7 +59767,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get all tasks.", + "summary": "Get the status of streams.", "intent": { "destructive": false, "idempotent": true, @@ -59845,134 +59777,120 @@ } ], "namespaces": [], - "summary": "Elasticsearch tasks API commands" + "summary": "Elasticsearch streams API commands" }, { - "segment": "text-structure", + "segment": "synonyms", "commands": [ { "path": [ "stack", "es", - "text-structure" + "synonyms" ], - "name": "find-field-structure", + "name": "delete-synonym", "parameters": [ { "role": "flag", - "name": "column-names", - "type": "string", - "required": false, - "summary": "If `format` is set to `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header row, columns are named \"column1\", \"column2\", \"column3\", for example.", - "repeatable": true - }, - { - "role": "flag", - "name": "delimiter", + "name": "id", "type": "string", - "required": false, - "summary": "If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." + "required": true, + "summary": "The synonyms set identifier to delete." }, { "role": "flag", - "name": "documents-to-sample", - "type": "number", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "The number of documents to include in the structural analysis.\nThe minimum value is 2." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "ecs-compatibility", - "type": "enum", + "name": "filter-path", + "type": "string", "required": false, - "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of the meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output.\nThe intention in that situation is that a user who knows the meanings will rename the fields before using them.", - "enumValues": [ - "disabled", - "v1" - ] + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "explain", + "name": "human", "type": "boolean", "required": false, - "summary": "If `true`, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result." - }, - { - "role": "flag", - "name": "field", - "type": "string", - "required": true, - "summary": "The field that should be analyzed." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "format", - "type": "enum", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "The high level structure of the text.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", - "enumValues": [ - "delimited", - "ndjson", - "semi_structured_text", - "xml" - ] + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "grok-pattern", + "name": "input-file", "type": "string", "required": false, - "summary": "If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." - }, - { - "role": "flag", - "name": "index", - "type": "string", - "required": true, - "summary": "The name of the index that contains the analyzed field." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "quote", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "should-trim-fields", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is true.\nOtherwise, the default value is `false`." + "summary": "skip input validation and send the request as-is" }, { "role": "flag", - "name": "should-parse-recursively", + "name": "yes", "type": "boolean", "required": false, - "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." - }, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a synonym set.", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "synonyms" + ], + "name": "delete-synonym-rule", + "parameters": [ { "role": "flag", - "name": "timeout", - "type": "string", + "name": "refresh", + "type": "boolean", "required": false, - "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires, it will be stopped." + "summary": "If `true`, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the deleted synonym rule" }, { "role": "flag", - "name": "timestamp-field", + "name": "set-id", "type": "string", - "required": false, - "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." + "required": true, + "summary": "The ID of the synonym set to update." }, { "role": "flag", - "name": "timestamp-format", + "name": "rule-id", "type": "string", - "required": false, - "summary": "The Java time format of the timestamp field in the text.\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`).\nSpacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified, the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text, this will result in the structure finder treating the text as single-line messages." + "required": true, + "summary": "The ID of the synonym rule to delete." }, { "role": "flag", @@ -60023,11 +59941,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Find the structure of a text field.", + "summary": "Delete a synonym rule.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -60037,113 +59962,37 @@ "path": [ "stack", "es", - "text-structure" + "synonyms" ], - "name": "find-message-structure", + "name": "get-synonym", "parameters": [ { "role": "flag", - "name": "column-names", - "type": "string", - "required": false, - "summary": "If the format is `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header role, columns are named \"column1\", \"column2\", \"column3\", for example.", - "repeatable": true - }, - { - "role": "flag", - "name": "delimiter", - "type": "string", - "required": false, - "summary": "If you the format is `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." - }, - { - "role": "flag", - "name": "ecs-compatibility", - "type": "enum", - "required": false, - "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it.", - "enumValues": [ - "disabled", - "v1" - ] - }, - { - "role": "flag", - "name": "explain", - "type": "boolean", - "required": false, - "summary": "If this parameter is set to true, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result." - }, - { - "role": "flag", - "name": "format", - "type": "enum", - "required": false, - "summary": "The high level structure of the text.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", - "enumValues": [ - "delimited", - "ndjson", - "semi_structured_text", - "xml" - ] - }, - { - "role": "flag", - "name": "grok-pattern", - "type": "string", - "required": false, - "summary": "If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." - }, - { - "role": "flag", - "name": "quote", - "type": "string", - "required": false, - "summary": "If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." - }, - { - "role": "flag", - "name": "should-trim-fields", - "type": "boolean", - "required": false, - "summary": "If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is true.\nOtherwise, the default value is `false`." - }, - { - "role": "flag", - "name": "should-parse-recursively", - "type": "boolean", + "name": "from", + "type": "number", "required": false, - "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." + "summary": "The starting offset for synonym rules to retrieve." }, { "role": "flag", - "name": "timeout", - "type": "string", + "name": "size", + "type": "number", "required": false, - "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires, it will be stopped." + "summary": "The max number of synonym rules to retrieve." }, { "role": "flag", - "name": "timestamp-field", + "name": "search-after", "type": "string", "required": false, - "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." + "summary": "The synonym rule ID to use as a cursor for pagination.\nThe next page of results will start after this rule ID.\nThis parameter cannot be used with `from`." }, { "role": "flag", - "name": "timestamp-format", + "name": "id", "type": "string", - "required": false, - "summary": "The Java time format of the timestamp field in the text.\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`).\nSpacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified, the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text, this will result in the structure finder treating the text as single-line messages." - }, - { - "role": "flag", - "name": "messages", - "type": "array", "required": true, - "summary": "The list of messages you want to analyze.", - "repeatable": true, - "elementType": "string" + "summary": "The synonyms set identifier to retrieve." }, { "role": "flag", @@ -60196,7 +60045,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find the structure of text messages.", + "summary": "Get a synonym set.", "intent": { "destructive": false, "idempotent": true, @@ -60208,135 +60057,52 @@ "path": [ "stack", "es", - "text-structure" + "synonyms" ], - "name": "find-structure", + "name": "get-synonym-rule", "parameters": [ { "role": "flag", - "name": "charset", - "type": "string", - "required": false, - "summary": "The text's character set.\nIt must be a character set that is supported by the JVM that Elasticsearch uses.\nFor example, `UTF-8`, `UTF-16LE`, `windows-1252`, or `EUC-JP`.\nIf this parameter is not specified, the structure finder chooses an appropriate character set." - }, - { - "role": "flag", - "name": "column-names", - "type": "string", - "required": false, - "summary": "If you have set format to `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header role, columns are named \"column1\", \"column2\", \"column3\", for example.", - "repeatable": true - }, - { - "role": "flag", - "name": "delimiter", - "type": "string", - "required": false, - "summary": "If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." - }, - { - "role": "flag", - "name": "ecs-compatibility", + "name": "set-id", "type": "string", - "required": false, - "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nValid values are `disabled` and `v1`.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it." - }, - { - "role": "flag", - "name": "explain", - "type": "boolean", - "required": false, - "summary": "If this parameter is set to `true`, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result.\nIf the structure finder produces unexpected results for some text, use this query parameter to help you determine why the returned structure was chosen." - }, - { - "role": "flag", - "name": "format", - "type": "enum", - "required": false, - "summary": "The high level structure of the text.\nValid values are `ndjson`, `xml`, `delimited`, and `semi_structured_text`.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", - "enumValues": [ - "ndjson", - "xml", - "delimited", - "semi_structured_text" - ] + "required": true, + "summary": "The ID of the synonym set to retrieve the synonym rule from." }, { "role": "flag", - "name": "grok-pattern", + "name": "rule-id", "type": "string", - "required": false, - "summary": "If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." + "required": true, + "summary": "The ID of the synonym rule to retrieve." }, { "role": "flag", - "name": "has-header-row", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "If you have set `format` to `delimited`, you can use this parameter to indicate whether the column names are in the first row of the text.\nIf this parameter is not specified, the structure finder guesses based on the similarity of the first row of the text to other rows." - }, - { - "role": "flag", - "name": "line-merge-size-limit", - "type": "number", - "required": false, - "summary": "The maximum number of characters in a message when lines are merged to form messages while analyzing semi-structured text.\nIf you have extremely long messages you may need to increase this, but be aware that this may lead to very long processing times if the way to group lines into messages is misdetected." - }, - { - "role": "flag", - "name": "lines-to-sample", - "type": "number", - "required": false, - "summary": "The number of lines to include in the structural analysis, starting from the beginning of the text.\nThe minimum is 2.\nIf the value of this parameter is greater than the number of lines in the text, the analysis proceeds (as long as there are at least two lines in the text) for all of the lines.\n\nNOTE: The number of lines and the variation of the lines affects the speed of the analysis.\nFor example, if you upload text where the first 1000 lines are all variations on the same message, the analysis will find more commonality than would be seen with a bigger sample.\nIf possible, however, it is more efficient to upload sample text with more variety in the first 1000 lines than to request analysis of 100000 lines to achieve some variety." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "quote", + "name": "filter-path", "type": "string", "required": false, - "summary": "If you have set `format` to `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "should-trim-fields", + "name": "human", "type": "boolean", "required": false, - "summary": "If you have set `format` to `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is `true`.\nOtherwise, the default value is `false`." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "should-parse-recursively", + "name": "pretty", "type": "boolean", "required": false, - "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires then it will be stopped." - }, - { - "role": "flag", - "name": "timestamp-field", - "type": "string", - "required": false, - "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text were ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the `format` is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." - }, - { - "role": "flag", - "name": "timestamp-format", - "type": "string", - "required": false, - "summary": "The Java time format of the timestamp field in the text.\n\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and separated from the `ss` by a `.`, `,` or `:`.\nSpacing and punctuation is also permitted with the exception of `?`, newline and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text this will result in the structure finder treating the text as single-line messages." - }, - { - "role": "flag", - "name": "text-files", - "type": "array", - "required": true, - "repeatable": true + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -60360,8 +60126,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find the structure of a text file.", + "summary": "Get a synonym rule.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -60369,32 +60138,23 @@ "path": [ "stack", "es", - "text-structure" + "synonyms" ], - "name": "test-grok-pattern", + "name": "get-synonyms-sets", "parameters": [ { "role": "flag", - "name": "ecs-compatibility", - "type": "string", + "name": "from", + "type": "number", "required": false, - "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nValid values are `disabled` and `v1`." - }, - { - "role": "flag", - "name": "grok-pattern", - "type": "string", - "required": true, - "summary": "The Grok pattern to run on the text." + "summary": "The starting offset for synonyms sets to retrieve." }, { "role": "flag", - "name": "text", - "type": "array", - "required": true, - "summary": "The lines of text to run the Grok pattern on.", - "repeatable": true, - "elementType": "string" + "name": "size", + "type": "number", + "required": false, + "summary": "The maximum number of synonyms sets to retrieve." }, { "role": "flag", @@ -60447,56 +60207,51 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Test a Grok pattern.", + "summary": "Get all synonym sets.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch text-structure API commands" - }, - { - "segment": "transform", - "commands": [ + }, { "path": [ "stack", "es", - "transform" + "synonyms" ], - "name": "delete-transform", + "name": "put-synonym", "parameters": [ { "role": "flag", - "name": "force", + "name": "refresh", "type": "boolean", "required": false, - "summary": "If this value is false, the transform must be stopped before it can be deleted. If true, the transform is\ndeleted regardless of its current state." + "summary": "If `true`, the request will refresh the analyzers with the new synonyms set and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the new synonym set" }, { "role": "flag", - "name": "delete-dest-index", + "name": "append", "type": "boolean", "required": false, - "summary": "If this value is true, the destination index is deleted together with the transform. If false, the destination\nindex will not be deleted" + "summary": "If `true`, the provided synonym rules are appended to the existing set, with matching IDs overwriting existing rules.\nIf `false`, the entire synonyms set is replaced with the new synonym rules definitions." }, { "role": "flag", - "name": "timeout", + "name": "synonyms-set", "type": "string", - "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." + "required": true, + "summary": "The synonym rules definitions for the synonyms set.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "transform-id", + "name": "id", "type": "string", "required": true, - "summary": "Identifier for the transform." + "summary": "The ID of the synonyms set to be created or updated." }, { "role": "flag", @@ -60547,18 +60302,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a transform.", + "summary": "Create or update a synonym set.", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -60568,10 +60316,38 @@ "path": [ "stack", "es", - "transform" + "synonyms" ], - "name": "get-node-stats", + "name": "put-synonym-rule", "parameters": [ + { + "role": "flag", + "name": "refresh", + "type": "boolean", + "required": false, + "summary": "If `true`, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning.\nIf `false`, analyzers will not be reloaded with the new synonym rule" + }, + { + "role": "flag", + "name": "synonyms", + "type": "string", + "required": true, + "summary": "The synonym rule information definition, which must be in Solr format." + }, + { + "role": "flag", + "name": "set-id", + "type": "string", + "required": true, + "summary": "The ID of the synonym set." + }, + { + "role": "flag", + "name": "rule-id", + "type": "string", + "required": true, + "summary": "The ID of the synonym rule to be updated or created." + }, { "role": "flag", "name": "error-trace", @@ -60623,57 +60399,66 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get node stats.", + "summary": "Create or update a synonym rule.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch synonyms API commands" + }, + { + "segment": "tasks", + "commands": [ { "path": [ "stack", "es", - "transform" + "tasks" ], - "name": "get-transform", + "name": "cancel", "parameters": [ { "role": "flag", - "name": "allow-no-match", - "type": "boolean", + "name": "actions", + "type": "string", "required": false, - "summary": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no transforms that match.\n2. Contains the _all string or no identifiers and there are no matches.\n3. Contains wildcard expressions and there are only partial matches.\n\nIf this parameter is false, the request returns a 404 status code when\nthere are no matches or only partial matches." + "summary": "A comma-separated list or wildcard expression of actions that is used to limit the request.", + "repeatable": true }, { "role": "flag", - "name": "from", - "type": "number", + "name": "nodes", + "type": "array", "required": false, - "summary": "Skips the specified number of transforms." + "summary": "A comma-separated list of node IDs or names that is used to limit the request.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "size", - "type": "number", + "name": "parent-task-id", + "type": "string", "required": false, - "summary": "Specifies the maximum number of transforms to obtain." + "summary": "A parent task ID that is used to limit the tasks." }, { "role": "flag", - "name": "exclude-generated", + "name": "wait-for-completion", "type": "boolean", "required": false, - "summary": "Excludes fields that were automatically added when creating the\ntransform. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster." + "summary": "If true, the request blocks until all found tasks are complete." }, { "role": "flag", - "name": "transform-id", + "name": "task-id", "type": "string", "required": false, - "summary": "Identifier for the transform. It can be a transform identifier or a\nwildcard expression. You can get information for all transforms by using\n`_all`, by specifying `*` as the ``, or by omitting the\n``.", - "repeatable": true + "summary": "The task identifier." }, { "role": "flag", @@ -60726,11 +60511,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get transforms.", + "summary": "Cancel a task.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -60738,52 +60520,30 @@ "path": [ "stack", "es", - "transform" + "tasks" ], - "name": "get-transform-stats", + "name": "get", "parameters": [ { "role": "flag", - "name": "allow-no-match", - "type": "boolean", + "name": "timeout", + "type": "string", "required": false, - "summary": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no transforms that match.\n2. Contains the _all string or no identifiers and there are no matches.\n3. Contains wildcard expressions and there are only partial matches.\n\nIf this parameter is false, the request returns a 404 status code when\nthere are no matches or only partial matches." + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "basic", + "name": "wait-for-completion", "type": "boolean", "required": false, - "summary": "If true, the response includes `id`, `state`, `node`, `stats`, `health`,\nand basic `checkpointing` information (the last and next checkpoint\nnumbers, and the next checkpoint's `position` and `progress`). Skips\nstatistics that require heavy computations to calculate:\n`operations_behind`, `changes_last_detected_at`, `last_search_time`, and\nthe checkpoint timestamps." - }, - { - "role": "flag", - "name": "from", - "type": "number", - "required": false, - "summary": "Skips the specified number of transforms." - }, - { - "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "Specifies the maximum number of transforms to obtain." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "Controls the time to wait for the stats" + "summary": "If `true`, the request blocks until the task has completed." }, { "role": "flag", - "name": "transform-id", + "name": "task-id", "type": "string", "required": true, - "summary": "Identifier for the transform. It can be a transform identifier or a\nwildcard expression. You can get information for all transforms by using\n`_all`, by specifying `*` as the ``, or by omitting the\n``.", - "repeatable": true + "summary": "The task identifier." }, { "role": "flag", @@ -60836,7 +60596,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get transform stats.", + "summary": "Get task information.", "intent": { "destructive": false, "idempotent": true, @@ -60848,86 +60608,65 @@ "path": [ "stack", "es", - "transform" + "tasks" ], - "name": "preview-transform", + "name": "list", "parameters": [ { "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "dest", - "type": "string", - "required": false, - "summary": "The destination for the transform." - }, - { - "role": "flag", - "name": "description", - "type": "string", - "required": false, - "summary": "Free text description of the transform." - }, - { - "role": "flag", - "name": "frequency", - "type": "string", - "required": false, - "summary": "The interval between checks for changes in the source indices when the\ntransform is running continuously. Also determines the retry interval in\nthe event of transient failures while the transform is searching or\nindexing. The minimum value is 1s and the maximum is 1h." - }, - { - "role": "flag", - "name": "pivot", + "name": "actions", "type": "string", "required": false, - "summary": "The pivot method transforms the data by aggregating and grouping it.\nThese objects define the group by fields and the aggregation to reduce\nthe data." + "summary": "A comma-separated list or wildcard expression of actions used to limit the request.\nFor example, you can use `cluser:*` to retrieve all cluster-related tasks.", + "repeatable": true }, { "role": "flag", - "name": "source", - "type": "string", + "name": "detailed", + "type": "boolean", "required": false, - "summary": "The source of the data for the transform." + "summary": "If `true`, the response includes detailed information about the running tasks.\nThis information is useful to distinguish tasks from each other but is more costly to run." }, { "role": "flag", - "name": "settings", - "type": "string", + "name": "group-by", + "type": "enum", "required": false, - "summary": "Defines optional transform settings." + "summary": "A key that is used to group tasks in the response.\nThe task lists can be grouped either by nodes or by parent tasks.", + "enumValues": [ + "nodes", + "parents", + "none" + ] }, { "role": "flag", - "name": "sync", + "name": "nodes", "type": "string", "required": false, - "summary": "Defines the properties transforms require to run continuously." + "summary": "A comma-separated list of node IDs or names that is used to limit the returned information.", + "repeatable": true }, { "role": "flag", - "name": "retention-policy", + "name": "parent-task-id", "type": "string", "required": false, - "summary": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index." + "summary": "A parent task identifier that is used to limit returned information.\nTo return all tasks, omit this parameter or use a value of `-1`.\nIf the parent task is not found, the API does not return a 404 response code." }, { "role": "flag", - "name": "latest", + "name": "timeout", "type": "string", "required": false, - "summary": "The latest method transforms the data by finding the latest document for\neach unique key." + "summary": "The period to wait for each node to respond.\nIf a node does not respond before its timeout expires, the response does not include its information.\nHowever, timed out nodes are included in the `node_failures` property." }, { "role": "flag", - "name": "transform-id", - "type": "string", + "name": "wait-for-completion", + "type": "boolean", "required": false, - "summary": "Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform\nconfiguration details in the request body." + "summary": "If `true`, the request blocks until the operation is complete." }, { "role": "flag", @@ -60980,112 +60719,144 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Preview a transform.", + "summary": "Get all tasks.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch tasks API commands" + }, + { + "segment": "text-structure", + "commands": [ { "path": [ "stack", "es", - "transform" + "text-structure" ], - "name": "put-transform", + "name": "find-field-structure", "parameters": [ { "role": "flag", - "name": "defer-validation", - "type": "boolean", + "name": "column-names", + "type": "string", "required": false, - "summary": "When the transform is created, a series of validations occur to ensure its success. For example, there is a\ncheck for the existence of the source indices and a check that the destination index is not part of the source\nindex pattern. You can use this parameter to skip the checks, for example when the source index does not exist\nuntil after the transform is created. The validations are always run when you start the transform, however, with\nthe exception of privilege checks." + "summary": "If `format` is set to `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header row, columns are named \"column1\", \"column2\", \"column3\", for example.", + "repeatable": true }, { "role": "flag", - "name": "timeout", + "name": "delimiter", "type": "string", "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." + "summary": "If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." }, { "role": "flag", - "name": "dest", - "type": "string", - "required": true, - "summary": "The destination for the transform." + "name": "documents-to-sample", + "type": "number", + "required": false, + "summary": "The number of documents to include in the structural analysis.\nThe minimum value is 2." }, { "role": "flag", - "name": "description", - "type": "string", + "name": "ecs-compatibility", + "type": "enum", "required": false, - "summary": "Free text description of the transform." + "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of the meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output.\nThe intention in that situation is that a user who knows the meanings will rename the fields before using them.", + "enumValues": [ + "disabled", + "v1" + ] }, { "role": "flag", - "name": "frequency", - "type": "string", + "name": "explain", + "type": "boolean", "required": false, - "summary": "The interval between checks for changes in the source indices when the transform is running continuously. Also\ndetermines the retry interval in the event of transient failures while the transform is searching or indexing.\nThe minimum value is `1s` and the maximum is `1h`." + "summary": "If `true`, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result." }, { "role": "flag", - "name": "latest", + "name": "field", "type": "string", + "required": true, + "summary": "The field that should be analyzed." + }, + { + "role": "flag", + "name": "format", + "type": "enum", "required": false, - "summary": "The latest method transforms the data by finding the latest document for each unique key." + "summary": "The high level structure of the text.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", + "enumValues": [ + "delimited", + "ndjson", + "semi_structured_text", + "xml" + ] }, { "role": "flag", - "name": "meta", + "name": "grok-pattern", "type": "string", "required": false, - "summary": "Defines optional transform metadata." + "summary": "If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." }, { "role": "flag", - "name": "pivot", + "name": "index", "type": "string", - "required": false, - "summary": "The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields\nand the aggregation to reduce the data." + "required": true, + "summary": "The name of the index that contains the analyzed field." }, { "role": "flag", - "name": "retention-policy", + "name": "quote", "type": "string", "required": false, - "summary": "Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the\ndestination index." + "summary": "If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." }, { "role": "flag", - "name": "settings", - "type": "string", + "name": "should-trim-fields", + "type": "boolean", "required": false, - "summary": "Defines optional transform settings." + "summary": "If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is true.\nOtherwise, the default value is `false`." }, { "role": "flag", - "name": "source", + "name": "should-parse-recursively", + "type": "boolean", + "required": false, + "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." + }, + { + "role": "flag", + "name": "timeout", "type": "string", - "required": true, - "summary": "The source of the data for the transform." + "required": false, + "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires, it will be stopped." }, { "role": "flag", - "name": "sync", + "name": "timestamp-field", "type": "string", "required": false, - "summary": "Defines the properties transforms require to run continuously." + "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." }, { "role": "flag", - "name": "transform-id", + "name": "timestamp-format", "type": "string", - "required": true, - "summary": "Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9),\nhyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters." + "required": false, + "summary": "The Java time format of the timestamp field in the text.\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`).\nSpacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified, the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text, this will result in the structure finder treating the text as single-line messages." }, { "role": "flag", @@ -61138,7 +60909,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a transform.", + "summary": "Find the structure of a text field.", "intent": { "destructive": false, "idempotent": true, @@ -61150,115 +60921,113 @@ "path": [ "stack", "es", - "transform" + "text-structure" ], - "name": "reset-transform", + "name": "find-message-structure", "parameters": [ { "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform\nmust be stopped before it can be reset." - }, - { - "role": "flag", - "name": "timeout", + "name": "column-names", "type": "string", "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." + "summary": "If the format is `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header role, columns are named \"column1\", \"column2\", \"column3\", for example.", + "repeatable": true }, { "role": "flag", - "name": "transform-id", + "name": "delimiter", "type": "string", - "required": true, - "summary": "Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9),\nhyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters." + "required": false, + "summary": "If you the format is `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." }, { "role": "flag", - "name": "error-trace", - "type": "boolean", + "name": "ecs-compatibility", + "type": "enum", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it.", + "enumValues": [ + "disabled", + "v1" + ] }, { "role": "flag", - "name": "filter-path", - "type": "string", + "name": "explain", + "type": "boolean", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "If this parameter is set to true, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "format", + "type": "enum", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "The high level structure of the text.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", + "enumValues": [ + "delimited", + "ndjson", + "semi_structured_text", + "xml" + ] }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "grok-pattern", + "type": "string", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." }, { "role": "flag", - "name": "input-file", + "name": "quote", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "should-trim-fields", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is true.\nOtherwise, the default value is `false`." }, { "role": "flag", - "name": "no-validate", + "name": "should-parse-recursively", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Reset a transform.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "transform" - ], - "name": "schedule-now-transform", - "parameters": [ + "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." + }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "Controls the time to wait for the scheduling to take place" + "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires, it will be stopped." }, { "role": "flag", - "name": "defer", - "type": "boolean", + "name": "timestamp-field", + "type": "string", "required": false, - "summary": "When true, defers the scheduling by the transform's configured sync delay\ninstead of triggering immediately. The transform will process new data after\nthe delay elapses rather than right away." + "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." }, { "role": "flag", - "name": "transform-id", + "name": "timestamp-format", "type": "string", + "required": false, + "summary": "The Java time format of the timestamp field in the text.\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`).\nSpacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified, the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text, this will result in the structure finder treating the text as single-line messages." + }, + { + "role": "flag", + "name": "messages", + "type": "array", "required": true, - "summary": "Identifier for the transform." + "summary": "The list of messages you want to analyze.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -61311,8 +61080,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Schedule a transform to start now.", + "summary": "Find the structure of text messages.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -61320,52 +61092,135 @@ "path": [ "stack", "es", - "transform" + "text-structure" ], - "name": "set-upgrade-mode", + "name": "find-structure", "parameters": [ { "role": "flag", - "name": "enabled", + "name": "charset", + "type": "string", + "required": false, + "summary": "The text's character set.\nIt must be a character set that is supported by the JVM that Elasticsearch uses.\nFor example, `UTF-8`, `UTF-16LE`, `windows-1252`, or `EUC-JP`.\nIf this parameter is not specified, the structure finder chooses an appropriate character set." + }, + { + "role": "flag", + "name": "column-names", + "type": "string", + "required": false, + "summary": "If you have set format to `delimited`, you can specify the column names in a comma-separated list.\nIf this parameter is not specified, the structure finder uses the column names from the header row of the text.\nIf the text does not have a header role, columns are named \"column1\", \"column2\", \"column3\", for example.", + "repeatable": true + }, + { + "role": "flag", + "name": "delimiter", + "type": "string", + "required": false, + "summary": "If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.\nOnly a single character is supported; the delimiter cannot have multiple characters.\nBy default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`).\nIn this default scenario, all rows must have the same number of fields for the delimited format to be detected.\nIf you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row." + }, + { + "role": "flag", + "name": "ecs-compatibility", + "type": "string", + "required": false, + "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nValid values are `disabled` and `v1`.\nThis setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input.\nIf the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it." + }, + { + "role": "flag", + "name": "explain", "type": "boolean", "required": false, - "summary": "When `true`, it enables `upgrade_mode` which temporarily halts all\ntransform tasks and prohibits new transform tasks from\nstarting." + "summary": "If this parameter is set to `true`, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result.\nIf the structure finder produces unexpected results for some text, use this query parameter to help you determine why the returned structure was chosen." }, { "role": "flag", - "name": "timeout", + "name": "format", + "type": "enum", + "required": false, + "summary": "The high level structure of the text.\nValid values are `ndjson`, `xml`, `delimited`, and `semi_structured_text`.\nBy default, the API chooses the format.\nIn this default scenario, all rows must have the same number of fields for a delimited format to be detected.\nIf the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.", + "enumValues": [ + "ndjson", + "xml", + "delimited", + "semi_structured_text" + ] + }, + { + "role": "flag", + "name": "grok-pattern", "type": "string", "required": false, - "summary": "The time to wait for the request to be completed." + "summary": "If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text.\nThe name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.\nIf that parameter is not specified, the name of the timestamp field in the Grok pattern must match \"timestamp\".\nIf `grok_pattern` is not specified, the structure finder creates a Grok pattern." }, { "role": "flag", - "name": "error-trace", + "name": "has-header-row", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If you have set `format` to `delimited`, you can use this parameter to indicate whether the column names are in the first row of the text.\nIf this parameter is not specified, the structure finder guesses based on the similarity of the first row of the text to other rows." }, { "role": "flag", - "name": "filter-path", + "name": "line-merge-size-limit", + "type": "number", + "required": false, + "summary": "The maximum number of characters in a message when lines are merged to form messages while analyzing semi-structured text.\nIf you have extremely long messages you may need to increase this, but be aware that this may lead to very long processing times if the way to group lines into messages is misdetected." + }, + { + "role": "flag", + "name": "lines-to-sample", + "type": "number", + "required": false, + "summary": "The number of lines to include in the structural analysis, starting from the beginning of the text.\nThe minimum is 2.\nIf the value of this parameter is greater than the number of lines in the text, the analysis proceeds (as long as there are at least two lines in the text) for all of the lines.\n\nNOTE: The number of lines and the variation of the lines affects the speed of the analysis.\nFor example, if you upload text where the first 1000 lines are all variations on the same message, the analysis will find more commonality than would be seen with a bigger sample.\nIf possible, however, it is more efficient to upload sample text with more variety in the first 1000 lines than to request analysis of 100000 lines to achieve some variety." + }, + { + "role": "flag", + "name": "quote", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "If you have set `format` to `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character.\nOnly a single character is supported.\nIf this parameter is not specified, the default value is a double quote (`\"`).\nIf your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample." }, { "role": "flag", - "name": "human", + "name": "should-trim-fields", "type": "boolean", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "If you have set `format` to `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them.\nIf this parameter is not specified and the delimiter is pipe (`|`), the default value is `true`.\nOtherwise, the default value is `false`." }, { "role": "flag", - "name": "pretty", + "name": "should-parse-recursively", "type": "boolean", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.\nThe nested objects are parsed to a maximum depth equal to the default value of the `index.mapping.depth.limit` setting.\nAnything beyond that depth is parsed as an `object` type field.\nFor formats other than `ndjson`, this parameter is ignored." + }, + { + "role": "flag", + "name": "timeout", + "type": "string", + "required": false, + "summary": "The maximum amount of time that the structure analysis can take.\nIf the analysis is still running when the timeout expires then it will be stopped." + }, + { + "role": "flag", + "name": "timestamp-field", + "type": "string", + "required": false, + "summary": "The name of the field that contains the primary timestamp of each record in the text.\nIn particular, if the text were ingested into an index, this is the field that would be used to populate the `@timestamp` field.\n\nIf the `format` is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`.\nTherefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.\n\nFor structured text, if you specify this parameter, the field must exist within the text.\n\nIf this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field.\nFor structured text, it is not compulsory to have a timestamp in the text." + }, + { + "role": "flag", + "name": "timestamp-format", + "type": "string", + "required": false, + "summary": "The Java time format of the timestamp field in the text.\n\nOnly a subset of Java time format letter groups are supported:\n\n* `a`\n* `d`\n* `dd`\n* `EEE`\n* `EEEE`\n* `H`\n* `HH`\n* `h`\n* `M`\n* `MM`\n* `MMM`\n* `MMMM`\n* `mm`\n* `ss`\n* `XX`\n* `XXX`\n* `yy`\n* `yyyy`\n* `zzz`\n\nAdditionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and separated from the `ss` by a `.`, `,` or `:`.\nSpacing and punctuation is also permitted with the exception of `?`, newline and carriage return, together with literal text enclosed in single quotes.\nFor example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.\n\nOne valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`.\nAnother is when the timestamp format is one that the structure finder does not consider by default.\n\nIf this parameter is not specified, the structure finder chooses the best format from a built-in set.\n\nIf the special value `null` is specified the structure finder will not look for a primary timestamp in the text.\nWhen the format is semi-structured text this will result in the structure finder treating the text as single-line messages." + }, + { + "role": "flag", + "name": "text-files", + "type": "array", + "required": true, + "repeatable": true }, { "role": "flag", @@ -61389,7 +61244,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Set upgrade_mode for transform indices.", + "summary": "Find the structure of a text file.", "intent": { "requiresAuth": true } @@ -61398,37 +61253,32 @@ "path": [ "stack", "es", - "transform" + "text-structure" ], - "name": "start-transform", + "name": "test-grok-pattern", "parameters": [ { "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "from", + "name": "ecs-compatibility", "type": "string", "required": false, - "summary": "Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms." + "summary": "The mode of compatibility with ECS compliant Grok patterns.\nUse this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern.\nValid values are `disabled` and `v1`." }, { "role": "flag", - "name": "initial-delay", + "name": "grok-pattern", "type": "string", - "required": false, - "summary": "A one-time, reduced sync delay that applies until the transform has processed its first document.\nIt then reverts to the `sync.time.delay` of the transform.\nOnly applicable for continuous transforms, and it can't be greater than `sync.time.delay`." + "required": true, + "summary": "The Grok pattern to run on the text." }, { "role": "flag", - "name": "transform-id", - "type": "string", + "name": "text", + "type": "array", "required": true, - "summary": "Identifier for the transform." + "summary": "The lines of text to run the Grok pattern on.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -61481,60 +61331,56 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Start a transform.", + "summary": "Test a Grok pattern.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch text-structure API commands" + }, + { + "segment": "transform", + "commands": [ { "path": [ "stack", "es", "transform" ], - "name": "stop-transform", + "name": "delete-transform", "parameters": [ { "role": "flag", - "name": "allow-no-match", + "name": "force", "type": "boolean", "required": false, - "summary": "Specifies what to do when the request: contains wildcard expressions and there are no transforms that match;\ncontains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there\nare only partial matches.\n\nIf it is true, the API returns a successful acknowledgement message when there are no matches. When there are\nonly partial matches, the API stops the appropriate transforms.\n\nIf it is false, the request returns a 404 status code when there are no matches or only partial matches." + "summary": "If this value is false, the transform must be stopped before it can be deleted. If true, the transform is\ndeleted regardless of its current state." }, { "role": "flag", - "name": "force", + "name": "delete-dest-index", "type": "boolean", "required": false, - "summary": "If it is true, the API forcefully stops the transforms." + "summary": "If this value is true, the destination index is deleted together with the transform. If false, the destination\nindex will not be deleted" }, { "role": "flag", "name": "timeout", "type": "string", "required": false, - "summary": "Period to wait for a response when `wait_for_completion` is `true`. If no response is received before the\ntimeout expires, the request returns a timeout exception. However, the request continues processing and\neventually moves the transform to a STOPPED state." - }, - { - "role": "flag", - "name": "wait-for-checkpoint", - "type": "boolean", - "required": false, - "summary": "If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false,\nthe transform stops as soon as possible." - }, - { - "role": "flag", - "name": "wait-for-completion", - "type": "boolean", - "required": false, - "summary": "If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns\nimmediately and the indexer is stopped asynchronously in the background." + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", "name": "transform-id", "type": "string", "required": true, - "summary": "Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression.\nTo stop all transforms, use `_all` or `*` as the identifier." + "summary": "Identifier for the transform." }, { "role": "flag", @@ -61585,10 +61431,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Stop transforms.", + "summary": "Delete a transform.", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -61598,91 +61454,110 @@ "es", "transform" ], - "name": "update-transform", + "name": "get-node-stats", "parameters": [ { "role": "flag", - "name": "defer-validation", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "When true, deferrable validations are not run. This behavior may be\ndesired if the source index does not exist until after the transform is\ncreated." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "timeout", + "name": "filter-path", "type": "string", "required": false, - "summary": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "dest", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "The destination for the transform." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "description", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Free text description of the transform." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "frequency", + "name": "input-file", "type": "string", "required": false, - "summary": "The interval between checks for changes in the source indices when the\ntransform is running continuously. Also determines the retry interval in\nthe event of transient failures while the transform is searching or\nindexing. The minimum value is 1s and the maximum is 1h." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "meta", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Defines optional transform metadata." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "source", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "The source of the data for the transform." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get node stats.", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "transform" + ], + "name": "get-transform", + "parameters": [ { "role": "flag", - "name": "settings", - "type": "string", + "name": "allow-no-match", + "type": "boolean", "required": false, - "summary": "Defines optional transform settings." + "summary": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no transforms that match.\n2. Contains the _all string or no identifiers and there are no matches.\n3. Contains wildcard expressions and there are only partial matches.\n\nIf this parameter is false, the request returns a 404 status code when\nthere are no matches or only partial matches." }, { "role": "flag", - "name": "sync", - "type": "string", + "name": "from", + "type": "number", "required": false, - "summary": "Defines the properties transforms require to run continuously." + "summary": "Skips the specified number of transforms." }, { "role": "flag", - "name": "retention-policy", - "type": "string", + "name": "size", + "type": "number", "required": false, - "summary": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index." + "summary": "Specifies the maximum number of transforms to obtain." }, { "role": "flag", - "name": "force-rekeying", + "name": "exclude-generated", "type": "boolean", "required": false, - "summary": "When true, force reminting of the transform's internal cloud API key from the\ncaller's cloud credential without requiring other configuration changes.\nRequires a cloud-authenticated caller and an environment that supports\ncross-project calls. Rejected with 400 otherwise." + "summary": "Excludes fields that were automatically added when creating the\ntransform. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster." }, { "role": "flag", "name": "transform-id", "type": "string", - "required": true, - "summary": "Identifier for the transform." + "required": false, + "summary": "Identifier for the transform. It can be a transform identifier or a\nwildcard expression. You can get information for all transforms by using\n`_all`, by specifying `*` as the ``, or by omitting the\n``.", + "repeatable": true }, { "role": "flag", @@ -61735,8 +61610,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a transform.", + "summary": "Get transforms.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -61746,99 +61624,49 @@ "es", "transform" ], - "name": "upgrade-transforms", + "name": "get-transform-stats", "parameters": [ { "role": "flag", - "name": "dry-run", + "name": "allow-no-match", "type": "boolean", "required": false, - "summary": "When true, the request checks for updates but does not run them." - }, - { - "role": "flag", - "name": "timeout", - "type": "string", - "required": false, - "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and\nreturns an error." + "summary": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no transforms that match.\n2. Contains the _all string or no identifiers and there are no matches.\n3. Contains wildcard expressions and there are only partial matches.\n\nIf this parameter is false, the request returns a 404 status code when\nthere are no matches or only partial matches." }, { "role": "flag", - "name": "error-trace", + "name": "basic", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "If true, the response includes `id`, `state`, `node`, `stats`, `health`,\nand basic `checkpointing` information (the last and next checkpoint\nnumbers, and the next checkpoint's `position` and `progress`). Skips\nstatistics that require heavy computations to calculate:\n`operations_behind`, `changes_last_detected_at`, `last_search_time`, and\nthe checkpoint timestamps." }, { "role": "flag", - "name": "filter-path", - "type": "string", - "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true - }, - { - "role": "flag", - "name": "human", - "type": "boolean", + "name": "from", + "type": "number", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "Skips the specified number of transforms." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "size", + "type": "number", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "Specifies the maximum number of transforms to obtain." }, { "role": "flag", - "name": "input-file", + "name": "timeout", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Controls the time to wait for the stats" }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Upgrade all transforms.", - "intent": { - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Elasticsearch transform API commands" - }, - { - "segment": "watcher", - "commands": [ - { - "path": [ - "stack", - "es", - "watcher" - ], - "name": "ack-watch", - "parameters": [ - { - "role": "flag", - "name": "watch-id", + "name": "transform-id", "type": "string", "required": true, - "summary": "The watch identifier." - }, - { - "role": "flag", - "name": "action-id", - "type": "string", - "required": false, - "summary": "A comma-separated list of the action identifiers to acknowledge.\nIf you omit this parameter, all of the actions of the watch are acknowledged.", + "summary": "Identifier for the transform. It can be a transform identifier or a\nwildcard expression. You can get information for all transforms by using\n`_all`, by specifying `*` as the ``, or by omitting the\n``.", "repeatable": true }, { @@ -61892,7 +61720,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Acknowledge a watch.", + "summary": "Get transform stats.", "intent": { "destructive": false, "idempotent": true, @@ -61904,90 +61732,86 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "activate-watch", + "name": "preview-transform", "parameters": [ { "role": "flag", - "name": "watch-id", + "name": "timeout", "type": "string", - "required": true, - "summary": "The watch identifier." + "required": false, + "summary": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "error-trace", - "type": "boolean", + "name": "dest", + "type": "string", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "The destination for the transform." }, { "role": "flag", - "name": "filter-path", + "name": "description", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "Free text description of the transform." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "frequency", + "type": "string", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "The interval between checks for changes in the source indices when the\ntransform is running continuously. Also determines the retry interval in\nthe event of transient failures while the transform is searching or\nindexing. The minimum value is 1s and the maximum is 1h." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "pivot", + "type": "string", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "The pivot method transforms the data by aggregating and grouping it.\nThese objects define the group by fields and the aggregation to reduce\nthe data." }, { "role": "flag", - "name": "input-file", + "name": "source", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The source of the data for the transform." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "settings", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Defines optional transform settings." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "sync", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Activate a watch.", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "watcher" - ], - "name": "deactivate-watch", - "parameters": [ + "summary": "Defines the properties transforms require to run continuously." + }, { "role": "flag", - "name": "watch-id", + "name": "retention-policy", "type": "string", - "required": true, - "summary": "The watch identifier." + "required": false, + "summary": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index." + }, + { + "role": "flag", + "name": "latest", + "type": "string", + "required": false, + "summary": "The latest method transforms the data by finding the latest document for\neach unique key." + }, + { + "role": "flag", + "name": "transform-id", + "type": "string", + "required": false, + "summary": "Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform\nconfiguration details in the request body." }, { "role": "flag", @@ -62040,7 +61864,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Deactivate a watch.", + "summary": "Preview a transform.", "intent": { "destructive": false, "idempotent": true, @@ -62052,152 +61876,100 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "delete-watch", + "name": "put-transform", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The watch identifier." - }, - { - "role": "flag", - "name": "error-trace", + "name": "defer-validation", "type": "boolean", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "When the transform is created, a series of validations occur to ensure its success. For example, there is a\ncheck for the existence of the source indices and a check that the destination index is not part of the source\nindex pattern. You can use this parameter to skip the checks, for example when the source index does not exist\nuntil after the transform is created. The validations are always run when you start the transform, however, with\nthe exception of privilege checks." }, { "role": "flag", - "name": "filter-path", + "name": "timeout", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true - }, - { - "role": "flag", - "name": "human", - "type": "boolean", - "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." - }, - { - "role": "flag", - "name": "pretty", - "type": "boolean", - "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "input-file", + "name": "dest", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "required": true, + "summary": "The destination for the transform." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "description", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "Free text description of the transform." }, { "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete a watch.", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "watcher" - ], - "name": "execute-watch", - "parameters": [ - { - "role": "flag", - "name": "debug", - "type": "boolean", + "name": "frequency", + "type": "string", "required": false, - "summary": "Defines whether the watch runs in debug mode." + "summary": "The interval between checks for changes in the source indices when the transform is running continuously. Also\ndetermines the retry interval in the event of transient failures while the transform is searching or indexing.\nThe minimum value is `1s` and the maximum is `1h`." }, { "role": "flag", - "name": "action-modes", + "name": "latest", "type": "string", "required": false, - "summary": "Determines how to handle the watch actions as part of the watch execution." + "summary": "The latest method transforms the data by finding the latest document for each unique key." }, { "role": "flag", - "name": "alternative-input", + "name": "meta", "type": "string", "required": false, - "summary": "When present, the watch uses this object as a payload instead of executing its own input." + "summary": "Defines optional transform metadata." }, { "role": "flag", - "name": "ignore-condition", - "type": "boolean", + "name": "pivot", + "type": "string", "required": false, - "summary": "When set to `true`, the watch execution uses the always condition. This can also be specified as an HTTP parameter." + "summary": "The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields\nand the aggregation to reduce the data." }, { "role": "flag", - "name": "record-execution", - "type": "boolean", + "name": "retention-policy", + "type": "string", "required": false, - "summary": "When set to `true`, the watch record representing the watch execution result is persisted to the `.watcher-history` index for the current time.\nIn addition, the status of the watch is updated, possibly throttling subsequent runs.\nThis can also be specified as an HTTP parameter." + "summary": "Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the\ndestination index." }, { "role": "flag", - "name": "simulated-actions", + "name": "settings", "type": "string", - "required": false + "required": false, + "summary": "Defines optional transform settings." }, { "role": "flag", - "name": "trigger-data", + "name": "source", "type": "string", - "required": false, - "summary": "This structure is parsed as the data of the trigger event that will be used during the watch execution." + "required": true, + "summary": "The source of the data for the transform." }, { "role": "flag", - "name": "watch", + "name": "sync", "type": "string", "required": false, - "summary": "When present, this watch is used instead of the one specified in the request.\nThis watch is not persisted to the index and `record_execution` cannot be set." + "summary": "Defines the properties transforms require to run continuously." }, { "role": "flag", - "name": "id", + "name": "transform-id", "type": "string", - "required": false, - "summary": "The watch identifier." + "required": true, + "summary": "Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9),\nhyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters." }, { "role": "flag", @@ -62250,7 +62022,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Run a watch.", + "summary": "Create a transform.", "intent": { "destructive": false, "idempotent": true, @@ -62262,16 +62034,30 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "get-settings", + "name": "reset-transform", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "force", + "type": "boolean", + "required": false, + "summary": "If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform\nmust be stopped before it can be reset." + }, + { + "role": "flag", + "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." + }, + { + "role": "flag", + "name": "transform-id", + "type": "string", + "required": true, + "summary": "Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9),\nhyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters." }, { "role": "flag", @@ -62324,11 +62110,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get Watcher index settings.", + "summary": "Reset a transform.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -62336,16 +62119,30 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "get-watch", + "name": "schedule-now-transform", "parameters": [ { "role": "flag", - "name": "id", + "name": "timeout", + "type": "string", + "required": false, + "summary": "Controls the time to wait for the scheduling to take place" + }, + { + "role": "flag", + "name": "defer", + "type": "boolean", + "required": false, + "summary": "When true, defers the scheduling by the transform's configured sync delay\ninstead of triggering immediately. The transform will process new data after\nthe delay elapses rather than right away." + }, + { + "role": "flag", + "name": "transform-id", "type": "string", "required": true, - "summary": "The watch identifier." + "summary": "Identifier for the transform." }, { "role": "flag", @@ -62398,11 +62195,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a watch.", + "summary": "Schedule a transform to start now.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -62410,100 +62204,115 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "put-watch", + "name": "set-upgrade-mode", "parameters": [ { "role": "flag", - "name": "active", + "name": "enabled", "type": "boolean", "required": false, - "summary": "The initial state of the watch.\nThe default value is `true`, which means the watch is active by default." + "summary": "When `true`, it enables `upgrade_mode` which temporarily halts all\ntransform tasks and prohibits new transform tasks from\nstarting." }, { "role": "flag", - "name": "if-primary-term", - "type": "number", + "name": "timeout", + "type": "string", "required": false, - "summary": "Only update the watch if the last operation that has changed the watch has the specified primary term" + "summary": "The time to wait for the request to be completed." }, { "role": "flag", - "name": "if-seq-no", - "type": "number", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Only update the watch if the last operation that has changed the watch has the specified sequence number" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "version", - "type": "number", + "name": "filter-path", + "type": "string", "required": false, - "summary": "Explicit version number for concurrency control" + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "actions", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "The list of actions that will be run if the condition matches." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "condition", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "The condition that defines if the actions should be run." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", - "name": "input", + "name": "input-file", "type": "string", "required": false, - "summary": "The input that defines the input that loads the data for the watch." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "metadata", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Metadata JSON that will be copied into the history entries." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "throttle-period", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "The minimum time between actions being run.\nThe default is 5 seconds.\nThis default can be changed in the config file with the setting `xpack.watcher.throttle.period.default_period`.\nIf both this value and the `throttle_period_in_millis` parameter are specified, Watcher uses the last parameter included in the request." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Set upgrade_mode for transform indices.", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "es", + "transform" + ], + "name": "start-transform", + "parameters": [ { "role": "flag", - "name": "throttle-period-in-millis", + "name": "timeout", "type": "string", "required": false, - "summary": "Minimum time in milliseconds between actions being run. Defaults to 5000. If both this value and the throttle_period parameter are specified, Watcher uses the last parameter included in the request." + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "transform", + "name": "from", "type": "string", "required": false, - "summary": "The transform that processes the watch payload to prepare it for the watch actions." + "summary": "Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms." }, { "role": "flag", - "name": "trigger", + "name": "initial-delay", "type": "string", "required": false, - "summary": "The trigger that defines when the watch should run." + "summary": "A one-time, reduced sync delay that applies until the transform has processed its first document.\nIt then reverts to the `sync.time.delay` of the transform.\nOnly applicable for continuous transforms, and it can't be greater than `sync.time.delay`." }, { "role": "flag", - "name": "id", + "name": "transform-id", "type": "string", "required": true, - "summary": "The identifier for the watch." + "summary": "Identifier for the transform." }, { "role": "flag", @@ -62556,11 +62365,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a watch.", + "summary": "Start a transform.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -62568,48 +62374,51 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "query-watches", + "name": "stop-transform", "parameters": [ { "role": "flag", - "name": "from", - "type": "number", + "name": "allow-no-match", + "type": "boolean", "required": false, - "summary": "The offset from the first result to fetch.\nIt must be non-negative." + "summary": "Specifies what to do when the request: contains wildcard expressions and there are no transforms that match;\ncontains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there\nare only partial matches.\n\nIf it is true, the API returns a successful acknowledgement message when there are no matches. When there are\nonly partial matches, the API stops the appropriate transforms.\n\nIf it is false, the request returns a 404 status code when there are no matches or only partial matches." }, { "role": "flag", - "name": "size", - "type": "number", + "name": "force", + "type": "boolean", "required": false, - "summary": "The number of hits to return.\nIt must be non-negative." + "summary": "If it is true, the API forcefully stops the transforms." }, { "role": "flag", - "name": "query", + "name": "timeout", "type": "string", "required": false, - "summary": "A query that filters the watches to be returned." + "summary": "Period to wait for a response when `wait_for_completion` is `true`. If no response is received before the\ntimeout expires, the request returns a timeout exception. However, the request continues processing and\neventually moves the transform to a STOPPED state." }, { "role": "flag", - "name": "sort", - "type": "string", + "name": "wait-for-checkpoint", + "type": "boolean", "required": false, - "summary": "One or more fields used to sort the search results.", - "repeatable": true, - "separator": "," + "summary": "If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false,\nthe transform stops as soon as possible." }, { "role": "flag", - "name": "search-after", - "type": "array", + "name": "wait-for-completion", + "type": "boolean", "required": false, - "summary": "Retrieve the next page of hits using a set of sort values from the previous page.", - "repeatable": true, - "elementType": "number" + "summary": "If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns\nimmediately and the indexer is stopped asynchronously in the background." + }, + { + "role": "flag", + "name": "transform-id", + "type": "string", + "required": true, + "summary": "Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression.\nTo stop all transforms, use `_all` or `*` as the identifier." }, { "role": "flag", @@ -62662,11 +62471,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Query watches.", + "summary": "Stop transforms.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -62674,101 +62480,93 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "start", + "name": "update-transform", "parameters": [ { "role": "flag", - "name": "master-timeout", - "type": "string", + "name": "defer-validation", + "type": "boolean", "required": false, - "summary": "Period to wait for a connection to the master node." + "summary": "When true, deferrable validations are not run. This behavior may be\ndesired if the source index does not exist until after the transform is\ncreated." }, { "role": "flag", - "name": "error-trace", - "type": "boolean", + "name": "timeout", + "type": "string", "required": false, - "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + "summary": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "filter-path", + "name": "dest", "type": "string", "required": false, - "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", - "repeatable": true + "summary": "The destination for the transform." }, { "role": "flag", - "name": "human", - "type": "boolean", + "name": "description", + "type": "string", "required": false, - "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + "summary": "Free text description of the transform." }, { "role": "flag", - "name": "pretty", - "type": "boolean", + "name": "frequency", + "type": "string", "required": false, - "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." + "summary": "The interval between checks for changes in the source indices when the\ntransform is running continuously. Also determines the retry interval in\nthe event of transient failures while the transform is searching or\nindexing. The minimum value is 1s and the maximum is 1h." }, { "role": "flag", - "name": "input-file", + "name": "meta", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Defines optional transform metadata." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "source", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The source of the data for the transform." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "settings", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Start the watch service.", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "es", - "watcher" - ], - "name": "stats", - "parameters": [ + "summary": "Defines optional transform settings." + }, { "role": "flag", - "name": "emit-stacktraces", - "type": "boolean", + "name": "sync", + "type": "string", "required": false, - "summary": "Defines whether stack traces are generated for each watch that is running." + "summary": "Defines the properties transforms require to run continuously." }, { "role": "flag", - "name": "metric", - "type": "enum", + "name": "retention-policy", + "type": "string", "required": false, - "summary": "Defines which additional metrics are included in the response.", - "repeatable": true, - "enumValues": [ - "_all", - "queued_watches", - "current_watches", - "pending_watches" - ] + "summary": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index." + }, + { + "role": "flag", + "name": "force-rekeying", + "type": "boolean", + "required": false, + "summary": "When true, force reminting of the transform's internal cloud API key from the\ncaller's cloud credential without requiring other configuration changes.\nRequires a cloud-authenticated caller and an environment that supports\ncross-project calls. Rejected with 400 otherwise." + }, + { + "role": "flag", + "name": "transform-id", + "type": "string", + "required": true, + "summary": "Identifier for the transform." }, { "role": "flag", @@ -62821,11 +62619,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get Watcher statistics.", + "summary": "Update a transform.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -62833,16 +62628,23 @@ "path": [ "stack", "es", - "watcher" + "transform" ], - "name": "stop", + "name": "upgrade-transforms", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "When true, the request checks for updates but does not run them." + }, + { + "role": "flag", + "name": "timeout", "type": "string", "required": false, - "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "summary": "Period to wait for a response. If no response is received before the timeout expires, the request fails and\nreturns an error." }, { "role": "flag", @@ -62880,13 +62682,6 @@ "required": false, "summary": "path to a JSON file to use as command input" }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - }, { "role": "flag", "name": "no-validate", @@ -62895,44 +62690,40 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Stop the watch service.", + "summary": "Upgrade all transforms.", "intent": { "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch transform API commands" + }, + { + "segment": "watcher", + "commands": [ { "path": [ "stack", "es", "watcher" ], - "name": "update-settings", + "name": "ack-watch", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "watch-id", "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." + "required": true, + "summary": "The watch identifier." }, { "role": "flag", - "name": "timeout", + "name": "action-id", "type": "string", "required": false, - "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." - }, - { - "role": "flag", - "name": "index.auto-expand-replicas", - "type": "string", - "required": false - }, - { - "role": "flag", - "name": "index.number-of-replicas", - "type": "number", - "required": false + "summary": "A comma-separated list of the action identifiers to acknowledge.\nIf you omit this parameter, all of the actions of the watch are acknowledged.", + "repeatable": true }, { "role": "flag", @@ -62985,50 +62776,28 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update Watcher index settings.", + "summary": "Acknowledge a watch.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch watcher API commands" - }, - { - "segment": "xpack", - "commands": [ + }, { "path": [ "stack", "es", - "xpack" + "watcher" ], - "name": "info", + "name": "activate-watch", "parameters": [ { "role": "flag", - "name": "categories", - "type": "array", - "required": false, - "summary": "A comma-separated list of the information categories to include in the response.\nFor example, `build,license,features`.", - "repeatable": true - }, - { - "role": "flag", - "name": "accept-enterprise", - "type": "boolean", - "required": false, - "summary": "If used, this otherwise ignored parameter must be set to true" - }, - { - "role": "flag", - "name": "human", - "type": "boolean", - "required": false, - "summary": "Defines whether additional human-readable information is included in the response.\nIn particular, it adds descriptions and a tag line." + "name": "watch-id", + "type": "string", + "required": true, + "summary": "The watch identifier." }, { "role": "flag", @@ -63045,6 +62814,13 @@ "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", "repeatable": true }, + { + "role": "flag", + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, { "role": "flag", "name": "pretty", @@ -63074,7 +62850,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get information.", + "summary": "Activate a watch.", "intent": { "destructive": false, "idempotent": true, @@ -63086,16 +62862,16 @@ "path": [ "stack", "es", - "xpack" + "watcher" ], - "name": "usage", + "name": "deactivate-watch", "parameters": [ { "role": "flag", - "name": "master-timeout", + "name": "watch-id", "type": "string", - "required": false, - "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." + "required": true, + "summary": "The watch identifier." }, { "role": "flag", @@ -63148,72 +62924,57 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get usage information.", + "summary": "Deactivate a watch.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Elasticsearch xpack API commands" - }, - { - "segment": "helpers", - "commands": [ + }, { "path": [ "stack", "es", - "helpers" + "watcher" ], - "name": "scroll-search", + "name": "delete-watch", "parameters": [ { "role": "flag", - "name": "index", + "name": "id", "type": "string", "required": true, - "summary": "Target index" - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "Query DSL clause as JSON (wrapped under \"query\"), e.g. '{\"match_all\":{}}'" + "summary": "The watch identifier." }, { "role": "flag", - "name": "query-file", - "type": "string", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Path to a file containing the full search body JSON (may include query, sort, aggs, ...)" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "scroll", + "name": "filter-path", "type": "string", "required": false, - "summary": "Scroll keep-alive duration", - "defaultValue": "1m" + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "size", - "type": "number", + "name": "human", + "type": "boolean", "required": false, - "summary": "Documents per scroll batch", - "defaultValue": "1000" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "max-docs", - "type": "number", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Maximum total documents to fetch (default: unlimited)" + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63235,11 +62996,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Scroll through all search results, streaming documents as NDJSON to stdout, or returning a single JSON object when --json is set.", + "summary": "Delete a watch.", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -63249,124 +63017,100 @@ "path": [ "stack", "es", - "helpers" + "watcher" ], - "name": "bulk-ingest", + "name": "execute-watch", "parameters": [ { "role": "flag", - "name": "index", - "type": "string", - "required": true, - "summary": "Target index" - }, - { - "role": "flag", - "name": "data-file", - "type": "string", + "name": "debug", + "type": "boolean", "required": false, - "summary": "Path to data file (NDJSON, JSON array, or CSV)" + "summary": "Defines whether the watch runs in debug mode." }, { "role": "flag", - "name": "data-dir", + "name": "action-modes", "type": "string", "required": false, - "summary": "Path to directory of data files to ingest" + "summary": "Determines how to handle the watch actions as part of the watch execution." }, { "role": "flag", - "name": "glob", + "name": "alternative-input", "type": "string", "required": false, - "summary": "Glob pattern for --data-dir file matching (default: **/*.json, or **/*.csv when --source-format csv)" + "summary": "When present, the watch uses this object as a payload instead of executing its own input." }, { "role": "flag", - "name": "no-recursive", + "name": "ignore-condition", "type": "boolean", "required": false, - "summary": "Do not recurse into subdirectories when using --data-dir" + "summary": "When set to `true`, the watch execution uses the always condition. This can also be specified as an HTTP parameter." }, { "role": "flag", - "name": "source-format", - "type": "enum", + "name": "record-execution", + "type": "boolean", "required": false, - "summary": "Input file format: csv, or json-based (ndjson vs json array is auto-detected from content; \"ndjson\" and \"json\" behave identically here)", - "defaultValue": "ndjson", - "enumValues": [ - "ndjson", - "json", - "csv" - ] + "summary": "When set to `true`, the watch record representing the watch execution result is persisted to the `.watcher-history` index for the current time.\nIn addition, the status of the watch is updated, possibly throttling subsequent runs.\nThis can also be specified as an HTTP parameter." }, { "role": "flag", - "name": "csv-delimiter", + "name": "simulated-actions", "type": "string", - "required": false, - "summary": "CSV column delimiter (default: \",\")" + "required": false }, { "role": "flag", - "name": "csv-columns", + "name": "trigger-data", "type": "string", "required": false, - "summary": "Comma-separated list of column names (overrides CSV header row)" - }, - { - "role": "flag", - "name": "skip-header", - "type": "boolean", - "required": false, - "summary": "Skip the first row of a CSV file" + "summary": "This structure is parsed as the data of the trigger event that will be used during the watch execution." }, { "role": "flag", - "name": "flush-bytes", - "type": "number", + "name": "watch", + "type": "string", "required": false, - "summary": "Batch size threshold in bytes", - "defaultValue": "5242880" + "summary": "When present, this watch is used instead of the one specified in the request.\nThis watch is not persisted to the index and `record_execution` cannot be set." }, { "role": "flag", - "name": "concurrency", - "type": "number", + "name": "id", + "type": "string", "required": false, - "summary": "Number of parallel bulk requests", - "defaultValue": "5" + "summary": "The watch identifier." }, { "role": "flag", - "name": "retries", - "type": "number", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Max retries per failed batch", - "defaultValue": "3" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "retry-delay", - "type": "number", + "name": "filter-path", + "type": "string", "required": false, - "summary": "Initial retry delay in ms (doubles each attempt)", - "defaultValue": "1000" + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "pipeline", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "Ingest pipeline name" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "routing", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Custom routing value" + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63390,10 +63134,10 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk-ingest documents from file, directory, or stdin with automatic batching, concurrency, and retries.", + "summary": "Run a watch.", "intent": { "destructive": false, - "idempotent": false, + "idempotent": true, "scope": "global", "requiresAuth": true } @@ -63402,39 +63146,45 @@ "path": [ "stack", "es", - "helpers" + "watcher" ], - "name": "msearch", + "name": "get-settings", "parameters": [ { "role": "flag", - "name": "index", + "name": "master-timeout", "type": "string", "required": false, - "summary": "Default index for searches" + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "query-file", + "name": "error-trace", + "type": "boolean", + "required": false, + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, + { + "role": "flag", + "name": "filter-path", "type": "string", "required": false, - "summary": "Path to JSON file with search array" + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "batch-size", - "type": "number", + "name": "human", + "type": "boolean", "required": false, - "summary": "Searches per _msearch request", - "defaultValue": "5" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "concurrency", - "type": "number", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Parallel _msearch requests", - "defaultValue": "5" + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63458,7 +63208,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Batch multiple search requests via _msearch with configurable batch size and concurrency.", + "summary": "Get Watcher index settings.", "intent": { "destructive": false, "idempotent": true, @@ -63470,68 +63220,45 @@ "path": [ "stack", "es", - "helpers" + "watcher" ], - "name": "watch", + "name": "get-watch", "parameters": [ { "role": "flag", - "name": "index", + "name": "id", "type": "string", "required": true, - "summary": "Index or data stream to watch" - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "Query DSL clause as JSON (wrapped under \"query\"), e.g. '{\"match\":{\"log.level\":\"error\"}}'" - }, - { - "role": "flag", - "name": "query-file", - "type": "string", - "required": false, - "summary": "Path to a file containing the full search body JSON" - }, - { - "role": "flag", - "name": "sort-field", - "type": "string", - "required": false, - "summary": "Field to use for ordering and detecting new documents", - "defaultValue": "@timestamp" + "summary": "The watch identifier." }, { "role": "flag", - "name": "poll-interval", - "type": "number", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Polling interval in milliseconds", - "defaultValue": "5000" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "from", + "name": "filter-path", "type": "string", "required": false, - "summary": "ISO 8601 timestamp to start from (e.g. \"2024-01-01T00:00:00Z\"). Defaults to the most recent document." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "size", - "type": "number", + "name": "human", + "type": "boolean", "required": false, - "summary": "Maximum documents to fetch per poll", - "defaultValue": "100" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "format", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Output template with {field} placeholders, e.g. \"{@timestamp} {message}\". Omit for NDJSON (_source as JSON)." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63555,135 +63282,141 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Watch an index for new documents and stream them to stdout as NDJSON.", + "summary": "Get a watch.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "High-level helper commands for common Elasticsearch workflows" - } - ], - "summary": "Interact with the Elasticsearch API" - }, - { - "segment": "kb", - "commands": [], - "namespaces": [ - { - "segment": "agent-builder", - "commands": [ + }, { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "post-agent-builder-a2a-agentid", + "name": "put-watch", "parameters": [ { "role": "flag", - "name": "agent-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the agent to send the A2A task to." + "name": "active", + "type": "boolean", + "required": false, + "summary": "The initial state of the watch.\nThe default value is `true`, which means the watch is active by default." }, { "role": "flag", - "name": "body", - "type": "string", - "required": false + "name": "if-primary-term", + "type": "number", + "required": false, + "summary": "Only update the watch if the last operation that has changed the watch has the specified primary term" }, { "role": "flag", - "name": "input-file", + "name": "if-seq-no", + "type": "number", + "required": false, + "summary": "Only update the watch if the last operation that has changed the watch has the specified sequence number" + }, + { + "role": "flag", + "name": "version", + "type": "number", + "required": false, + "summary": "Explicit version number for concurrency control" + }, + { + "role": "flag", + "name": "actions", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The list of actions that will be run if the condition matches." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "condition", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The condition that defines if the actions should be run." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "input", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Send A2A task", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-a2a-agentid-json", - "parameters": [ + "summary": "The input that defines the input that loads the data for the watch." + }, { "role": "flag", - "name": "agent-id", + "name": "metadata", "type": "string", - "required": true, - "summary": "The unique identifier of the agent to get A2A metadata for." + "required": false, + "summary": "Metadata JSON that will be copied into the history entries." }, { "role": "flag", - "name": "input-file", + "name": "throttle-period", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The minimum time between actions being run.\nThe default is 5 seconds.\nThis default can be changed in the config file with the setting `xpack.watcher.throttle.period.default_period`.\nIf both this value and the `throttle_period_in_millis` parameter are specified, Watcher uses the last parameter included in the request." }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "throttle-period-in-millis", + "type": "string", + "required": false, + "summary": "Minimum time in milliseconds between actions being run. Defaults to 5000. If both this value and the throttle_period parameter are specified, Watcher uses the last parameter included in the request." + }, + { + "role": "flag", + "name": "transform", + "type": "string", + "required": false, + "summary": "The transform that processes the watch payload to prepare it for the watch actions." + }, + { + "role": "flag", + "name": "trigger", + "type": "string", + "required": false, + "summary": "The trigger that defines when the watch should run." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The identifier for the watch." + }, + { + "role": "flag", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "no-validate", + "name": "filter-path", + "type": "string", + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true + }, + { + "role": "flag", + "name": "human", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get A2A agent card", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-agents", - "parameters": [ + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, { "role": "flag", - "name": "include-hidden", + "name": "pretty", "type": "boolean", "required": false, - "summary": "When true, hidden agents (such as built-in system agents) are included in the response." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63707,7 +63440,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List agents", + "summary": "Create or update a watch.", "intent": { "destructive": false, "idempotent": true, @@ -63718,67 +63451,78 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "post-agent-builder-agents", + "name": "query-watches", "parameters": [ { "role": "flag", - "name": "access-control", - "type": "string", - "required": false + "name": "from", + "type": "number", + "required": false, + "summary": "The offset from the first result to fetch.\nIt must be non-negative." }, { "role": "flag", - "name": "avatar-color", - "type": "string", + "name": "size", + "type": "number", "required": false, - "summary": "Optional hex color code for the agent avatar." + "summary": "The number of hits to return.\nIt must be non-negative." }, { "role": "flag", - "name": "avatar-symbol", + "name": "query", "type": "string", "required": false, - "summary": "Optional symbol/initials for the agent avatar." + "summary": "A query that filters the watches to be returned." }, { "role": "flag", - "name": "configuration", + "name": "sort", "type": "string", - "required": true, - "summary": "Configuration settings for the agent." + "required": false, + "summary": "One or more fields used to sort the search results.", + "repeatable": true, + "separator": "," }, { "role": "flag", - "name": "description", - "type": "string", - "required": true, - "summary": "Description of what the agent does." + "name": "search-after", + "type": "array", + "required": false, + "summary": "Retrieve the next page of hits using a set of sort values from the previous page.", + "repeatable": true, + "elementType": "number" }, { "role": "flag", - "name": "id", + "name": "error-trace", + "type": "boolean", + "required": false, + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, + { + "role": "flag", + "name": "filter-path", "type": "string", - "required": true, - "summary": "Unique identifier for the agent." + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "labels", - "type": "array", + "name": "human", + "type": "boolean", "required": false, - "summary": "Optional labels for categorizing and organizing agents.", - "repeatable": true, - "elementType": "string" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "Display name for the agent." + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63802,86 +63546,57 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create an agent", + "summary": "Query watches.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "post-agent-builder-agents-agent-id-consumption", + "name": "start", "parameters": [ { "role": "flag", - "name": "agent-id", + "name": "master-timeout", "type": "string", - "required": true, - "summary": "The unique identifier of the agent." + "required": false, + "summary": "Period to wait for a connection to the master node." }, { "role": "flag", - "name": "has-warnings", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "Filter to conversations with or without high-token warnings." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "search", + "name": "filter-path", "type": "string", "required": false, - "summary": "Free-text search filter on conversation title." - }, - { - "role": "flag", - "name": "search-after", - "type": "array", - "required": false, - "summary": "Cursor for pagination. Pass the search_after value from the previous response.", + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", "repeatable": true }, { "role": "flag", - "name": "size", - "type": "number", - "required": false, - "summary": "Number of results per page." - }, - { - "role": "flag", - "name": "sort-field", - "type": "enum", - "required": false, - "summary": "Field to sort results by.", - "enumValues": [ - "updated_at", - "total_tokens", - "round_count" - ] - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", + "name": "human", + "type": "boolean", "required": false, - "summary": "Sort direction.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "usernames", - "type": "array", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Filter results to conversations by these usernames.", - "repeatable": true, - "elementType": "string" + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63905,7 +63620,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get agent consumption data", + "summary": "Start the watch service.", "intent": { "requiresAuth": true } @@ -63913,69 +63628,60 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "delete-agent-builder-agents-id", + "name": "stats", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The unique identifier of the agent to delete." + "name": "emit-stacktraces", + "type": "boolean", + "required": false, + "summary": "Defines whether stack traces are generated for each watch that is running." }, { "role": "flag", - "name": "input-file", - "type": "string", + "name": "metric", + "type": "enum", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Defines which additional metrics are included in the response.", + "repeatable": true, + "enumValues": [ + "_all", + "queued_watches", + "current_watches", + "pending_watches" + ] }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "filter-path", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "yes", + "name": "human", "type": "boolean", "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete an agent", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-agents-id", - "parameters": [ + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The unique identifier of the agent to retrieve." + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -63999,7 +63705,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get an agent by ID", + "summary": "Get Watcher statistics.", "intent": { "destructive": false, "idempotent": true, @@ -64010,67 +63716,46 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "put-agent-builder-agents-id", + "name": "stop", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The unique identifier of the agent to update." - }, - { - "role": "flag", - "name": "access-control", - "type": "string", - "required": false - }, - { - "role": "flag", - "name": "avatar-color", - "type": "string", - "required": false, - "summary": "Updated hex color code for the agent avatar." - }, - { - "role": "flag", - "name": "avatar-symbol", + "name": "master-timeout", "type": "string", "required": false, - "summary": "Updated symbol/initials for the agent avatar." + "summary": "The period to wait for the master node.\nIf the master node is not available before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "configuration", - "type": "string", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Updated configuration settings for the agent." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "description", + "name": "filter-path", "type": "string", "required": false, - "summary": "Updated description of what the agent does." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "labels", - "type": "array", + "name": "human", + "type": "boolean", "required": false, - "summary": "Updated labels for categorizing and organizing agents.", - "repeatable": true, - "elementType": "string" + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "name", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Updated display name for the agent." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -64094,81 +63779,73 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update an agent", + "summary": "Stop the watch service.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, { "path": [ "stack", - "kb", - "agent-builder" + "es", + "watcher" ], - "name": "get-agent-builder-agents-id-access-control", + "name": "update-settings", "parameters": [ { "role": "flag", - "name": "id", + "name": "master-timeout", "type": "string", - "required": true, - "summary": "The unique identifier of the agent whose access control to retrieve." + "required": false, + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { "role": "flag", - "name": "input-file", + "name": "timeout", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "role": "flag", + "name": "index.auto-expand-replicas", + "type": "string", + "required": false }, { "role": "flag", - "name": "no-validate", + "name": "index.number-of-replicas", + "type": "number", + "required": false + }, + { + "role": "flag", + "name": "error-trace", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get an agent's access control list", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "put-agent-builder-agents-id-access-control", - "parameters": [ + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." + }, { "role": "flag", - "name": "id", + "name": "filter-path", "type": "string", - "required": true, - "summary": "The unique identifier of the agent whose access control to update." + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "entries", - "type": "array", - "required": true, - "summary": "Access-control entries to apply to the agent. Each entry has a `type` (for example `user`), a `role`, and either an `id` (the principal user profile uid, preferred) or a deprecated `name` (username).", - "repeatable": true + "name": "human", + "type": "boolean", + "required": false, + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." + }, + { + "role": "flag", + "name": "pretty", + "type": "boolean", + "required": false, + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -64192,60 +63869,72 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update an agent's access control list", + "summary": "Update Watcher index settings.", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch watcher API commands" + }, + { + "segment": "xpack", + "commands": [ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "xpack" ], - "name": "get-agent-builder-conversations", + "name": "info", "parameters": [ { "role": "flag", - "name": "agent-id", - "type": "string", + "name": "categories", + "type": "array", "required": false, - "summary": "Optional agent ID to filter conversations by a specific agent." + "summary": "A comma-separated list of the information categories to include in the response.\nFor example, `build,license,features`.", + "repeatable": true }, { "role": "flag", - "name": "page", - "type": "number", + "name": "accept-enterprise", + "type": "boolean", "required": false, - "summary": "Page number, 1-based." + "summary": "If used, this otherwise ignored parameter must be set to true" }, { "role": "flag", - "name": "per-page", - "type": "number", + "name": "human", + "type": "boolean", "required": false, - "summary": "Number of results per page. Maximum 1000." + "summary": "Defines whether additional human-readable information is included in the response.\nIn particular, it adds descriptions and a tag line." }, { "role": "flag", - "name": "sort-order", - "type": "enum", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Sort direction for results, ordered by updated_at.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "pinned", + "name": "filter-path", + "type": "string", + "required": false, + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true + }, + { + "role": "flag", + "name": "pretty", "type": "boolean", "required": false, - "summary": "Filter to pinned (true) or unpinned (false) conversations. Omit to return all." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -64269,7 +63958,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List conversations", + "summary": "Get information.", "intent": { "destructive": false, "idempotent": true, @@ -64280,52 +63969,46 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "xpack" ], - "name": "post-agent-builder-conversations", + "name": "usage", "parameters": [ { "role": "flag", - "name": "access-control", - "type": "string", - "required": false, - "summary": "Optional access control settings. Defaults to private." - }, - { - "role": "flag", - "name": "agent-id", + "name": "master-timeout", "type": "string", "required": false, - "summary": "The ID of the agent to associate with the conversation. Defaults to the default Elastic AI agent." + "summary": "The period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.\nTo indicate that the request should never timeout, set it to `-1`." }, { "role": "flag", - "name": "conversation-id", - "type": "string", + "name": "error-trace", + "type": "boolean", "required": false, - "summary": "Optional client-supplied UUID for the conversation. Server-generated if omitted." + "summary": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur." }, { "role": "flag", - "name": "metadata", + "name": "filter-path", "type": "string", "required": false, - "summary": "Initial metadata values. Each key must be declared by the referenced template; each value is validated against the field definition (type, options, min/max, regex, max_length). Requires `template_id`." + "summary": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", + "repeatable": true }, { "role": "flag", - "name": "template-id", - "type": "string", + "name": "human", + "type": "boolean", "required": false, - "summary": "Optional ID of a conversation template to apply. When set, the template seeds default metadata and any caller-supplied `metadata` is validated against the template field definitions." + "summary": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"exists_time_in_millis\": 3600000` for computers. When disabled the human\nreadable values will be omitted. This makes sense for responses being consumed\nonly by machines." }, { "role": "flag", - "name": "title", - "type": "string", + "name": "pretty", + "type": "boolean", "required": false, - "summary": "Title for the conversation. Defaults to \"New conversation\"." + "summary": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only." }, { "role": "flag", @@ -64349,77 +64032,72 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create conversation", + "summary": "Get usage information.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Elasticsearch xpack API commands" + }, + { + "segment": "helpers", + "commands": [ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "helpers" ], - "name": "delete-agent-builder-conversations-conversation-id", + "name": "scroll-search", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "index", "type": "string", "required": true, - "summary": "The unique identifier of the conversation to delete." + "summary": "Target index" }, { "role": "flag", - "name": "input-file", + "name": "query", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Query DSL clause as JSON (wrapped under \"query\"), e.g. '{\"match_all\":{}}'" }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "query-file", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Path to a file containing the full search body JSON (may include query, sort, aggs, ...)" }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "scroll", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "Scroll keep-alive duration", + "defaultValue": "1m" }, { "role": "flag", - "name": "yes", - "type": "boolean", + "name": "size", + "type": "number", "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete conversation by ID", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-conversations-conversation-id", - "parameters": [ + "summary": "Documents per scroll batch", + "defaultValue": "1000" + }, { "role": "flag", - "name": "conversation-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the conversation to retrieve." + "name": "max-docs", + "type": "number", + "required": false, + "summary": "Maximum total documents to fetch (default: unlimited)" }, { "role": "flag", @@ -64443,7 +64121,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get conversation by ID", + "summary": "Scroll through all search results, streaming documents as NDJSON to stdout, or returning a single JSON object when --json is set.", "intent": { "destructive": false, "idempotent": true, @@ -64454,86 +64132,125 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "helpers" ], - "name": "post-agent-builder-conversations-conversation-id-add-events", + "name": "bulk-ingest", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "index", "type": "string", "required": true, - "summary": "The unique identifier of the conversation." + "summary": "Target index" }, { "role": "flag", - "name": "events", - "type": "array", - "required": true, - "summary": "Events to append. Between 1 and 10.", - "repeatable": true + "name": "data-file", + "type": "string", + "required": false, + "summary": "Path to data file (NDJSON, JSON array, or CSV)" }, { "role": "flag", - "name": "input-file", + "name": "data-dir", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Path to directory of data files to ingest" }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "glob", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Glob pattern for --data-dir file matching (default: **/*.json, or **/*.csv when --source-format csv)" }, { "role": "flag", - "name": "no-validate", + "name": "no-recursive", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Add events to a conversation", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "put-agent-builder-conversations-conversation-id-access-control", - "parameters": [ - { - "role": "flag", - "name": "conversation-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the conversation whose access control to update." + "summary": "Do not recurse into subdirectories when using --data-dir" }, { "role": "flag", - "name": "access-mode", + "name": "source-format", "type": "enum", - "required": true, - "summary": "Access-control mode: `private` (only the owner and the listed members can read and continue the conversation), `public` (any user with access to the conversation's agent can read and continue it).", + "required": false, + "summary": "Input file format: csv, or json-based (ndjson vs json array is auto-detected from content; \"ndjson\" and \"json\" behave identically here)", + "defaultValue": "ndjson", "enumValues": [ - "private", - "public" + "ndjson", + "json", + "csv" ] }, { "role": "flag", - "name": "entries", - "type": "array", - "required": true, - "summary": "Members to share the conversation with. The list replaces the stored one; submit an empty list to unshare. Entries naming the owner are ignored. Must be empty when `access_mode` is `public`; repeated ids are rejected.", - "repeatable": true + "name": "csv-delimiter", + "type": "string", + "required": false, + "summary": "CSV column delimiter (default: \",\")" + }, + { + "role": "flag", + "name": "csv-columns", + "type": "string", + "required": false, + "summary": "Comma-separated list of column names (overrides CSV header row)" + }, + { + "role": "flag", + "name": "skip-header", + "type": "boolean", + "required": false, + "summary": "Skip the first row of a CSV file" + }, + { + "role": "flag", + "name": "flush-bytes", + "type": "number", + "required": false, + "summary": "Batch size threshold in bytes", + "defaultValue": "5242880" + }, + { + "role": "flag", + "name": "concurrency", + "type": "number", + "required": false, + "summary": "Number of parallel bulk requests", + "defaultValue": "5" + }, + { + "role": "flag", + "name": "retries", + "type": "number", + "required": false, + "summary": "Max retries per failed batch", + "defaultValue": "3" + }, + { + "role": "flag", + "name": "retry-delay", + "type": "number", + "required": false, + "summary": "Initial retry delay in ms (doubles each attempt)", + "defaultValue": "1000" + }, + { + "role": "flag", + "name": "pipeline", + "type": "string", + "required": false, + "summary": "Ingest pipeline name" + }, + { + "role": "flag", + "name": "routing", + "type": "string", + "required": false, + "summary": "Custom routing value" }, { "role": "flag", @@ -64557,10 +64274,10 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a conversation's access control", + "summary": "Bulk-ingest documents from file, directory, or stdin with automatic batching, concurrency, and retries.", "intent": { "destructive": false, - "idempotent": true, + "idempotent": false, "scope": "global", "requiresAuth": true } @@ -64568,24 +64285,40 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "helpers" ], - "name": "get-agent-builder-conversations-conversation-id-attachments", + "name": "msearch", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "index", "type": "string", - "required": true, - "summary": "The unique identifier of the conversation." + "required": false, + "summary": "Default index for searches" }, { "role": "flag", - "name": "include-deleted", - "type": "boolean", + "name": "query-file", + "type": "string", "required": false, - "summary": "Whether to include deleted attachments in the list." + "summary": "Path to JSON file with search array" + }, + { + "role": "flag", + "name": "batch-size", + "type": "number", + "required": false, + "summary": "Searches per _msearch request", + "defaultValue": "5" + }, + { + "role": "flag", + "name": "concurrency", + "type": "number", + "required": false, + "summary": "Parallel _msearch requests", + "defaultValue": "5" }, { "role": "flag", @@ -64609,7 +64342,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List conversation attachments", + "summary": "Batch multiple search requests via _msearch with configurable batch size and concurrency.", "intent": { "destructive": false, "idempotent": true, @@ -64620,66 +64353,69 @@ { "path": [ "stack", - "kb", - "agent-builder" + "es", + "helpers" ], - "name": "post-agent-builder-conversations-conversation-id-attachments", + "name": "watch", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "index", "type": "string", "required": true, - "summary": "The unique identifier of the conversation." + "summary": "Index or data stream to watch" }, { "role": "flag", - "name": "data", + "name": "query", "type": "string", - "required": true, - "summary": "The attachment data/content. Required unless origin is provided." + "required": false, + "summary": "Query DSL clause as JSON (wrapped under \"query\"), e.g. '{\"match\":{\"log.level\":\"error\"}}'" }, { "role": "flag", - "name": "description", + "name": "query-file", "type": "string", "required": false, - "summary": "Human-readable description of the attachment." + "summary": "Path to a file containing the full search body JSON" }, { "role": "flag", - "name": "hidden", - "type": "boolean", + "name": "sort-field", + "type": "string", "required": false, - "summary": "Whether the attachment should be hidden from the user." + "summary": "Field to use for ordering and detecting new documents", + "defaultValue": "@timestamp" }, { "role": "flag", - "name": "id", - "type": "string", + "name": "poll-interval", + "type": "number", "required": false, - "summary": "Optional custom ID for the attachment." + "summary": "Polling interval in milliseconds", + "defaultValue": "5000" }, { "role": "flag", - "name": "origin", + "name": "from", "type": "string", "required": false, - "summary": "Origin string (for example, saved object ID) for by-reference attachments. When provided without data, the content is resolved once at creation time." + "summary": "ISO 8601 timestamp to start from (e.g. \"2024-01-01T00:00:00Z\"). Defaults to the most recent document." }, { "role": "flag", - "name": "render-inline", - "type": "boolean", + "name": "size", + "type": "number", "required": false, - "summary": "When true, the attachment is rendered inline in the UI when the conversation is opened, without the agent referencing it." + "summary": "Maximum documents to fetch per poll", + "defaultValue": "100" }, { "role": "flag", - "name": "type", + "name": "format", "type": "string", - "required": true, - "summary": "The type of the attachment (e.g., text, esql, visualization)." + "required": false, + "summary": "Output template with {field} placeholders, e.g. \"{@timestamp} {message}\". Omit for NDJSON (_source as JSON)." }, { "role": "flag", @@ -64703,39 +64439,48 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create conversation attachment", + "summary": "Watch an index for new documents and stream them to stdout as NDJSON.", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "High-level helper commands for common Elasticsearch workflows" + } + ], + "summary": "Interact with the Elasticsearch API" + }, + { + "segment": "kb", + "commands": [], + "namespaces": [ + { + "segment": "agent-builder", + "commands": [ { "path": [ "stack", "kb", "agent-builder" ], - "name": "delete-agent-builder-conversations-conversation-id-attachments-attachment-id", + "name": "post-agent-builder-a2a-agentid", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "agent-id", "type": "string", "required": true, - "summary": "The unique identifier of the conversation." + "summary": "The unique identifier of the agent to send the A2A task to." }, { "role": "flag", - "name": "attachment-id", + "name": "body", "type": "string", - "required": true, - "summary": "The unique identifier of the attachment to delete." - }, - { - "role": "flag", - "name": "permanent", - "type": "boolean", - "required": false, - "summary": "If true, permanently removes the attachment (only for unreferenced attachments)." + "required": false }, { "role": "flag", @@ -64757,20 +64502,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete conversation attachment", + "summary": "Send A2A task", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -64780,21 +64515,14 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-conversations-conversation-id-attachments-attachment-id", + "name": "get-agent-builder-a2a-agentid-json", "parameters": [ { "role": "flag", - "name": "conversation-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the conversation." - }, - { - "role": "flag", - "name": "attachment-id", + "name": "agent-id", "type": "string", "required": true, - "summary": "The unique identifier of the attachment." + "summary": "The unique identifier of the agent to get A2A metadata for." }, { "role": "flag", @@ -64818,7 +64546,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get conversation attachment", + "summary": "Get A2A agent card", "intent": { "destructive": false, "idempotent": true, @@ -64832,28 +64560,14 @@ "kb", "agent-builder" ], - "name": "patch-agent-builder-conversations-conversation-id-attachments-attachment-id", + "name": "get-agent-builder-agents", "parameters": [ { "role": "flag", - "name": "conversation-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the conversation." - }, - { - "role": "flag", - "name": "attachment-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the attachment to rename." - }, - { - "role": "flag", - "name": "description", - "type": "string", - "required": true, - "summary": "The new description/name for the attachment." + "name": "include-hidden", + "type": "boolean", + "required": false, + "summary": "When true, hidden agents (such as built-in system agents) are included in the response." }, { "role": "flag", @@ -64877,8 +64591,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Rename attachment", + "summary": "List agents", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -64888,42 +64605,64 @@ "kb", "agent-builder" ], - "name": "put-agent-builder-conversations-conversation-id-attachments-attachment-id", + "name": "post-agent-builder-agents", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "access-control", "type": "string", - "required": true, - "summary": "The unique identifier of the conversation." + "required": false }, { "role": "flag", - "name": "attachment-id", + "name": "avatar-color", "type": "string", - "required": true, - "summary": "The unique identifier of the attachment to update." + "required": false, + "summary": "Optional hex color code for the agent avatar." }, { "role": "flag", - "name": "data", + "name": "avatar-symbol", + "type": "string", + "required": false, + "summary": "Optional symbol/initials for the agent avatar." + }, + { + "role": "flag", + "name": "configuration", "type": "string", "required": true, - "summary": "The new attachment data/content." + "summary": "Configuration settings for the agent." }, { "role": "flag", "name": "description", "type": "string", - "required": false, - "summary": "Optional new description for the attachment." + "required": true, + "summary": "Description of what the agent does." }, { "role": "flag", - "name": "render-inline", - "type": "boolean", + "name": "id", + "type": "string", + "required": true, + "summary": "Unique identifier for the agent." + }, + { + "role": "flag", + "name": "labels", + "type": "array", "required": false, - "summary": "When true, the attachment is rendered inline in the UI when the conversation is opened, without the agent referencing it." + "summary": "Optional labels for categorizing and organizing agents.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "Display name for the agent." }, { "role": "flag", @@ -64947,11 +64686,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update conversation attachment", + "summary": "Create an agent", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -64961,28 +64697,82 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-conversations-conversation-id-attachments-attachment-id-restore", + "name": "post-agent-builder-agents-agent-id-consumption", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "agent-id", "type": "string", "required": true, - "summary": "The unique identifier of the conversation." + "summary": "The unique identifier of the agent." }, { "role": "flag", - "name": "attachment-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the attachment to restore." + "name": "has-warnings", + "type": "boolean", + "required": false, + "summary": "Filter to conversations with or without high-token warnings." }, { "role": "flag", - "name": "input-file", + "name": "search", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Free-text search filter on conversation title." + }, + { + "role": "flag", + "name": "search-after", + "type": "array", + "required": false, + "summary": "Cursor for pagination. Pass the search_after value from the previous response.", + "repeatable": true + }, + { + "role": "flag", + "name": "size", + "type": "number", + "required": false, + "summary": "Number of results per page." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", + "required": false, + "summary": "Field to sort results by.", + "enumValues": [ + "updated_at", + "total_tokens", + "round_count" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "Sort direction.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "usernames", + "type": "array", + "required": false, + "summary": "Filter results to conversations by these usernames.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" }, { "role": "dryRun", @@ -64999,7 +64789,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Restore deleted attachment", + "summary": "Get agent consumption data", "intent": { "requiresAuth": true } @@ -65010,28 +64800,14 @@ "kb", "agent-builder" ], - "name": "put-agent-builder-conversations-conversation-id-attachments-attachment-id-origin", + "name": "delete-agent-builder-agents-id", "parameters": [ { "role": "flag", - "name": "conversation-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the conversation." - }, - { - "role": "flag", - "name": "attachment-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the attachment to update." - }, - { - "role": "flag", - "name": "origin", + "name": "id", "type": "string", "required": true, - "summary": "The origin string (e.g., saved object ID for visualizations and dashboards)." + "summary": "The unique identifier of the agent to delete." }, { "role": "flag", @@ -65053,11 +64829,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Update attachment origin", + "summary": "Delete an agent", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -65069,14 +64852,14 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-conversations-conversation-id-attachments-stale", + "name": "get-agent-builder-agents-id", "parameters": [ { "role": "flag", - "name": "conversation-id", + "name": "id", "type": "string", "required": true, - "summary": "The unique identifier of the conversation." + "summary": "The unique identifier of the agent to retrieve." }, { "role": "flag", @@ -65100,7 +64883,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Check attachment staleness", + "summary": "Get an agent by ID", "intent": { "destructive": false, "idempotent": true, @@ -65114,136 +64897,109 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-converse", + "name": "put-agent-builder-agents-id", "parameters": [ { "role": "flag", - "name": "execution-mode", - "type": "enum", - "required": false, - "summary": "define how to execute the agent (local execution or via task_manager)", - "enumValues": [ - "local", - "task_manager" - ] - }, - { - "role": "flag", - "name": "access-control", + "name": "id", "type": "string", - "required": false, - "summary": "Optional conversation access control. Defaults to private." - }, - { - "role": "flag", - "name": "action", - "type": "enum", - "required": false, - "summary": "Deprecated and ignored. The \"regenerate\" action has been removed; the field is still accepted for backward compatibility.", - "enumValues": [ - "regenerate" - ] + "required": true, + "summary": "The unique identifier of the agent to update." }, { "role": "flag", - "name": "agent-id", + "name": "access-control", "type": "string", - "required": false, - "summary": "The ID of the agent to chat with. Defaults to the default Elastic AI agent." - }, - { - "role": "flag", - "name": "attachments", - "type": "array", - "required": false, - "summary": "Optional attachments to send with the message.", - "repeatable": true - }, - { - "role": "flag", - "name": "browser-api-tools", - "type": "array", - "required": false, - "summary": "Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.", - "repeatable": true + "required": false }, { "role": "flag", - "name": "configuration-overrides", + "name": "avatar-color", "type": "string", "required": false, - "summary": "Runtime configuration overrides. These override the stored agent configuration for this execution only." + "summary": "Updated hex color code for the agent avatar." }, { "role": "flag", - "name": "connector-id", + "name": "avatar-symbol", "type": "string", "required": false, - "summary": "Optional connector ID for the agent to use for model routing. Mutually exclusive with `inference_id`; omit or use only one." + "summary": "Updated symbol/initials for the agent avatar." }, { "role": "flag", - "name": "conversation-id", + "name": "configuration", "type": "string", "required": false, - "summary": "Optional existing conversation ID to continue a previous conversation." + "summary": "Updated configuration settings for the agent." }, { "role": "flag", - "name": "execution-id", + "name": "description", "type": "string", "required": false, - "summary": "Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID." + "summary": "Updated description of what the agent does." }, { "role": "flag", - "name": "inference-id", - "type": "string", + "name": "labels", + "type": "array", "required": false, - "summary": "Optional inference endpoint ID for model routing (public alias for the same internal identifier as `connector_id`). Mutually exclusive with `connector_id`." + "summary": "Updated labels for categorizing and organizing agents.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "input", + "name": "name", "type": "string", "required": false, - "summary": "The user input message to send to the agent." + "summary": "Updated display name for the agent." }, { "role": "flag", - "name": "project-routing", + "name": "input-file", "type": "string", "required": false, - "summary": "Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "prompts", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Use this field to respond to a `confirmation`, `authorization`, or `ask_user_question` prompt. Send an `allow` boolean to answer a `confirmation` prompt, an `authorized` boolean to answer an `authorization` prompt, or an `answers` array (one entry per question) to answer an `ask_user_question` prompt." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "read-only", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update an agent", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "agent-builder" + ], + "name": "get-agent-builder-agents-id-access-control", + "parameters": [ { "role": "flag", - "name": "reasoning-level", - "type": "enum", - "required": false, - "summary": "Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.", - "enumValues": [ - "none", - "minimal", - "low", - "medium", - "high", - "xhigh" - ] + "name": "id", + "type": "string", + "required": true, + "summary": "The unique identifier of the agent whose access control to retrieve." }, { "role": "flag", @@ -65267,8 +65023,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Send chat message", + "summary": "Get an agent's access control list", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -65278,136 +65037,99 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-converse-async", + "name": "put-agent-builder-agents-id-access-control", "parameters": [ { "role": "flag", - "name": "execution-mode", - "type": "enum", - "required": false, - "summary": "define how to execute the agent (local execution or via task_manager)", - "enumValues": [ - "local", - "task_manager" - ] - }, - { - "role": "flag", - "name": "access-control", - "type": "string", - "required": false, - "summary": "Optional conversation access control. Defaults to private." - }, - { - "role": "flag", - "name": "action", - "type": "enum", - "required": false, - "summary": "Deprecated and ignored. The \"regenerate\" action has been removed; the field is still accepted for backward compatibility.", - "enumValues": [ - "regenerate" - ] - }, - { - "role": "flag", - "name": "agent-id", + "name": "id", "type": "string", - "required": false, - "summary": "The ID of the agent to chat with. Defaults to the default Elastic AI agent." - }, - { - "role": "flag", - "name": "attachments", - "type": "array", - "required": false, - "summary": "Optional attachments to send with the message.", - "repeatable": true + "required": true, + "summary": "The unique identifier of the agent whose access control to update." }, { "role": "flag", - "name": "browser-api-tools", + "name": "entries", "type": "array", - "required": false, - "summary": "Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.", + "required": true, + "summary": "Access-control entries to apply to the agent. Each entry has a `type` (for example `user`), a `role`, and either an `id` (the principal user profile uid, preferred) or a deprecated `name` (username).", "repeatable": true }, { "role": "flag", - "name": "configuration-overrides", - "type": "string", - "required": false, - "summary": "Runtime configuration overrides. These override the stored agent configuration for this execution only." - }, - { - "role": "flag", - "name": "connector-id", + "name": "input-file", "type": "string", "required": false, - "summary": "Optional connector ID for the agent to use for model routing. Mutually exclusive with `inference_id`; omit or use only one." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "conversation-id", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Optional existing conversation ID to continue a previous conversation." + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "execution-id", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update an agent's access control list", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "agent-builder" + ], + "name": "get-agent-builder-conversations", + "parameters": [ { "role": "flag", - "name": "inference-id", + "name": "agent-id", "type": "string", "required": false, - "summary": "Optional inference endpoint ID for model routing (public alias for the same internal identifier as `connector_id`). Mutually exclusive with `connector_id`." + "summary": "Optional agent ID to filter conversations by a specific agent." }, { "role": "flag", - "name": "input", - "type": "string", + "name": "page", + "type": "number", "required": false, - "summary": "The user input message to send to the agent." + "summary": "Page number, 1-based." }, { "role": "flag", - "name": "project-routing", - "type": "string", + "name": "per-page", + "type": "number", "required": false, - "summary": "Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere." + "summary": "Number of results per page. Maximum 1000." }, { "role": "flag", - "name": "prompts", - "type": "string", + "name": "sort-order", + "type": "enum", "required": false, - "summary": "Use this field to respond to a `confirmation`, `authorization`, or `ask_user_question` prompt. Send an `allow` boolean to answer a `confirmation` prompt, an `authorized` boolean to answer an `authorization` prompt, or an `answers` array (one entry per question) to answer an `ask_user_question` prompt." + "summary": "Sort direction for results, ordered by updated_at.", + "enumValues": [ + "asc", + "desc" + ] }, { "role": "flag", - "name": "read-only", + "name": "pinned", "type": "boolean", "required": false, - "summary": "When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation." - }, - { - "role": "flag", - "name": "reasoning-level", - "type": "enum", - "required": false, - "summary": "Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.", - "enumValues": [ - "none", - "minimal", - "low", - "medium", - "high", - "xhigh" - ] + "summary": "Filter to pinned (true) or unpinned (false) conversations. Omit to return all." }, { "role": "flag", @@ -65431,8 +65153,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Send chat message (streaming)", + "summary": "List conversations", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -65442,20 +65167,49 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-mcp", + "name": "post-agent-builder-conversations", "parameters": [ { "role": "flag", - "name": "namespace", + "name": "access-control", "type": "string", "required": false, - "summary": "Comma-separated list of namespaces to filter tools. Only tools matching the specified namespaces will be returned." + "summary": "Optional access control settings. Defaults to private." }, { "role": "flag", - "name": "body", + "name": "agent-id", "type": "string", - "required": false + "required": false, + "summary": "The ID of the agent to associate with the conversation. Defaults to the default Elastic AI agent." + }, + { + "role": "flag", + "name": "conversation-id", + "type": "string", + "required": false, + "summary": "Optional client-supplied UUID for the conversation. Server-generated if omitted." + }, + { + "role": "flag", + "name": "metadata", + "type": "string", + "required": false, + "summary": "Initial metadata values. Each key must be declared by the referenced template; each value is validated against the field definition (type, options, min/max, regex, max_length). Requires `template_id`." + }, + { + "role": "flag", + "name": "template-id", + "type": "string", + "required": false, + "summary": "Optional ID of a conversation template to apply. When set, the template seeds default metadata and any caller-supplied `metadata` is validated against the template field definitions." + }, + { + "role": "flag", + "name": "title", + "type": "string", + "required": false, + "summary": "Title for the conversation. Defaults to \"New conversation\"." }, { "role": "flag", @@ -65479,32 +65233,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "MCP server", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-plugins", - "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "List plugins", + "summary": "Create conversation", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -65514,21 +65244,14 @@ "kb", "agent-builder" ], - "name": "delete-agent-builder-plugins-pluginid", + "name": "delete-agent-builder-conversations-conversation-id", "parameters": [ { "role": "flag", - "name": "plugin-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the plugin." - }, - { - "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "If true, removes the plugin skills from agents that use them and then deletes the plugin. If false and any agent uses the plugin skills, the request returns 409 Conflict with the list of agents." + "summary": "The unique identifier of the conversation to delete." }, { "role": "flag", @@ -65559,7 +65282,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a plugin", + "summary": "Delete conversation by ID", "intent": { "destructive": true, "idempotent": true, @@ -65573,14 +65296,14 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-plugins-pluginid", + "name": "get-agent-builder-conversations-conversation-id", "parameters": [ { "role": "flag", - "name": "plugin-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the plugin." + "summary": "The unique identifier of the conversation to retrieve." }, { "role": "flag", @@ -65604,7 +65327,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a plugin by id", + "summary": "Get conversation by ID", "intent": { "destructive": false, "idempotent": true, @@ -65618,21 +65341,22 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-plugins-install", + "name": "post-agent-builder-conversations-conversation-id-add-events", "parameters": [ { "role": "flag", - "name": "plugin-name", + "name": "conversation-id", "type": "string", - "required": false, - "summary": "Optional name override for the plugin. Defaults to the manifest name." + "required": true, + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "url", - "type": "string", + "name": "events", + "type": "array", "required": true, - "summary": "URL to install the plugin from (GitHub URL or direct zip URL)." + "summary": "Events to append. Between 1 and 10.", + "repeatable": true }, { "role": "flag", @@ -65656,7 +65380,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Install a plugin", + "summary": "Add events to a conversation", "intent": { "requiresAuth": true } @@ -65667,14 +65391,33 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-skills", + "name": "put-agent-builder-conversations-conversation-id-access-control", "parameters": [ { "role": "flag", - "name": "include-plugins", - "type": "boolean", - "required": false, - "summary": "Set to true to include skills from plugins." + "name": "conversation-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the conversation whose access control to update." + }, + { + "role": "flag", + "name": "access-mode", + "type": "enum", + "required": true, + "summary": "Access-control mode: `private` (only the owner and the listed members can read and continue the conversation), `public` (any user with access to the conversation's agent can read and continue it).", + "enumValues": [ + "private", + "public" + ] + }, + { + "role": "flag", + "name": "entries", + "type": "array", + "required": true, + "summary": "Members to share the conversation with. The list replaces the stored one; submit an empty list to unshare. Entries naming the owner are ignored. Must be empty when `access_mode` is `public`; repeated ids are rejected.", + "repeatable": true }, { "role": "flag", @@ -65698,7 +65441,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List skills", + "summary": "Update a conversation's access control", "intent": { "destructive": false, "idempotent": true, @@ -65712,51 +65455,115 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-skills", + "name": "get-agent-builder-conversations-conversation-id-attachments", "parameters": [ { "role": "flag", - "name": "content", + "name": "conversation-id", "type": "string", "required": true, - "summary": "Skill instructions content (markdown)." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "description", + "name": "include-deleted", + "type": "boolean", + "required": false, + "summary": "Whether to include deleted attachments in the list." + }, + { + "role": "flag", + "name": "input-file", "type": "string", - "required": true, - "summary": "Description of what the skill does." + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "id", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "List conversation attachments", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "agent-builder" + ], + "name": "post-agent-builder-conversations-conversation-id-attachments", + "parameters": [ + { + "role": "flag", + "name": "conversation-id", "type": "string", "required": true, - "summary": "Unique identifier for the skill." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "name", + "name": "data", "type": "string", "required": true, - "summary": "Human-readable name for the skill." + "summary": "The attachment data/content. Required unless origin is provided." }, { "role": "flag", - "name": "referenced-content", - "type": "array", + "name": "description", + "type": "string", "required": false, - "repeatable": true + "summary": "Human-readable description of the attachment." }, { "role": "flag", - "name": "tool-ids", - "type": "array", + "name": "hidden", + "type": "boolean", "required": false, - "summary": "Tool IDs from the tool registry that this skill references.", - "repeatable": true, - "elementType": "string" + "summary": "Whether the attachment should be hidden from the user." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": false, + "summary": "Optional custom ID for the attachment." + }, + { + "role": "flag", + "name": "origin", + "type": "string", + "required": false, + "summary": "Origin string (for example, saved object ID) for by-reference attachments. When provided without data, the content is resolved once at creation time." + }, + { + "role": "flag", + "name": "render-inline", + "type": "boolean", + "required": false, + "summary": "When true, the attachment is rendered inline in the UI when the conversation is opened, without the agent referencing it." + }, + { + "role": "flag", + "name": "type", + "type": "string", + "required": true, + "summary": "The type of the attachment (e.g., text, esql, visualization)." }, { "role": "flag", @@ -65780,7 +65587,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a skill", + "summary": "Create conversation attachment", "intent": { "requiresAuth": true } @@ -65791,21 +65598,28 @@ "kb", "agent-builder" ], - "name": "delete-agent-builder-skills-skillid", + "name": "delete-agent-builder-conversations-conversation-id-attachments-attachment-id", "parameters": [ { "role": "flag", - "name": "skill-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the skill." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "force", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the attachment to delete." + }, + { + "role": "flag", + "name": "permanent", "type": "boolean", "required": false, - "summary": "If true, removes the skill from agents that use it and then deletes it. If false and any agent uses the skill, the request returns 409 Conflict with the list of agents." + "summary": "If true, permanently removes the attachment (only for unreferenced attachments)." }, { "role": "flag", @@ -65836,7 +65650,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a skill", + "summary": "Delete conversation attachment", "intent": { "destructive": true, "idempotent": true, @@ -65850,14 +65664,21 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-skills-skillid", + "name": "get-agent-builder-conversations-conversation-id-attachments-attachment-id", "parameters": [ { "role": "flag", - "name": "skill-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the skill." + "summary": "The unique identifier of the conversation." + }, + { + "role": "flag", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the attachment." }, { "role": "flag", @@ -65881,7 +65702,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a skill by id", + "summary": "Get conversation attachment", "intent": { "destructive": false, "idempotent": true, @@ -65895,51 +65716,28 @@ "kb", "agent-builder" ], - "name": "put-agent-builder-skills-skillid", + "name": "patch-agent-builder-conversations-conversation-id-attachments-attachment-id", "parameters": [ { "role": "flag", - "name": "skill-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the skill." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "content", + "name": "attachment-id", "type": "string", - "required": false, - "summary": "Updated skill instructions content." + "required": true, + "summary": "The unique identifier of the attachment to rename." }, { "role": "flag", "name": "description", "type": "string", - "required": false, - "summary": "Updated description." - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": false, - "summary": "Updated name for the skill." - }, - { - "role": "flag", - "name": "referenced-content", - "type": "array", - "required": false, - "repeatable": true - }, - { - "role": "flag", - "name": "tool-ids", - "type": "array", - "required": false, - "summary": "Updated tool IDs from the tool registry.", - "repeatable": true, - "elementType": "string" + "required": true, + "summary": "The new description/name for the attachment." }, { "role": "flag", @@ -65963,35 +65761,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a skill", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "get-agent-builder-tools", - "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "List tools", + "summary": "Rename attachment", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -66001,57 +65772,42 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-tools", + "name": "put-agent-builder-conversations-conversation-id-attachments-attachment-id", "parameters": [ { "role": "flag", - "name": "configuration", + "name": "conversation-id", "type": "string", "required": true, - "summary": "Tool-specific configuration parameters. See examples for details." - }, - { - "role": "flag", - "name": "confirmation", - "type": "string", - "required": false, - "summary": "Optional tool call policy to control tool call confirmation behavior" + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "description", + "name": "attachment-id", "type": "string", - "required": false, - "summary": "Description of what the tool does." + "required": true, + "summary": "The unique identifier of the attachment to update." }, { "role": "flag", - "name": "id", + "name": "data", "type": "string", "required": true, - "summary": "Unique identifier for the tool." + "summary": "The new attachment data/content." }, { "role": "flag", - "name": "tags", - "type": "array", + "name": "description", + "type": "string", "required": false, - "summary": "Optional tags for categorizing and organizing tools.", - "repeatable": true, - "elementType": "string" + "summary": "Optional new description for the attachment." }, { "role": "flag", - "name": "type", - "type": "enum", - "required": true, - "summary": "The type of tool to create (e.g., esql, index_search).", - "enumValues": [ - "esql", - "index_search", - "workflow", - "mcp" - ] + "name": "render-inline", + "type": "boolean", + "required": false, + "summary": "When true, the attachment is rendered inline in the UI when the conversation is opened, without the agent referencing it." }, { "role": "flag", @@ -66075,8 +65831,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a tool", + "summary": "Update conversation attachment", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -66086,35 +65845,21 @@ "kb", "agent-builder" ], - "name": "post-agent-builder-tools-execute", + "name": "post-agent-builder-conversations-conversation-id-attachments-attachment-id-restore", "parameters": [ { "role": "flag", - "name": "approvals", - "type": "string", - "required": false, - "summary": "Actions the tool run may take that would otherwise need a live user to approve them. Applies to this run and any sub-agents it spawns." - }, - { - "role": "flag", - "name": "connector-id", - "type": "string", - "required": false, - "summary": "Optional connector ID for tools that require external integrations." - }, - { - "role": "flag", - "name": "tool-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The ID of the tool to execute." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "tool-params", + "name": "attachment-id", "type": "string", "required": true, - "summary": "Parameters to pass to the tool execution. See examples for details" + "summary": "The unique identifier of the attachment to restore." }, { "role": "flag", @@ -66138,7 +65883,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Run a tool", + "summary": "Restore deleted attachment", "intent": { "requiresAuth": true } @@ -66149,21 +65894,28 @@ "kb", "agent-builder" ], - "name": "delete-agent-builder-tools-toolid", + "name": "put-agent-builder-conversations-conversation-id-attachments-attachment-id-origin", "parameters": [ { "role": "flag", - "name": "tool-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the tool to delete." + "summary": "The unique identifier of the conversation." }, { "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "If true, removes the tool from agents that use it and then deletes it. If false and any agent uses the tool, the request returns 409 Conflict with the list of agents." + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the attachment to update." + }, + { + "role": "flag", + "name": "origin", + "type": "string", + "required": true, + "summary": "The origin string (e.g., saved object ID for visualizations and dashboards)." }, { "role": "flag", @@ -66185,18 +65937,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a tool", + "summary": "Update attachment origin", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -66208,14 +65953,14 @@ "kb", "agent-builder" ], - "name": "get-agent-builder-tools-toolid", + "name": "get-agent-builder-conversations-conversation-id-attachments-stale", "parameters": [ { "role": "flag", - "name": "tool-id", + "name": "conversation-id", "type": "string", "required": true, - "summary": "The unique identifier of the tool to retrieve." + "summary": "The unique identifier of the conversation." }, { "role": "flag", @@ -66239,7 +65984,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a tool by id", + "summary": "Check attachment staleness", "intent": { "destructive": false, "idempotent": true, @@ -66253,183 +65998,161 @@ "kb", "agent-builder" ], - "name": "put-agent-builder-tools-toolid", + "name": "post-agent-builder-converse", "parameters": [ { "role": "flag", - "name": "tool-id", - "type": "string", - "required": true, - "summary": "The unique identifier of the tool to update." + "name": "execution-mode", + "type": "enum", + "required": false, + "summary": "define how to execute the agent (local execution or via task_manager)", + "enumValues": [ + "local", + "task_manager" + ] }, { "role": "flag", - "name": "configuration", + "name": "access-control", "type": "string", "required": false, - "summary": "Updated tool-specific configuration parameters. See examples for details." + "summary": "Optional conversation access control. Defaults to private." }, { "role": "flag", - "name": "confirmation", - "type": "string", + "name": "action", + "type": "enum", "required": false, - "summary": "Updated tool call policy to control tool call confirmation behavior" + "summary": "Deprecated and ignored. The \"regenerate\" action has been removed; the field is still accepted for backward compatibility.", + "enumValues": [ + "regenerate" + ] }, { "role": "flag", - "name": "description", + "name": "agent-id", "type": "string", "required": false, - "summary": "Updated description of what the tool does." + "summary": "The ID of the agent to chat with. Defaults to the default Elastic AI agent." }, { "role": "flag", - "name": "tags", + "name": "attachments", "type": "array", "required": false, - "summary": "Updated tags for categorizing and organizing tools.", - "repeatable": true, - "elementType": "string" + "summary": "Optional attachments to send with the message.", + "repeatable": true }, { "role": "flag", - "name": "input-file", + "name": "browser-api-tools", + "type": "array", + "required": false, + "summary": "Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.", + "repeatable": true + }, + { + "role": "flag", + "name": "configuration-overrides", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Runtime configuration overrides. These override the stored agent configuration for this execution only." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "connector-id", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Optional connector ID for the agent to use for model routing. Mutually exclusive with `inference_id`; omit or use only one." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "conversation-id", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Update a tool", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "agent-builder" - ], - "name": "post-chat-message", - "parameters": [ + "summary": "Optional existing conversation ID to continue a previous conversation." + }, { "role": "flag", - "name": "agent-id", + "name": "execution-id", "type": "string", "required": false, - "summary": "The ID of the agent to send the message to. Defaults to the default Elastic AI agent." + "summary": "Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID." }, { "role": "flag", - "name": "conversation-id", + "name": "inference-id", "type": "string", "required": false, - "summary": "The ID of an existing conversation to continue. Omit it to start a new conversation; the response carries the ID to reuse on the next call." + "summary": "Optional inference endpoint ID for model routing (public alias for the same internal identifier as `connector_id`). Mutually exclusive with `connector_id`." }, { "role": "flag", - "name": "message", + "name": "input", "type": "string", - "required": true, - "summary": "The user message to send to the agent." + "required": false, + "summary": "The user input message to send to the agent." }, { "role": "flag", - "name": "input-file", + "name": "project-routing", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "prompts", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Use this field to respond to a `confirmation`, `authorization`, or `ask_user_question` prompt. Send an `allow` boolean to answer a `confirmation` prompt, an `authorized` boolean to answer an `authorization` prompt, or an `answers` array (one entry per question) to answer an `ask_user_question` prompt." }, { "role": "flag", - "name": "no-validate", + "name": "read-only", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Send a message and get the answer", - "intent": { - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana agent-builder API commands" - }, - { - "segment": "alerting", - "commands": [ - { - "path": [ - "stack", - "kb", - "alerting" - ], - "name": "get-alerting-health", - "parameters": [ + "summary": "When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation." + }, + { + "role": "flag", + "name": "reasoning-level", + "type": "enum", + "required": false, + "summary": "Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.", + "enumValues": [ + "none", + "minimal", + "low", + "medium", + "high", + "xhigh" + ] + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get the alerting framework health", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting" - ], - "name": "get-rule-types", - "parameters": [ + }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "skip input validation and send the request as-is" } ], - "summary": "Get the rule types", + "summary": "Send chat message", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -66437,216 +66160,138 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "delete-alerting-rule-id", + "name": "post-agent-builder-converse-async", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "name": "execution-mode", + "type": "enum", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "define how to execute the agent (local execution or via task_manager)", + "enumValues": [ + "local", + "task_manager" + ] }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "access-control", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "Optional conversation access control. Defaults to private." }, { "role": "flag", - "name": "yes", - "type": "boolean", + "name": "action", + "type": "enum", "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete a rule", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting" - ], - "name": "get-alerting-rule-id", - "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule." + "summary": "Deprecated and ignored. The \"regenerate\" action has been removed; the field is still accepted for backward compatibility.", + "enumValues": [ + "regenerate" + ] }, { "role": "flag", - "name": "input-file", + "name": "agent-id", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The ID of the agent to chat with. Defaults to the default Elastic AI agent." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "attachments", + "type": "array", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get rule details", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting" - ], - "name": "post-alerting-rule-id", - "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule. If it is omitted, an ID is randomly generated." + "summary": "Optional attachments to send with the message.", + "repeatable": true }, { "role": "flag", - "name": "actions", + "name": "browser-api-tools", "type": "array", "required": false, + "summary": "Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.", "repeatable": true }, { "role": "flag", - "name": "alert-delay", + "name": "configuration-overrides", "type": "string", "required": false, - "summary": "Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions." + "summary": "Runtime configuration overrides. These override the stored agent configuration for this execution only." }, { "role": "flag", - "name": "artifacts", + "name": "connector-id", "type": "string", - "required": false + "required": false, + "summary": "Optional connector ID for the agent to use for model routing. Mutually exclusive with `inference_id`; omit or use only one." }, { "role": "flag", - "name": "consumer", + "name": "conversation-id", "type": "string", - "required": true, - "summary": "The name of the application or feature that owns the rule. For example: `alerts`, `apm`, `discover`, `infrastructure`, `logs`, `metrics`, `ml`, `monitoring`, `securitySolution`, `siem`, `stackAlerts`, or `uptime`." - }, - { - "role": "flag", - "name": "enabled", - "type": "boolean", "required": false, - "summary": "Indicates whether you want the rule to run on an interval basis after it is created." + "summary": "Optional existing conversation ID to continue a previous conversation." }, { "role": "flag", - "name": "flapping", + "name": "execution-id", "type": "string", - "required": false + "required": false, + "summary": "Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID." }, { "role": "flag", - "name": "name", + "name": "inference-id", "type": "string", - "required": true, - "summary": "The name of the rule. While this name does not have to be unique, a distinctive name can help you identify a rule." - }, - { - "role": "flag", - "name": "notify-when", - "type": "enum", "required": false, - "summary": "Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.", - "enumValues": [ - "onActionGroupChange", - "onActiveAlert", - "onThrottleInterval" - ] + "summary": "Optional inference endpoint ID for model routing (public alias for the same internal identifier as `connector_id`). Mutually exclusive with `connector_id`." }, { "role": "flag", - "name": "params", + "name": "input", "type": "string", "required": false, - "summary": "The parameters for the rule." + "summary": "The user input message to send to the agent." }, { "role": "flag", - "name": "rule-type-id", + "name": "project-routing", "type": "string", - "required": true, - "summary": "The rule type identifier." + "required": false, + "summary": "Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere." }, { "role": "flag", - "name": "schedule", + "name": "prompts", "type": "string", - "required": true, - "summary": "The check interval, which specifies how frequently the rule conditions are checked." - }, - { - "role": "flag", - "name": "tags", - "type": "array", "required": false, - "summary": "The tags for the rule.", - "repeatable": true, - "elementType": "string" + "summary": "Use this field to respond to a `confirmation`, `authorization`, or `ask_user_question` prompt. Send an `allow` boolean to answer a `confirmation` prompt, an `authorized` boolean to answer an `authorization` prompt, or an `answers` array (one entry per question) to answer an `ask_user_question` prompt." }, { "role": "flag", - "name": "template-id", - "type": "string", + "name": "read-only", + "type": "boolean", "required": false, - "summary": "The identifier for the rule template this rule was created from, when known." + "summary": "When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation." }, { "role": "flag", - "name": "throttle", - "type": "string", + "name": "reasoning-level", + "type": "enum", "required": false, - "summary": "Use the `throttle` property in the action `frequency` object instead. The throttle interval, which defines how frequently rule actions are triggered. You cannot specify the throttle interval at both the rule and action level. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values." + "summary": "Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.", + "enumValues": [ + "none", + "minimal", + "low", + "medium", + "high", + "xhigh" + ] }, { "role": "flag", @@ -66670,7 +66315,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a rule", + "summary": "Send chat message (streaming)", "intent": { "requiresAuth": true } @@ -66679,90 +66324,23 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "put-alerting-rule-id", + "name": "post-agent-builder-mcp", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule." - }, - { - "role": "flag", - "name": "actions", - "type": "array", - "required": false, - "repeatable": true - }, - { - "role": "flag", - "name": "alert-delay", + "name": "namespace", "type": "string", "required": false, - "summary": "Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions." - }, - { - "role": "flag", - "name": "artifacts", - "type": "string", - "required": false + "summary": "Comma-separated list of namespaces to filter tools. Only tools matching the specified namespaces will be returned." }, { "role": "flag", - "name": "flapping", + "name": "body", "type": "string", "required": false }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "The name of the rule. While this name does not have to be unique, a distinctive name can help you identify a rule." - }, - { - "role": "flag", - "name": "notify-when", - "type": "enum", - "required": false, - "summary": "Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.", - "enumValues": [ - "onActionGroupChange", - "onActiveAlert", - "onThrottleInterval" - ] - }, - { - "role": "flag", - "name": "params", - "type": "string", - "required": false, - "summary": "The parameters for the rule." - }, - { - "role": "flag", - "name": "schedule", - "type": "string", - "required": true - }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "throttle", - "type": "string", - "required": false, - "summary": "Use the `throttle` property in the action `frequency` object instead. The throttle interval, which defines how frequently rule actions are triggered. You cannot specify the throttle interval at both the rule and action level. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values." - }, { "role": "flag", "name": "input-file", @@ -66785,7 +66363,28 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a rule", + "summary": "MCP server", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "agent-builder" + ], + "name": "get-agent-builder-plugins", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "List plugins", "intent": { "destructive": false, "idempotent": true, @@ -66797,22 +66396,23 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-disable", + "name": "delete-agent-builder-plugins-pluginid", "parameters": [ { "role": "flag", - "name": "id", + "name": "plugin-id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "The unique identifier of the plugin." }, { "role": "flag", - "name": "body", - "type": "string", - "required": false + "name": "force", + "type": "boolean", + "required": false, + "summary": "If true, removes the plugin skills from agents that use them and then deletes the plugin. If false and any agent uses the plugin skills, the request returns 409 Conflict with the list of agents." }, { "role": "flag", @@ -66834,10 +66434,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Disable a rule", + "summary": "Delete a plugin", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -66845,16 +66455,16 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-enable", + "name": "get-agent-builder-plugins-pluginid", "parameters": [ { "role": "flag", - "name": "id", + "name": "plugin-id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "The unique identifier of the plugin." }, { "role": "flag", @@ -66878,8 +66488,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable a rule", + "summary": "Get a plugin by id", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -66887,16 +66500,23 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-mute-all", + "name": "post-agent-builder-plugins-install", "parameters": [ { "role": "flag", - "name": "id", + "name": "plugin-name", + "type": "string", + "required": false, + "summary": "Optional name override for the plugin. Defaults to the manifest name." + }, + { + "role": "flag", + "name": "url", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "URL to install the plugin from (GitHub URL or direct zip URL)." }, { "role": "flag", @@ -66920,7 +66540,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Mute all alerts", + "summary": "Install a plugin", "intent": { "requiresAuth": true } @@ -66929,16 +66549,16 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-unmute-all", + "name": "get-agent-builder-skills", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule." + "name": "include-plugins", + "type": "boolean", + "required": false, + "summary": "Set to true to include skills from plugins." }, { "role": "flag", @@ -66962,8 +66582,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Unmute all alerts", + "summary": "List skills", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -66971,16 +66594,53 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-update-api-key", + "name": "post-agent-builder-skills", "parameters": [ + { + "role": "flag", + "name": "content", + "type": "string", + "required": true, + "summary": "Skill instructions content (markdown)." + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": true, + "summary": "Description of what the skill does." + }, { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "Unique identifier for the skill." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "Human-readable name for the skill." + }, + { + "role": "flag", + "name": "referenced-content", + "type": "array", + "required": false, + "repeatable": true + }, + { + "role": "flag", + "name": "tool-ids", + "type": "array", + "required": false, + "summary": "Tool IDs from the tool registry that this skill references.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -67004,7 +66664,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update the API key for a rule", + "summary": "Create a skill", "intent": { "requiresAuth": true } @@ -67013,34 +66673,23 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "get-alerting-rule-id-query-inspector", + "name": "delete-agent-builder-skills-skillid", "parameters": [ { "role": "flag", - "name": "id", + "name": "skill-id", "type": "string", "required": true, - "summary": "The identifier for the rule." - }, - { - "role": "flag", - "name": "mode", - "type": "enum", - "required": false, - "summary": "The inspection mode. Use \"build\" to return only the query, or \"execute\" to run the query and include the response.", - "enumValues": [ - "build", - "execute" - ] + "summary": "The unique identifier of the skill." }, { "role": "flag", - "name": "alert-id", - "type": "string", + "name": "force", + "type": "boolean", "required": false, - "summary": "The alert document ID. When provided, the query inspector uses the evaluation time range from the alert instead of the current time." + "summary": "If true, removes the skill from agents that use it and then deletes it. If false and any agent uses the skill, the request returns 409 Conflict with the list of agents." }, { "role": "flag", @@ -67062,11 +66711,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get the Elasticsearch query for a rule", + "summary": "Delete a skill", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -67076,22 +66732,16 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-id-snooze-schedule", + "name": "get-agent-builder-skills-skillid", "parameters": [ { "role": "flag", - "name": "id", + "name": "skill-id", "type": "string", "required": true, - "summary": "Identifier of the rule." - }, - { - "role": "flag", - "name": "schedule", - "type": "string", - "required": true + "summary": "The unique identifier of the skill." }, { "role": "flag", @@ -67115,8 +66765,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Schedule a snooze for the rule", + "summary": "Get a skill by id", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -67124,30 +66777,53 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-rule-id-alert-alert-id-mute", + "name": "put-agent-builder-skills-skillid", "parameters": [ { "role": "flag", - "name": "rule-id", + "name": "skill-id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "The unique identifier of the skill." }, { "role": "flag", - "name": "alert-id", + "name": "content", "type": "string", - "required": true, - "summary": "The identifier for the alert." + "required": false, + "summary": "Updated skill instructions content." }, { "role": "flag", - "name": "validate-alerts-existence", - "type": "boolean", + "name": "description", + "type": "string", "required": false, - "summary": "Whether to validate the existence of the alert." + "summary": "Updated description." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "Updated name for the skill." + }, + { + "role": "flag", + "name": "referenced-content", + "type": "array", + "required": false, + "repeatable": true + }, + { + "role": "flag", + "name": "tool-ids", + "type": "array", + "required": false, + "summary": "Updated tool IDs from the tool registry.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -67171,65 +66847,95 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Mute an alert", + "summary": "Update a skill", "intent": { - "requiresAuth": true + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true } }, { "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-rule-id-alert-alert-id-snooze", + "name": "get-agent-builder-tools", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "List tools", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "agent-builder" + ], + "name": "post-agent-builder-tools", "parameters": [ { "role": "flag", - "name": "rule-id", + "name": "configuration", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "Tool-specific configuration parameters. See examples for details." }, { "role": "flag", - "name": "alert-id", + "name": "confirmation", "type": "string", - "required": true, - "summary": "The identifier for the alert." + "required": false, + "summary": "Optional tool call policy to control tool call confirmation behavior" }, { "role": "flag", - "name": "validate-alerts-existence", - "type": "boolean", + "name": "description", + "type": "string", "required": false, - "summary": "Set to `true` to validate that the specified alert exists. If a `400` error is returned, the specified alert does not exist. Defaults to `true`." + "summary": "Description of what the tool does." }, { "role": "flag", - "name": "condition-operator", - "type": "enum", - "required": false, - "summary": "Logical operator applied to the conditions array. \"any\" expires the snooze when at least one condition is met; \"all\" requires every condition to be met. When conditions are provided but this field is omitted, defaults to \"any\".", - "enumValues": [ - "any", - "all" - ] + "name": "id", + "type": "string", + "required": true, + "summary": "Unique identifier for the tool." }, { "role": "flag", - "name": "conditions", + "name": "tags", "type": "array", "required": false, - "summary": "One or more conditions that, when met, automatically expire the snooze. Supported types: `field_change`, `severity_change`, `severity_equals`.", - "repeatable": true + "summary": "Optional tags for categorizing and organizing tools.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "expires-at", - "type": "string", - "required": false, - "summary": "The datetime at which the snooze expires, in ISO 8601 format (`YYYY-MM-DDTHH:mm:ss.sssZ`). When omitted, the snooze persists indefinitely unless manually removed or a defined condition is met." + "name": "type", + "type": "enum", + "required": true, + "summary": "The type of tool to create (e.g., esql, index_search).", + "enumValues": [ + "esql", + "index_search", + "workflow", + "mcp" + ] }, { "role": "flag", @@ -67253,7 +66959,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Snooze an alert", + "summary": "Create a tool", "intent": { "requiresAuth": true } @@ -67262,23 +66968,37 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-rule-id-alert-alert-id-unmute", + "name": "post-agent-builder-tools-execute", "parameters": [ { "role": "flag", - "name": "rule-id", + "name": "approvals", + "type": "string", + "required": false, + "summary": "Actions the tool run may take that would otherwise need a live user to approve them. Applies to this run and any sub-agents it spawns." + }, + { + "role": "flag", + "name": "connector-id", + "type": "string", + "required": false, + "summary": "Optional connector ID for tools that require external integrations." + }, + { + "role": "flag", + "name": "tool-id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "The ID of the tool to execute." }, { "role": "flag", - "name": "alert-id", + "name": "tool-params", "type": "string", "required": true, - "summary": "The identifier for the alert." + "summary": "Parameters to pass to the tool execution. See examples for details" }, { "role": "flag", @@ -67302,7 +67022,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Unmute an alert", + "summary": "Run a tool", "intent": { "requiresAuth": true } @@ -67311,23 +67031,23 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rule-rule-id-alert-alert-id-unsnooze", + "name": "delete-agent-builder-tools-toolid", "parameters": [ { "role": "flag", - "name": "rule-id", + "name": "tool-id", "type": "string", "required": true, - "summary": "The identifier for the rule." + "summary": "The unique identifier of the tool to delete." }, { "role": "flag", - "name": "alert-id", - "type": "string", - "required": true, - "summary": "The identifier for the alert." + "name": "force", + "type": "boolean", + "required": false, + "summary": "If true, removes the tool from agents that use it and then deletes it. If false and any agent uses the tool, the request returns 409 Conflict with the list of agents." }, { "role": "flag", @@ -67349,10 +67069,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Unsnooze an alert", + "summary": "Delete a tool", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -67360,23 +67090,16 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "delete-alerting-rule-ruleid-snooze-schedule-scheduleid", + "name": "get-agent-builder-tools-toolid", "parameters": [ { "role": "flag", - "name": "rule-id", - "type": "string", - "required": true, - "summary": "The identifier for the rule." - }, - { - "role": "flag", - "name": "schedule-id", + "name": "tool-id", "type": "string", "required": true, - "summary": "The identifier for the snooze schedule." + "summary": "The unique identifier of the tool to retrieve." }, { "role": "flag", @@ -67398,18 +67121,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a snooze schedule for a rule", + "summary": "Get a tool by id", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -67419,98 +67135,44 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "get-alerting-rules-find", + "name": "put-agent-builder-tools-toolid", "parameters": [ { "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of rules to return per page." - }, - { - "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number to return." - }, - { - "role": "flag", - "name": "search", + "name": "tool-id", "type": "string", - "required": false, - "summary": "An Elasticsearch simple_query_string query that filters the objects in the response." - }, - { - "role": "flag", - "name": "default-search-operator", - "type": "enum", - "required": false, - "summary": "The default operator to use for the simple_query_string.", - "enumValues": [ - "OR", - "AND" - ] - }, - { - "role": "flag", - "name": "search-fields", - "type": "array", - "required": false, - "summary": "The fields to perform the simple_query_string parsed query against.", - "repeatable": true, - "elementType": "string" + "required": true, + "summary": "The unique identifier of the tool to update." }, { "role": "flag", - "name": "sort-field", + "name": "configuration", "type": "string", "required": false, - "summary": "Determines which field is used to sort the results. The field must exist in the `attributes` key of the response." - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", - "required": false, - "summary": "Determines the sort order.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "Updated tool-specific configuration parameters. See examples for details." }, { "role": "flag", - "name": "has-reference", + "name": "confirmation", "type": "string", "required": false, - "summary": "Filters the rules that have a relation with the reference objects with a specific type and identifier." - }, - { - "role": "flag", - "name": "fields", - "type": "array", - "required": false, - "summary": "The fields to return in the `attributes` key of the response.", - "repeatable": true, - "elementType": "string" + "summary": "Updated tool call policy to control tool call confirmation behavior" }, { "role": "flag", - "name": "filter", + "name": "description", "type": "string", "required": false, - "summary": "A KQL string that you filter with an attribute from your saved object. It should look like `savedObjectType.attributes.title: \"myTitle\"`. However, if you used a direct attribute of a saved object, such as `updatedAt`, you must define your filter, for example, `savedObjectType.updatedAt > 2018-12-22`." + "summary": "Updated description of what the tool does." }, { "role": "flag", - "name": "filter-consumers", + "name": "tags", "type": "array", "required": false, - "summary": "Filters the returned rules by the consumer (Kibana application) that owns them, for example: `siem`, `apm`, `infrastructure`.", + "summary": "Updated tags for categorizing and organizing tools.", "repeatable": true, "elementType": "string" }, @@ -67536,7 +67198,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get information about rules", + "summary": "Update a tool", "intent": { "destructive": false, "idempotent": true, @@ -67548,77 +67210,30 @@ "path": [ "stack", "kb", - "alerting" + "agent-builder" ], - "name": "post-alerting-rules-backfill-find", + "name": "post-chat-message", "parameters": [ { "role": "flag", - "name": "end", + "name": "agent-id", "type": "string", "required": false, - "summary": "The end date for filtering backfills." - }, - { - "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number to return." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of backfills to return per page." + "summary": "The ID of the agent to send the message to. Defaults to the default Elastic AI agent." }, { "role": "flag", - "name": "rule-ids", + "name": "conversation-id", "type": "string", "required": false, - "summary": "A comma-separated list of rule identifiers." - }, - { - "role": "flag", - "name": "initiator", - "type": "enum", - "required": false, - "summary": "The initiator of the backfill, either `user` for manual backfills or `system` for automatic gap fills.", - "enumValues": [ - "user", - "system" - ] + "summary": "The ID of an existing conversation to continue. Omit it to start a new conversation; the response carries the ID to reuse on the next call." }, { "role": "flag", - "name": "start", + "name": "message", "type": "string", - "required": false, - "summary": "The start date for filtering backfills." - }, - { - "role": "flag", - "name": "sort-field", - "type": "enum", - "required": false, - "summary": "The field to sort backfills by.", - "enumValues": [ - "createdAt", - "start" - ] - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", - "required": false, - "summary": "The sort order.", - "enumValues": [ - "asc", - "desc" - ] + "required": true, + "summary": "The user message to send to the agent." }, { "role": "flag", @@ -67642,8 +67257,39 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find backfills for rules", + "summary": "Send a message and get the answer", + "intent": { + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana agent-builder API commands" + }, + { + "segment": "alerting", + "commands": [ + { + "path": [ + "stack", + "kb", + "alerting" + ], + "name": "get-alerting-health", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get the alerting framework health", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -67653,7 +67299,7 @@ "kb", "alerting" ], - "name": "post-alerting-rules-backfill-schedule", + "name": "get-rule-types", "parameters": [ { "role": "dryRun", @@ -67663,8 +67309,11 @@ "summary": "validate all inputs and exit without performing any action" } ], - "summary": "Schedule a backfill for rules", + "summary": "Get the rule types", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -67674,14 +67323,14 @@ "kb", "alerting" ], - "name": "delete-alerting-rules-backfill-id", + "name": "delete-alerting-rule-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the backfill." + "summary": "The identifier for the rule." }, { "role": "flag", @@ -67712,7 +67361,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a backfill by ID", + "summary": "Delete a rule", "intent": { "destructive": true, "idempotent": true, @@ -67726,14 +67375,14 @@ "kb", "alerting" ], - "name": "get-alerting-rules-backfill-id", + "name": "get-alerting-rule-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the backfill." + "summary": "The identifier for the rule." }, { "role": "flag", @@ -67757,160 +67406,131 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a backfill by ID", + "summary": "Get rule details", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana alerting API commands" - }, - { - "segment": "alerting-v2", - "commands": [ + }, { "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "get-alerting-v2-action-policies", + "name": "post-alerting-rule-id", "parameters": [ { "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number to return. Defaults to 1." + "name": "id", + "type": "string", + "required": true, + "summary": "The identifier for the rule. If it is omitted, an ID is randomly generated." }, { "role": "flag", - "name": "per-page", - "type": "number", + "name": "actions", + "type": "array", "required": false, - "summary": "The number of action policies to return per page. Defaults to 20." + "repeatable": true }, { "role": "flag", - "name": "filter", + "name": "alert-delay", "type": "string", "required": false, - "summary": "A KQL filter to apply to the action policies. Supported fields: id, name, description, enabled. Cannot be empty. Omit it to list every action policy." + "summary": "Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions." }, { "role": "flag", - "name": "search", + "name": "artifacts", "type": "string", - "required": false, - "summary": "A text string to search across action policy fields." + "required": false }, { "role": "flag", - "name": "sort-field", - "type": "enum", - "required": false, - "summary": "The field to sort action policies by.", - "enumValues": [ - "name", - "created_at", - "updated_at" - ] + "name": "consumer", + "type": "string", + "required": true, + "summary": "The name of the application or feature that owns the rule. For example: `alerts`, `apm`, `discover`, `infrastructure`, `logs`, `metrics`, `ml`, `monitoring`, `securitySolution`, `siem`, `stackAlerts`, or `uptime`." }, { "role": "flag", - "name": "sort-order", - "type": "enum", + "name": "enabled", + "type": "boolean", "required": false, - "summary": "The sort direction.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "Indicates whether you want the rule to run on an interval basis after it is created." }, { "role": "flag", - "name": "input-file", + "name": "flapping", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" + "required": false }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the rule. While this name does not have to be unique, a distinctive name can help you identify a rule." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "notify-when", + "type": "enum", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "List action policies", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting-v2" - ], - "name": "post-alerting-v2-action-policies", - "parameters": [ + "summary": "Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.", + "enumValues": [ + "onActionGroupChange", + "onActiveAlert", + "onThrottleInterval" + ] + }, { "role": "flag", - "name": "description", + "name": "params", "type": "string", "required": false, - "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." + "summary": "The parameters for the rule." }, { "role": "flag", - "name": "destinations", - "type": "array", + "name": "rule-type-id", + "type": "string", "required": true, - "summary": "The list of destinations. At least one is required. Each one can appear at most once.", - "repeatable": true + "summary": "The rule type identifier." }, { "role": "flag", - "name": "grouping", + "name": "schedule", "type": "string", - "required": false, - "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." + "required": true, + "summary": "The check interval, which specifies how frequently the rule conditions are checked." }, { "role": "flag", - "name": "matcher", - "type": "string", + "name": "tags", + "type": "array", "required": false, - "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. At least one of `tags` and `expression` must be set, so an empty `matcher` is rejected. Omit `matcher` entirely for a catch-all policy that applies to all alerts." + "summary": "The tags for the rule.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "name", + "name": "template-id", "type": "string", - "required": true, - "summary": "The name of the action policy." + "required": false, + "summary": "The identifier for the rule template this rule was created from, when known." }, { "role": "flag", "name": "throttle", "type": "string", "required": false, - "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." + "summary": "Use the `throttle` property in the action `frequency` object instead. The throttle interval, which defines how frequently rule actions are triggered. You cannot specify the throttle interval at both the rule and action level. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values." }, { "role": "flag", @@ -67934,7 +67554,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create an action policy", + "summary": "Create a rule", "intent": { "requiresAuth": true } @@ -67943,19 +67563,90 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-delete", + "name": "put-alerting-rule-id", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "summary": "The identifier for the rule." + }, + { + "role": "flag", + "name": "actions", + "type": "array", + "required": false, + "repeatable": true + }, + { + "role": "flag", + "name": "alert-delay", + "type": "string", + "required": false, + "summary": "Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions." + }, + { + "role": "flag", + "name": "artifacts", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "flapping", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the rule. While this name does not have to be unique, a distinctive name can help you identify a rule." + }, + { + "role": "flag", + "name": "notify-when", + "type": "enum", + "required": false, + "summary": "Indicates how frequently rule actions are triggered. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. You cannot specify `notify_when` at both the rule and action level. The recommended approach is to set it for each action individually. If you set `notify_when` at the rule level and then edit the rule, it will automatically be converted to action-specific values.", + "enumValues": [ + "onActionGroupChange", + "onActiveAlert", + "onThrottleInterval" + ] + }, + { + "role": "flag", + "name": "params", + "type": "string", + "required": false, + "summary": "The parameters for the rule." + }, + { + "role": "flag", + "name": "schedule", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, "repeatable": true, "elementType": "string" }, + { + "role": "flag", + "name": "throttle", + "type": "string", + "required": false, + "summary": "Use the `throttle` property in the action `frequency` object instead. The throttle interval, which defines how frequently rule actions are triggered. You cannot specify the throttle interval at both the rule and action level. If you set the throttle interval at the rule level and then edit the rule, it will automatically be converted to action-specific values." + }, { "role": "flag", "name": "input-file", @@ -67978,8 +67669,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete action policies in bulk by ID", + "summary": "Update a rule", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -67987,18 +67681,22 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-disable", + "name": "post-alerting-rule-id-disable", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "The identifier for the rule." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false }, { "role": "flag", @@ -68022,7 +67720,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable action policies in bulk by ID", + "summary": "Disable a rule", "intent": { "requiresAuth": true } @@ -68031,18 +67729,16 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-enable", + "name": "post-alerting-rule-id-enable", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "The identifier for the rule." }, { "role": "flag", @@ -68066,7 +67762,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable action policies in bulk by ID", + "summary": "Enable a rule", "intent": { "requiresAuth": true } @@ -68075,25 +67771,16 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-snooze", + "name": "post-alerting-rule-id-mute-all", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", - "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "snoozed-until", + "name": "id", "type": "string", "required": true, - "summary": "The ISO datetime until which the targeted action policies should be snoozed. Must be in the future. A past or current instant is rejected with 400." + "summary": "The identifier for the rule." }, { "role": "flag", @@ -68117,7 +67804,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Snooze action policies in bulk by ID", + "summary": "Mute all alerts", "intent": { "requiresAuth": true } @@ -68126,18 +67813,16 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-unsnooze", + "name": "post-alerting-rule-id-unmute-all", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "The identifier for the rule." }, { "role": "flag", @@ -68161,7 +67846,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Cancel snooze for action policies in bulk by ID", + "summary": "Unmute all alerts", "intent": { "requiresAuth": true } @@ -68170,18 +67855,16 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-bulk-update-api-key", + "name": "post-alerting-rule-id-update-api-key", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "The identifier for the rule." }, { "role": "flag", @@ -68205,7 +67888,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Rotate API keys for action policies in bulk by ID", + "summary": "Update the API key for a rule", "intent": { "requiresAuth": true } @@ -68214,16 +67897,34 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "delete-alerting-v2-action-policies-id", + "name": "get-alerting-rule-id-query-inspector", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "The identifier for the rule." + }, + { + "role": "flag", + "name": "mode", + "type": "enum", + "required": false, + "summary": "The inspection mode. Use \"build\" to return only the query, or \"execute\" to run the query and include the response.", + "enumValues": [ + "build", + "execute" + ] + }, + { + "role": "flag", + "name": "alert-id", + "type": "string", + "required": false, + "summary": "The alert document ID. When provided, the query inspector uses the evaluation time range from the alert instead of the current time." }, { "role": "flag", @@ -68245,18 +67946,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete an action policy", + "summary": "Get the Elasticsearch query for a rule", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -68266,16 +67960,22 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "get-alerting-v2-action-policies-id", + "name": "post-alerting-rule-id-snooze-schedule", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Identifier of the rule." + }, + { + "role": "flag", + "name": "schedule", + "type": "string", + "required": true }, { "role": "flag", @@ -68299,11 +67999,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get an action policy", + "summary": "Schedule a snooze for the rule", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -68311,59 +68008,30 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "patch-alerting-v2-action-policies-id", + "name": "post-alerting-rule-rule-id-alert-alert-id-mute", "parameters": [ { "role": "flag", - "name": "id", + "name": "rule-id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." - }, - { - "role": "flag", - "name": "description", - "type": "string", - "required": false, - "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." - }, - { - "role": "flag", - "name": "destinations", - "type": "array", - "required": false, - "summary": "The list of destinations. At least one is required. Each one can appear at most once.", - "repeatable": true - }, - { - "role": "flag", - "name": "grouping", - "type": "string", - "required": false, - "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." - }, - { - "role": "flag", - "name": "matcher", - "type": "string", - "required": false, - "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. Omit `matcher` to keep the stored matcher, or set it to `null` for a catch-all policy that applies to all alerts. An empty `matcher` names no leaf and so changes nothing; clearing the last of `tags` and `expression` clears the matcher itself, which is also a catch-all." + "summary": "The identifier for the rule." }, { "role": "flag", - "name": "name", + "name": "alert-id", "type": "string", - "required": false, - "summary": "The name of the action policy." + "required": true, + "summary": "The identifier for the alert." }, { "role": "flag", - "name": "throttle", - "type": "string", + "name": "validate-alerts-existence", + "type": "boolean", "required": false, - "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." + "summary": "Whether to validate the existence of the alert." }, { "role": "flag", @@ -68387,7 +68055,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Partially update an action policy.", + "summary": "Mute an alert", "intent": { "requiresAuth": true } @@ -68396,59 +68064,56 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "put-alerting-v2-action-policies-id", + "name": "post-alerting-rule-rule-id-alert-alert-id-snooze", "parameters": [ { "role": "flag", - "name": "id", + "name": "rule-id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "The identifier for the rule." }, { "role": "flag", - "name": "description", + "name": "alert-id", "type": "string", - "required": false, - "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." - }, - { - "role": "flag", - "name": "destinations", - "type": "array", "required": true, - "summary": "The list of destinations. At least one is required. Each one can appear at most once.", - "repeatable": true + "summary": "The identifier for the alert." }, { "role": "flag", - "name": "grouping", - "type": "string", + "name": "validate-alerts-existence", + "type": "boolean", "required": false, - "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." + "summary": "Set to `true` to validate that the specified alert exists. If a `400` error is returned, the specified alert does not exist. Defaults to `true`." }, { "role": "flag", - "name": "matcher", - "type": "string", + "name": "condition-operator", + "type": "enum", "required": false, - "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. At least one of `tags` and `expression` must be set, so an empty `matcher` is rejected. Omit `matcher` entirely for a catch-all policy that applies to all alerts." + "summary": "Logical operator applied to the conditions array. \"any\" expires the snooze when at least one condition is met; \"all\" requires every condition to be met. When conditions are provided but this field is omitted, defaults to \"any\".", + "enumValues": [ + "any", + "all" + ] }, { "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "The name of the action policy." + "name": "conditions", + "type": "array", + "required": false, + "summary": "One or more conditions that, when met, automatically expire the snooze. Supported types: `field_change`, `severity_change`, `severity_equals`.", + "repeatable": true }, { "role": "flag", - "name": "throttle", + "name": "expires-at", "type": "string", "required": false, - "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." + "summary": "The datetime at which the snooze expires, in ISO 8601 format (`YYYY-MM-DDTHH:mm:ss.sssZ`). When omitted, the snooze persists indefinitely unless manually removed or a defined condition is met." }, { "role": "flag", @@ -68472,11 +68137,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or replace an action policy", + "summary": "Snooze an alert", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -68484,16 +68146,23 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-id-disable", + "name": "post-alerting-rule-rule-id-alert-alert-id-unmute", "parameters": [ { "role": "flag", - "name": "id", + "name": "rule-id", + "type": "string", + "required": true, + "summary": "The identifier for the rule." + }, + { + "role": "flag", + "name": "alert-id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "The identifier for the alert." }, { "role": "flag", @@ -68517,7 +68186,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable an action policy", + "summary": "Unmute an alert", "intent": { "requiresAuth": true } @@ -68526,16 +68195,23 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-id-enable", + "name": "post-alerting-rule-rule-id-alert-alert-id-unsnooze", "parameters": [ { "role": "flag", - "name": "id", + "name": "rule-id", + "type": "string", + "required": true, + "summary": "The identifier for the rule." + }, + { + "role": "flag", + "name": "alert-id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "The identifier for the alert." }, { "role": "flag", @@ -68559,7 +68235,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable an action policy", + "summary": "Unsnooze an alert", "intent": { "requiresAuth": true } @@ -68568,23 +68244,23 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-id-snooze", + "name": "delete-alerting-rule-ruleid-snooze-schedule-scheduleid", "parameters": [ { "role": "flag", - "name": "id", + "name": "rule-id", "type": "string", "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "The identifier for the rule." }, { "role": "flag", - "name": "snoozed-until", + "name": "schedule-id", "type": "string", "required": true, - "summary": "The ISO datetime until which the action policy should be snoozed. Must be in the future. A past or current instant is rejected with 400." + "summary": "The identifier for the snooze schedule." }, { "role": "flag", @@ -68606,10 +68282,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Snooze an action policy", + "summary": "Delete a snooze schedule for a rule", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -68617,101 +68303,100 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-action-policies-id-unsnooze", + "name": "get-alerting-rules-find", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of rules to return per page." }, { "role": "flag", - "name": "input-file", + "name": "page", + "type": "number", + "required": false, + "summary": "The page number to return." + }, + { + "role": "flag", + "name": "search", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "An Elasticsearch simple_query_string query that filters the objects in the response." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "default-search-operator", + "type": "enum", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The default operator to use for the simple_query_string.", + "enumValues": [ + "OR", + "AND" + ] }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "search-fields", + "type": "array", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Unsnooze an action policy", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting-v2" - ], - "name": "post-alerting-v2-action-policies-id-update-api-key", - "parameters": [ + "summary": "The fields to perform the simple_query_string parsed query against.", + "repeatable": true, + "elementType": "string" + }, { "role": "flag", - "name": "id", + "name": "sort-field", "type": "string", - "required": true, - "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "required": false, + "summary": "Determines which field is used to sort the results. The field must exist in the `attributes` key of the response." }, { "role": "flag", - "name": "input-file", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "Determines the sort order.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "has-reference", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Filters the rules that have a relation with the reference objects with a specific type and identifier." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "fields", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The fields to return in the `attributes` key of the response.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "filter", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Update an action policy API key", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting-v2" - ], - "name": "post-alerting-v2-alerts-bulk-ack", - "parameters": [ + "summary": "A KQL string that you filter with an attribute from your saved object. It should look like `savedObjectType.attributes.title: \"myTitle\"`. However, if you used a direct attribute of a saved object, such as `updatedAt`, you must define your filter, for example, `savedObjectType.updatedAt > 2018-12-22`." + }, { "role": "flag", - "name": "items", + "name": "filter-consumers", "type": "array", - "required": true, - "summary": "List of 1 to 100 ack actions to create, each for a different `alert_id`.", - "repeatable": true + "required": false, + "summary": "Filters the returned rules by the consumer (Kibana application) that owns them, for example: `siem`, `apm`, `infrastructure`.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -68735,8 +68420,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk acknowledge alerts", + "summary": "Get information about rules", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -68744,29 +68432,89 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-alerts-bulk-activate", + "name": "post-alerting-rules-backfill-find", "parameters": [ { "role": "flag", - "name": "items", - "type": "array", - "required": true, - "summary": "List of 1 to 100 activate actions to create, each for a different `alert_id`.", - "repeatable": true + "name": "end", + "type": "string", + "required": false, + "summary": "The end date for filtering backfills." }, { "role": "flag", - "name": "input-file", - "type": "string", + "name": "page", + "type": "number", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The page number to return." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of backfills to return per page." + }, + { + "role": "flag", + "name": "rule-ids", + "type": "string", + "required": false, + "summary": "A comma-separated list of rule identifiers." + }, + { + "role": "flag", + "name": "initiator", + "type": "enum", + "required": false, + "summary": "The initiator of the backfill, either `user` for manual backfills or `system` for automatic gap fills.", + "enumValues": [ + "user", + "system" + ] + }, + { + "role": "flag", + "name": "start", + "type": "string", + "required": false, + "summary": "The start date for filtering backfills." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", + "required": false, + "summary": "The field to sort backfills by.", + "enumValues": [ + "createdAt", + "start" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "The sort order.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" }, @@ -68778,7 +68526,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk activate alerts", + "summary": "Find backfills for rules", "intent": { "requiresAuth": true } @@ -68787,17 +68535,37 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-alerts-bulk-assign", + "name": "post-alerting-rules-backfill-schedule", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Schedule a backfill for rules", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting" + ], + "name": "delete-alerting-rules-backfill-id", "parameters": [ { "role": "flag", - "name": "items", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "List of 1 to 100 assign actions to create, each for a different `alert_id`.", - "repeatable": true + "summary": "The identifier for the backfill." }, { "role": "flag", @@ -68819,10 +68587,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Bulk assign alerts", + "summary": "Delete a backfill by ID", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -68830,17 +68608,16 @@ "path": [ "stack", "kb", - "alerting-v2" + "alerting" ], - "name": "post-alerting-v2-alerts-bulk-deactivate", + "name": "get-alerting-rules-backfill-id", "parameters": [ { "role": "flag", - "name": "items", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "List of 1 to 100 deactivate actions to create, each for a different `alert_id`.", - "repeatable": true + "summary": "The identifier for the backfill." }, { "role": "flag", @@ -68864,26 +68641,79 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk deactivate alerts", + "summary": "Get a backfill by ID", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana alerting API commands" + }, + { + "segment": "alerting-v2", + "commands": [ { "path": [ "stack", "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-bulk-tag", + "name": "get-alerting-v2-action-policies", "parameters": [ { "role": "flag", - "name": "items", - "type": "array", - "required": true, - "summary": "List of 1 to 100 tag actions to create, each for a different `alert_id`.", - "repeatable": true + "name": "page", + "type": "number", + "required": false, + "summary": "The page number to return. Defaults to 1." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of action policies to return per page. Defaults to 20." + }, + { + "role": "flag", + "name": "filter", + "type": "string", + "required": false, + "summary": "A KQL filter to apply to the action policies. Supported fields: id, name, description, enabled. Cannot be empty. Omit it to list every action policy." + }, + { + "role": "flag", + "name": "search", + "type": "string", + "required": false, + "summary": "A text string to search across action policy fields." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", + "required": false, + "summary": "The field to sort action policies by.", + "enumValues": [ + "name", + "created_at", + "updated_at" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "The sort direction.", + "enumValues": [ + "asc", + "desc" + ] }, { "role": "flag", @@ -68907,8 +68737,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk tag alerts", + "summary": "List action policies", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -68918,16 +68751,65 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-bulk-unack", + "name": "post-alerting-v2-action-policies", "parameters": [ { "role": "flag", - "name": "items", + "name": "description", + "type": "string", + "required": false, + "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." + }, + { + "role": "flag", + "name": "destinations", "type": "array", "required": true, - "summary": "List of 1 to 100 unack actions to create, each for a different `alert_id`.", + "summary": "The list of destinations. At least one is required. Each one can appear at most once.", "repeatable": true }, + { + "role": "flag", + "name": "enabled", + "type": "boolean", + "required": false, + "summary": "Whether the action policy is enabled. Defaults to `true` when omitted. A disabled policy is saved but is not applied to alerts until you enable it." + }, + { + "role": "flag", + "name": "grouping", + "type": "string", + "required": false, + "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": false, + "summary": "The action policy ID. If omitted, Kibana generates one. If a policy with this ID already exists, the request returns a 409 error. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." + }, + { + "role": "flag", + "name": "matcher", + "type": "string", + "required": false, + "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. At least one of `tags` and `expression` must be set, so an empty `matcher` is rejected. Omit `matcher` entirely for a catch-all policy that applies to all alerts." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the action policy." + }, + { + "role": "flag", + "name": "throttle", + "type": "string", + "required": false, + "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." + }, { "role": "flag", "name": "input-file", @@ -68950,7 +68832,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk unacknowledge alerts", + "summary": "Create an action policy", "intent": { "requiresAuth": true } @@ -68961,14 +68843,16 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-ack", + "name": "post-alerting-v2-action-policies-bulk-delete", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", + "name": "ids", + "type": "array", "required": true, - "summary": "Identifier of the alert to apply the action to." + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -68992,7 +68876,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Acknowledge an alert", + "summary": "Delete action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69003,21 +68887,16 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-activate", + "name": "post-alerting-v2-action-policies-bulk-disable", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "Identifier of the alert to apply the action to." - }, - { - "role": "flag", - "name": "reason", - "type": "string", + "name": "ids", + "type": "array", "required": true, - "summary": "Reason for activating the alert." + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -69041,7 +68920,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Activate an alert", + "summary": "Disable action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69052,21 +68931,16 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-assign", + "name": "post-alerting-v2-action-policies-bulk-enable", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "Identifier of the alert to apply the action to." - }, - { - "role": "flag", - "name": "assignee-uid", - "type": "string", + "name": "ids", + "type": "array", "required": true, - "summary": "User profile UID of the assignee, or null to remove the assignee from the alert." + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -69090,7 +68964,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Assign an alert to a user", + "summary": "Enable action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69101,21 +68975,23 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-deactivate", + "name": "post-alerting-v2-action-policies-bulk-snooze", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", + "name": "ids", + "type": "array", "required": true, - "summary": "Identifier of the alert to apply the action to." + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "reason", + "name": "snoozed-until", "type": "string", "required": true, - "summary": "Reason for deactivating the alert." + "summary": "The ISO datetime until which the targeted action policies should be snoozed. Must be in the future. A past or current instant is rejected with 400." }, { "role": "flag", @@ -69139,7 +69015,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Deactivate an alert", + "summary": "Snooze action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69150,21 +69026,14 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-tag", + "name": "post-alerting-v2-action-policies-bulk-unsnooze", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "Identifier of the alert to apply the action to." - }, - { - "role": "flag", - "name": "tags", + "name": "ids", "type": "array", "required": true, - "summary": "Replaces the alert's tags. Send `null` to clear them. An empty array is rejected.", + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", "repeatable": true, "elementType": "string" }, @@ -69190,7 +69059,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Tag an alert", + "summary": "Cancel snooze for action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69201,14 +69070,16 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-alerts-id-unack", + "name": "post-alerting-v2-action-policies-bulk-update-api-key", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", + "name": "ids", + "type": "array", "required": true, - "summary": "Identifier of the alert to apply the action to." + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -69232,7 +69103,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Unacknowledge an alert", + "summary": "Rotate API keys for action policies in bulk by ID", "intent": { "requiresAuth": true } @@ -69243,89 +69114,66 @@ "kb", "alerting-v2" ], - "name": "get-alerting-v2-execution-history-action-policies", + "name": "delete-alerting-v2-action-policies-id", "parameters": [ { "role": "flag", - "name": "page", - "type": "number", - "required": true, - "summary": "Page number (1-indexed). Defaults to 1." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": true, - "summary": "Number of events per page. Defaults to 20." - }, - { - "role": "flag", - "name": "from", + "name": "id", "type": "string", - "required": false, - "summary": "Inclusive ISO datetime lower bound on the event timestamp. Defaults to 24 hours before `to`, or before the request when `to` is omitted. Independent of alert_ids — e.g. set it to an alert’s start time to scope results to that alert’s lifetime." + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", - "name": "to", + "name": "input-file", "type": "string", "required": false, - "summary": "Inclusive ISO datetime upper bound on the event timestamp." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "alert-ids", - "type": "array", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "Alert filter. Narrows events to those referencing at least one of the provided alert IDs.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "sort-field", - "type": "enum", - "required": true, - "summary": "Sort field. Defaults to \"dispatched_at\".", - "enumValues": [ - "dispatched_at" - ] - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", - "required": true, - "summary": "Sort direction. Defaults to \"desc\".", - "enumValues": [ - "asc", - "desc" - ] + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "search", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "Free-text search. Matches policy name, rule name, policy/rule ID (case-insensitive)." + "summary": "skip input validation and send the request as-is" }, { "role": "flag", - "name": "rule-ids", - "type": "array", + "name": "yes", + "type": "boolean", "required": false, - "summary": "Explicit rule filter. Narrows events to those referencing at least one of the provided rule IDs. Also unions with the search filter if both are provided.", - "repeatable": true, - "elementType": "string" - }, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete an action policy", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting-v2" + ], + "name": "get-alerting-v2-action-policies-id", + "parameters": [ { "role": "flag", - "name": "outcomes", - "type": "array", - "required": false, - "summary": "Outcome filter. When omitted matches all outcomes. Pass one or more of \"success\", \"throttled\", \"failure\" to narrow.", - "repeatable": true + "name": "id", + "type": "string", + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", @@ -69349,7 +69197,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List action policy executions", + "summary": "Get an action policy", "intent": { "destructive": false, "idempotent": true, @@ -69363,81 +69211,57 @@ "kb", "alerting-v2" ], - "name": "get-alerting-v2-execution-history-rules", + "name": "patch-alerting-v2-action-policies-id", "parameters": [ { "role": "flag", - "name": "rule-ids", - "type": "array", - "required": false, - "summary": "Rule id filter. ", - "repeatable": true, - "elementType": "string" + "name": "id", + "type": "string", + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", - "name": "search", + "name": "description", "type": "string", "required": false, - "summary": "Free-text search. Matches rule name, description or rule ID (case-insensitive). Combined with rule_ids using AND." + "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." }, { "role": "flag", - "name": "outcomes", + "name": "destinations", "type": "array", "required": false, - "summary": "Outcome filter. ", + "summary": "The list of destinations. At least one is required. Each one can appear at most once.", "repeatable": true }, { "role": "flag", - "name": "from", + "name": "grouping", "type": "string", "required": false, - "summary": "Inclusive ISO datetime lower bound on event.start. Defaults to 24 hours before `to`, or before the request when `to` is omitted. Set it to see older executions." + "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." }, { "role": "flag", - "name": "to", + "name": "matcher", "type": "string", "required": false, - "summary": "Inclusive ISO datetime upper bound on event.start." - }, - { - "role": "flag", - "name": "sort-field", - "type": "enum", - "required": true, - "summary": "Sort field. Defaults to started_at.", - "enumValues": [ - "started_at", - "duration_ms" - ] - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", - "required": true, - "summary": "Sort direction.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. Omit `matcher` to keep the stored matcher, or set it to `null` for a catch-all policy that applies to all alerts. An empty `matcher` names no leaf and so changes nothing; clearing the last of `tags` and `expression` clears the matcher itself, which is also a catch-all." }, { "role": "flag", - "name": "page", - "type": "number", - "required": true, - "summary": "Page number." + "name": "name", + "type": "string", + "required": false, + "summary": "The name of the action policy." }, { "role": "flag", - "name": "per-page", - "type": "number", - "required": true, - "summary": "Number of results per page." + "name": "throttle", + "type": "string", + "required": false, + "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." }, { "role": "flag", @@ -69461,11 +69285,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List rule executions", + "summary": "Partially update an action policy.", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -69475,58 +69296,64 @@ "kb", "alerting-v2" ], - "name": "get-alerting-v2-rules", + "name": "put-alerting-v2-action-policies-id", "parameters": [ { "role": "flag", - "name": "page", - "type": "number", + "name": "id", + "type": "string", + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." + }, + { + "role": "flag", + "name": "description", + "type": "string", "required": false, - "summary": "The page number to return. Defaults to 1. `page * per_page` cannot exceed 10000." + "summary": "A description of the action policy. Absent when the policy has none; send `null` on PATCH to clear it." }, { "role": "flag", - "name": "per-page", - "type": "number", + "name": "destinations", + "type": "array", + "required": true, + "summary": "The list of destinations. At least one is required. Each one can appear at most once.", + "repeatable": true + }, + { + "role": "flag", + "name": "enabled", + "type": "boolean", "required": false, - "summary": "The number of rules to return per page. Defaults to 20." + "summary": "Whether the action policy is enabled. Unlike the other fields in this body, omitting it does not clear it. When the request creates the policy it defaults to `true`. When the request replaces an existing policy, omitting it keeps the current state and supplying it enables or disables the policy, the same as `_enable` or `_disable`. A disabled policy is saved but is not applied to alerts until you enable it." }, { "role": "flag", - "name": "filter", + "name": "grouping", "type": "string", "required": false, - "summary": "A KQL filter to apply to the rules. Supported fields: id, kind, enabled, metadata.name, metadata.description, metadata.tags, metadata.routing_tags. Cannot be empty. Omit it to list every rule." + "summary": "How matched alerts are batched into notifications. Absent falls back to `per_alert`; send `null` on PATCH to clear it. The mode decides the rest of the block, so a PATCH replaces it whole: send the complete mode variant rather than a single field." }, { "role": "flag", - "name": "sort-field", - "type": "enum", + "name": "matcher", + "type": "string", "required": false, - "summary": "The field to sort rules by.", - "enumValues": [ - "kind", - "enabled", - "name" - ] + "summary": "Selects the alerts this policy applies to. Set `tags` to match alerts from rules with those routing tags. Set `expression` to a KQL query, which will be evaluated against each alert.

If you set both `tags` and `expression`, an alert must match the tags and the expression for the policy to apply. At least one of `tags` and `expression` must be set, so an empty `matcher` is rejected. Omit `matcher` entirely for a catch-all policy that applies to all alerts." }, { "role": "flag", - "name": "sort-order", - "type": "enum", - "required": false, - "summary": "The direction to sort rules.", - "enumValues": [ - "asc", - "desc" - ] + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the action policy." }, { "role": "flag", - "name": "search", + "name": "throttle", "type": "string", "required": false, - "summary": "A text string to search across rule fields." + "summary": "The throttle configuration for notifications. Absent when notifications are not throttled; send `null` on PATCH to clear it. The strategy decides the rest of the block, so a PATCH replaces it whole: send the complete strategy variant rather than a single field." }, { "role": "flag", @@ -69550,7 +69377,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "List rules", + "summary": "Create or replace an action policy", "intent": { "destructive": false, "idempotent": true, @@ -69564,81 +69391,105 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules", + "name": "post-alerting-v2-action-policies-id-disable", "parameters": [ { "role": "flag", - "name": "artifacts", - "type": "array", - "required": false, - "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", - "repeatable": true - }, - { - "role": "flag", - "name": "grouping", + "name": "id", "type": "string", - "required": false + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", - "name": "id", + "name": "input-file", "type": "string", "required": false, - "summary": "Optional rule ID. If omitted, Kibana generates one. If a rule with this ID already exists, the request fails with HTTP 409 and the existing rule is not changed. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "kind", - "type": "enum", - "required": true, - "summary": "Whether the rule creates alerts (`alert`) or only stores matching events (`signal`).", - "enumValues": [ - "alert" - ] + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "metadata", - "type": "string", - "required": true - }, + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Disable an action policy", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting-v2" + ], + "name": "post-alerting-v2-action-policies-id-enable", + "parameters": [ { "role": "flag", - "name": "no-data", + "name": "id", "type": "string", - "required": false + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", - "name": "query", + "name": "input-file", "type": "string", - "required": true + "required": false, + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "recovery", - "type": "string", - "required": false + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "schedule", - "type": "string", - "required": true - }, + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Enable an action policy", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting-v2" + ], + "name": "post-alerting-v2-action-policies-id-snooze", + "parameters": [ { "role": "flag", - "name": "state-transition", + "name": "id", "type": "string", - "required": false + "required": true, + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", - "name": "time-field", + "name": "snoozed-until", "type": "string", - "required": false, - "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." + "required": true, + "summary": "The ISO datetime until which the action policy should be snoozed. Must be in the future. A past or current instant is rejected with 400." }, { "role": "flag", @@ -69662,7 +69513,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a rule", + "summary": "Snooze an action policy", "intent": { "requiresAuth": true } @@ -69673,15 +69524,14 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-create", + "name": "post-alerting-v2-action-policies-id-unsnooze", "parameters": [ { "role": "flag", - "name": "items", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "The rules to create. Must contain between 1 and 100 rules.", - "repeatable": true + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", @@ -69705,7 +69555,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create rules in bulk", + "summary": "Unsnooze an action policy", "intent": { "requiresAuth": true } @@ -69716,16 +69566,14 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-delete", + "name": "post-alerting-v2-action-policies-id-update-api-key", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "The ID of the action policy. Copy it from the response when you create a policy, fetch one policy, or fetch the policy list. You can't change it after creation. Avoid reusing a deleted policy's ID: the new policy inherits its execution history and throttling state. IDs appear in URLs and logs, so don't include sensitive data." }, { "role": "flag", @@ -69749,7 +69597,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete rules in bulk by ID", + "summary": "Update an action policy API key", "intent": { "requiresAuth": true } @@ -69760,16 +69608,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-disable", + "name": "post-alerting-v2-alerts-bulk-ack", "parameters": [ { "role": "flag", - "name": "ids", + "name": "items", "type": "array", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "List of 1 to 100 ack actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -69793,7 +69640,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable rules in bulk by ID", + "summary": "Bulk acknowledge alerts", "intent": { "requiresAuth": true } @@ -69804,16 +69651,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-enable", + "name": "post-alerting-v2-alerts-bulk-activate", "parameters": [ { "role": "flag", - "name": "ids", + "name": "items", "type": "array", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "List of 1 to 100 activate actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -69837,7 +69683,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable rules in bulk by ID", + "summary": "Bulk activate alerts", "intent": { "requiresAuth": true } @@ -69848,16 +69694,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-get", + "name": "post-alerting-v2-alerts-bulk-assign", "parameters": [ { "role": "flag", - "name": "ids", + "name": "items", "type": "array", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "List of 1 to 100 assign actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -69881,7 +69726,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get rules in bulk", + "summary": "Bulk assign alerts", "intent": { "requiresAuth": true } @@ -69892,16 +69737,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-bulk-update-api-key", + "name": "post-alerting-v2-alerts-bulk-deactivate", "parameters": [ { "role": "flag", - "name": "ids", + "name": "items", "type": "array", "required": true, - "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", - "repeatable": true, - "elementType": "string" + "summary": "List of 1 to 100 deactivate actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -69925,7 +69769,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update the API key of rules in bulk by ID", + "summary": "Bulk deactivate alerts", "intent": { "requiresAuth": true } @@ -69936,38 +69780,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-delete-by-query", + "name": "post-alerting-v2-alerts-bulk-tag", "parameters": [ { "role": "flag", - "name": "filter", - "type": "string", - "required": false, - "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." - }, - { - "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." - }, - { - "role": "flag", - "name": "match-all", - "type": "enum", - "required": false, - "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", - "enumValues": [ - "true" - ] - }, - { - "role": "flag", - "name": "search", - "type": "string", - "required": false, - "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." + "name": "items", + "type": "array", + "required": true, + "summary": "List of 1 to 100 tag actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -69991,7 +69812,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete rules matching a query (dry-run by default)", + "summary": "Bulk tag alerts", "intent": { "requiresAuth": true } @@ -70002,38 +69823,15 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-disable-by-query", + "name": "post-alerting-v2-alerts-bulk-unack", "parameters": [ { "role": "flag", - "name": "filter", - "type": "string", - "required": false, - "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." - }, - { - "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." - }, - { - "role": "flag", - "name": "match-all", - "type": "enum", - "required": false, - "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", - "enumValues": [ - "true" - ] - }, - { - "role": "flag", - "name": "search", - "type": "string", - "required": false, - "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." + "name": "items", + "type": "array", + "required": true, + "summary": "List of 1 to 100 unack actions to create, each for a different `alert_id`.", + "repeatable": true }, { "role": "flag", @@ -70057,7 +69855,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Disable rules matching a query (dry-run by default)", + "summary": "Bulk unacknowledge alerts", "intent": { "requiresAuth": true } @@ -70068,38 +69866,14 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-enable-by-query", + "name": "post-alerting-v2-alerts-id-ack", "parameters": [ { "role": "flag", - "name": "filter", - "type": "string", - "required": false, - "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." - }, - { - "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." - }, - { - "role": "flag", - "name": "match-all", - "type": "enum", - "required": false, - "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", - "enumValues": [ - "true" - ] - }, - { - "role": "flag", - "name": "search", + "name": "id", "type": "string", - "required": false, - "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." + "required": true, + "summary": "Identifier of the alert to apply the action to." }, { "role": "flag", @@ -70123,7 +69897,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable rules matching a query (dry-run by default)", + "summary": "Acknowledge an alert", "intent": { "requiresAuth": true } @@ -70134,38 +69908,21 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-update-api-key-by-query", + "name": "post-alerting-v2-alerts-id-activate", "parameters": [ { "role": "flag", - "name": "filter", + "name": "id", "type": "string", - "required": false, - "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." - }, - { - "role": "flag", - "name": "force", - "type": "boolean", - "required": false, - "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." - }, - { - "role": "flag", - "name": "match-all", - "type": "enum", - "required": false, - "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", - "enumValues": [ - "true" - ] + "required": true, + "summary": "Identifier of the alert to apply the action to." }, { "role": "flag", - "name": "search", + "name": "reason", "type": "string", - "required": false, - "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." + "required": true, + "summary": "Reason for activating the alert." }, { "role": "flag", @@ -70189,7 +69946,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update the API key of rules matching a query (dry-run by default)", + "summary": "Activate an alert", "intent": { "requiresAuth": true } @@ -70200,14 +69957,21 @@ "kb", "alerting-v2" ], - "name": "delete-alerting-v2-rules-id", + "name": "post-alerting-v2-alerts-id-assign", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Identifier of the alert to apply the action to." + }, + { + "role": "flag", + "name": "assignee-uid", + "type": "string", + "required": true, + "summary": "User profile UID of the assignee, or null to remove the assignee from the alert." }, { "role": "flag", @@ -70229,20 +69993,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a rule", + "summary": "Assign an alert to a user", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -70252,14 +70006,21 @@ "kb", "alerting-v2" ], - "name": "get-alerting-v2-rules-id", + "name": "post-alerting-v2-alerts-id-deactivate", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Identifier of the alert to apply the action to." + }, + { + "role": "flag", + "name": "reason", + "type": "string", + "required": true, + "summary": "Reason for deactivating the alert." }, { "role": "flag", @@ -70283,11 +70044,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a rule", + "summary": "Deactivate an alert", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -70297,75 +70055,65 @@ "kb", "alerting-v2" ], - "name": "patch-alerting-v2-rules-id", + "name": "post-alerting-v2-alerts-id-tag", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Identifier of the alert to apply the action to." }, { "role": "flag", - "name": "artifacts", + "name": "tags", "type": "array", - "required": false, - "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", - "repeatable": true - }, - { - "role": "flag", - "name": "grouping", - "type": "string", - "required": false, - "summary": "Grouping configuration." - }, - { - "role": "flag", - "name": "metadata", - "type": "string", - "required": false + "required": true, + "summary": "Replaces the alert's tags. Send `null` to clear them. An empty array is rejected.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "no-data", + "name": "input-file", "type": "string", "required": false, - "summary": "What the rule does when a group has no data. Required when `kind` is `alert`. Not allowed when `kind` is `signal`. Any strategy other than `ignore` requires either `query.breach` or `no_data.query`, so that a group with no data can be told apart from one that stopped breaching." - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "recovery", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "When an alert recovers. Required when `kind` is `alert`. Not allowed when `kind` is `signal`." - }, - { - "role": "flag", - "name": "schedule", - "type": "string", - "required": false + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "state-transition", - "type": "string", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "Specifies how many consecutive matches, or how long a condition must hold, before an alert becomes `active` or `inactive`. Allowed only when `kind` is `alert`." - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Tag an alert", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting-v2" + ], + "name": "post-alerting-v2-alerts-id-unack", + "parameters": [ { "role": "flag", - "name": "time-field", + "name": "id", "type": "string", - "required": false, - "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." + "required": true, + "summary": "Identifier of the alert to apply the action to." }, { "role": "flag", @@ -70389,7 +70137,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a rule", + "summary": "Unacknowledge an alert", "intent": { "requiresAuth": true } @@ -70400,88 +70148,89 @@ "kb", "alerting-v2" ], - "name": "put-alerting-v2-rules-id", + "name": "get-alerting-v2-execution-history-action-policies", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", + "name": "page", + "type": "number", "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Page number (1-indexed). Defaults to 1." }, { "role": "flag", - "name": "artifacts", - "type": "array", - "required": false, - "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", - "repeatable": true + "name": "per-page", + "type": "number", + "required": true, + "summary": "Number of events per page. Defaults to 20." }, { "role": "flag", - "name": "enabled", - "type": "boolean", - "required": false, - "summary": "Whether the rule is enabled. On create, defaults to `true` when omitted. On replace, omitting this field preserves the existing enabled state." - }, - { - "role": "flag", - "name": "grouping", + "name": "from", "type": "string", - "required": false - }, - { - "role": "flag", - "name": "kind", - "type": "enum", - "required": true, - "summary": "Whether the rule creates alerts (`alert`) or only stores matching events (`signal`).", - "enumValues": [ - "alert" - ] + "required": false, + "summary": "Inclusive ISO datetime lower bound on the event timestamp. Defaults to 24 hours before `to`, or before the request when `to` is omitted. Independent of alert_ids — e.g. set it to an alert’s start time to scope results to that alert’s lifetime." }, { "role": "flag", - "name": "metadata", + "name": "to", "type": "string", - "required": true + "required": false, + "summary": "Inclusive ISO datetime upper bound on the event timestamp." }, { "role": "flag", - "name": "no-data", - "type": "string", - "required": false + "name": "alert-ids", + "type": "array", + "required": false, + "summary": "Alert filter. Narrows events to those referencing at least one of the provided alert IDs.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "query", - "type": "string", - "required": true + "name": "sort-field", + "type": "enum", + "required": true, + "summary": "Sort field. Defaults to \"dispatched_at\".", + "enumValues": [ + "dispatched_at" + ] }, { "role": "flag", - "name": "recovery", - "type": "string", - "required": false + "name": "sort-order", + "type": "enum", + "required": true, + "summary": "Sort direction. Defaults to \"desc\".", + "enumValues": [ + "asc", + "desc" + ] }, { "role": "flag", - "name": "schedule", + "name": "search", "type": "string", - "required": true + "required": false, + "summary": "Free-text search. Matches policy name, rule name, policy/rule ID (case-insensitive)." }, { "role": "flag", - "name": "state-transition", - "type": "string", - "required": false + "name": "rule-ids", + "type": "array", + "required": false, + "summary": "Explicit rule filter. Narrows events to those referencing at least one of the provided rule IDs. Also unions with the search filter if both are provided.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "time-field", - "type": "string", + "name": "outcomes", + "type": "array", "required": false, - "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." + "summary": "Outcome filter. When omitted matches all outcomes. Pass one or more of \"success\", \"throttled\", \"failure\" to narrow.", + "repeatable": true }, { "role": "flag", @@ -70505,7 +70254,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or replace a rule", + "summary": "List action policy executions", "intent": { "destructive": false, "idempotent": true, @@ -70519,56 +70268,81 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-id-disable", + "name": "get-alerting-v2-execution-history-rules", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "name": "rule-ids", + "type": "array", + "required": false, + "summary": "Rule id filter. ", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "input-file", + "name": "search", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Free-text search. Matches rule name, description or rule ID (case-insensitive). Combined with rule_ids using AND." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "outcomes", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Outcome filter. ", + "repeatable": true }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "from", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Disable a rule", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "alerting-v2" - ], - "name": "post-alerting-v2-rules-id-enable", - "parameters": [ + "summary": "Inclusive ISO datetime lower bound on event.start. Defaults to 24 hours before `to`, or before the request when `to` is omitted. Set it to see older executions." + }, { "role": "flag", - "name": "id", + "name": "to", "type": "string", + "required": false, + "summary": "Inclusive ISO datetime upper bound on event.start." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "summary": "Sort field. Defaults to started_at.", + "enumValues": [ + "started_at", + "duration_ms" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": true, + "summary": "Sort direction.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "page", + "type": "number", + "required": true, + "summary": "Page number." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": true, + "summary": "Number of results per page." }, { "role": "flag", @@ -70592,8 +70366,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Enable a rule", + "summary": "List rule executions", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -70603,62 +70380,58 @@ "kb", "alerting-v2" ], - "name": "post-alerting-v2-rules-id-run", + "name": "get-alerting-v2-rules", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + "name": "page", + "type": "number", + "required": false, + "summary": "The page number to return. Defaults to 1. `page * per_page` cannot exceed 10000." }, { "role": "flag", - "name": "input-file", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of rules to return per page. Defaults to 20." + }, + { + "role": "flag", + "name": "filter", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "A KQL filter to apply to the rules. Supported fields: id, kind, enabled, metadata.name, metadata.description, metadata.tags, metadata.routing_tags. Cannot be empty. Omit it to list every rule." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "sort-field", + "type": "enum", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The field to sort rules by.", + "enumValues": [ + "kind", + "enabled", + "name" + ] }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "sort-order", + "type": "enum", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Run a rule now", - "intent": { - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana alerting-v2 API commands" - }, - { - "segment": "apm-agent-configuration", - "commands": [ - { - "path": [ - "stack", - "kb", - "apm-agent-configuration" - ], - "name": "delete-agent-configuration", - "parameters": [ + "summary": "The direction to sort rules.", + "enumValues": [ + "asc", + "desc" + ] + }, { "role": "flag", - "name": "service", + "name": "search", "type": "string", - "required": true + "required": false, + "summary": "A text string to search across rule fields." }, { "role": "flag", @@ -70680,18 +70453,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete agent configuration", + "summary": "List rules", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -70701,60 +70467,98 @@ "path": [ "stack", "kb", - "apm-agent-configuration" + "alerting-v2" ], - "name": "get-agent-configurations", + "name": "post-alerting-v2-rules", "parameters": [ { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "artifacts", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get a list of agent configurations", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "apm-agent-configuration" - ], - "name": "create-update-agent-configuration", - "parameters": [ + "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", + "repeatable": true + }, { "role": "flag", - "name": "overwrite", + "name": "enabled", "type": "boolean", "required": false, - "summary": "If the config exists ?overwrite=true is required" + "summary": "Whether the rule is enabled. Defaults to `true` when omitted. A disabled rule is saved but does not run until you enable it." }, { "role": "flag", - "name": "agent-name", + "name": "grouping", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "id", "type": "string", "required": false, - "summary": "The agent name is used by the UI to determine which settings to display." + "summary": "Optional rule ID. If omitted, Kibana generates one. If a rule with this ID already exists, the request fails with HTTP 409 and the existing rule is not changed. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." }, { "role": "flag", - "name": "service", + "name": "kind", + "type": "enum", + "required": true, + "summary": "Whether the rule creates alerts (`alert`) or only stores matching events (`signal`).", + "enumValues": [ + "alert" + ] + }, + { + "role": "flag", + "name": "metadata", "type": "string", "required": true }, { "role": "flag", - "name": "settings", + "name": "no-data", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "query", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "reason", + "type": "string", + "required": false, + "summary": "Alert reason configuration. Only allowed when kind is \"alert\". `template` is the alert reason template, for example \"CPU on {{data.host.name}} was {{data.cpu_pct}}%.\" Whitespace is preserved. Empty or whitespace-only templates are rejected. Omit to leave it unset. Null is not accepted." + }, + { + "role": "flag", + "name": "recovery", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "schedule", "type": "string", "required": true }, + { + "role": "flag", + "name": "state-transition", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "time-field", + "type": "string", + "required": false, + "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." + }, { "role": "flag", "name": "input-file", @@ -70777,11 +70581,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update agent configuration", + "summary": "Create a rule", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -70789,16 +70590,17 @@ "path": [ "stack", "kb", - "apm-agent-configuration" + "alerting-v2" ], - "name": "get-agent-name-for-service", + "name": "post-alerting-v2-rules-bulk-create", "parameters": [ { "role": "flag", - "name": "service-name", - "type": "string", + "name": "items", + "type": "array", "required": true, - "summary": "The name of the service" + "summary": "The rules to create. Must contain between 1 and 100 rules.", + "repeatable": true }, { "role": "flag", @@ -70822,11 +70624,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get agent name for service", + "summary": "Create rules in bulk", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -70834,16 +70633,18 @@ "path": [ "stack", "kb", - "apm-agent-configuration" + "alerting-v2" ], - "name": "get-environments-for-service", + "name": "post-alerting-v2-rules-bulk-delete", "parameters": [ { "role": "flag", - "name": "service-name", - "type": "string", - "required": false, - "summary": "The name of the service. If omitted, environments across all services are returned." + "name": "ids", + "type": "array", + "required": true, + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -70867,11 +70668,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get environments for service", + "summary": "Delete rules in bulk by ID", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -70879,36 +70677,62 @@ "path": [ "stack", "kb", - "apm-agent-configuration" + "alerting-v2" ], - "name": "search-single-configuration", + "name": "post-alerting-v2-rules-bulk-disable", "parameters": [ { "role": "flag", - "name": "error", - "type": "string", - "required": false, - "summary": "If provided, the agent configuration will be marked as error and `applied_by_agent` will be set to `false`.\nThis is useful for cases where the agent configuration was not applied successfully.\n" + "name": "ids", + "type": "array", + "required": true, + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", - "name": "etag", + "name": "input-file", "type": "string", "required": false, - "summary": "If etags match then `applied_by_agent` field will be set to `true`" + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "mark-as-applied-by-agent", + "role": "dryRun", + "name": "dry-run", "type": "boolean", "required": false, - "summary": "`markAsAppliedByAgent=true` means \"force setting it to true regardless of etag\".\nThis is needed for Jaeger agent that doesn't have etags\n" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "service", - "type": "string", - "required": true + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Disable rules in bulk by ID", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "alerting-v2" + ], + "name": "post-alerting-v2-rules-bulk-enable", + "parameters": [ + { + "role": "flag", + "name": "ids", + "type": "array", + "required": true, + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -70932,7 +70756,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Lookup single agent configuration", + "summary": "Enable rules in bulk by ID", "intent": { "requiresAuth": true } @@ -70941,23 +70765,18 @@ "path": [ "stack", "kb", - "apm-agent-configuration" + "alerting-v2" ], - "name": "get-single-agent-configuration", + "name": "post-alerting-v2-rules-bulk-get", "parameters": [ { "role": "flag", - "name": "name", - "type": "string", - "required": false, - "summary": "Service name" - }, - { - "role": "flag", - "name": "environment", - "type": "string", - "required": false, - "summary": "Service environment" + "name": "ids", + "type": "array", + "required": true, + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -70981,43 +70800,27 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get single agent configuration", + "summary": "Get rules in bulk", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana apm-agent-configuration API commands" - }, - { - "segment": "apm-agent-keys", - "commands": [ + }, { "path": [ "stack", "kb", - "apm-agent-keys" + "alerting-v2" ], - "name": "create-agent-key", + "name": "post-alerting-v2-rules-bulk-update-api-key", "parameters": [ { "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "The name of the APM agent key." - }, - { - "role": "flag", - "name": "privileges", + "name": "ids", "type": "array", "required": true, - "summary": "The APM agent key privileges. It can take one or more of the following values:\n* `event:write`, which is required for ingesting APM agent events. * `config_agent:read`, which is required for APM agents to read agent configuration remotely.\n", - "repeatable": true + "summary": "Explicit list of IDs to operate on. Each id can appear at most once.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -71041,62 +70844,49 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create an APM agent key", + "summary": "Update the API key of rules in bulk by ID", "intent": { "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana apm-agent-keys API commands" - }, - { - "segment": "apm-annotations", - "commands": [ + }, { "path": [ "stack", "kb", - "apm-annotations" + "alerting-v2" ], - "name": "create-annotation", + "name": "post-alerting-v2-rules-delete-by-query", "parameters": [ { "role": "flag", - "name": "service-name", + "name": "filter", "type": "string", - "required": true, - "summary": "The name of the service" + "required": false, + "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", - "name": "@timestamp", - "type": "string", - "required": true, - "summary": "The date and time of the annotation. It must be in ISO 8601 format." + "name": "force", + "type": "boolean", + "required": false, + "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." }, { "role": "flag", - "name": "message", - "type": "string", + "name": "match-all", + "type": "enum", "required": false, - "summary": "The message displayed in the annotation. It defaults to `service.version`." + "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", + "enumValues": [ + "true" + ] }, { "role": "flag", - "name": "service", + "name": "search", "type": "string", - "required": true, - "summary": "The service that identifies the configuration to create or update." - }, - { - "role": "flag", - "name": "tags", - "type": "array", "required": false, - "summary": "Tags are used by the Applications UI to distinguish APM annotations from other annotations. Tags may have additional functionality in future releases. It defaults to `[apm]`. While you can add additional tags, you cannot remove the `apm` tag.\n", - "repeatable": true, - "elementType": "string" + "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", @@ -71120,7 +70910,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a service annotation", + "summary": "Delete rules matching a query (dry-run by default)", "intent": { "requiresAuth": true } @@ -71129,37 +70919,40 @@ "path": [ "stack", "kb", - "apm-annotations" + "alerting-v2" ], - "name": "get-annotation", + "name": "post-alerting-v2-rules-disable-by-query", "parameters": [ { "role": "flag", - "name": "service-name", + "name": "filter", "type": "string", - "required": true, - "summary": "The name of the service" + "required": false, + "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", - "name": "environment", - "type": "string", + "name": "force", + "type": "boolean", "required": false, - "summary": "The environment to filter annotations by" + "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." }, { "role": "flag", - "name": "start", - "type": "string", + "name": "match-all", + "type": "enum", "required": false, - "summary": "The start date for the search" + "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", + "enumValues": [ + "true" + ] }, { "role": "flag", - "name": "end", + "name": "search", "type": "string", "required": false, - "summary": "The end date for the search" + "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", @@ -71183,91 +70976,49 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Search for annotations", + "summary": "Disable rules matching a query (dry-run by default)", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana apm-annotations API commands" - }, - { - "segment": "apm-server-schema", - "commands": [ + }, { "path": [ "stack", "kb", - "apm-server-schema" + "alerting-v2" ], - "name": "save-apm-server-schema", + "name": "post-alerting-v2-rules-enable-by-query", "parameters": [ { "role": "flag", - "name": "schema", + "name": "filter", "type": "string", "required": false, - "summary": "Schema object" + "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", + "name": "force", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Save APM server schema", - "intent": { - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana apm-server-schema API commands" - }, - { - "segment": "apm-sourcemaps", - "commands": [ - { - "path": [ - "stack", - "kb", - "apm-sourcemaps" - ], - "name": "get-source-maps", - "parameters": [ - { - "role": "flag", - "name": "page", - "type": "number", + "name": "match-all", + "type": "enum", "required": false, - "summary": "Page number" + "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", + "enumValues": [ + "true" + ] }, { "role": "flag", - "name": "per-page", - "type": "number", + "name": "search", + "type": "string", "required": false, - "summary": "Number of records per page" + "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", @@ -71291,11 +71042,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get source maps", + "summary": "Enable rules matching a query (dry-run by default)", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -71303,37 +71051,40 @@ "path": [ "stack", "kb", - "apm-sourcemaps" + "alerting-v2" ], - "name": "upload-source-map", + "name": "post-alerting-v2-rules-update-api-key-by-query", "parameters": [ { "role": "flag", - "name": "bundle-filepath", + "name": "filter", "type": "string", - "required": true, - "summary": "The absolute path of the final bundle as used in the web application." + "required": false, + "summary": "KQL filter string to match target resources. At most 10000 matching resources are processed per request. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", - "name": "service-name", - "type": "string", - "required": true, - "summary": "The name of the service that the service map should apply to." + "name": "force", + "type": "boolean", + "required": false, + "summary": "When true, executes the operation. When false (default), returns a dry-run preview with `match_count` and a `sample` of matching resource IDs so the client can verify before committing." }, { "role": "flag", - "name": "service-version", - "type": "string", - "required": true, - "summary": "The version of the service that the service map should apply to." + "name": "match-all", + "type": "enum", + "required": false, + "summary": "When true, targets every resource. Requires an explicit opt-in. Omitted by default.", + "enumValues": [ + "true" + ] }, { "role": "flag", - "name": "sourcemap", + "name": "search", "type": "string", - "required": true, - "summary": "The source map. It can be a string or file upload. It must follow the" + "required": false, + "summary": "Free-text search string matched against the resource-defined searchable fields. Cannot be empty; to target every resource use `match_all: true`." }, { "role": "flag", @@ -71357,7 +71108,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Upload a source map", + "summary": "Update the API key of rules matching a query (dry-run by default)", "intent": { "requiresAuth": true } @@ -71366,16 +71117,16 @@ "path": [ "stack", "kb", - "apm-sourcemaps" + "alerting-v2" ], - "name": "delete-source-map", + "name": "delete-alerting-v2-rules-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "Source map identifier" + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." }, { "role": "flag", @@ -71406,29 +71157,36 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete source map", + "summary": "Delete a rule", "intent": { "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana apm-sourcemaps API commands" - }, - { - "segment": "cases", - "commands": [ + }, { "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "delete-case", + "name": "get-alerting-v2-rules-id", "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", @@ -71438,15 +71196,15 @@ }, { "role": "flag", - "name": "yes", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "confirm destructive action without prompting" + "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete cases", + "summary": "Get a rule", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -71456,18 +71214,85 @@ "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "update-case", + "name": "patch-alerting-v2-rules-id", "parameters": [ { "role": "flag", - "name": "cases", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "An array containing one or more case objects.", + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + }, + { + "role": "flag", + "name": "artifacts", + "type": "array", + "required": false, + "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", "repeatable": true }, + { + "role": "flag", + "name": "grouping", + "type": "string", + "required": false, + "summary": "Grouping configuration." + }, + { + "role": "flag", + "name": "metadata", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "no-data", + "type": "string", + "required": false, + "summary": "What the rule does when a group has no data. Required when `kind` is `alert`. Not allowed when `kind` is `signal`. Any strategy other than `ignore` requires either `query.breach` or `no_data.query`, so that a group with no data can be told apart from one that stopped breaching." + }, + { + "role": "flag", + "name": "query", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "reason", + "type": "string", + "required": false, + "summary": "Alert reason configuration. Only allowed when kind is \"alert\". `template` is the alert reason template, for example \"CPU on {{data.host.name}} was {{data.cpu_pct}}%.\" Whitespace is preserved. Empty or whitespace-only templates are rejected. Omit to preserve the current value; send null to clear it." + }, + { + "role": "flag", + "name": "recovery", + "type": "string", + "required": false, + "summary": "When an alert recovers. Required when `kind` is `alert`. Not allowed when `kind` is `signal`." + }, + { + "role": "flag", + "name": "schedule", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "state-transition", + "type": "string", + "required": false, + "summary": "Specifies how many consecutive matches, or how long a condition must hold, before an alert becomes `active` or `inactive`. Allowed only when `kind` is `alert`." + }, + { + "role": "flag", + "name": "time-field", + "type": "string", + "required": false, + "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." + }, { "role": "flag", "name": "input-file", @@ -71490,7 +71315,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update cases", + "summary": "Update a rule", "intent": { "requiresAuth": true } @@ -71499,98 +71324,97 @@ "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "create-case", + "name": "put-alerting-v2-rules-id", "parameters": [ { "role": "flag", - "name": "assignees", + "name": "id", + "type": "string", + "required": true, + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + }, + { + "role": "flag", + "name": "artifacts", "type": "array", "required": false, + "summary": "Optional objects attached to the rule, such as a runbook or a dashboard. Each item has `id`, `type`, and `data`. The shape of `data` depends on `type`. For example, a `runbook` uses `content` and a `dashboard` uses `dashboard_id`. Known types are validated against that shape. Unknown types are stored when `id`, `type`, and `data` are present. An empty array is rejected: omit `artifacts` on create, or send `null` on PATCH to clear.", "repeatable": true }, { "role": "flag", - "name": "category", - "type": "string", - "required": false + "name": "enabled", + "type": "boolean", + "required": false, + "summary": "Whether the rule is enabled. Unlike the other fields in this body, omitting it does not clear it. When the request creates the rule it defaults to `true`. When the request replaces an existing rule, omitting it keeps the current state and supplying it enables or disables the rule, the same as `_enable` or `_disable`. A disabled rule is saved but does not run until you enable it." }, { "role": "flag", - "name": "connector", + "name": "grouping", "type": "string", - "required": true + "required": false }, { "role": "flag", - "name": "custom-fields", - "type": "array", - "required": false, - "summary": "Custom field values for a case. Omitted optional fields default to null. Deprecated: use `extended_fields` instead.\n", - "repeatable": true + "name": "kind", + "type": "enum", + "required": true, + "summary": "Whether the rule creates alerts (`alert`) or only stores matching events (`signal`).", + "enumValues": [ + "alert" + ] }, { "role": "flag", - "name": "description", + "name": "metadata", "type": "string", "required": true }, { "role": "flag", - "name": "extended-fields", + "name": "no-data", "type": "string", "required": false }, { "role": "flag", - "name": "owner", - "type": "enum", - "required": true, - "enumValues": [ - "cases", - "observability", - "securitySolution" - ] + "name": "query", + "type": "string", + "required": true }, { "role": "flag", - "name": "settings", + "name": "reason", "type": "string", - "required": true + "required": false, + "summary": "Alert reason configuration. Only allowed when kind is \"alert\". `template` is the alert reason template, for example \"CPU on {{data.host.name}} was {{data.cpu_pct}}%.\" Whitespace is preserved. Empty or whitespace-only templates are rejected. Omit to leave it unset on create or clear it when replacing an existing rule. Null is not accepted." }, { "role": "flag", - "name": "severity", - "type": "enum", - "required": false, - "enumValues": [ - "critical", - "high", - "low", - "medium" - ] + "name": "recovery", + "type": "string", + "required": false }, { "role": "flag", - "name": "tags", - "type": "array", - "required": true, - "repeatable": true, - "elementType": "string" + "name": "schedule", + "type": "string", + "required": true }, { "role": "flag", - "name": "template", + "name": "state-transition", "type": "string", - "required": false, - "summary": "A case template to create the case from. Requires the `xpack.cases.templates.enabled` setting. The server applies the template's case defaults (severity, category, tags, assignees, settings, connector) and its field defaults into `extended_fields`; any value explicitly provided in the request wins over the template default. When `version` is omitted, the latest version of the template is resolved and pinned on the case. To discover a template's fields before creating a case, use the get case fields API (`GET /api/cases/fields`).\n" + "required": false }, { "role": "flag", - "name": "title", + "name": "time-field", "type": "string", - "required": true + "required": false, + "summary": "Document field Kibana uses with `schedule.lookback` to time-filter `query.base`." }, { "role": "flag", @@ -71614,8 +71438,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a case", + "summary": "Create or replace a rule", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -71623,23 +71450,41 @@ "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "find-cases", + "name": "post-alerting-v2-rules-id-disable", "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], - "summary": "Search cases", + "summary": "Disable a rule", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -71647,16 +71492,16 @@ "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "get-case", + "name": "post-alerting-v2-rules-id-enable", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "id", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." }, { "role": "flag", @@ -71680,11 +71525,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get case information", + "summary": "Enable a rule", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -71692,16 +71534,16 @@ "path": [ "stack", "kb", - "cases" + "alerting-v2" ], - "name": "get-case-alerts", + "name": "post-alerting-v2-rules-id-run", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "id", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The identifier for the rule. Chosen at creation and permanent — it cannot be changed afterwards. Re-using the id of a deleted resource is allowed but discouraged: execution history, change history, and alerts recorded under that id are retained and are attributed to the new resource. Ids appear in URLs and logs, so keep them free of sensitive data." }, { "role": "flag", @@ -71725,28 +71567,31 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get all alerts for a case", + "summary": "Run a rule now", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana alerting-v2 API commands" + }, + { + "segment": "apm-agent-configuration", + "commands": [ { "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "delete-case-attachments-default-space", + "name": "delete-agent-configuration", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "service", "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "required": true }, { "role": "flag", @@ -71777,7 +71622,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete all case attachments", + "summary": "Delete agent configuration", "intent": { "destructive": true, "idempotent": true, @@ -71789,49 +71634,59 @@ "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "find-case-attachments-default-space", + "name": "get-agent-configurations", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get a list of agent configurations", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "apm-agent-configuration" + ], + "name": "create-update-agent-configuration", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "name": "overwrite", + "type": "boolean", + "required": false, + "summary": "If the config exists ?overwrite=true is required" }, { "role": "flag", - "name": "type", + "name": "agent-name", "type": "string", "required": false, - "summary": "Filters the returned attachments by one or more attachment types, such as `comment` or `security.alert`. To filter by multiple types, repeat the parameter. Limited to 20 types.\n", - "repeatable": true + "summary": "The agent name is used by the UI to determine which settings to display." }, { "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number to return." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of items to return. Limited to 100 items." + "name": "service", + "type": "string", + "required": true }, { "role": "flag", - "name": "sort-order", - "type": "enum", - "required": false, - "summary": "Sorts attachments by creation date: `asc` (oldest first) or `desc` (newest first).", - "enumValues": [ - "asc", - "desc" - ] + "name": "settings", + "type": "string", + "required": true }, { "role": "flag", @@ -71855,7 +71710,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find case attachments", + "summary": "Create or update agent configuration", "intent": { "destructive": false, "idempotent": true, @@ -71867,22 +71722,16 @@ "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "create-case-attachment-default-space", + "name": "get-agent-name-for-service", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "service-name", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." - }, - { - "role": "flag", - "name": "body", - "type": "string", - "required": false + "summary": "The name of the service" }, { "role": "flag", @@ -71906,8 +71755,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a case attachment", + "summary": "Get agent name for service", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -71915,23 +71767,16 @@ "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "delete-case-attachment-default-space", + "name": "get-environments-for-service", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." - }, - { - "role": "flag", - "name": "attachment-id", + "name": "service-name", "type": "string", - "required": true, - "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" + "required": false, + "summary": "The name of the service. If omitted, environments across all services are returned." }, { "role": "flag", @@ -71953,18 +71798,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a case attachment", + "summary": "Get environments for service", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -71974,23 +71812,36 @@ "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "get-case-attachment-default-space", + "name": "search-single-configuration", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "error", "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "required": false, + "summary": "If provided, the agent configuration will be marked as error and `applied_by_agent` will be set to `false`.\nThis is useful for cases where the agent configuration was not applied successfully.\n" }, { "role": "flag", - "name": "attachment-id", + "name": "etag", "type": "string", - "required": true, - "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" + "required": false, + "summary": "If etags match then `applied_by_agent` field will be set to `true`" + }, + { + "role": "flag", + "name": "mark-as-applied-by-agent", + "type": "boolean", + "required": false, + "summary": "`markAsAppliedByAgent=true` means \"force setting it to true regardless of etag\".\nThis is needed for Jaeger agent that doesn't have etags\n" + }, + { + "role": "flag", + "name": "service", + "type": "string", + "required": true }, { "role": "flag", @@ -72014,11 +71865,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a case attachment", + "summary": "Lookup single agent configuration", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -72026,29 +71874,23 @@ "path": [ "stack", "kb", - "cases" + "apm-agent-configuration" ], - "name": "replace-case-attachment-default-space", + "name": "get-single-agent-configuration", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." - }, - { - "role": "flag", - "name": "attachment-id", + "name": "name", "type": "string", - "required": true, - "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" + "required": false, + "summary": "Service name" }, { "role": "flag", - "name": "body", + "name": "environment", "type": "string", - "required": false + "required": false, + "summary": "Service environment" }, { "role": "flag", @@ -72072,28 +71914,43 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Replace a case attachment", + "summary": "Get single agent configuration", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana apm-agent-configuration API commands" + }, + { + "segment": "apm-agent-keys", + "commands": [ { "path": [ "stack", "kb", - "cases" + "apm-agent-keys" ], - "name": "delete-case-comments", + "name": "create-agent-key", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "name", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The name of the APM agent key." + }, + { + "role": "flag", + "name": "privileges", + "type": "array", + "required": true, + "summary": "The APM agent key privileges. It can take one or more of the following values:\n* `event:write`, which is required for ingesting APM agent events. * `config_agent:read`, which is required for APM agents to read agent configuration remotely.\n", + "repeatable": true }, { "role": "flag", @@ -72115,91 +71972,64 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete all case comments and alerts", + "summary": "Create an APM agent key", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana apm-agent-keys API commands" + }, + { + "segment": "apm-annotations", + "commands": [ { "path": [ "stack", "kb", - "cases" + "apm-annotations" ], - "name": "update-case-comment", + "name": "create-annotation", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "service-name", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The name of the service" }, { "role": "flag", - "name": "body", + "name": "@timestamp", "type": "string", - "required": false + "required": true, + "summary": "The date and time of the annotation. It must be in ISO 8601 format." }, { "role": "flag", - "name": "input-file", + "name": "message", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "The message displayed in the annotation. It defaults to `service.version`." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Update a case comment or alert", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "cases" - ], - "name": "add-case-comment", - "parameters": [ - { - "role": "flag", - "name": "case-id", + "name": "service", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The service that identifies the configuration to create or update." }, { "role": "flag", - "name": "body", - "type": "string", - "required": false + "name": "tags", + "type": "array", + "required": false, + "summary": "Tags are used by the Applications UI to distinguish APM annotations from other annotations. Tags may have additional functionality in future releases. It defaults to `[apm]`. While you can add additional tags, you cannot remove the `apm` tag.\n", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -72223,7 +72053,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Add a case comment or alert", + "summary": "Create a service annotation", "intent": { "requiresAuth": true } @@ -72232,41 +72062,37 @@ "path": [ "stack", "kb", - "cases" + "apm-annotations" ], - "name": "find-case-comments", + "name": "get-annotation", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "service-name", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The name of the service" }, { "role": "flag", - "name": "page", - "type": "number", + "name": "environment", + "type": "string", "required": false, - "summary": "The page number to return." + "summary": "The environment to filter annotations by" }, { "role": "flag", - "name": "per-page", - "type": "number", + "name": "start", + "type": "string", "required": false, - "summary": "The number of items to return. Limited to 100 items." + "summary": "The start date for the search" }, { "role": "flag", - "name": "sort-order", - "type": "enum", + "name": "end", + "type": "string", "required": false, - "summary": "Determines the sort order.", - "enumValues": [ - "asc", - "desc" - ] + "summary": "The end date for the search" }, { "role": "flag", @@ -72290,35 +72116,35 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find case comments", + "summary": "Search for annotations", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana apm-annotations API commands" + }, + { + "segment": "apm-server-schema", + "commands": [ { "path": [ "stack", "kb", - "cases" + "apm-server-schema" ], - "name": "delete-case-comment", + "name": "save-apm-server-schema", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." - }, - { - "role": "flag", - "name": "comment-id", + "name": "schema", "type": "string", - "required": true, - "summary": "The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.\n" + "required": false, + "summary": "Schema object" }, { "role": "flag", @@ -72340,44 +72166,41 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a case comment or alert", + "summary": "Save APM server schema", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana apm-server-schema API commands" + }, + { + "segment": "apm-sourcemaps", + "commands": [ { "path": [ "stack", "kb", - "cases" + "apm-sourcemaps" ], - "name": "get-case-comment", + "name": "get-source-maps", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "name": "page", + "type": "number", + "required": false, + "summary": "Page number" }, { "role": "flag", - "name": "comment-id", - "type": "string", - "required": true, - "summary": "The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.\n" + "name": "per-page", + "type": "number", + "required": false, + "summary": "Number of records per page" }, { "role": "flag", @@ -72401,7 +72224,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a case comment or alert", + "summary": "Get source maps", "intent": { "destructive": false, "idempotent": true, @@ -72413,29 +72236,37 @@ "path": [ "stack", "kb", - "cases" + "apm-sourcemaps" ], - "name": "push-case", + "name": "upload-source-map", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "bundle-filepath", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "The absolute path of the final bundle as used in the web application." }, { "role": "flag", - "name": "connector-id", + "name": "service-name", "type": "string", "required": true, - "summary": "An identifier for the connector. To retrieve connector IDs, use the find connectors API." + "summary": "The name of the service that the service map should apply to." }, { "role": "flag", - "name": "body", + "name": "service-version", "type": "string", - "required": false + "required": true, + "summary": "The version of the service that the service map should apply to." + }, + { + "role": "flag", + "name": "sourcemap", + "type": "string", + "required": true, + "summary": "The source map. It can be a string or file upload. It must follow the" }, { "role": "flag", @@ -72459,7 +72290,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Push a case to an external service", + "summary": "Upload a source map", "intent": { "requiresAuth": true } @@ -72468,16 +72299,16 @@ "path": [ "stack", "kb", - "cases" + "apm-sourcemaps" ], - "name": "get-case-applicable-fields", + "name": "delete-source-map", "parameters": [ { "role": "flag", - "name": "case-id", + "name": "id", "type": "string", "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + "summary": "Source map identifier" }, { "role": "flag", @@ -72499,52 +72330,38 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get the fields applicable to an existing case", + "summary": "Delete source map", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana apm-sourcemaps API commands" + }, + { + "segment": "cases", + "commands": [ { "path": [ "stack", "kb", "cases" ], - "name": "add-case-file", + "name": "delete-case", "parameters": [ - { - "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The caseId parameter" - }, - { - "role": "flag", - "name": "file", - "type": "string", - "required": true, - "summary": "The file being attached to the case." - }, - { - "role": "flag", - "name": "filename", - "type": "string", - "required": false, - "summary": "The desired name of the file being attached to the case, it can be different than the name of the file in the filesystem. **This should not include the file extension.**" - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, { "role": "dryRun", "name": "dry-run", @@ -72554,14 +72371,17 @@ }, { "role": "flag", - "name": "no-validate", + "name": "yes", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" + "summary": "confirm destructive action without prompting" } ], - "summary": "Attach a file to a case", + "summary": "Delete cases", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -72571,46 +72391,14 @@ "kb", "cases" ], - "name": "find-case-activity", + "name": "update-case", "parameters": [ { "role": "flag", - "name": "case-id", - "type": "string", - "required": true, - "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." - }, - { - "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number to return." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of items to return. Limited to 100 items." - }, - { - "role": "flag", - "name": "sort-order", - "type": "enum", - "required": false, - "summary": "Determines the sort order.", - "enumValues": [ - "asc", - "desc" - ] - }, - { - "role": "flag", - "name": "types", + "name": "cases", "type": "array", - "required": false, - "summary": "Determines the types of user actions to return.", + "required": true, + "summary": "An array containing one or more case objects.", "repeatable": true }, { @@ -72635,11 +72423,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Find case activity", + "summary": "Update cases", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -72649,121 +72434,46 @@ "kb", "cases" ], - "name": "get-cases-by-alert", + "name": "create-case", "parameters": [ { "role": "flag", - "name": "alert-id", - "type": "string", - "required": true, - "summary": "An identifier for the alert." - }, - { - "role": "flag", - "name": "owner", - "type": "enum", + "name": "assignees", + "type": "array", "required": false, - "summary": "A filter to limit the response to a specific set of applications. If this parameter is omitted, the response contains information about all the cases that the user has access to read.\n", - "repeatable": true, - "enumValues": [ - "cases", - "observability", - "securitySolution" - ] + "repeatable": true }, { "role": "flag", - "name": "input-file", + "name": "category", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" + "required": false }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" + "role": "flag", + "name": "connector", + "type": "string", + "required": true }, { "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get cases for an alert", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "cases" - ], - "name": "get-case-configuration", - "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "name": "custom-fields", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get case settings", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "cases" - ], - "name": "set-case-configuration", - "parameters": [ - { - "role": "flag", - "name": "closure-type", - "type": "enum", - "required": true, - "enumValues": [ - "close-by-pushing", - "close-by-user" - ] + "summary": "Custom field values for a case. Omitted optional fields default to null. Deprecated: use `extended_fields` instead.\n", + "repeatable": true }, { "role": "flag", - "name": "connector", + "name": "description", "type": "string", - "required": true, - "summary": "An object that contains the connector configuration." - }, - { - "role": "flag", - "name": "custom-fields", - "type": "array", - "required": false, - "summary": "Custom fields case configuration. Deprecated. Use the field library (`/api/cases/field_definitions`) to manage field definitions and `extended_fields` on case create/update to set field values.\n", - "repeatable": true + "required": true }, { "role": "flag", - "name": "extract-observables", - "type": "boolean", - "required": false, - "summary": "Indicates whether observables (for example, IPs, hashes, and URLs) are automatically extracted from case comments and events. When omitted, defaults to the owner's default: `true` for Security, `false` for Stack and Observability. Observable extraction is available only for Security cases. For Stack and Observability cases, a value that is not sent resolves to `false`, and setting it to `true` returns a 400 error.\n" + "name": "extended-fields", + "type": "string", + "required": false }, { "role": "flag", @@ -72778,20 +72488,43 @@ }, { "role": "flag", - "name": "templates", - "type": "array", + "name": "settings", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "severity", + "type": "enum", "required": false, - "repeatable": true + "enumValues": [ + "critical", + "high", + "low", + "medium" + ] }, { "role": "flag", - "name": "workflow-tags", + "name": "tags", "type": "array", - "required": false, - "summary": "Workflow tags that limit which workflows appear in Cases workflow selectors. An empty array shows all workflows.\n", + "required": true, "repeatable": true, "elementType": "string" }, + { + "role": "flag", + "name": "template", + "type": "string", + "required": false, + "summary": "A case template to create the case from. Requires the `xpack.cases.templates.enabled` setting. The server applies the template's case defaults (severity, category, tags, assignees, settings, connector) and its field defaults into `extended_fields`; any value explicitly provided in the request wins over the template default. When `version` is omitted, the latest version of the template is resolved and pinned on the case. To discover a template's fields before creating a case, use the get case fields API (`GET /api/cases/fields`).\n" + }, + { + "role": "flag", + "name": "title", + "type": "string", + "required": true + }, { "role": "flag", "name": "input-file", @@ -72814,7 +72547,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Add case settings", + "summary": "Create a case", "intent": { "requiresAuth": true } @@ -72825,69 +72558,83 @@ "kb", "cases" ], - "name": "update-case-configuration", + "name": "find-cases", "parameters": [ { - "role": "flag", - "name": "configuration-id", - "type": "string", - "required": true, - "summary": "An identifier for the configuration." - }, - { - "role": "flag", - "name": "closure-type", - "type": "enum", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "enumValues": [ - "close-by-pushing", - "close-by-user" - ] - }, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Search cases", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case", + "parameters": [ { "role": "flag", - "name": "connector", + "name": "case-id", "type": "string", - "required": false, - "summary": "An object that contains the connector configuration." + "required": true, + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "custom-fields", - "type": "array", + "name": "input-file", + "type": "string", "required": false, - "summary": "Custom fields case configuration. Deprecated. Use the field library (`/api/cases/field_definitions`) to manage field definitions and `extended_fields` on case create/update to set field values.\n", - "repeatable": true + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "extract-observables", + "role": "dryRun", + "name": "dry-run", "type": "boolean", "required": false, - "summary": "Indicates whether observables (for example, IPs, hashes, and URLs) are automatically extracted from case comments and events. Observable extraction is available only for Security cases. For Stack and Observability cases, changing it to `true` returns a 400 error. A request that keeps an already stored `true` is accepted.\n" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "templates", - "type": "array", + "name": "no-validate", + "type": "boolean", "required": false, - "repeatable": true - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get case information", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-alerts", + "parameters": [ { "role": "flag", - "name": "version", + "name": "case-id", "type": "string", "required": true, - "summary": "The version of the connector. To retrieve the version value, use the get configuration API.\n" - }, - { - "role": "flag", - "name": "workflow-tags", - "type": "array", - "required": false, - "summary": "Workflow tags that limit which workflows appear in Cases workflow selectors. An empty array shows all workflows.\n", - "repeatable": true, - "elementType": "string" + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", @@ -72911,8 +72658,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update case settings", + "summary": "Get all alerts for a case", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -72922,19 +72672,47 @@ "kb", "cases" ], - "name": "find-case-connectors", + "name": "delete-case-attachments-default-space", "parameters": [ + { + "role": "flag", + "name": "case-id", + "type": "string", + "required": true, + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get case connectors", + "summary": "Delete all case attachments", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -72946,22 +72724,22 @@ "kb", "cases" ], - "name": "get-case-field-definitions-default-space", + "name": "find-case-attachments-default-space", "parameters": [ { "role": "flag", - "name": "owner", + "name": "case-id", "type": "string", "required": true, - "summary": "The application that owns the field definitions (for example `cases`, `observability`, or `securitySolution`). Required.\n", - "repeatable": true + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "is-global", - "type": "boolean", + "name": "type", + "type": "string", "required": false, - "summary": "When true, returns only global field definitions (rendered on every case). When false, returns all definitions. Omit to return all.\n" + "summary": "Filters the returned attachments by one or more attachment types, such as `comment` or `security.alert`. To filter by multiple types, repeat the parameter. Limited to 20 types.\n", + "repeatable": true }, { "role": "flag", @@ -72977,37 +72755,17 @@ "required": false, "summary": "The number of items to return. Limited to 100 items." }, - { - "role": "flag", - "name": "sort-field", - "type": "enum", - "required": false, - "summary": "The field to sort by. When omitted, results are sorted by `fieldDefinitionId` ascending and `sortOrder` is ignored.\n", - "enumValues": [ - "name", - "owner", - "isGlobal", - "displayOrder" - ] - }, { "role": "flag", "name": "sort-order", "type": "enum", "required": false, - "summary": "Determines the sort order.", + "summary": "Sorts attachments by creation date: `asc` (oldest first) or `desc` (newest first).", "enumValues": [ "asc", "desc" ] }, - { - "role": "flag", - "name": "search", - "type": "string", - "required": false, - "summary": "A case-insensitive substring to match against each definition's `name` and `description` fields. Definitions where neither field contains the substring are excluded.\n" - }, { "role": "flag", "name": "input-file", @@ -73030,7 +72788,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get all field definitions", + "summary": "Find case attachments", "intent": { "destructive": false, "idempotent": true, @@ -73044,56 +72802,34 @@ "kb", "cases" ], - "name": "create-case-field-definition-default-space", + "name": "create-case-attachment-default-space", "parameters": [ { "role": "flag", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "When true, runs authorization, body, and name-uniqueness validation without creating the field definition. Returns `{ \"valid\": true }` on success.\n" - }, - { - "role": "flag", - "name": "definition", + "name": "case-id", "type": "string", "required": true, - "summary": "The field definition as a YAML string describing a single field (type, label, control, metadata)." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "description", + "name": "body", "type": "string", - "required": false, - "summary": "Optional human-readable description of the field's purpose." - }, - { - "role": "flag", - "name": "is-global", - "type": "boolean", - "required": false, - "summary": "When true, this field is rendered in every case for this owner, regardless of the template used. Global fields cannot be demoted (set to false) while they are linked to an active custom field in the Cases configuration.\n" + "required": false }, { "role": "flag", - "name": "name", + "name": "input-file", "type": "string", "required": false, - "summary": "The field name, unique per owner (case-insensitive). Must match the `name` key inside the YAML definition. When omitted, the name is extracted from the definition YAML automatically. Immutable after creation.\n" - }, - { - "role": "flag", - "name": "owner", - "type": "string", - "required": true, - "summary": "The application that owns this field definition." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "input-file", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", @@ -73103,7 +72839,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a field definition", + "summary": "Create a case attachment", "intent": { "requiresAuth": true } @@ -73114,14 +72850,21 @@ "kb", "cases" ], - "name": "delete-case-field-definition-default-space", + "name": "delete-case-attachment-default-space", "parameters": [ { "role": "flag", - "name": "field-definition-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the field definition." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" }, { "role": "flag", @@ -73152,7 +72895,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a field definition", + "summary": "Delete a case attachment", "intent": { "destructive": true, "idempotent": true, @@ -73166,14 +72909,21 @@ "kb", "cases" ], - "name": "get-case-field-definition-default-space", + "name": "get-case-attachment-default-space", "parameters": [ { "role": "flag", - "name": "field-definition-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the field definition." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" }, { "role": "flag", @@ -73197,7 +72947,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a field definition by ID", + "summary": "Get a case attachment", "intent": { "destructive": false, "idempotent": true, @@ -73211,63 +72961,41 @@ "kb", "cases" ], - "name": "update-case-field-definition-default-space", + "name": "replace-case-attachment-default-space", "parameters": [ { "role": "flag", - "name": "field-definition-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the field definition." - }, - { - "role": "flag", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "When true, runs authorization, body, and identity-immutability validation without updating the field definition. Returns `{ \"valid\": true }` on success.\n" + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "definition", + "name": "attachment-id", "type": "string", "required": true, - "summary": "The field definition as a YAML string describing a single field (type, label, control, metadata)." + "summary": "The ID of the attachment, which is its `id` field, not `attachmentId`. To get it, use the find case attachments API.\n" }, { "role": "flag", - "name": "description", + "name": "body", "type": "string", - "required": false, - "summary": "Optional human-readable description of the field's purpose." - }, - { - "role": "flag", - "name": "is-global", - "type": "boolean", - "required": false, - "summary": "When true, this field is rendered in every case for this owner, regardless of the template used. Global fields cannot be demoted (set to false) while they are linked to an active custom field in the Cases configuration.\n" + "required": false }, { "role": "flag", - "name": "name", + "name": "input-file", "type": "string", "required": false, - "summary": "The field name, unique per owner (case-insensitive). Must match the `name` key inside the YAML definition. When omitted, the name is extracted from the definition YAML automatically. Immutable after creation. Unlike POST, the 50-character limit is not enforced on PUT so that definitions with legacy names that exceed the limit remain modifiable.\n" - }, - { - "role": "flag", - "name": "owner", - "type": "string", - "required": true, - "summary": "The application that owns this field definition." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "input-file", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", @@ -73277,7 +73005,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a field definition", + "summary": "Replace a case attachment", "intent": { "destructive": false, "idempotent": true, @@ -73291,21 +73019,14 @@ "kb", "cases" ], - "name": "get-applicable-fields", + "name": "delete-case-comments", "parameters": [ { "role": "flag", - "name": "owner", + "name": "case-id", "type": "string", "required": true, - "summary": "The application that owns the cases (for example `cases`, `observability`, or `securitySolution`)." - }, - { - "role": "flag", - "name": "template-id", - "type": "string", - "required": false, - "summary": "The identifier of a template to include the template's fields in the response." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", @@ -73327,11 +73048,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get the fields applicable to a case", + "summary": "Delete all case comments and alerts", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -73343,21 +73071,45 @@ "kb", "cases" ], - "name": "get-case-reporters", + "name": "update-case-comment", "parameters": [ + { + "role": "flag", + "name": "case-id", + "type": "string", + "required": true, + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], - "summary": "Get case creators", + "summary": "Update a case comment or alert", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -73367,21 +73119,45 @@ "kb", "cases" ], - "name": "get-case-tags", + "name": "add-case-comment", "parameters": [ + { + "role": "flag", + "name": "case-id", + "type": "string", + "required": true, + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], - "summary": "Get case tags", + "summary": "Add a case comment or alert", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -73391,86 +73167,40 @@ "kb", "cases" ], - "name": "get-case-templates", + "name": "find-case-comments", "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get all case templates", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "cases" - ], - "name": "create-case-template", - "parameters": [ - { - "role": "flag", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "When true, validates the request without creating the template and returns `{\"valid\": true}`." - }, { "role": "flag", - "name": "definition", + "name": "case-id", "type": "string", "required": true, - "summary": "The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a `fields` array of inline field definitions or `$ref` entries pointing into the owner's field library. Stored field values appear on cases under `extended_fields` keys shaped `_as_`. Observable extraction (`settings.extractObservables`) is available only for Security templates. For Stack and Observability templates, setting it to `true` returns a 400 error. An update that keeps an already stored `true` for the same owner is accepted.\n" - }, - { - "role": "flag", - "name": "description", - "type": "string", - "required": false, - "summary": "A description of the template." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "is-enabled", - "type": "boolean", + "name": "page", + "type": "number", "required": false, - "summary": "Disabled templates are hidden from the case creation flow." + "summary": "The page number to return." }, { "role": "flag", - "name": "name", - "type": "string", + "name": "per-page", + "type": "number", "required": false, - "summary": "The template identity name, unique per owner (case-insensitive). May be omitted when the YAML definition provides a case-default title (`name:`), which is then used as the identity name.\n" + "summary": "The number of items to return. Limited to 100 items." }, { "role": "flag", - "name": "owner", + "name": "sort-order", "type": "enum", - "required": true, + "required": false, + "summary": "Determines the sort order.", "enumValues": [ - "cases", - "observability", - "securitySolution" + "asc", + "desc" ] }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "repeatable": true, - "elementType": "string" - }, { "role": "flag", "name": "input-file", @@ -73478,6 +73208,13 @@ "required": false, "summary": "path to a JSON file to use as command input" }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, { "role": "flag", "name": "no-validate", @@ -73486,8 +73223,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a case template", + "summary": "Find case comments", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -73497,14 +73237,21 @@ "kb", "cases" ], - "name": "delete-case-template", + "name": "delete-case-comment", "parameters": [ { "role": "flag", - "name": "template-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the template." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "comment-id", + "type": "string", + "required": true, + "summary": "The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.\n" }, { "role": "flag", @@ -73535,7 +73282,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a case template", + "summary": "Delete a case comment or alert", "intent": { "destructive": true, "idempotent": true, @@ -73549,21 +73296,21 @@ "kb", "cases" ], - "name": "get-case-template", + "name": "get-case-comment", "parameters": [ { "role": "flag", - "name": "template-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the template." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "version", - "type": "number", - "required": false, - "summary": "The version number of the template to retrieve. If omitted, the latest version is returned." + "name": "comment-id", + "type": "string", + "required": true, + "summary": "The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.\n" }, { "role": "flag", @@ -73587,7 +73334,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a case template by ID", + "summary": "Get a case comment or alert", "intent": { "destructive": false, "idempotent": true, @@ -73601,75 +73348,41 @@ "kb", "cases" ], - "name": "update-case-template", + "name": "push-case", "parameters": [ { "role": "flag", - "name": "template-id", + "name": "case-id", "type": "string", "required": true, - "summary": "The identifier for the template." - }, - { - "role": "flag", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "When true, validates the request without updating the template and returns `{\"valid\": true}`." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", - "name": "definition", + "name": "connector-id", "type": "string", "required": true, - "summary": "The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a `fields` array of inline field definitions or `$ref` entries pointing into the owner's field library. Stored field values appear on cases under `extended_fields` keys shaped `_as_`. Observable extraction (`settings.extractObservables`) is available only for Security templates. For Stack and Observability templates, setting it to `true` returns a 400 error. An update that keeps an already stored `true` for the same owner is accepted.\n" + "summary": "An identifier for the connector. To retrieve connector IDs, use the find connectors API." }, { "role": "flag", - "name": "description", + "name": "body", "type": "string", - "required": false, - "summary": "A description of the template." - }, - { - "role": "flag", - "name": "is-enabled", - "type": "boolean", - "required": false, - "summary": "Disabled templates are hidden from the case creation flow." + "required": false }, { "role": "flag", - "name": "name", + "name": "input-file", "type": "string", "required": false, - "summary": "The template identity name, unique per owner (case-insensitive). May be omitted when the YAML definition provides a case-default title (`name:`), which is then used as the identity name.\n" - }, - { - "role": "flag", - "name": "owner", - "type": "enum", - "required": true, - "enumValues": [ - "cases", - "observability", - "securitySolution" - ] - }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "repeatable": true, - "elementType": "string" + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "input-file", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", @@ -73679,35 +73392,25 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a case template", + "summary": "Push a case to an external service", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana cases API commands" - }, - { - "segment": "connectors", - "commands": [ + }, { "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "get-actions-connector-types", + "name": "get-case-applicable-fields", "parameters": [ { "role": "flag", - "name": "feature-id", + "name": "case-id", "type": "string", - "required": false, - "summary": "A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases)." + "required": true, + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." }, { "role": "flag", @@ -73731,7 +73434,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get connector types", + "summary": "Get the fields applicable to an existing case", "intent": { "destructive": false, "idempotent": true, @@ -73743,44 +73446,30 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "get-actions-connector-oauth-callback", + "name": "add-case-file", "parameters": [ { "role": "flag", - "name": "code", - "type": "string", - "required": false, - "summary": "The authorization code returned by the OAuth provider." - }, - { - "role": "flag", - "name": "state", - "type": "string", - "required": false, - "summary": "The state parameter for CSRF protection." - }, - { - "role": "flag", - "name": "error", + "name": "case-id", "type": "string", - "required": false, - "summary": "Error code if the authorization failed." + "required": true, + "summary": "The caseId parameter" }, { "role": "flag", - "name": "error-description", + "name": "file", "type": "string", - "required": false, - "summary": "Human-readable error description." + "required": true, + "summary": "The file being attached to the case." }, { "role": "flag", - "name": "session-state", + "name": "filename", "type": "string", "required": false, - "summary": "Session state from the OAuth provider (e.g., Microsoft)." + "summary": "The desired name of the file being attached to the case, it can be different than the name of the file in the filesystem. **This should not include the file extension.**" }, { "role": "flag", @@ -73804,35 +73493,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Handle OAuth callback", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "connectors" - ], - "name": "get-actions-connector-oauth-callback-script", - "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get OAuth callback script", + "summary": "Attach a file to a case", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -73840,16 +73502,49 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "get-actions-connector-connectorid-oauth-start", + "name": "find-case-activity", "parameters": [ { "role": "flag", - "name": "connector-id", + "name": "case-id", "type": "string", "required": true, - "summary": "An identifier for the connector." + "summary": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded." + }, + { + "role": "flag", + "name": "page", + "type": "number", + "required": false, + "summary": "The page number to return." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of items to return. Limited to 100 items." + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "Determines the sort order.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "types", + "type": "array", + "required": false, + "summary": "Determines the types of user actions to return.", + "repeatable": true }, { "role": "flag", @@ -73873,7 +73568,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Start OAuth authorization (redirects to the identity provider)", + "summary": "Find case activity", "intent": { "destructive": false, "idempotent": true, @@ -73885,16 +73580,29 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "delete-actions-connector-id", + "name": "get-cases-by-alert", "parameters": [ { "role": "flag", - "name": "id", + "name": "alert-id", "type": "string", "required": true, - "summary": "An identifier for the connector." + "summary": "An identifier for the alert." + }, + { + "role": "flag", + "name": "owner", + "type": "enum", + "required": false, + "summary": "A filter to limit the response to a specific set of applications. If this parameter is omitted, the response contains information about all the cases that the user has access to read.\n", + "repeatable": true, + "enumValues": [ + "cases", + "observability", + "securitySolution" + ] }, { "role": "flag", @@ -73916,18 +73624,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a connector", + "summary": "Get cases for an alert", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -73937,40 +73638,19 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "get-actions-connector-id", + "name": "get-case-configuration", "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "An identifier for the connector." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" } ], - "summary": "Get connector information", + "summary": "Get case settings", "intent": { "destructive": false, "idempotent": true, @@ -73982,50 +73662,68 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "post-actions-connector-id", + "name": "set-case-configuration", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", + "name": "closure-type", + "type": "enum", "required": true, - "summary": "An identifier for the connector." + "enumValues": [ + "close-by-pushing", + "close-by-user" + ] }, { "role": "flag", - "name": "connector-type-id", + "name": "connector", "type": "string", "required": true, - "summary": "The type of connector." + "summary": "An object that contains the connector configuration." }, { "role": "flag", - "name": "is-inbound-events-enabled", + "name": "custom-fields", + "type": "array", + "required": false, + "summary": "Custom fields case configuration. Deprecated. Use the field library (`/api/cases/field_definitions`) to manage field definitions and `extended_fields` on case create/update to set field values.\n", + "repeatable": true + }, + { + "role": "flag", + "name": "extract-observables", "type": "boolean", "required": false, - "summary": "When true, this connector can receive inbound events. Only valid for connectors that both send and receive. Defaults to false. Generate the webhook token after create." + "summary": "Indicates whether observables (for example, IPs, hashes, and URLs) are automatically extracted from case comments and events. When omitted, defaults to the owner's default: `true` for Security, `false` for Stack and Observability. Observable extraction is available only for Security cases. For Stack and Observability cases, a value that is not sent resolves to `false`, and setting it to `true` returns a 400 error.\n" }, { "role": "flag", - "name": "name", - "type": "string", + "name": "owner", + "type": "enum", "required": true, - "summary": "The display name for the connector." + "enumValues": [ + "cases", + "observability", + "securitySolution" + ] }, { "role": "flag", - "name": "config", - "type": "string", + "name": "templates", + "type": "array", "required": false, - "summary": "The connector configuration details." + "repeatable": true }, { "role": "flag", - "name": "secrets", - "type": "string", - "required": false + "name": "workflow-tags", + "type": "array", + "required": false, + "summary": "Workflow tags that limit which workflows appear in Cases workflow selectors. An empty array shows all workflows.\n", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -74049,7 +73747,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a connector", + "summary": "Add case settings", "intent": { "requiresAuth": true } @@ -74058,94 +73756,71 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "put-actions-connector-id", + "name": "update-case-configuration", "parameters": [ { "role": "flag", - "name": "id", + "name": "configuration-id", "type": "string", "required": true, - "summary": "An identifier for the connector." + "summary": "An identifier for the configuration." }, { "role": "flag", - "name": "is-inbound-events-enabled", - "type": "boolean", + "name": "closure-type", + "type": "enum", "required": false, - "summary": "Turn receiving inbound events on or off. Omit to keep the current setting. Only valid for connectors that both send and receive." - }, - { - "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "The display name for the connector." + "enumValues": [ + "close-by-pushing", + "close-by-user" + ] }, { "role": "flag", - "name": "config", + "name": "connector", "type": "string", "required": false, - "summary": "The connector configuration details." - }, - { - "role": "flag", - "name": "secrets", - "type": "string", - "required": false + "summary": "An object that contains the connector configuration." }, { "role": "flag", - "name": "input-file", - "type": "string", + "name": "custom-fields", + "type": "array", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Custom fields case configuration. Deprecated. Use the field library (`/api/cases/field_definitions`) to manage field definitions and `extended_fields` on case create/update to set field values.\n", + "repeatable": true }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "extract-observables", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Indicates whether observables (for example, IPs, hashes, and URLs) are automatically extracted from case comments and events. Observable extraction is available only for Security cases. For Stack and Observability cases, changing it to `true` returns a 400 error. A request that keeps an already stored `true` is accepted.\n" }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "templates", + "type": "array", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Update a connector", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "connectors" - ], - "name": "post-actions-connector-id-execute", - "parameters": [ + "repeatable": true + }, { "role": "flag", - "name": "id", + "name": "version", "type": "string", "required": true, - "summary": "An identifier for the connector." + "summary": "The version of the connector. To retrieve the version value, use the get configuration API.\n" }, { "role": "flag", - "name": "params", - "type": "string", - "required": true + "name": "workflow-tags", + "type": "array", + "required": false, + "summary": "Workflow tags that limit which workflows appear in Cases workflow selectors. An empty array shows all workflows.\n", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -74169,7 +73844,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Run a connector", + "summary": "Update case settings", "intent": { "requiresAuth": true } @@ -74178,9 +73853,9 @@ "path": [ "stack", "kb", - "connectors" + "cases" ], - "name": "get-actions-connectors", + "name": "find-case-connectors", "parameters": [ { "role": "dryRun", @@ -74190,7 +73865,7 @@ "summary": "validate all inputs and exit without performing any action" } ], - "summary": "Get all connectors", + "summary": "Get case connectors", "intent": { "destructive": false, "idempotent": true, @@ -74202,7 +73877,1265 @@ "path": [ "stack", "kb", - "connectors" + "cases" + ], + "name": "get-case-field-definitions-default-space", + "parameters": [ + { + "role": "flag", + "name": "owner", + "type": "string", + "required": true, + "summary": "The application that owns the field definitions (for example `cases`, `observability`, or `securitySolution`). Required.\n", + "repeatable": true + }, + { + "role": "flag", + "name": "is-global", + "type": "boolean", + "required": false, + "summary": "When true, returns only global field definitions (rendered on every case). When false, returns all definitions. Omit to return all.\n" + }, + { + "role": "flag", + "name": "page", + "type": "number", + "required": false, + "summary": "The page number to return." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of items to return. Limited to 100 items." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", + "required": false, + "summary": "The field to sort by. When omitted, results are sorted by `fieldDefinitionId` ascending and `sortOrder` is ignored.\n", + "enumValues": [ + "name", + "owner", + "isGlobal", + "displayOrder" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "Determines the sort order.", + "enumValues": [ + "asc", + "desc" + ] + }, + { + "role": "flag", + "name": "search", + "type": "string", + "required": false, + "summary": "A case-insensitive substring to match against each definition's `name` and `description` fields. Definitions where neither field contains the substring are excluded.\n" + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get all field definitions", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "create-case-field-definition-default-space", + "parameters": [ + { + "role": "flag", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "When true, runs authorization, body, and name-uniqueness validation without creating the field definition. Returns `{ \"valid\": true }` on success.\n" + }, + { + "role": "flag", + "name": "definition", + "type": "string", + "required": true, + "summary": "The field definition as a YAML string describing a single field (type, label, control, metadata)." + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "Optional human-readable description of the field's purpose." + }, + { + "role": "flag", + "name": "is-global", + "type": "boolean", + "required": false, + "summary": "When true, this field is rendered in every case for this owner, regardless of the template used. Global fields cannot be demoted (set to false) while they are linked to an active custom field in the Cases configuration.\n" + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The field name, unique per owner (case-insensitive). Must match the `name` key inside the YAML definition. When omitted, the name is extracted from the definition YAML automatically. Immutable after creation.\n" + }, + { + "role": "flag", + "name": "owner", + "type": "string", + "required": true, + "summary": "The application that owns this field definition." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Create a field definition", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "delete-case-field-definition-default-space", + "parameters": [ + { + "role": "flag", + "name": "field-definition-id", + "type": "string", + "required": true, + "summary": "The identifier for the field definition." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a field definition", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-field-definition-default-space", + "parameters": [ + { + "role": "flag", + "name": "field-definition-id", + "type": "string", + "required": true, + "summary": "The identifier for the field definition." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get a field definition by ID", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "update-case-field-definition-default-space", + "parameters": [ + { + "role": "flag", + "name": "field-definition-id", + "type": "string", + "required": true, + "summary": "The identifier for the field definition." + }, + { + "role": "flag", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "When true, runs authorization, body, and identity-immutability validation without updating the field definition. Returns `{ \"valid\": true }` on success.\n" + }, + { + "role": "flag", + "name": "definition", + "type": "string", + "required": true, + "summary": "The field definition as a YAML string describing a single field (type, label, control, metadata)." + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "Optional human-readable description of the field's purpose." + }, + { + "role": "flag", + "name": "is-global", + "type": "boolean", + "required": false, + "summary": "When true, this field is rendered in every case for this owner, regardless of the template used. Global fields cannot be demoted (set to false) while they are linked to an active custom field in the Cases configuration.\n" + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The field name, unique per owner (case-insensitive). Must match the `name` key inside the YAML definition. When omitted, the name is extracted from the definition YAML automatically. Immutable after creation. Unlike POST, the 50-character limit is not enforced on PUT so that definitions with legacy names that exceed the limit remain modifiable.\n" + }, + { + "role": "flag", + "name": "owner", + "type": "string", + "required": true, + "summary": "The application that owns this field definition." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update a field definition", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-applicable-fields", + "parameters": [ + { + "role": "flag", + "name": "owner", + "type": "string", + "required": true, + "summary": "The application that owns the cases (for example `cases`, `observability`, or `securitySolution`)." + }, + { + "role": "flag", + "name": "template-id", + "type": "string", + "required": false, + "summary": "The identifier of a template to include the template's fields in the response." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get the fields applicable to a case", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-reporters", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get case creators", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-tags", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get case tags", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-templates", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get all case templates", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "create-case-template", + "parameters": [ + { + "role": "flag", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "When true, validates the request without creating the template and returns `{\"valid\": true}`." + }, + { + "role": "flag", + "name": "definition", + "type": "string", + "required": true, + "summary": "The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a `fields` array of inline field definitions or `$ref` entries pointing into the owner's field library. Stored field values appear on cases under `extended_fields` keys shaped `_as_`. Observable extraction (`settings.extractObservables`) is available only for Security templates. For Stack and Observability templates, setting it to `true` returns a 400 error. An update that keeps an already stored `true` for the same owner is accepted.\n" + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "A description of the template." + }, + { + "role": "flag", + "name": "is-enabled", + "type": "boolean", + "required": false, + "summary": "Disabled templates are hidden from the case creation flow." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The template identity name, unique per owner (case-insensitive). May be omitted when the YAML definition provides a case-default title (`name:`), which is then used as the identity name.\n" + }, + { + "role": "flag", + "name": "owner", + "type": "enum", + "required": true, + "enumValues": [ + "cases", + "observability", + "securitySolution" + ] + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Create a case template", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "delete-case-template", + "parameters": [ + { + "role": "flag", + "name": "template-id", + "type": "string", + "required": true, + "summary": "The identifier for the template." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a case template", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "get-case-template", + "parameters": [ + { + "role": "flag", + "name": "template-id", + "type": "string", + "required": true, + "summary": "The identifier for the template." + }, + { + "role": "flag", + "name": "version", + "type": "number", + "required": false, + "summary": "The version number of the template to retrieve. If omitted, the latest version is returned." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get a case template by ID", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "cases" + ], + "name": "update-case-template", + "parameters": [ + { + "role": "flag", + "name": "template-id", + "type": "string", + "required": true, + "summary": "The identifier for the template." + }, + { + "role": "flag", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "When true, validates the request without updating the template and returns `{\"valid\": true}`." + }, + { + "role": "flag", + "name": "definition", + "type": "string", + "required": true, + "summary": "The template definition as a YAML string: case defaults (name, severity, category, tags, assignees, connector, settings) and a `fields` array of inline field definitions or `$ref` entries pointing into the owner's field library. Stored field values appear on cases under `extended_fields` keys shaped `_as_`. Observable extraction (`settings.extractObservables`) is available only for Security templates. For Stack and Observability templates, setting it to `true` returns a 400 error. An update that keeps an already stored `true` for the same owner is accepted.\n" + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "A description of the template." + }, + { + "role": "flag", + "name": "is-enabled", + "type": "boolean", + "required": false, + "summary": "Disabled templates are hidden from the case creation flow." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": false, + "summary": "The template identity name, unique per owner (case-insensitive). May be omitted when the YAML definition provides a case-default title (`name:`), which is then used as the identity name.\n" + }, + { + "role": "flag", + "name": "owner", + "type": "enum", + "required": true, + "enumValues": [ + "cases", + "observability", + "securitySolution" + ] + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update a case template", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana cases API commands" + }, + { + "segment": "connectors", + "commands": [ + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connector-types", + "parameters": [ + { + "role": "flag", + "name": "feature-id", + "type": "string", + "required": false, + "summary": "A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases)." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get connector types", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connector-oauth-callback", + "parameters": [ + { + "role": "flag", + "name": "code", + "type": "string", + "required": false, + "summary": "The authorization code returned by the OAuth provider." + }, + { + "role": "flag", + "name": "state", + "type": "string", + "required": false, + "summary": "The state parameter for CSRF protection." + }, + { + "role": "flag", + "name": "error", + "type": "string", + "required": false, + "summary": "Error code if the authorization failed." + }, + { + "role": "flag", + "name": "error-description", + "type": "string", + "required": false, + "summary": "Human-readable error description." + }, + { + "role": "flag", + "name": "session-state", + "type": "string", + "required": false, + "summary": "Session state from the OAuth provider (e.g., Microsoft)." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Handle OAuth callback", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connector-oauth-callback-script", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get OAuth callback script", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connector-connectorid-oauth-start", + "parameters": [ + { + "role": "flag", + "name": "connector-id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Start OAuth authorization (redirects to the identity provider)", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "delete-actions-connector-id", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a connector", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connector-id", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get connector information", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "post-actions-connector-id", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "connector-type-id", + "type": "string", + "required": true, + "summary": "The type of connector." + }, + { + "role": "flag", + "name": "is-inbound-events-enabled", + "type": "boolean", + "required": false, + "summary": "When true, this connector can receive inbound events. Only valid for connectors that both send and receive. Defaults to false. Generate the webhook token after create." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The display name for the connector." + }, + { + "role": "flag", + "name": "config", + "type": "string", + "required": false, + "summary": "The connector configuration details." + }, + { + "role": "flag", + "name": "secrets", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Create a connector", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "put-actions-connector-id", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "is-inbound-events-enabled", + "type": "boolean", + "required": false, + "summary": "Turn receiving inbound events on or off. Omit to keep the current setting. Only valid for connectors that both send and receive." + }, + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The display name for the connector." + }, + { + "role": "flag", + "name": "config", + "type": "string", + "required": false, + "summary": "The connector configuration details." + }, + { + "role": "flag", + "name": "secrets", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update a connector", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "post-actions-connector-id-execute", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "An identifier for the connector." + }, + { + "role": "flag", + "name": "params", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Run a connector", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" + ], + "name": "get-actions-connectors", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get all connectors", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "connectors" ], "name": "post-actions-events-connector-type-id-connector-id", "parameters": [ @@ -74335,13 +75268,6 @@ "required": true, "summary": "The unique identifier of the AI Index." }, - { - "role": "flag", - "name": "memory-enabled", - "type": "boolean", - "required": false, - "summary": "Whether this AI index accepts memory writes. Defaults to true when omitted. Deprecated and ignored in Serverless and in Elastic 9.7 and later." - }, { "role": "flag", "name": "sources", @@ -74414,6 +75340,13 @@ "required": true, "summary": "The ES|QL query to run. Its FROM decides which Elasticsearch indices are read (normally `ai-index-*`); the server adds the space filter and a row limit." }, + { + "role": "flag", + "name": "user-id", + "type": "string", + "required": false, + "summary": "When set, limits reads to documents with this `user_id` and documents with no `user_id`. When omitted, no user filter is applied." + }, { "role": "flag", "name": "input-file", @@ -74596,13 +75529,6 @@ "required": false, "summary": "The recurring feedback analysis, which reads agent signals and proposes improvement actions for the AI Index." }, - { - "role": "flag", - "name": "memory-enabled", - "type": "boolean", - "required": false, - "summary": "Whether this AI index accepts memory writes. Defaults to true when omitted. Deprecated and ignored in Serverless and in Elastic 9.7 and later." - }, { "role": "flag", "name": "sources", @@ -74641,7 +75567,59 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update an AI Index", + "summary": "Create or update an AI Index", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "context-engine" + ], + "name": "get-context-engine-ai-index-aiindexid-describe", + "parameters": [ + { + "role": "flag", + "name": "ai-index-id", + "type": "string", + "required": true, + "summary": "The unique identifier of the AI Index." + }, + { + "role": "flag", + "name": "user-id", + "type": "string", + "required": false, + "summary": "When set, limits reads to documents with this `user_id` and documents with no `user_id`. When omitted, no user filter is applied." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Describe an AI Index", "intent": { "destructive": false, "idempotent": true, @@ -74655,14 +75633,102 @@ "kb", "context-engine" ], - "name": "get-context-engine-ai-index-aiindexid-describe", + "name": "post-context-engine-memory-forget", "parameters": [ { "role": "flag", - "name": "ai-index-id", + "name": "ids", + "type": "array", + "required": true, + "summary": "The ids of the memories to forget. The route collapses duplicates.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "user-id", + "type": "string", + "required": false, + "summary": "The user the memories belong to, as a Kibana user profile UID, or `service_account:` for a service account. Omit this field to use the caller. Naming another user requires `contextEngine:manage_memory`." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Forget session memories", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "context-engine" + ], + "name": "post-context-engine-memory-remember", + "parameters": [ + { + "role": "flag", + "name": "ai-index-ids", + "type": "array", + "required": false, + "summary": "The AI indices that dreaming promotes the memory into. Each must exist in this space, and the caller requires the Elasticsearch `write` privilege on its backing index.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "attributes", + "type": "string", + "required": false, + "summary": "String hints about the memory for dreaming. Accepts up to 50 entries, with non-blank keys of 1 to 256 characters." + }, + { + "role": "flag", + "name": "content", "type": "string", "required": true, - "summary": "The unique identifier of the AI Index." + "summary": "The memory text. Elasticsearch indexes this field for semantic search." + }, + { + "role": "flag", + "name": "id", + "type": "string", + "required": false, + "summary": "The id of an existing memory to revise. The revision replaces the memory in full and returns 404 if the memory does not exist, was forgotten, or belongs to another user or space. Omit this field to generate a new id." + }, + { + "role": "flag", + "name": "session-id", + "type": "string", + "required": true, + "summary": "The session the memory comes from." + }, + { + "role": "flag", + "name": "user-id", + "type": "string", + "required": false, + "summary": "The user the memory belongs to, as a Kibana user profile UID, or `service_account:` for a service account. Omit this field to use the caller. Naming another user requires `contextEngine:manage_memory`." }, { "role": "flag", @@ -74686,11 +75752,74 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Describe an AI Index", + "summary": "Remember a session memory", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "context-engine" + ], + "name": "post-context-engine-memory-save-event", + "parameters": [ + { + "role": "flag", + "name": "ai-index-ids", + "type": "array", + "required": false, + "summary": "The AI indices the agent could use in the session. Each must exist in this space, and the caller needs the Elasticsearch `write` privilege on its backing index.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "events", + "type": "array", + "required": true, + "summary": "The events to save.", + "repeatable": true + }, + { + "role": "flag", + "name": "session-id", + "type": "string", + "required": true, + "summary": "The session the events belong to." + }, + { + "role": "flag", + "name": "user-id", + "type": "string", + "required": false, + "summary": "The user the events belong to, as a Kibana user profile UID, or `service_account:` for a service account. Defaults to the caller. Naming another user requires `contextEngine:manage_memory`." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Save session events", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } } @@ -74922,6 +76051,58 @@ "requiresAuth": true } }, + { + "path": [ + "stack", + "kb", + "dashboards" + ], + "name": "delete-dashboard", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The dashboard ID, as returned by the create or search endpoints." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a dashboard", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, { "path": [ "stack", @@ -75102,58 +76283,6 @@ "scope": "global", "requiresAuth": true } - }, - { - "path": [ - "stack", - "kb", - "dashboards" - ], - "name": "delete-dashboard", - "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The dashboard ID, as returned by the create or search endpoints." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" - } - ], - "summary": "Delete a dashboard", - "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } } ], "namespaces": [], @@ -76219,6 +77348,14 @@ "required": false, "summary": "The name of the data view. Example: \"Sample data view\"." }, + { + "role": "flag", + "name": "spaces", + "type": "array", + "required": false, + "repeatable": true, + "elementType": "string" + }, { "role": "flag", "name": "time-field", @@ -76399,6 +77536,14 @@ "required": false, "summary": "The name of the data view. Example: \"Sample data view\"." }, + { + "role": "flag", + "name": "spaces", + "type": "array", + "required": false, + "repeatable": true, + "elementType": "string" + }, { "role": "flag", "name": "time-field", @@ -78318,6 +79463,7 @@ "name": "download-source-ids", "type": "array", "required": false, + "summary": "An ordered list of agent binary download sources. When downloading an upgrade, Elastic Agent tries them in order until a download succeeds. Elastic Agent versions earlier than 9.6.0 only use the first source. All sources use the first source's proxy, SSL, authentication, and `reserve_diskspace` settings. If the first source uses a proxy, Fleet uses the proxy's SSL settings instead of the source's. An empty list uses the default download source. On update, omitting this field keeps the current list. If you set only the deprecated `download_source_id`, Fleet replaces the list with that source, or clears it if the value is `null`.", "repeatable": true, "elementType": "string" }, @@ -78456,7 +79602,7 @@ "name": "overrides", "type": "string", "required": false, - "summary": "Override settings that are defined in the agent policy. Input settings cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure." + "summary": "Override settings that are defined in the agent policy. Input, output permissions and OpenTelemetry collector settings (receivers, exporters, processors, connectors, extensions, service) cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure." }, { "role": "flag", @@ -78719,6 +79865,7 @@ "name": "download-source-ids", "type": "array", "required": false, + "summary": "An ordered list of agent binary download sources. When downloading an upgrade, Elastic Agent tries them in order until a download succeeds. Elastic Agent versions earlier than 9.6.0 only use the first source. All sources use the first source's proxy, SSL, authentication, and `reserve_diskspace` settings. If the first source uses a proxy, Fleet uses the proxy's SSL settings instead of the source's. An empty list uses the default download source. On update, omitting this field keeps the current list. If you set only the deprecated `download_source_id`, Fleet replaces the list with that source, or clears it if the value is `null`.", "repeatable": true, "elementType": "string" }, @@ -78857,7 +80004,7 @@ "name": "overrides", "type": "string", "required": false, - "summary": "Override settings that are defined in the agent policy. Input settings cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure." + "summary": "Override settings that are defined in the agent policy. Input, output permissions and OpenTelemetry collector settings (receivers, exporters, processors, connectors, extensions, service) cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure." }, { "role": "flag", @@ -82679,6 +83826,13 @@ ], "name": "post-fleet-agentless-policies", "parameters": [ + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -83039,6 +84193,13 @@ "required": false, "summary": "ID of the cloud onboarding instance that manages the package policies. Required to change package policies managed by a cloud onboarding instance; only the onboarding flow is expected to set it. Requests that change a managed package policy without a matching ID are rejected with a 400 error, and `force` does not bypass this check. A bulk delete that includes such a package policy is rejected as a whole." }, + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -84532,7 +85693,14 @@ "name": "callback-id", "type": "string", "required": true, - "summary": "ID of the callback record, as issued to the stack." + "summary": "ID of the callback record, as issued to the launched deployment." + }, + { + "role": "flag", + "name": "origin-proof", + "type": "string", + "required": false, + "summary": "The proof that the report was sent from the account of the reported role and stack: a signed STS `GetCallerIdentity` request, made by the callback function with the callback id and the SHA-256 of the reported values among its signed headers. Kibana forwards it to the regional STS endpoint; whoever answers identifies the signer. Optional while stacks launched before the proof was sent can still report." }, { "role": "flag", @@ -84957,6 +86125,13 @@ ], "name": "post-fleet-managed-integrations", "parameters": [ + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -85317,6 +86492,13 @@ "required": false, "summary": "ID of the cloud onboarding instance that manages the package policies. Required to change package policies managed by a cloud onboarding instance; only the onboarding flow is expected to set it. Requests that change a managed package policy without a matching ID are rejected with a 400 error, and `force` does not bypass this check. A bulk delete that includes such a package policy is rejected as a whole." }, + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -85824,6 +87006,13 @@ "type": "string", "required": false }, + { + "role": "flag", + "name": "auth", + "type": "string", + "required": false, + "summary": "How the output authenticates with the OTLP endpoint. `auth_header` and `custom_header` send the credential set in `secrets.auth.credential` in a request header. `azure` sends a Microsoft Entra ID token that the collector requests itself: it requires the `http/protobuf` protocol, an `https://` URL for `endpoint` and for every signal endpoint that is set, and it cannot be used with `otlp_exporter.tls.insecure_skip_verify`. `otlp_exporter.headers` cannot include `Authorization` for `auth_header` and `azure`. `azure` requires an Elastic Agent on 9.3 or later. Not accepted for the managed OTLP endpoint." + }, { "role": "flag", "name": "otlp-exporter", @@ -86288,6 +87477,13 @@ "type": "string", "required": false }, + { + "role": "flag", + "name": "auth", + "type": "string", + "required": false, + "summary": "How the output authenticates with the OTLP endpoint. `auth_header` and `custom_header` send the credential set in `secrets.auth.credential` in a request header. `azure` sends a Microsoft Entra ID token that the collector requests itself: it requires the `http/protobuf` protocol, an `https://` URL for `endpoint` and for every signal endpoint that is set, and it cannot be used with `otlp_exporter.tls.insecure_skip_verify`. `otlp_exporter.headers` cannot include `Authorization` for `auth_header` and `azure`. `azure` requires an Elastic Agent on 9.3 or later. Not accepted for the managed OTLP endpoint." + }, { "role": "flag", "name": "otlp-exporter", @@ -86497,6 +87693,13 @@ "legacy" ] }, + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -86915,6 +88118,13 @@ "required": false, "summary": "ID of the cloud onboarding instance that manages the package policies. Required to change package policies managed by a cloud onboarding instance; only the onboarding flow is expected to set it. Requests that change a managed package policy without a matching ID are rejected with a 400 error, and `force` does not bypass this check. A bulk delete that includes such a package policy is rejected as a whole." }, + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "additional-datastreams-permissions", @@ -87190,6 +88400,13 @@ ], "name": "post-fleet-package-policies-upgrade", "parameters": [ + { + "role": "flag", + "name": "acknowledge-agent-version-incompatibility", + "type": "boolean", + "required": false, + "summary": "When true, create or upgrade the package policy even though some active agents on its agent policies don't satisfy the package's agent version condition. Without it, the request is rejected, because those agents would stop collecting the integration's data. The `force` flag does not bypass this check." + }, { "role": "flag", "name": "acknowledge-breaking-changes", @@ -89728,6 +90945,136 @@ "namespaces": [], "summary": "Kibana ml API commands" }, + { + "segment": "model-management", + "commands": [ + { + "path": [ + "stack", + "kb", + "model-management" + ], + "name": "get-model-management-feature-settings", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get feature settings", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "model-management" + ], + "name": "put-model-management-feature-settings", + "parameters": [ + { + "role": "flag", + "name": "features", + "type": "array", + "required": true, + "summary": "The model assignments for each AI feature, up to 30 features. Each feature can appear once. A feature left out of a full replacement loses its saved assignment and returns to normal model selection. To learn how Kibana chooses models, refer to [Manage access to AI features](https://www.elastic.co/docs/explore-analyze/ai-features/manage-access-to-ai-assistant).", + "repeatable": true + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Replace feature settings", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "model-management" + ], + "name": "put-model-management-feature-settings-feature-id", + "parameters": [ + { + "role": "flag", + "name": "feature-id", + "type": "string", + "required": true, + "summary": "The AI feature to update, for example `agent_builder`. Must be a registered feature or one already in the saved settings." + }, + { + "role": "flag", + "name": "endpoints", + "type": "array", + "required": true, + "summary": "The inference endpoints the feature uses, in order of preference. The first endpoint that can be resolved is used by default; IDs that do not resolve are skipped. Up to 30 endpoints. An empty list saves an explicit choice of no endpoints.", + "repeatable": true + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update one feature setting", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana model-management API commands" + }, { "segment": "observabilityaiassistant", "commands": [ @@ -98889,6 +100236,14 @@ "required": false, "summary": "Description of the watchlist" }, + { + "role": "flag", + "name": "entity-sources", + "type": "array", + "required": false, + "summary": "The rule-based data sources (entity store or index) the watchlist should have after the update, at most one of each type. Omit it to leave the data sources as they are; an empty array removes them. A watchlist that is not managed can have only one rule-based source in this array; its integration sources are not counted and are not changed. An entity store source requires a non-empty `queryRule`. An index source requires Elasticsearch `read` privileges on its `indexPattern` (and encrypted saved objects to be configured on self-managed deployments), and accepts a `range`; `range` is ignored for entity store sources. Managed data sources are not changed.", + "repeatable": true + }, { "role": "flag", "name": "managed", @@ -102887,12 +104242,19 @@ "required": false, "summary": "Comma-separated list of user IDs to filter live query history." }, + { + "role": "flag", + "name": "tags", + "type": "string", + "required": false, + "summary": "A JSON-encoded array of tags to filter live query history. A comma-separated list is also accepted when the value is not valid JSON. Scheduled query runs have no tags, so they are left out when this filter is set." + }, { "role": "flag", "name": "source-filters", "type": "string", "required": false, - "summary": "Comma-separated list of source types to include. Valid values are `live`, `rule`, and `scheduled`." + "summary": "Comma-separated list of source types to include. Valid values are `live`, `rule`, `scheduled`, and `workflow`." }, { "role": "flag", @@ -103062,7 +104424,7 @@ "name": "alert-ids", "type": "array", "required": false, - "summary": "A list of alert IDs associated with the live query.", + "summary": "A list of alert IDs associated with the live query. At most 100 distinct IDs are accepted. Every ID must refer to an alert you can read; otherwise the request fails with a 404. IDs must not be empty.", "repeatable": true, "elementType": "string" }, @@ -103392,6 +104754,13 @@ "desc" ] }, + { + "role": "flag", + "name": "with-effective-policy-ids", + "type": "boolean", + "required": false, + "summary": "Set to `true` to include `effective_policy_ids` for each pack. Reads Fleet integrations, so leave it unset when you do not need it." + }, { "role": "flag", "name": "input-file", @@ -103606,6 +104975,13 @@ "required": true, "summary": "The pack ID." }, + { + "role": "flag", + "name": "with-effective-policy-ids", + "type": "boolean", + "required": false, + "summary": "Set to `true` to include `effective_policy_ids`. Reads Fleet integrations, so leave it unset when you do not need it." + }, { "role": "flag", "name": "input-file", @@ -104332,6 +105708,13 @@ "required": false, "summary": "The kuery to filter the results by." }, + { + "role": "flag", + "name": "es-filters", + "type": "string", + "required": false, + "summary": "A JSON-encoded array of Kibana filters, such as the search bar filter pills, to apply to the results. A value that is not valid JSON or not a filters array returns a 400 error." + }, { "role": "flag", "name": "page", @@ -105764,7 +107147,76 @@ "kb", "slo" ], - "name": "find-slos-op", + "name": "get-slo-global-settings-op", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get the global SLO settings", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "slo" + ], + "name": "update-slo-global-settings-op", + "parameters": [ + { + "role": "flag", + "name": "sli-retention", + "type": "string", + "required": true, + "summary": "The SLI retention settings. The request replaces the whole block." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update the global SLO settings", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "slo" + ], + "name": "find-slos", "parameters": [ { "role": "flag", @@ -105877,7 +107329,7 @@ "kb", "slo" ], - "name": "create-slo-op", + "name": "create-slo", "parameters": [ { "role": "flag", @@ -105996,14 +107448,14 @@ "kb", "slo" ], - "name": "bulk-delete-op", + "name": "bulk-delete", "parameters": [ { "role": "flag", "name": "list", "type": "array", "required": true, - "summary": "An array of SLO Definition id", + "summary": "An array of SLO definition IDs", "repeatable": true, "elementType": "string" }, @@ -106040,14 +107492,14 @@ "kb", "slo" ], - "name": "bulk-delete-status-op", + "name": "bulk-delete-status", "parameters": [ { "role": "flag", "name": "task-id", "type": "string", "required": true, - "summary": "The task id of the bulk delete operation" + "summary": "The task ID of the bulk delete operation" }, { "role": "flag", @@ -106085,7 +107537,7 @@ "kb", "slo" ], - "name": "delete-rollup-data-op", + "name": "delete-rollup-data", "parameters": [ { "role": "flag", @@ -106098,7 +107550,7 @@ "name": "list", "type": "array", "required": true, - "summary": "An array of slo ids", + "summary": "An array of SLO IDs", "repeatable": true, "elementType": "string" }, @@ -106142,7 +107594,7 @@ "kb", "slo" ], - "name": "bulk-snapshot-op", + "name": "bulk-snapshot", "parameters": [ { "role": "flag", @@ -106192,7 +107644,7 @@ "kb", "slo" ], - "name": "get-definitions-op", + "name": "get-definitions", "parameters": [ { "role": "flag", @@ -106280,14 +107732,14 @@ "kb", "slo" ], - "name": "delete-slo-instances-op", + "name": "delete-slo-instances", "parameters": [ { "role": "flag", "name": "list", "type": "array", "required": true, - "summary": "An array of slo id and instance id", + "summary": "An array of SLO ID and instance ID pairs", "repeatable": true }, { @@ -106323,7 +107775,7 @@ "kb", "slo" ], - "name": "delete-slo-op", + "name": "delete-slo", "parameters": [ { "role": "flag", @@ -106375,7 +107827,7 @@ "kb", "slo" ], - "name": "get-slo-op", + "name": "get-slo", "parameters": [ { "role": "flag", @@ -106437,7 +107889,7 @@ "kb", "slo" ], - "name": "update-slo-op", + "name": "update-slo", "parameters": [ { "role": "flag", @@ -106553,7 +108005,7 @@ "kb", "slo" ], - "name": "reset-slo-op", + "name": "reset-slo", "parameters": [ { "role": "flag", @@ -106595,7 +108047,7 @@ "kb", "slo" ], - "name": "get-snapshot-op", + "name": "get-snapshot", "parameters": [ { "role": "flag", @@ -106657,7 +108109,7 @@ "kb", "slo" ], - "name": "disable-slo-op", + "name": "disable-slo", "parameters": [ { "role": "flag", @@ -106699,7 +108151,7 @@ "kb", "slo" ], - "name": "enable-slo-op", + "name": "enable-slo", "parameters": [ { "role": "flag", @@ -107191,10 +108643,303 @@ "parameters": [ { "role": "flag", - "name": "id", + "name": "id", + "type": "string", + "required": true, + "summary": "The space identifier." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get a space", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "spaces" + ], + "name": "put-spaces-space-id", + "parameters": [ + { + "role": "flag", + "name": "id", + "type": "string", + "required": true, + "summary": "The space identifier. You are unable to change the ID with the update operation." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Update a space", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana spaces API commands" + }, + { + "segment": "streams", + "commands": [ + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "get-streams", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get stream list", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "post-streams-disable", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Disable streams", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "post-streams-enable", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Enable streams", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "post-streams-resync", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Resync streams", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "delete-streams-name", + "parameters": [ + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the stream." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Delete a stream", + "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "get-streams-name", + "parameters": [ + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the stream." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get a stream", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "streams" + ], + "name": "put-streams-name", + "parameters": [ + { + "role": "flag", + "name": "name", "type": "string", "required": true, - "summary": "The space identifier." + "summary": "The name of the stream." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false }, { "role": "flag", @@ -107218,7 +108963,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a space", + "summary": "Create or update a stream", "intent": { "destructive": false, "idempotent": true, @@ -107230,22 +108975,38 @@ "path": [ "stack", "kb", - "spaces" + "streams" ], - "name": "put-spaces-space-id", + "name": "post-streams-name-fork", "parameters": [ { "role": "flag", - "name": "id", + "name": "name", "type": "string", "required": true, - "summary": "The space identifier. You are unable to change the ID with the update operation." + "summary": "The name of the parent stream to fork from." }, { "role": "flag", - "name": "body", + "name": "status", + "type": "enum", + "required": false, + "enumValues": [ + "enabled", + "disabled" + ] + }, + { + "role": "flag", + "name": "stream", "type": "string", - "required": false + "required": true + }, + { + "role": "flag", + "name": "where", + "type": "string", + "required": true }, { "role": "flag", @@ -107269,38 +109030,49 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a space", + "summary": "Fork a stream", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana spaces API commands" - }, - { - "segment": "streams", - "commands": [ + }, { "path": [ "stack", "kb", "streams" ], - "name": "get-streams", + "name": "get-streams-name-ingest", "parameters": [ + { + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the stream." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" } ], - "summary": "Get stream list", + "summary": "Get ingest stream settings", "intent": { "destructive": false, "idempotent": true, @@ -107314,60 +109086,48 @@ "kb", "streams" ], - "name": "post-streams-disable", + "name": "put-streams-name-ingest", "parameters": [ { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "name", + "type": "string", + "required": true, + "summary": "The name of the stream." + }, + { + "role": "flag", + "name": "ingest", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "input-file", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Disable streams", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "streams" - ], - "name": "post-streams-enable", - "parameters": [ + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Enable streams", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "streams" - ], - "name": "post-streams-resync", - "parameters": [ + }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "skip input validation and send the request as-is" } ], - "summary": "Resync streams", + "summary": "Update ingest stream settings", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -107377,14 +109137,20 @@ "kb", "streams" ], - "name": "delete-streams-name", + "name": "post-streams-name-content-export", "parameters": [ { "role": "flag", "name": "name", "type": "string", "required": true, - "summary": "The name of the stream." + "summary": "The name of the stream to export content from." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false }, { "role": "flag", @@ -107406,20 +109172,10 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a stream", + "summary": "Export stream content", "intent": { - "destructive": true, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -107429,14 +109185,26 @@ "kb", "streams" ], - "name": "get-streams-name", + "name": "post-streams-name-content-import", "parameters": [ { "role": "flag", "name": "name", "type": "string", "required": true, - "summary": "The name of the stream." + "summary": "The name of the stream to import content into." + }, + { + "role": "flag", + "name": "content", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "include", + "type": "string", + "required": true }, { "role": "flag", @@ -107460,11 +109228,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a stream", + "summary": "Import content into a stream", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -107474,20 +109239,38 @@ "kb", "streams" ], - "name": "put-streams-name", + "name": "get-streams-streamname-attachments", "parameters": [ { "role": "flag", - "name": "name", + "name": "stream-name", "type": "string", "required": true, - "summary": "The name of the stream." + "summary": "The name of the stream" }, { "role": "flag", - "name": "body", + "name": "query", "type": "string", - "required": false + "required": false, + "summary": "Search query to filter attachments by title" + }, + { + "role": "flag", + "name": "attachment-types", + "type": "array", + "required": false, + "summary": "Filter by attachment types (single value or array)", + "repeatable": true + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "Filter by tags (single value or array)", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -107511,7 +109294,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create or update a stream", + "summary": "Get stream attachments", "intent": { "destructive": false, "idempotent": true, @@ -107525,42 +109308,21 @@ "kb", "streams" ], - "name": "post-streams-name-fork", + "name": "post-streams-streamname-attachments-bulk", "parameters": [ { "role": "flag", - "name": "name", + "name": "stream-name", "type": "string", "required": true, - "summary": "The name of the parent stream to fork from." - }, - { - "role": "flag", - "name": "draft", - "type": "boolean", - "required": false - }, - { - "role": "flag", - "name": "status", - "type": "enum", - "required": false, - "enumValues": [ - "enabled", - "disabled" - ] - }, - { - "role": "flag", - "name": "stream", - "type": "string", - "required": true + "summary": "The name of the stream" }, { "role": "flag", - "name": "where", - "type": "string", - "required": true + "name": "operations", + "type": "array", + "required": true, + "repeatable": true }, { "role": "flag", @@ -107584,7 +109346,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Fork a stream", + "summary": "Bulk update attachments", "intent": { "requiresAuth": true } @@ -107595,14 +109357,28 @@ "kb", "streams" ], - "name": "get-streams-name-ingest", + "name": "delete-streams-streamname-attachments-attachmenttype-attachmentid", "parameters": [ { "role": "flag", - "name": "name", + "name": "stream-name", "type": "string", "required": true, - "summary": "The name of the stream." + "summary": "The name of the stream" + }, + { + "role": "flag", + "name": "attachment-type", + "type": "string", + "required": true, + "summary": "The type of the attachment" + }, + { + "role": "flag", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The ID of the attachment" }, { "role": "flag", @@ -107624,11 +109400,18 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Get ingest stream settings", + "summary": "Unlink an attachment from a stream", "intent": { - "destructive": false, + "destructive": true, "idempotent": true, "scope": "global", "requiresAuth": true @@ -107640,20 +109423,28 @@ "kb", "streams" ], - "name": "put-streams-name-ingest", + "name": "put-streams-streamname-attachments-attachmenttype-attachmentid", "parameters": [ { "role": "flag", - "name": "name", + "name": "stream-name", "type": "string", "required": true, - "summary": "The name of the stream." + "summary": "The name of the stream" }, { "role": "flag", - "name": "ingest", + "name": "attachment-type", "type": "string", - "required": true + "required": true, + "summary": "The type of the attachment" + }, + { + "role": "flag", + "name": "attachment-id", + "type": "string", + "required": true, + "summary": "The ID of the attachment" }, { "role": "flag", @@ -107677,28 +109468,35 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update ingest stream settings", + "summary": "Link an attachment to a stream", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana streams API commands" + }, + { + "segment": "synthetics", + "commands": [ { "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "get-streams-name-query", + "name": "post-synthetics-monitor-test", "parameters": [ { "role": "flag", - "name": "name", + "name": "monitor-id", "type": "string", "required": true, - "summary": "The name of the query stream." + "summary": "The ID (config_id) of the monitor to test." }, { "role": "flag", @@ -107722,11 +109520,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get query stream settings", + "summary": "Trigger an on-demand test run for a monitor", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -107734,28 +109529,191 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "put-streams-name-query", + "name": "get-synthetic-monitors", "parameters": [ { "role": "flag", - "name": "name", + "name": "query", "type": "string", - "required": true, - "summary": "The name of the query stream." + "required": false, + "summary": "A free-text query string." }, { "role": "flag", - "name": "field-descriptions", + "name": "filter", "type": "string", - "required": false + "required": false, + "summary": "Additional KQL filtering criteria." }, { "role": "flag", - "name": "query", + "name": "tags", + "type": "array", + "required": false, + "summary": "Tags to filter monitors. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "monitor-types", + "type": "array", + "required": false, + "summary": "The monitor types to filter by, such as `http`. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "locations", + "type": "array", + "required": false, + "summary": "The location IDs to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "projects", + "type": "array", + "required": false, + "summary": "The projects to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "schedules", + "type": "array", + "required": false, + "summary": "The schedules to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "remote-names", + "type": "array", + "required": false, + "summary": "A string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "status", + "type": "array", + "required": false, + "summary": "The monitor statuses to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "monitor-query-ids", + "type": "array", + "required": false, + "summary": "The monitor query IDs to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "config-ids", + "type": "array", + "required": false, + "summary": "The monitor config IDs to filter by. Accepts a string or an array of strings.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "show-from-all-spaces", + "type": "enum", + "required": false, + "summary": "If `true`, return monitors from all spaces the user can access.", + "enumValues": [ + "true", + "false" + ] + }, + { + "role": "flag", + "name": "use-logical-and-for", + "type": "array", + "required": false, + "summary": "Apply logical AND for `tags` and/or `locations`. Accepts a string or an array.", + "repeatable": true + }, + { + "role": "flag", + "name": "date-range-start", "type": "string", - "required": true + "required": false, + "summary": "The start of the status window, as datemath (`now-15m`) or an ISO-8601 timestamp." + }, + { + "role": "flag", + "name": "date-range-end", + "type": "string", + "required": false, + "summary": "The end of the status window, as datemath (`now`) or an ISO-8601 timestamp." + }, + { + "role": "flag", + "name": "page", + "type": "number", + "required": false, + "summary": "The page number for paginated results." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of items to return per page." + }, + { + "role": "flag", + "name": "sort-field", + "type": "enum", + "required": false, + "summary": "The field to sort the results by.", + "enumValues": [ + "enabled", + "status", + "updated_at", + "created_at", + "urls", + "name", + "tags", + "project_id", + "type", + "schedule", + "journey_id" + ] + }, + { + "role": "flag", + "name": "sort-order", + "type": "enum", + "required": false, + "summary": "The sort order.", + "enumValues": [ + "desc", + "asc" + ] + }, + { + "role": "flag", + "name": "search-after", + "type": "array", + "required": false, + "summary": "A JSON array of sort values from the previous page, for cursor-based paging.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -107779,7 +109737,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Upsert query stream settings", + "summary": "Search monitors", "intent": { "destructive": false, "idempotent": true, @@ -107791,16 +109749,27 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "post-streams-name-content-export", + "name": "post-synthetic-monitors", "parameters": [ { "role": "flag", - "name": "name", - "type": "string", - "required": true, - "summary": "The name of the stream to export content from." + "name": "id", + "type": "string", + "required": false, + "summary": "A custom ID for the new monitor. Generated if omitted." + }, + { + "role": "flag", + "name": "preserve-namespace", + "type": "enum", + "required": false, + "summary": "If `true`, store the `namespace` exactly as sent, skipping the space-derived fallback. If `false` or omitted, an explicit `namespace` is still stored as sent; only an omitted `namespace` is derived from the space ID.", + "enumValues": [ + "true", + "false" + ] }, { "role": "flag", @@ -107830,7 +109799,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Export stream content", + "summary": "Create a monitor", "intent": { "requiresAuth": true } @@ -107839,28 +109808,16 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "post-streams-name-content-import", + "name": "post-synthetic-monitors-bulk-create", "parameters": [ { "role": "flag", - "name": "name", - "type": "string", + "name": "monitors", + "type": "array", "required": true, - "summary": "The name of the stream to import content into." - }, - { - "role": "flag", - "name": "content", - "type": "string", - "required": true - }, - { - "role": "flag", - "name": "include", - "type": "string", - "required": true + "repeatable": true }, { "role": "flag", @@ -107884,7 +109841,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Import content into a stream", + "summary": "Bulk create monitors", "intent": { "requiresAuth": true } @@ -107893,38 +109850,16 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "get-streams-streamname-attachments", + "name": "delete-synthetic-monitors", "parameters": [ { "role": "flag", - "name": "stream-name", - "type": "string", - "required": true, - "summary": "The name of the stream" - }, - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "Search query to filter attachments by title" - }, - { - "role": "flag", - "name": "attachment-types", - "type": "array", - "required": false, - "summary": "Filter by attachment types (single value or array)", - "repeatable": true - }, - { - "role": "flag", - "name": "tags", + "name": "ids", "type": "array", - "required": false, - "summary": "Filter by tags (single value or array)", + "required": true, + "summary": "An array of monitor IDs to delete.", "repeatable": true, "elementType": "string" }, @@ -107950,11 +109885,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get stream attachments", + "summary": "Delete monitors", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -107962,22 +109894,16 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "post-streams-streamname-attachments-bulk", + "name": "put-synthetic-monitors-bulk-update", "parameters": [ { "role": "flag", - "name": "stream-name", - "type": "string", - "required": true, - "summary": "The name of the stream" - }, - { - "role": "flag", - "name": "operations", + "name": "updates", "type": "array", "required": true, + "summary": "Monitors to update. Each `id` may appear at most once. `attributes` must contain at least one field.", "repeatable": true }, { @@ -108002,8 +109928,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk update attachments", + "summary": "Bulk update monitors", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108011,30 +109940,16 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "delete-streams-streamname-attachments-attachmenttype-attachmentid", + "name": "delete-synthetic-monitor", "parameters": [ { "role": "flag", - "name": "stream-name", - "type": "string", - "required": true, - "summary": "The name of the stream" - }, - { - "role": "flag", - "name": "attachment-type", - "type": "string", - "required": true, - "summary": "The type of the attachment" - }, - { - "role": "flag", - "name": "attachment-id", + "name": "id", "type": "string", "required": true, - "summary": "The ID of the attachment" + "summary": "The identifier for the monitor that you want to delete." }, { "role": "flag", @@ -108065,7 +109980,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Unlink an attachment from a stream", + "summary": "Delete a monitor", "intent": { "destructive": true, "idempotent": true, @@ -108077,30 +109992,16 @@ "path": [ "stack", "kb", - "streams" + "synthetics" ], - "name": "put-streams-streamname-attachments-attachmenttype-attachmentid", + "name": "get-synthetic-monitor", "parameters": [ { "role": "flag", - "name": "stream-name", - "type": "string", - "required": true, - "summary": "The name of the stream" - }, - { - "role": "flag", - "name": "attachment-type", - "type": "string", - "required": true, - "summary": "The type of the attachment" - }, - { - "role": "flag", - "name": "attachment-id", + "name": "id", "type": "string", "required": true, - "summary": "The ID of the attachment" + "summary": "The ID of the monitor." }, { "role": "flag", @@ -108124,35 +110025,34 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Link an attachment to a stream", + "summary": "Get a monitor", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana streams API commands" - }, - { - "segment": "synthetics", - "commands": [ + }, { "path": [ "stack", "kb", "synthetics" ], - "name": "post-synthetics-monitor-test", + "name": "put-synthetic-monitor", "parameters": [ { "role": "flag", - "name": "monitor-id", + "name": "id", "type": "string", "required": true, - "summary": "The ID (config_id) of the monitor to test." + "summary": "The identifier for the monitor that you want to update." + }, + { + "role": "flag", + "name": "body", + "type": "string", + "required": false }, { "role": "flag", @@ -108176,8 +110076,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Trigger an on-demand test run for a monitor", + "summary": "Update a monitor", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108187,187 +110090,110 @@ "kb", "synthetics" ], - "name": "get-synthetic-monitors", + "name": "get-parameters", "parameters": [ { - "role": "flag", - "name": "query", - "type": "string", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "A free-text query string." - }, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Search parameters", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "synthetics" + ], + "name": "post-parameters", + "parameters": [ { "role": "flag", - "name": "filter", + "name": "description", "type": "string", "required": false, - "summary": "Additional KQL filtering criteria." - }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "summary": "Tags to filter monitors. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "monitor-types", - "type": "array", - "required": false, - "summary": "The monitor types to filter by, such as `http`. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "locations", - "type": "array", - "required": false, - "summary": "The location IDs to filter by. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "projects", - "type": "array", - "required": false, - "summary": "The projects to filter by. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "schedules", - "type": "array", - "required": false, - "summary": "The schedules to filter by. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "remote-names", - "type": "array", - "required": false, - "summary": "A string or an array of strings.", - "repeatable": true, - "elementType": "string" + "summary": "A description of the parameter." }, { "role": "flag", - "name": "status", - "type": "array", + "name": "key", + "type": "string", "required": false, - "summary": "The monitor statuses to filter by. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" + "summary": "The key of the parameter." }, { "role": "flag", - "name": "monitor-query-ids", - "type": "array", + "name": "share-across-spaces", + "type": "boolean", "required": false, - "summary": "The monitor query IDs to filter by. Accepts a string or an array of strings.", - "repeatable": true, - "elementType": "string" + "summary": "Specify whether the parameter should be shared across spaces." }, { "role": "flag", - "name": "config-ids", + "name": "tags", "type": "array", "required": false, - "summary": "The monitor config IDs to filter by. Accepts a string or an array of strings.", + "summary": "An array of tags to categorize the parameter.", "repeatable": true, "elementType": "string" }, { "role": "flag", - "name": "show-from-all-spaces", - "type": "enum", - "required": false, - "summary": "If `true`, return monitors from all spaces the user can access.", - "enumValues": [ - "true", - "false" - ] - }, - { - "role": "flag", - "name": "use-logical-and-for", - "type": "array", - "required": false, - "summary": "Apply logical AND for `tags` and/or `locations`. Accepts a string or an array.", - "repeatable": true - }, - { - "role": "flag", - "name": "date-range-start", + "name": "value", "type": "string", "required": false, - "summary": "The start of the status window, as datemath (`now-15m`) or an ISO-8601 timestamp." + "summary": "The value associated with the parameter." }, { "role": "flag", - "name": "date-range-end", + "name": "input-file", "type": "string", "required": false, - "summary": "The end of the status window, as datemath (`now`) or an ISO-8601 timestamp." - }, - { - "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page number for paginated results." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of items to return per page." + "summary": "path to a JSON file to use as command input" }, { - "role": "flag", - "name": "sort-field", - "type": "enum", + "role": "dryRun", + "name": "dry-run", + "type": "boolean", "required": false, - "summary": "The field to sort the results by.", - "enumValues": [ - "enabled", - "status", - "updated_at", - "created_at", - "urls", - "name", - "tags", - "project_id", - "type", - "schedule", - "journey_id" - ] + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "sort-order", - "type": "enum", + "name": "no-validate", + "type": "boolean", "required": false, - "summary": "The sort order.", - "enumValues": [ - "desc", - "asc" - ] - }, + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Add parameters", + "intent": { + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "synthetics" + ], + "name": "delete-parameters", + "parameters": [ { "role": "flag", - "name": "search-after", + "name": "ids", "type": "array", - "required": false, - "summary": "A JSON array of sort values from the previous page, for cursor-based paging.", + "required": true, + "summary": "An array of parameter IDs to delete.", "repeatable": true, "elementType": "string" }, @@ -108393,11 +110219,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Search monitors", + "summary": "Delete parameters", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -108407,31 +110230,14 @@ "kb", "synthetics" ], - "name": "post-synthetic-monitors", + "name": "delete-parameter", "parameters": [ { "role": "flag", "name": "id", "type": "string", - "required": false, - "summary": "A custom ID for the new monitor. Generated if omitted." - }, - { - "role": "flag", - "name": "preserve-namespace", - "type": "enum", - "required": false, - "summary": "If `true`, store the `namespace` exactly as sent, skipping the space-derived fallback. If `false` or omitted, an explicit `namespace` is still stored as sent; only an omitted `namespace` is derived from the space ID.", - "enumValues": [ - "true", - "false" - ] - }, - { - "role": "flag", - "name": "body", - "type": "string", - "required": false + "required": true, + "summary": "The ID for the parameter to delete." }, { "role": "flag", @@ -108453,10 +110259,20 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Create a monitor", + "summary": "Delete a parameter", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108466,14 +110282,14 @@ "kb", "synthetics" ], - "name": "post-synthetic-monitors-bulk-create", + "name": "get-parameter", "parameters": [ { "role": "flag", - "name": "monitors", - "type": "array", + "name": "id", + "type": "string", "required": true, - "repeatable": true + "summary": "The unique identifier for the parameter." }, { "role": "flag", @@ -108497,8 +110313,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk create monitors", + "summary": "Get a parameter", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108508,17 +110327,45 @@ "kb", "synthetics" ], - "name": "delete-synthetic-monitors", + "name": "put-parameter", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "id", + "type": "string", "required": true, - "summary": "An array of monitor IDs to delete.", + "summary": "The unique identifier for the parameter." + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "The updated description of the parameter." + }, + { + "role": "flag", + "name": "key", + "type": "string", + "required": false, + "summary": "The key of the parameter." + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "An array of updated tags to categorize the parameter.", "repeatable": true, "elementType": "string" }, + { + "role": "flag", + "name": "value", + "type": "string", + "required": false, + "summary": "The updated value associated with the parameter." + }, { "role": "flag", "name": "input-file", @@ -108541,8 +110388,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete monitors", + "summary": "Update a parameter", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108552,15 +110402,70 @@ "kb", "synthetics" ], - "name": "put-synthetic-monitors-bulk-update", + "name": "get-private-locations", + "parameters": [ + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + } + ], + "summary": "Get private locations", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + }, + { + "path": [ + "stack", + "kb", + "synthetics" + ], + "name": "post-private-location", "parameters": [ { "role": "flag", - "name": "updates", + "name": "agent-policy-id", + "type": "string", + "required": true, + "summary": "The ID of the agent policy associated with the private location. Each agent policy can back only one private location." + }, + { + "role": "flag", + "name": "geo", + "type": "string", + "required": false, + "summary": "Geographic coordinates (WGS84) for the location." + }, + { + "role": "flag", + "name": "label", + "type": "string", + "required": true, + "summary": "A label for the private location. Must be unique." + }, + { + "role": "flag", + "name": "spaces", "type": "array", - "required": true, - "summary": "Monitors to update. Each `id` may appear at most once. `attributes` must contain at least one field.", - "repeatable": true + "required": false, + "summary": "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": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "An array of tags to categorize the private location.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -108584,11 +110489,8 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Bulk update monitors", + "summary": "Create a private location", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } }, @@ -108598,14 +110500,14 @@ "kb", "synthetics" ], - "name": "delete-synthetic-monitor", + "name": "delete-private-location", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the monitor that you want to delete." + "summary": "The unique identifier of the private location to delete." }, { "role": "flag", @@ -108636,7 +110538,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a monitor", + "summary": "Delete a private location", "intent": { "destructive": true, "idempotent": true, @@ -108650,14 +110552,14 @@ "kb", "synthetics" ], - "name": "get-synthetic-monitor", + "name": "get-private-location", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The ID of the monitor." + "summary": "A private location identifier or label." }, { "role": "flag", @@ -108681,7 +110583,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a monitor", + "summary": "Get a private location", "intent": { "destructive": false, "idempotent": true, @@ -108695,20 +110597,37 @@ "kb", "synthetics" ], - "name": "put-synthetic-monitor", + "name": "put-private-location", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The identifier for the monitor that you want to update." + "summary": "The unique identifier of the private location to update." }, { "role": "flag", - "name": "body", + "name": "agent-policy-id", "type": "string", - "required": false + "required": false, + "summary": "The ID of the Fleet agent policy to move the private location to." + }, + { + "role": "flag", + "name": "label", + "type": "string", + "required": false, + "summary": "A new label for the private location. Monitors using this location are updated to match." + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "An array of tags to categorize the private location.", + "repeatable": true, + "elementType": "string" }, { "role": "flag", @@ -108732,21 +110651,28 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a monitor", + "summary": "Update a private location", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana synthetics API commands" + }, + { + "segment": "system", + "commands": [ { "path": [ "stack", "kb", - "synthetics" + "system" ], - "name": "get-parameters", + "name": "get-features", "parameters": [ { "role": "dryRun", @@ -108756,7 +110682,7 @@ "summary": "validate all inputs and exit without performing any action" } ], - "summary": "Search parameters", + "summary": "Get features", "intent": { "destructive": false, "idempotent": true, @@ -108768,46 +110694,89 @@ "path": [ "stack", "kb", - "synthetics" + "system" ], - "name": "post-parameters", + "name": "get-status", "parameters": [ { "role": "flag", - "name": "description", - "type": "string", + "name": "v7format", + "type": "boolean", "required": false, - "summary": "A description of the parameter." + "summary": "Set to \"true\" to get the response in v7 format." }, { "role": "flag", - "name": "key", + "name": "v8format", + "type": "boolean", + "required": false, + "summary": "Set to \"true\" to get the response in v8 format." + }, + { + "role": "flag", + "name": "input-file", "type": "string", "required": false, - "summary": "The key of the parameter." + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" }, { "role": "flag", - "name": "share-across-spaces", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "Specify whether the parameter should be shared across spaces." + "summary": "skip input validation and send the request as-is" + } + ], + "summary": "Get Kibana's current status", + "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana system API commands" + }, + { + "segment": "tags", + "commands": [ + { + "path": [ + "stack", + "kb", + "tags" + ], + "name": "get-tags", + "parameters": [ + { + "role": "flag", + "name": "query", + "type": "string", + "required": false, + "summary": "Filters results by `name` and `description` using Elasticsearch [`simple_query_string`](https://www.elastic.co/docs/reference/query-languages/query-dsl/simple-query-string-query) syntax. Multi-word terms require all words to match." }, { "role": "flag", - "name": "tags", - "type": "array", + "name": "page", + "type": "number", "required": false, - "summary": "An array of tags to categorize the parameter.", - "repeatable": true, - "elementType": "string" + "summary": "The page of results to return." }, { "role": "flag", - "name": "value", - "type": "string", + "name": "per-page", + "type": "number", "required": false, - "summary": "The value associated with the parameter." + "summary": "The number of results to return per page." }, { "role": "flag", @@ -108831,8 +110800,11 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Add parameters", + "summary": "Search tags", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -108840,18 +110812,30 @@ "path": [ "stack", "kb", - "synthetics" + "tags" ], - "name": "delete-parameters", + "name": "post-tags", "parameters": [ { "role": "flag", - "name": "ids", - "type": "array", + "name": "color", + "type": "string", + "required": false, + "summary": "The tag color as a hex value (e.g. `#772299`). If omitted, a random color is generated." + }, + { + "role": "flag", + "name": "description", + "type": "string", + "required": false, + "summary": "Optional description of the tag." + }, + { + "role": "flag", + "name": "name", + "type": "string", "required": true, - "summary": "An array of parameter IDs to delete.", - "repeatable": true, - "elementType": "string" + "summary": "The display name of the tag." }, { "role": "flag", @@ -108875,7 +110859,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Delete parameters", + "summary": "Create a tag", "intent": { "requiresAuth": true } @@ -108884,16 +110868,16 @@ "path": [ "stack", "kb", - "synthetics" + "tags" ], - "name": "delete-parameter", + "name": "delete-tags-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The ID for the parameter to delete." + "summary": "The tag ID, as returned by the create or search endpoints." }, { "role": "flag", @@ -108924,7 +110908,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a parameter", + "summary": "Delete a tag", "intent": { "destructive": true, "idempotent": true, @@ -108936,16 +110920,16 @@ "path": [ "stack", "kb", - "synthetics" + "tags" ], - "name": "get-parameter", + "name": "get-tags-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The unique identifier for the parameter." + "summary": "The tag ID, as returned by the create or search endpoints." }, { "role": "flag", @@ -108969,7 +110953,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a parameter", + "summary": "Get a tag", "intent": { "destructive": false, "idempotent": true, @@ -108981,46 +110965,37 @@ "path": [ "stack", "kb", - "synthetics" + "tags" ], - "name": "put-parameter", + "name": "put-tags-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The unique identifier for the parameter." + "summary": "The tag ID, as returned by the create or search endpoints." }, { "role": "flag", - "name": "description", + "name": "color", "type": "string", "required": false, - "summary": "The updated description of the parameter." + "summary": "The tag color as a hex value (e.g. `#772299`). If omitted, a random color is generated." }, { "role": "flag", - "name": "key", + "name": "description", "type": "string", "required": false, - "summary": "The key of the parameter." - }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "summary": "An array of updated tags to categorize the parameter.", - "repeatable": true, - "elementType": "string" + "summary": "Optional description of the tag." }, { "role": "flag", - "name": "value", + "name": "name", "type": "string", - "required": false, - "summary": "The updated value associated with the parameter." + "required": true, + "summary": "The display name of the tag." }, { "role": "flag", @@ -109044,21 +111019,28 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a parameter", + "summary": "Upsert a tag", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana tags API commands" + }, + { + "segment": "task-manager", + "commands": [ { "path": [ "stack", "kb", - "synthetics" + "task-manager" ], - "name": "get-private-locations", + "name": "task-manager-health", "parameters": [ { "role": "dryRun", @@ -109068,85 +111050,42 @@ "summary": "validate all inputs and exit without performing any action" } ], - "summary": "Get private locations", + "summary": "Get the task manager health", "intent": { "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana task-manager API commands" + }, + { + "segment": "universal-profiling", + "commands": [ { "path": [ "stack", "kb", - "synthetics" + "universal-profiling" ], - "name": "post-private-location", + "name": "get-profiling-setup-es-resources", "parameters": [ - { - "role": "flag", - "name": "agent-policy-id", - "type": "string", - "required": true, - "summary": "The ID of the agent policy associated with the private location. Each agent policy can back only one private location." - }, - { - "role": "flag", - "name": "geo", - "type": "string", - "required": false, - "summary": "Geographic coordinates (WGS84) for the location." - }, - { - "role": "flag", - "name": "label", - "type": "string", - "required": true, - "summary": "A label for the private location. Must be unique." - }, - { - "role": "flag", - "name": "spaces", - "type": "array", - "required": false, - "summary": "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": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "tags", - "type": "array", - "required": false, - "summary": "An array of tags to categorize the private location.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a private location", + "summary": "Get Universal Profiling setup status", "intent": { + "destructive": false, + "idempotent": true, + "scope": "global", "requiresAuth": true } }, @@ -109154,92 +111093,78 @@ "path": [ "stack", "kb", - "synthetics" + "universal-profiling" ], - "name": "delete-private-location", + "name": "post-profiling-setup-es-resources", "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The unique identifier of the private location to delete." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" - }, + } + ], + "summary": "Initialize Universal Profiling setup", + "intent": { + "requiresAuth": true + } + } + ], + "namespaces": [], + "summary": "Kibana universal-profiling API commands" + }, + { + "segment": "upgrade", + "commands": [ + { + "path": [ + "stack", + "kb", + "upgrade" + ], + "name": "get-upgrade-status", + "parameters": [ { - "role": "flag", - "name": "yes", + "role": "dryRun", + "name": "dry-run", "type": "boolean", "required": false, - "summary": "confirm destructive action without prompting" + "summary": "validate all inputs and exit without performing any action" } ], - "summary": "Delete a private location", + "summary": "Get the upgrade readiness status", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true } - }, + } + ], + "namespaces": [], + "summary": "Kibana upgrade API commands" + }, + { + "segment": "uptime", + "commands": [ { "path": [ "stack", "kb", - "synthetics" + "uptime" ], - "name": "get-private-location", + "name": "get-uptime-settings", "parameters": [ - { - "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "A private location identifier or label." - }, - { - "role": "flag", - "name": "input-file", - "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" - }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - }, - { - "role": "flag", - "name": "no-validate", - "type": "boolean", - "required": false, - "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a private location", + "summary": "Get uptime settings", "intent": { "destructive": false, "idempotent": true, @@ -109251,39 +111176,46 @@ "path": [ "stack", "kb", - "synthetics" + "uptime" ], - "name": "put-private-location", + "name": "put-uptime-settings", "parameters": [ { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The unique identifier of the private location to update." + "name": "cert-age-threshold", + "type": "number", + "required": false, + "summary": "The number of days after a certificate is created to trigger an alert." }, { "role": "flag", - "name": "agent-policy-id", - "type": "string", + "name": "cert-expiration-threshold", + "type": "number", "required": false, - "summary": "The ID of the Fleet agent policy to move the private location to." + "summary": "The number of days before a certificate expires to trigger an alert." }, { "role": "flag", - "name": "label", + "name": "default-connectors", + "type": "array", + "required": false, + "summary": "A list of connector IDs to be used as default connectors for new alerts.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "default-email", "type": "string", "required": false, - "summary": "A new label for the private location. Monitors using this location are updated to match." + "summary": "The default email configuration for new alerts.\n" }, { "role": "flag", - "name": "tags", - "type": "array", + "name": "heartbeat-indices", + "type": "string", "required": false, - "summary": "An array of tags to categorize the private location.", - "repeatable": true, - "elementType": "string" + "summary": "An index pattern string to be used within the Uptime app and alerts to query Heartbeat data. \n" }, { "role": "flag", @@ -109307,7 +111239,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update a private location", + "summary": "Update uptime settings", "intent": { "destructive": false, "idempotent": true, @@ -109317,56 +111249,36 @@ } ], "namespaces": [], - "summary": "Kibana synthetics API commands" + "summary": "Kibana uptime API commands" }, { - "segment": "system", + "segment": "user-session", "commands": [ { "path": [ "stack", "kb", - "system" - ], - "name": "get-features", - "parameters": [ - { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", - "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get features", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "system" + "user-session" ], - "name": "get-status", + "name": "post-security-session-invalidate", "parameters": [ { "role": "flag", - "name": "v7format", - "type": "boolean", - "required": false, - "summary": "Set to \"true\" to get the response in v7 format." + "name": "match", + "type": "enum", + "required": true, + "summary": "The method Kibana uses to determine which sessions to invalidate. If it is `all`, all existing sessions will be invalidated. If it is `query`, only the sessions that match the query will be invalidated.\n", + "enumValues": [ + "all", + "query" + ] }, { "role": "flag", - "name": "v8format", - "type": "boolean", + "name": "query", + "type": "string", "required": false, - "summary": "Set to \"true\" to get the response in v8 format." + "summary": "The query that Kibana uses to match the sessions to invalidate when the `match` parameter is set to `query`.\n" }, { "role": "flag", @@ -109390,36 +111302,26 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get Kibana's current status", + "summary": "Invalidate user sessions", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } } ], "namespaces": [], - "summary": "Kibana system API commands" + "summary": "Kibana user-session API commands" }, { - "segment": "tags", + "segment": "vega", "commands": [ { "path": [ "stack", "kb", - "tags" + "vega" ], - "name": "get-tags", + "name": "get-vega", "parameters": [ - { - "role": "flag", - "name": "query", - "type": "string", - "required": false, - "summary": "Filters results by `name` and `description` using Elasticsearch [`simple_query_string`](https://www.elastic.co/docs/reference/query-languages/query-dsl/simple-query-string-query) syntax. Multi-word terms require all words to match." - }, { "role": "flag", "name": "page", @@ -109434,6 +111336,49 @@ "required": false, "summary": "The number of results to return per page." }, + { + "role": "flag", + "name": "query", + "type": "string", + "required": false, + "summary": "Filters results by `title` and `description` using Elasticsearch [`simple_query_string`](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query) syntax. Multi-word terms require all words to match." + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "A tag ID to include. Accepts a single tag ID or multiple tag IDs. When multiple are specified, library items matching any of the tag IDs are included.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "excluded-tags", + "type": "array", + "required": false, + "summary": "A tag ID to exclude. Accepts a single tag ID or multiple tag IDs. When multiple are specified, library items matching any of the tag IDs are excluded.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "tag-names", + "type": "array", + "required": false, + "summary": "A tag name to include. Accepts a single tag name or multiple tag names. When multiple are specified, library items matching any of the tag names are included. If the same name is shared by multiple tags, items matching any of those tags are included.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "excluded-tag-names", + "type": "array", + "required": false, + "summary": "A tag name to exclude. Accepts a single tag name or multiple tag names. When multiple are specified, library items matching any of the tag names are excluded. If the same name is shared by multiple tags, items matching any of those tags are excluded.", + "repeatable": true, + "elementType": "string" + }, { "role": "flag", "name": "input-file", @@ -109456,7 +111401,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Search tags", + "summary": "List Vega library items", "intent": { "destructive": false, "idempotent": true, @@ -109468,30 +111413,53 @@ "path": [ "stack", "kb", - "tags" + "vega" ], - "name": "post-tags", + "name": "post-vega", "parameters": [ { "role": "flag", - "name": "color", + "name": "description", "type": "string", "required": false, - "summary": "The tag color as a hex value (e.g. `#772299`). If omitted, a random color is generated." + "summary": "A short description of the Vega library item." }, { "role": "flag", - "name": "description", + "name": "filters", + "type": "array", + "required": false, + "summary": "Filters. Applied together with the dashboard filters to Elasticsearch and ES|QL data sources that use `%context%: true`, and to Elasticsearch data sources that use `%dashboard_context-*%` placeholders.", + "repeatable": true + }, + { + "role": "flag", + "name": "query", "type": "string", "required": false, - "summary": "Optional description of the tag." + "summary": "KQL or Lucene query. Applied together with the dashboard query to Elasticsearch and ES|QL data sources that use `%context%: true`, and to Elasticsearch data sources that use `%dashboard_context-*%` placeholders." }, { "role": "flag", - "name": "name", + "name": "spec", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "Tag IDs associated with this library item.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "title", "type": "string", "required": true, - "summary": "The display name of the tag." + "summary": "The Vega library item title." }, { "role": "flag", @@ -109515,7 +111483,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Create a tag", + "summary": "Create a Vega library item", "intent": { "requiresAuth": true } @@ -109524,16 +111492,16 @@ "path": [ "stack", "kb", - "tags" + "vega" ], - "name": "delete-tags-id", + "name": "delete-vega-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The tag ID, as returned by the create or search endpoints." + "summary": "The Vega library item ID, as returned by the create or search endpoints, or the ID you chose when you created the item with the upsert endpoint." }, { "role": "flag", @@ -109564,7 +111532,7 @@ "summary": "confirm destructive action without prompting" } ], - "summary": "Delete a tag", + "summary": "Delete a Vega library item", "intent": { "destructive": true, "idempotent": true, @@ -109576,16 +111544,16 @@ "path": [ "stack", "kb", - "tags" + "vega" ], - "name": "get-tags-id", + "name": "get-vega-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The tag ID, as returned by the create or search endpoints." + "summary": "The Vega library item ID, as returned by the create or search endpoints, or the ID you chose when you created the item with the upsert endpoint." }, { "role": "flag", @@ -109609,7 +111577,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Get a tag", + "summary": "Get a Vega library item", "intent": { "destructive": false, "idempotent": true, @@ -109621,37 +111589,60 @@ "path": [ "stack", "kb", - "tags" + "vega" ], - "name": "put-tags-id", + "name": "put-vega-id", "parameters": [ { "role": "flag", "name": "id", "type": "string", "required": true, - "summary": "The tag ID, as returned by the create or search endpoints." + "summary": "The unique ID of the Vega library item to create or update. A new ID must contain only lowercase letters, numbers, hyphens, and underscores." }, { "role": "flag", - "name": "color", + "name": "description", "type": "string", "required": false, - "summary": "The tag color as a hex value (e.g. `#772299`). If omitted, a random color is generated." + "summary": "A short description of the Vega library item." }, { "role": "flag", - "name": "description", + "name": "filters", + "type": "array", + "required": false, + "summary": "Filters. Applied together with the dashboard filters to Elasticsearch and ES|QL data sources that use `%context%: true`, and to Elasticsearch data sources that use `%dashboard_context-*%` placeholders.", + "repeatable": true + }, + { + "role": "flag", + "name": "query", "type": "string", "required": false, - "summary": "Optional description of the tag." + "summary": "KQL or Lucene query. Applied together with the dashboard query to Elasticsearch and ES|QL data sources that use `%context%: true`, and to Elasticsearch data sources that use `%dashboard_context-*%` placeholders." }, { "role": "flag", - "name": "name", + "name": "spec", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "tags", + "type": "array", + "required": false, + "summary": "Tag IDs associated with this library item.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "title", "type": "string", "required": true, - "summary": "The display name of the tag." + "summary": "The Vega library item title." }, { "role": "flag", @@ -109675,7 +111666,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Upsert a tag", + "summary": "Upsert a Vega library item", "intent": { "destructive": false, "idempotent": true, @@ -109685,59 +111676,81 @@ } ], "namespaces": [], - "summary": "Kibana tags API commands" + "summary": "Kibana vega API commands" }, { - "segment": "task-manager", + "segment": "visualizations", "commands": [ { "path": [ "stack", "kb", - "task-manager" + "visualizations" ], - "name": "task-manager-health", + "name": "search-visualizations", "parameters": [ + { + "role": "flag", + "name": "fields", + "type": "array", + "required": false, + "summary": "The saved object fields to include in each result. When omitted, all fields are returned.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "search-fields", + "type": "array", + "required": false, + "summary": "The fields to match the `query` text against. Defaults to `title` when omitted.", + "repeatable": true, + "elementType": "string" + }, + { + "role": "flag", + "name": "query", + "type": "string", + "required": false, + "summary": "Text to match against `search_fields`." + }, + { + "role": "flag", + "name": "page", + "type": "number", + "required": false, + "summary": "The page of results to return." + }, + { + "role": "flag", + "name": "per-page", + "type": "number", + "required": false, + "summary": "The number of results to return per page." + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, { "role": "dryRun", "name": "dry-run", "type": "boolean", "required": false, "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get the task manager health", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana task-manager API commands" - }, - { - "segment": "universal-profiling", - "commands": [ - { - "path": [ - "stack", - "kb", - "universal-profiling" - ], - "name": "get-profiling-setup-es-resources", - "parameters": [ + }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "no-validate", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "skip input validation and send the request as-is" } ], - "summary": "Get Universal Profiling setup status", + "summary": "Search visualizations", "intent": { "destructive": false, "idempotent": true, @@ -109749,129 +111762,178 @@ "path": [ "stack", "kb", - "universal-profiling" + "visualizations" ], - "name": "post-profiling-setup-es-resources", + "name": "create-visualization", "parameters": [ { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "breakdown-by", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "data-source", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "description", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Initialize Universal Profiling setup", - "intent": { - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana universal-profiling API commands" - }, - { - "segment": "upgrade", - "commands": [ - { - "path": [ - "stack", - "kb", - "upgrade" - ], - "name": "get-upgrade-status", - "parameters": [ + "summary": "The description of the chart. Optional. Any string value or undefined." + }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "filters", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get the upgrade readiness status", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - } - ], - "namespaces": [], - "summary": "Kibana upgrade API commands" - }, - { - "segment": "uptime", - "commands": [ - { - "path": [ - "stack", - "kb", - "uptime" - ], - "name": "get-uptime-settings", - "parameters": [ + "repeatable": true + }, { - "role": "dryRun", - "name": "dry-run", + "role": "flag", + "name": "ignore-global-filters", "type": "boolean", "required": false, - "summary": "validate all inputs and exit without performing any action" - } - ], - "summary": "Get uptime settings", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "uptime" - ], - "name": "put-uptime-settings", - "parameters": [ + "summary": "When `true`, ignores global filters when fetching data for this layer. Defaults to `false`." + }, { "role": "flag", - "name": "cert-age-threshold", - "type": "number", + "name": "metrics", + "type": "array", "required": false, - "summary": "The number of days after a certificate is created to trigger an alert." + "summary": "Array of metric configurations (minimum 1)", + "repeatable": true }, { "role": "flag", - "name": "cert-expiration-threshold", + "name": "query", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "sampling", "type": "number", "required": false, - "summary": "The number of days before a certificate expires to trigger an alert." + "summary": "Sampling factor between 0 (no sampling) and 1 (full sampling)." }, { "role": "flag", - "name": "default-connectors", + "name": "styling", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "tags", "type": "array", "required": false, - "summary": "A list of connector IDs to be used as default connectors for new alerts.", + "summary": "Tag IDs to associate with this visualization.", "repeatable": true, "elementType": "string" }, { "role": "flag", - "name": "default-email", + "name": "title", "type": "string", "required": false, - "summary": "The default email configuration for new alerts.\n" + "summary": "The title of the chart displayed in the panel. Optional. Any string value or undefined." }, { "role": "flag", - "name": "heartbeat-indices", + "name": "type", + "type": "enum", + "required": true, + "enumValues": [ + "waffle" + ] + }, + { + "role": "flag", + "name": "metric", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "axis", "type": "string", + "required": false + }, + { + "role": "flag", + "name": "layers", + "type": "array", "required": false, - "summary": "An index pattern string to be used within the Uptime app and alerts to query Heartbeat data. \n" + "summary": "Chart layers", + "repeatable": true + }, + { + "role": "flag", + "name": "legend", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "x", + "type": "string", + "required": false, + "summary": "Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters." + }, + { + "role": "flag", + "name": "y", + "type": "string", + "required": false, + "summary": "Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters." + }, + { + "role": "flag", + "name": "tag-by", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "region", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "rows", + "type": "array", + "required": false, + "summary": "Array of operations to split the datatable rows by", + "repeatable": true + }, + { + "role": "flag", + "name": "split-metrics-by", + "type": "array", + "required": false, + "summary": "Array of operations to split the metric columns by", + "repeatable": true + }, + { + "role": "flag", + "name": "group-by", + "type": "array", + "required": false, + "summary": "Array of breakdown dimensions (minimum 1)", + "repeatable": true + }, + { + "role": "flag", + "name": "group-breakdown-by", + "type": "array", + "required": false, + "summary": "Array of group breakdown dimensions (minimum 1)", + "repeatable": true }, { "role": "flag", @@ -109895,46 +111957,25 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Update uptime settings", + "summary": "Create visualization", "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana uptime API commands" - }, - { - "segment": "user-session", - "commands": [ + }, { "path": [ "stack", "kb", - "user-session" + "visualizations" ], - "name": "post-security-session-invalidate", + "name": "delete-visualization", "parameters": [ { "role": "flag", - "name": "match", - "type": "enum", - "required": true, - "summary": "The method Kibana uses to determine which sessions to invalidate. If it is `all`, all existing sessions will be invalidated. If it is `query`, only the sessions that match the query will be invalidated.\n", - "enumValues": [ - "all", - "query" - ] - }, - { - "role": "flag", - "name": "query", + "name": "id", "type": "string", - "required": false, - "summary": "The query that Kibana uses to match the sessions to invalidate when the `match` parameter is set to `query`.\n" + "required": true, + "summary": "The visualization identifier, as returned by the create or search endpoints." }, { "role": "flag", @@ -109956,66 +111997,37 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" } ], - "summary": "Invalidate user sessions", + "summary": "Delete visualization", "intent": { + "destructive": true, + "idempotent": true, + "scope": "global", "requiresAuth": true } - } - ], - "namespaces": [], - "summary": "Kibana user-session API commands" - }, - { - "segment": "visualizations", - "commands": [ + }, { "path": [ "stack", "kb", "visualizations" ], - "name": "search-visualizations", + "name": "get-visualization", "parameters": [ { "role": "flag", - "name": "fields", - "type": "array", - "required": false, - "summary": "The saved object fields to include in each result. When omitted, all fields are returned.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "search-fields", - "type": "array", - "required": false, - "summary": "The fields to match the `query` text against. Defaults to `title` when omitted.", - "repeatable": true, - "elementType": "string" - }, - { - "role": "flag", - "name": "query", + "name": "id", "type": "string", - "required": false, - "summary": "Text to match against `search_fields`." - }, - { - "role": "flag", - "name": "page", - "type": "number", - "required": false, - "summary": "The page of results to return." - }, - { - "role": "flag", - "name": "per-page", - "type": "number", - "required": false, - "summary": "The number of results to return per page." + "required": true, + "summary": "The visualization identifier, as returned by the create or search endpoints." }, { "role": "flag", @@ -110039,7 +112051,7 @@ "summary": "skip input validation and send the request as-is" } ], - "summary": "Search visualizations", + "summary": "Get visualization", "intent": { "destructive": false, "idempotent": true, @@ -110053,151 +112065,183 @@ "kb", "visualizations" ], - "name": "create-visualization", + "name": "upsert-visualization", "parameters": [ { "role": "flag", - "name": "body", + "name": "id", + "type": "string", + "required": true, + "summary": "The visualization identifier, as returned by the create or search endpoints." + }, + { + "role": "flag", + "name": "breakdown-by", "type": "string", "required": false }, { "role": "flag", - "name": "input-file", + "name": "data-source", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "description", "type": "string", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "The description of the chart. Optional. Any string value or undefined." }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "filters", + "type": "array", "required": false, - "summary": "validate all inputs and exit without performing any action" + "repeatable": true }, { "role": "flag", - "name": "no-validate", + "name": "ignore-global-filters", "type": "boolean", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Create visualization", - "intent": { - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "visualizations" - ], - "name": "get-visualization", - "parameters": [ + "summary": "When `true`, ignores global filters when fetching data for this layer. Defaults to `false`." + }, { "role": "flag", - "name": "id", - "type": "string", - "required": true, - "summary": "The visualization identifier, as returned by the create or search endpoints." + "name": "metrics", + "type": "array", + "required": false, + "summary": "Array of metric configurations (minimum 1)", + "repeatable": true }, { "role": "flag", - "name": "input-file", + "name": "query", "type": "string", - "required": false, - "summary": "path to a JSON file to use as command input" + "required": false }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "sampling", + "type": "number", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Sampling factor between 0 (no sampling) and 1 (full sampling)." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "styling", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "tags", + "type": "array", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Get visualization", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "visualizations" - ], - "name": "upsert-visualization", - "parameters": [ + "summary": "Tag IDs to associate with this visualization.", + "repeatable": true, + "elementType": "string" + }, { "role": "flag", - "name": "id", + "name": "title", "type": "string", + "required": false, + "summary": "The title of the chart displayed in the panel. Optional. Any string value or undefined." + }, + { + "role": "flag", + "name": "type", + "type": "enum", "required": true, - "summary": "The visualization identifier, as returned by the create or search endpoints." + "enumValues": [ + "waffle" + ] }, { "role": "flag", - "name": "body", + "name": "metric", "type": "string", "required": false }, { "role": "flag", - "name": "input-file", + "name": "axis", "type": "string", + "required": false + }, + { + "role": "flag", + "name": "layers", + "type": "array", "required": false, - "summary": "path to a JSON file to use as command input" + "summary": "Chart layers", + "repeatable": true }, { - "role": "dryRun", - "name": "dry-run", - "type": "boolean", + "role": "flag", + "name": "legend", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "x", + "type": "string", "required": false, - "summary": "validate all inputs and exit without performing any action" + "summary": "Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters." }, { "role": "flag", - "name": "no-validate", - "type": "boolean", + "name": "y", + "type": "string", "required": false, - "summary": "skip input validation and send the request as-is" - } - ], - "summary": "Update visualization", - "intent": { - "destructive": false, - "idempotent": true, - "scope": "global", - "requiresAuth": true - } - }, - { - "path": [ - "stack", - "kb", - "visualizations" - ], - "name": "delete-visualization", - "parameters": [ + "summary": "Breakdown dimension configuration using date histogram, terms, numeric histogram, value ranges, or custom filters." + }, { "role": "flag", - "name": "id", + "name": "tag-by", "type": "string", - "required": true, - "summary": "The visualization identifier, as returned by the create or search endpoints." + "required": false + }, + { + "role": "flag", + "name": "region", + "type": "string", + "required": false + }, + { + "role": "flag", + "name": "rows", + "type": "array", + "required": false, + "summary": "Array of operations to split the datatable rows by", + "repeatable": true + }, + { + "role": "flag", + "name": "split-metrics-by", + "type": "array", + "required": false, + "summary": "Array of operations to split the metric columns by", + "repeatable": true + }, + { + "role": "flag", + "name": "group-by", + "type": "array", + "required": false, + "summary": "Array of breakdown dimensions (minimum 1)", + "repeatable": true + }, + { + "role": "flag", + "name": "group-breakdown-by", + "type": "array", + "required": false, + "summary": "Array of group breakdown dimensions (minimum 1)", + "repeatable": true }, { "role": "flag", @@ -110219,18 +112263,11 @@ "type": "boolean", "required": false, "summary": "skip input validation and send the request as-is" - }, - { - "role": "flag", - "name": "yes", - "type": "boolean", - "required": false, - "summary": "confirm destructive action without prompting" } ], - "summary": "Delete visualization", + "summary": "Upsert visualization", "intent": { - "destructive": true, + "destructive": false, "idempotent": true, "scope": "global", "requiresAuth": true @@ -115601,6 +117638,62 @@ "requiresAuth": true } }, + { + "path": [ + "cloud", + "hosted", + "deployments" + ], + "name": "migrate-deployment-byok", + "parameters": [ + { + "role": "flag", + "name": "deployment-id", + "type": "string", + "required": true, + "summary": "Identifier for the Deployment" + }, + { + "role": "flag", + "name": "key-resource-path", + "type": "string", + "required": true + }, + { + "role": "flag", + "name": "input-file", + "type": "string", + "required": false, + "summary": "path to a JSON file to use as command input" + }, + { + "role": "dryRun", + "name": "dry-run", + "type": "boolean", + "required": false, + "summary": "validate all inputs and exit without performing any action" + }, + { + "role": "flag", + "name": "no-validate", + "type": "boolean", + "required": false, + "summary": "skip input validation and send the request as-is" + }, + { + "role": "flag", + "name": "yes", + "type": "boolean", + "required": false, + "summary": "confirm destructive action without prompting" + } + ], + "summary": "Migrate Deployment BYOK", + "intent": { + "destructive": true, + "requiresAuth": true + } + }, { "path": [ "cloud", @@ -119462,6 +121555,13 @@ ], "name": "get-version-stacks", "parameters": [ + { + "role": "flag", + "name": "region", + "type": "string", + "required": true, + "summary": "The region identifier. For example, `gcp-us-central1` or `aws-us-east-1`." + }, { "role": "flag", "name": "show-deleted", @@ -119734,12 +121834,8 @@ { "role": "flag", "name": "optimized-for", - "type": "enum", - "required": false, - "enumValues": [ - "general_purpose", - "vector" - ] + "type": "string", + "required": false }, { "role": "flag", diff --git a/package-lock.json b/package-lock.json index d6a2a655..c5d43dbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@cli-schema/spec": "^0.2.0", "@elastic/agent-env": "0.1.2", "@elastic/config-resolver": "0.1.3", - "@elastic/schemas": "0.12.0", + "@elastic/schemas": "0.13.0", "ajv": "^8.0.0", "cli-table3": "^0.6.5", "commander": "^15.0.0", @@ -100,9 +100,9 @@ "link": true }, "node_modules/@elastic/schemas": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@elastic/schemas/-/schemas-0.12.0.tgz", - "integrity": "sha512-+9TPZzmIqcFIRwsXb2jyYOTFlre6nXoWsC/ghSjVDKSjnLQcyw23AVY2Tst7W0yI1xE70U17AMpyHJx3Cr2MfA==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@elastic/schemas/-/schemas-0.13.0.tgz", + "integrity": "sha512-XqL0kK0HwhbRQCwM6DI2cPr2go1e9AKzAbN8MWxWybL/q4EV3ZQH0do76QkRTbnr1z2mY6vse+do+7faEB5ONQ==", "license": "Apache-2.0", "engines": { "node": ">=20" diff --git a/package.json b/package.json index 16bdc611..18c96d8d 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@cli-schema/spec": "^0.2.0", "@elastic/agent-env": "0.1.2", "@elastic/config-resolver": "0.1.3", - "@elastic/schemas": "0.12.0", + "@elastic/schemas": "0.13.0", "ajv": "^8.0.0", "cli-table3": "^0.6.5", "commander": "^15.0.0", diff --git a/src/es/request-builder.ts b/src/es/request-builder.ts index d1f61ea6..9c3710e7 100644 --- a/src/es/request-builder.ts +++ b/src/es/request-builder.ts @@ -5,6 +5,7 @@ import type { EsRequestParams } from '../lib/es-client.ts' import type { EsApiDefinition } from './types.ts' +import { selectPathTemplate } from './types.ts' import type { SchemaArgDefinition } from '../lib/json-schema-args.ts' import type { RawJsonValue, ParsedResult } from '../factory.ts' import { encodeMultiTargetPathParam } from '../lib/path-encoding.ts' @@ -15,7 +16,7 @@ import { interpolatePath, requirePathParams, routeBody, routeQuery } from '../li * and the schema arg definitions extracted from `def.input`. * * Each `SchemaArgDefinition` carries a `foundIn` field that determines routing: - * - `"path"` → value is interpolated into the URL path template + * - `"path"` → value is interpolated into the path template chosen by `selectPathTemplate` * - `"query"` → value is added to the querystring (key = `schemaKey`, the snake_case ES name) * - `"body"` or `undefined` → value is collected into the request body object * @@ -36,7 +37,8 @@ export function buildRequestParams ( const rawBody = parsed.rawBodyValues ?? {} requirePathParams(schemaArgs, input) - const path = interpolatePath(def.path, input, encodeMultiTargetPathParam) + const supplied = schemaArgs.filter((a) => a.foundIn === 'path' && input[a.schemaKey] !== undefined).map((a) => a.schemaKey) + const path = interpolatePath(selectPathTemplate(def, supplied), input, encodeMultiTargetPathParam) const querystring = routeQuery(schemaArgs, input) const body = collectBody(schemaArgs, input, rawBody, def.path, def.bodyFormat) diff --git a/src/es/types.ts b/src/es/types.ts index 4467d9a8..97b86af0 100644 --- a/src/es/types.ts +++ b/src/es/types.ts @@ -83,6 +83,26 @@ function extractPathTokens (path: string): string[] { return [...path.matchAll(/\{([^}]+)\}/g)].map((m) => m[1] as string) } +/** + * Returns `def.path` followed by every `x-urls` path that accepts `def.method`. + * Optional path params may appear only in an alternate URL (e.g. `node_id` on `cluster.stats`). + */ +function pathTemplates (def: EsApiDefinition): string[] { + const urls = (def.input?.['x-urls'] ?? []) as Array<{ path: string, methods: string[] }> + return [def.path, ...urls.filter((u) => u.methods.includes(def.method)).map((u) => u.path)] +} + +/** + * Picks the first path template whose params are exactly the supplied ones, falling back to `def.path`. + * A superset template would let `interpolatePath` drop a missing segment and shift later values into its slot. + */ +export function selectPathTemplate (def: EsApiDefinition, supplied: string[]): string { + return pathTemplates(def).find((t) => { + const tokens = extractPathTokens(t) + return tokens.length === supplied.length && supplied.every((k) => tokens.includes(k)) + }) ?? def.path +} + /** * Validates an `EsApiDefinition` against the data-model rules. * @@ -93,6 +113,7 @@ function extractPathTokens (path: string): string[] { * - if `input` is provided: * - every `{param}` token in the path has a corresponding property with `x-found-in: "path"` * - every property with `x-found-in: "path"` has a matching `{param}` token in the path + * or in an `x-urls` path for the same method * * @throws {Error} if any validation rule is violated */ @@ -130,10 +151,11 @@ export function validateApiDefinition (def: EsApiDefinition): SchemaArgDefinitio } } + const allTokens = new Set(pathTemplates(def).flatMap(extractPathTokens)) for (const key of pathFields) { - if (!tokens.has(key)) { + if (!allTokens.has(key)) { throw new Error( - `input field "${key}" has x-found-in: "path" but there is no {${key}} token in the path template for definition "${def.name}"` + `input field "${key}" has x-found-in: "path" but there is no {${key}} token in any path template for definition "${def.name}"` ) } } diff --git a/test/es/request-builder.test.ts b/test/es/request-builder.test.ts index eded0779..dac66846 100644 --- a/test/es/request-builder.test.ts +++ b/test/es/request-builder.test.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { describe, it } from 'node:test' +import { before, describe, it } from 'node:test' import assert from 'node:assert/strict' import type { EsApiDefinition } from '../../src/es/types.ts' import { buildRequestParams } from '../../src/es/request-builder.ts' @@ -362,6 +362,59 @@ describe('buildRequestParams', () => { }) }) + describe('path params only in an x-urls variant', () => { + const input = { + ...schema({ node_id: { type: 'string', 'x-found-in': 'path' } }), + 'x-urls': [ + { path: '/_cluster/stats', methods: ['GET'] }, + { path: '/_cluster/stats/nodes/{node_id}', methods: ['GET'] }, + ], + } + const def = makeDefinition({ path: '/_cluster/stats', input }) + + it('uses the x-urls path that carries the supplied param', () => { + assert.equal(buildRequestParams(def, parsedResult({ node_id: 'a/b' }), args(input)).path, '/_cluster/stats/nodes/a%2Fb') + }) + + it('uses def.path when the param is omitted', () => { + assert.equal(buildRequestParams(def, parsedResult(), args(input)).path, '/_cluster/stats') + }) + + it('ignores x-urls entries for other methods', () => { + const postOnly = { ...input, 'x-urls': [{ path: '/_cluster/stats/nodes/{node_id}', methods: ['POST'] }] } + const result = buildRequestParams(makeDefinition({ path: '/_cluster/stats', input: postOnly }), parsedResult({ node_id: 'n1' }), args(postOnly)) + assert.equal(result.path, '/_cluster/stats') + }) + }) + + describe('real prometheus.remote_write x-urls routing', () => { + let def: EsApiDefinition + before(async () => { + const { loadEsApisInFile } = await import('../../src/es/apis.ts') + const [loaded] = await loadEsApisInFile('prometheus.remote_write') + assert.ok(loaded?.input != null) + def = loaded + }) + const route = (input: Record) => + buildRequestParams(def, parsedResult({ write_message: 'x', ...input }), args(def.input ?? {})).path + + it('uses the base path with no path params', () => { + assert.equal(route({}), '/_prometheus/api/v1/write') + }) + + it('uses the dataset path for dataset only', () => { + assert.equal(route({ dataset: 'ds' }), '/_prometheus/metrics/ds/api/v1/write') + }) + + it('uses the dataset/namespace path for both', () => { + assert.equal(route({ dataset: 'ds', namespace: 'ns' }), '/_prometheus/metrics/ds/ns/api/v1/write') + }) + + it('does not put namespace in the dataset slot when dataset is omitted', () => { + assert.equal(route({ namespace: 'ns' }), '/_prometheus/api/v1/write') + }) + }) + it('NDJSON format applies to msearch searches field', () => { const input = schema({ searches: { type: 'array', description: 'Searches', 'x-found-in': 'body' }, diff --git a/test/es/types.test.ts b/test/es/types.test.ts index c07efaf5..2b27c4ce 100644 --- a/test/es/types.test.ts +++ b/test/es/types.test.ts @@ -155,6 +155,30 @@ describe('validateApiDefinition', () => { assert.throws(() => validateApiDefinition(def), /x-found-in.*path|path.*template.*index/i) }) + it('allows an x-found-in: "path" field whose {token} is only in a same-method x-urls entry', () => { + const def: EsApiDefinition = { + ...validBase(), + path: '/_cluster/stats', + input: { + ...schema({ node_id: { type: 'string', 'x-found-in': 'path' } }), + 'x-urls': [{ path: '/_cluster/stats', methods: ['GET'] }, { path: '/_cluster/stats/nodes/{node_id}', methods: ['GET'] }], + }, + } + assert.doesNotThrow(() => validateApiDefinition(def)) + }) + + it('rejects an x-found-in: "path" field whose {token} is only in a different-method x-urls entry', () => { + const def: EsApiDefinition = { + ...validBase(), + path: '/_cluster/stats', + input: { + ...schema({ node_id: { type: 'string', 'x-found-in': 'path' } }), + 'x-urls': [{ path: '/_cluster/stats/nodes/{node_id}', methods: ['POST'] }], + }, + } + assert.throws(() => validateApiDefinition(def), /no \{node_id\} token/) + }) + it('allows an optional x-found-in: "path" field if it has a {token} in path', () => { const def: EsApiDefinition = { ...validBase(), diff --git a/test/functional/kb/definitions/slo_bulk_delete_op.yml b/test/functional/kb/definitions/slo_bulk_delete.yml similarity index 91% rename from test/functional/kb/definitions/slo_bulk_delete_op.yml rename to test/functional/kb/definitions/slo_bulk_delete.yml index 3d5029b2..adc67fa9 100644 --- a/test/functional/kb/definitions/slo_bulk_delete_op.yml +++ b/test/functional/kb/definitions/slo_bulk_delete.yml @@ -12,14 +12,14 @@ requires: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-bulk-delete-slo ignore: [404] --- -"slo bulk-delete-op": +"slo bulk-delete": - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-bulk-delete-slo @@ -41,7 +41,7 @@ teardown: - match: {id: cli-ft-bulk-delete-slo} - do: - slo.bulk_delete_op: + slo.bulk_delete: space_id: default body: list: diff --git a/test/functional/kb/definitions/slo_bulk_delete_status_op.yml b/test/functional/kb/definitions/slo_bulk_delete_status.yml similarity index 82% rename from test/functional/kb/definitions/slo_bulk_delete_status_op.yml rename to test/functional/kb/definitions/slo_bulk_delete_status.yml index 192d7bdc..0ba5ec78 100644 --- a/test/functional/kb/definitions/slo_bulk_delete_status_op.yml +++ b/test/functional/kb/definitions/slo_bulk_delete_status.yml @@ -7,9 +7,9 @@ requires: serverless: true stack: true --- -"slo bulk-delete-status-op": +"slo bulk-delete-status": - do: catch: missing - slo.bulk_delete_status_op: + slo.bulk_delete_status: space_id: default task_id: "non-existent-task-id" diff --git a/test/functional/kb/definitions/slo_bulk_snapshot_op.yml b/test/functional/kb/definitions/slo_bulk_snapshot.yml similarity index 91% rename from test/functional/kb/definitions/slo_bulk_snapshot_op.yml rename to test/functional/kb/definitions/slo_bulk_snapshot.yml index 9b89e14f..aebd86c9 100644 --- a/test/functional/kb/definitions/slo_bulk_snapshot_op.yml +++ b/test/functional/kb/definitions/slo_bulk_snapshot.yml @@ -10,14 +10,14 @@ requires: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-bulk-snapshot-slo ignore: [404] --- -"slo bulk-snapshot-op": +"slo bulk-snapshot": - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-bulk-snapshot-slo @@ -39,7 +39,7 @@ teardown: - match: {id: cli-ft-bulk-snapshot-slo} - do: - slo.bulk_snapshot_op: + slo.bulk_snapshot: space_id: default body: at: "2025-01-01T00:00:00.000Z" diff --git a/test/functional/kb/definitions/slo_create_slo_op.yml b/test/functional/kb/definitions/slo_create_slo.yml similarity index 92% rename from test/functional/kb/definitions/slo_create_slo_op.yml rename to test/functional/kb/definitions/slo_create_slo.yml index 9d538dac..54734bf7 100644 --- a/test/functional/kb/definitions/slo_create_slo_op.yml +++ b/test/functional/kb/definitions/slo_create_slo.yml @@ -10,14 +10,14 @@ requires: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-create-slo ignore: [404] --- -"slo create-slo-op": +"slo create-slo": - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-create-slo diff --git a/test/functional/kb/definitions/slo_delete_rollup_data_op.yml b/test/functional/kb/definitions/slo_delete_rollup_data.yml similarity index 91% rename from test/functional/kb/definitions/slo_delete_rollup_data_op.yml rename to test/functional/kb/definitions/slo_delete_rollup_data.yml index dd2d2f69..42843ca1 100644 --- a/test/functional/kb/definitions/slo_delete_rollup_data_op.yml +++ b/test/functional/kb/definitions/slo_delete_rollup_data.yml @@ -12,7 +12,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-delete-rollup-slo @@ -34,14 +34,14 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-delete-rollup-slo ignore: [404] --- -"slo delete-rollup-data-op": +"slo delete-rollup-data": - do: - slo.delete_rollup_data_op: + slo.delete_rollup_data: space_id: default body: list: diff --git a/test/functional/kb/definitions/slo_delete_slo_op.yml b/test/functional/kb/definitions/slo_delete_slo.yml similarity index 90% rename from test/functional/kb/definitions/slo_delete_slo_op.yml rename to test/functional/kb/definitions/slo_delete_slo.yml index b51477f8..02b7e7f8 100644 --- a/test/functional/kb/definitions/slo_delete_slo_op.yml +++ b/test/functional/kb/definitions/slo_delete_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-delete-slo @@ -32,13 +32,13 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-delete-slo ignore: [404] --- -"slo delete-slo-op": +"slo delete-slo": - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-delete-slo diff --git a/test/functional/kb/definitions/slo_delete_slo_instances_op.yml b/test/functional/kb/definitions/slo_delete_slo_instances.yml similarity index 90% rename from test/functional/kb/definitions/slo_delete_slo_instances_op.yml rename to test/functional/kb/definitions/slo_delete_slo_instances.yml index 6b148a60..7c321825 100644 --- a/test/functional/kb/definitions/slo_delete_slo_instances_op.yml +++ b/test/functional/kb/definitions/slo_delete_slo_instances.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-delete-slo-instances @@ -32,14 +32,14 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-delete-slo-instances ignore: [404] --- -"slo delete-slo-instances-op": +"slo delete-slo-instances": - do: - slo.delete_slo_instances_op: + slo.delete_slo_instances: space_id: default body: list: diff --git a/test/functional/kb/definitions/slo_disable_slo_op.yml b/test/functional/kb/definitions/slo_disable_slo.yml similarity index 90% rename from test/functional/kb/definitions/slo_disable_slo_op.yml rename to test/functional/kb/definitions/slo_disable_slo.yml index 940c413a..a64b8052 100644 --- a/test/functional/kb/definitions/slo_disable_slo_op.yml +++ b/test/functional/kb/definitions/slo_disable_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-disable-slo @@ -32,13 +32,13 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-disable-slo ignore: [404] --- -"slo disable-slo-op": +"slo disable-slo": - do: - slo.disable_slo_op: + slo.disable_slo: space_id: default id: cli-ft-disable-slo diff --git a/test/functional/kb/definitions/slo_enable_slo_op.yml b/test/functional/kb/definitions/slo_enable_slo.yml similarity index 89% rename from test/functional/kb/definitions/slo_enable_slo_op.yml rename to test/functional/kb/definitions/slo_enable_slo.yml index f3d83c85..ab28a510 100644 --- a/test/functional/kb/definitions/slo_enable_slo_op.yml +++ b/test/functional/kb/definitions/slo_enable_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-enable-slo @@ -30,19 +30,19 @@ setup: objective: target: 0.99 - do: - slo.disable_slo_op: + slo.disable_slo: space_id: default id: cli-ft-enable-slo --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-enable-slo ignore: [404] --- -"slo enable-slo-op": +"slo enable-slo": - do: - slo.enable_slo_op: + slo.enable_slo: space_id: default id: cli-ft-enable-slo diff --git a/test/functional/kb/definitions/slo_find_slos_op.yml b/test/functional/kb/definitions/slo_find_slos.yml similarity index 91% rename from test/functional/kb/definitions/slo_find_slos_op.yml rename to test/functional/kb/definitions/slo_find_slos.yml index 9e443db4..2b580122 100644 --- a/test/functional/kb/definitions/slo_find_slos_op.yml +++ b/test/functional/kb/definitions/slo_find_slos.yml @@ -10,14 +10,14 @@ requires: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-find-slo ignore: [404] --- -"slo find-slos-op": +"slo find-slos": - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-find-slo @@ -39,7 +39,7 @@ teardown: - match: {id: cli-ft-find-slo} - do: - slo.find_slos_op: + slo.find_slos: space_id: default - gt: {total: 0} - is_true: results diff --git a/test/functional/kb/definitions/slo_get_definitions_op.yml b/test/functional/kb/definitions/slo_get_definitions.yml similarity index 89% rename from test/functional/kb/definitions/slo_get_definitions_op.yml rename to test/functional/kb/definitions/slo_get_definitions.yml index 9c73f290..2f63932b 100644 --- a/test/functional/kb/definitions/slo_get_definitions_op.yml +++ b/test/functional/kb/definitions/slo_get_definitions.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-get-definitions @@ -32,13 +32,13 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-get-definitions ignore: [404] --- -"slo get-definitions-op": +"slo get-definitions": - do: - slo.get_definitions_op: + slo.get_definitions: space_id: default - is_true: results diff --git a/test/functional/kb/definitions/slo_get_slo_op.yml b/test/functional/kb/definitions/slo_get_slo.yml similarity index 91% rename from test/functional/kb/definitions/slo_get_slo_op.yml rename to test/functional/kb/definitions/slo_get_slo.yml index 0a70691f..66ee2df5 100644 --- a/test/functional/kb/definitions/slo_get_slo_op.yml +++ b/test/functional/kb/definitions/slo_get_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-get-slo @@ -32,14 +32,14 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-get-slo ignore: [404] --- -"slo get-slo-op": +"slo get-slo": - do: - slo.get_slo_op: + slo.get_slo: space_id: default id: cli-ft-get-slo - match: {id: cli-ft-get-slo} diff --git a/test/functional/kb/definitions/slo_get_snapshot_op.yml b/test/functional/kb/definitions/slo_get_snapshot.yml similarity index 91% rename from test/functional/kb/definitions/slo_get_snapshot_op.yml rename to test/functional/kb/definitions/slo_get_snapshot.yml index 63592a87..624c4204 100644 --- a/test/functional/kb/definitions/slo_get_snapshot_op.yml +++ b/test/functional/kb/definitions/slo_get_snapshot.yml @@ -10,14 +10,14 @@ requires: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-get-snapshot-slo ignore: [404] --- -"slo get-snapshot-op": +"slo get-snapshot": - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-get-snapshot-slo @@ -39,7 +39,7 @@ teardown: - match: {id: cli-ft-get-snapshot-slo} - do: - slo.get_snapshot_op: + slo.get_snapshot: space_id: default id: cli-ft-get-snapshot-slo at: "2025-01-01T00:00:00.000Z" diff --git a/test/functional/kb/definitions/slo_reset_slo_op.yml b/test/functional/kb/definitions/slo_reset_slo.yml similarity index 91% rename from test/functional/kb/definitions/slo_reset_slo_op.yml rename to test/functional/kb/definitions/slo_reset_slo.yml index ff648262..c976fb08 100644 --- a/test/functional/kb/definitions/slo_reset_slo_op.yml +++ b/test/functional/kb/definitions/slo_reset_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-reset-slo @@ -32,14 +32,14 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-reset-slo ignore: [404] --- -"slo reset-slo-op": +"slo reset-slo": - do: - slo.reset_slo_op: + slo.reset_slo: space_id: default id: cli-ft-reset-slo - match: {id: cli-ft-reset-slo} diff --git a/test/functional/kb/definitions/slo_update_slo_op.yml b/test/functional/kb/definitions/slo_update_slo.yml similarity index 91% rename from test/functional/kb/definitions/slo_update_slo_op.yml rename to test/functional/kb/definitions/slo_update_slo.yml index 9bf1b401..d52db2ed 100644 --- a/test/functional/kb/definitions/slo_update_slo_op.yml +++ b/test/functional/kb/definitions/slo_update_slo.yml @@ -10,7 +10,7 @@ requires: --- setup: - do: - slo.create_slo_op: + slo.create_slo: space_id: default body: id: cli-ft-update-slo @@ -32,14 +32,14 @@ setup: --- teardown: - do: - slo.delete_slo_op: + slo.delete_slo: space_id: default id: cli-ft-update-slo ignore: [404] --- -"slo update-slo-op": +"slo update-slo": - do: - slo.update_slo_op: + slo.update_slo: space_id: default id: cli-ft-update-slo body: diff --git a/test/kb/request-builder.test.ts b/test/kb/request-builder.test.ts index a973a00c..83db0a1b 100644 --- a/test/kb/request-builder.test.ts +++ b/test/kb/request-builder.test.ts @@ -96,10 +96,10 @@ describe('buildKibanaRequestParams', () => { assert.deepEqual(stale, [], 'stale multipart endpoint keys') }) - it('uses the published get-definitions-op path', async () => { + it('uses the published get-definitions path', async () => { const { loadAllKbApis } = await import('../../src/kb/apis.ts') - const def = (await loadAllKbApis()).find((d) => d.namespace === 'slo' && d.name === 'get-definitions-op') - assert.ok(def != null, 'expected slo get-definitions-op') + const def = (await loadAllKbApis()).find((d) => d.namespace === 'slo' && d.name === 'get-definitions') + assert.ok(def != null, 'expected slo get-definitions') assert.equal(def.path, '/api/observability/slos/_definitions') const result = build(def, parsed()) assert.equal(result.path, '/api/observability/slos/_definitions') diff --git a/test/lib/manifest-drift.test.ts b/test/lib/manifest-drift.test.ts index 7439b6af..66879d56 100644 --- a/test/lib/manifest-drift.test.ts +++ b/test/lib/manifest-drift.test.ts @@ -61,7 +61,7 @@ describe('manifest/definition parity (upstream drift guard)', () => { }) it('pins the es command count', () => { - const expected = 581 + const expected = 589 assert.equal(apiManifest.length, expected, countDriftMessage('es', expected, apiManifest.length)) }) }) @@ -90,7 +90,7 @@ describe('manifest/definition parity (upstream drift guard)', () => { }) it('pins the kb command count', () => { - const expected = 773 + const expected = 784 assert.equal(kbApiManifest.length, expected, countDriftMessage('kb', expected, kbApiManifest.length)) }) @@ -118,7 +118,7 @@ describe('manifest/definition parity (upstream drift guard)', () => { // loaded count still catches an upstream add/remove going unnoticed. describe('cloud', () => { it('pins the cloud command count', async () => { - const expected = 114 + const expected = 115 const actual = (await loadCloudApis()).length assert.equal(actual, expected, countDriftMessage('cloud', expected, actual)) }) From c0ccfa1291cba3427ff0f1ad6dd59eac44fd1b17 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Fri, 4 Dec 2026 15:26:11 -0500 Subject: [PATCH 2/3] fix(es): reject path params no URL can carry When the supplied path params match no URL exactly, the request fell back to def.path and silently dropped any param it lacked (e.g. prometheus remote-write --namespace without --dataset). Throw an input_error naming the dropped params instead. Assisted-by: Pi Coding Agent (Claude Opus 5.5) --- src/es/types.ts | 9 ++++++++- test/es/request-builder.test.ts | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/es/types.ts b/src/es/types.ts index 97b86af0..695ee004 100644 --- a/src/es/types.ts +++ b/src/es/types.ts @@ -94,13 +94,20 @@ function pathTemplates (def: EsApiDefinition): string[] { /** * Picks the first path template whose params are exactly the supplied ones, falling back to `def.path`. + * Throws an `input_error` when the chosen template cannot carry every supplied param, rather than dropping it. * A superset template would let `interpolatePath` drop a missing segment and shift later values into its slot. */ export function selectPathTemplate (def: EsApiDefinition, supplied: string[]): string { - return pathTemplates(def).find((t) => { + const template = pathTemplates(def).find((t) => { const tokens = extractPathTokens(t) return tokens.length === supplied.length && supplied.every((k) => tokens.includes(k)) }) ?? def.path + const tokens = extractPathTokens(template) + const dropped = supplied.filter((k) => !tokens.includes(k)) + if (dropped.length > 0) { + throw Object.assign(new Error(`no URL for "${def.name}" accepts path parameter(s) ${dropped.join(', ')} with the others supplied`), { code: 'input_error' }) + } + return template } /** diff --git a/test/es/request-builder.test.ts b/test/es/request-builder.test.ts index dac66846..1f370145 100644 --- a/test/es/request-builder.test.ts +++ b/test/es/request-builder.test.ts @@ -382,8 +382,8 @@ describe('buildRequestParams', () => { it('ignores x-urls entries for other methods', () => { const postOnly = { ...input, 'x-urls': [{ path: '/_cluster/stats/nodes/{node_id}', methods: ['POST'] }] } - const result = buildRequestParams(makeDefinition({ path: '/_cluster/stats', input: postOnly }), parsedResult({ node_id: 'n1' }), args(postOnly)) - assert.equal(result.path, '/_cluster/stats') + const build = () => buildRequestParams(makeDefinition({ path: '/_cluster/stats', input: postOnly }), parsedResult({ node_id: 'n1' }), args(postOnly)) + assert.throws(build, { code: 'input_error', message: /node_id/ }) }) }) @@ -410,8 +410,8 @@ describe('buildRequestParams', () => { assert.equal(route({ dataset: 'ds', namespace: 'ns' }), '/_prometheus/metrics/ds/ns/api/v1/write') }) - it('does not put namespace in the dataset slot when dataset is omitted', () => { - assert.equal(route({ namespace: 'ns' }), '/_prometheus/api/v1/write') + it('rejects namespace without dataset instead of dropping it', () => { + assert.throws(() => route({ namespace: 'ns' }), { code: 'input_error', message: /namespace/ }) }) }) From 721ccc6424e7aad7400f4109f781a0c028aa340c Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Fri, 4 Dec 2026 15:37:38 -0500 Subject: [PATCH 3/3] test(cloud): pass region to stack get-version-stacks The Cloud API now scopes stack versions to a region (GET /api/v1/regions/{region}/stack/versions), making region required. Derive it from the first deployment's resources. Assisted-by: Pi Coding Agent (Claude Opus 5.5) --- .../cloud/definitions/stack_get_version_stacks.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/functional/cloud/definitions/stack_get_version_stacks.yml b/test/functional/cloud/definitions/stack_get_version_stacks.yml index b0d35049..24dc79d3 100644 --- a/test/functional/cloud/definitions/stack_get_version_stacks.yml +++ b/test/functional/cloud/definitions/stack_get_version_stacks.yml @@ -1,7 +1,12 @@ # Copyright Elasticsearch B.V. and contributors # SPDX-License-Identifier: Apache-2.0 -# Cloud control plane API: Get stack versions (GET /api/v1/stack/versions) +# Cloud control plane API: Get stack versions (GET /api/v1/regions/{region}/stack/versions) +# Region for {region} is derived from deployments.list-deployments. --- "stack get-version-stacks": - do: - stack.get-version-stacks: {} + deployments.list-deployments: {} + - set: {"deployments.0.resources.0.region": region} + - do: + stack.get-version-stacks: + region: $region